]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
01fc0988654a30546c9a86f94d6d172834ccd059
[thirdparty/glibc.git] / ChangeLog
1 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * string/memmem.c (__memmem): Rewrite to improve performance.
4
5 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
6
7 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
8 warning.
9 (two_way_long_needle): Block inlining.
10 * string/strstr.c (strstr2): Add new function.
11 (strstr3): Likewise.
12 (STRSTR): Completely rewrite strstr to improve performance.
13
14 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
15
16 * benchtests/bench-strstr.c (test_hard_needle): New function.
17
18 2019-06-10 Joseph Myers <joseph@codesourcery.com>
19
20 * malloc/tst-calloc.c: Include <libc-diag.h>.
21 (null_test): Ignore -Wunused-result around calls to calloc.
22 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
23 (do_test): Ignore -Wunused-result around call to malloc.
24
25 2019-06-07 Florian Weimer <fweimer@redhat.com>
26
27 Linux: Add getdents64 system call.
28 * include/dirnent.h (getdents): Add comment and change buffer
29 argument type to void *.
30 (getdents64): Likewise. Add hidden prototype.
31 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
32 getdents64.
33 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
34 Add tst-getdents64.
35 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
36 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
37 argument type to void *.
38 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
39 Add hidden definition and getdents64 alias.
40 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
41 Likewise.
42 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
43 * manual/filesys.texi (Accessing Directories): Add Low-level
44 Directory Access node reference.
45 (Opening a Directory): Cross-reference it.
46 (Low-level Directory Access): New node.
47 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
48 getdents64.
49 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
50 Likewise.
51 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
52 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
53 Likewise.
54 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
55 Likewise.
56 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
57 Likewise.
58 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
59 Likewise.
60 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
61 Likewise.
62 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
63 Likewise.
64 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
65 Likewise.
66 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
67 (GLIBC_2.30): Likewise.
68 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
69 (GLIBC_2.30): Likewise.
70 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
71 (GLIBC_2.30): Likewise.
72 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
73 (GLIBC_2.30): Likewise.
74 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
75 Likewise.
76 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
77 (GLIBC_2.30): Likewise.
78 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
79 (GLIBC_2.30): Likewise.
80 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
81 (GLIBC_2.30): Likewise.
82 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
83 (GLIBC_2.30): Likewise.
84 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
85 Likewise.
86 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
87 Likewise.
88 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
89 Likewise.
90 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
91 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
92 Likewise.
93 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
94 Likewise.
95 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
96 Likewise.
97 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
98 Likewise.
99
100 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
101
102 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
103 (__FPU_MFFS): New.
104 (__FPU_MFFSL): New.
105 (_FPU_GET_RC): New.
106 (_FPU_GETCW): Use __FPU_MFFS().
107 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
108
109 2019-06-06 Florian Weimer <fweimer@redhat.com>
110
111 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
112 internal GCC preprocessor identifier __has_include__.
113
114 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
115
116 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
117 with call to equivalent function.
118
119 2019-06-04 Florian Weimer <fweimer@redhat.com>
120
121 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
122 (do_release_shlib): Adjust for __twalk_r.
123 (__gconv_release_shlib): Call __twalk_r.
124
125 2019-06-04 Andreas Schwab <schwab@suse.de>
126
127 [BZ #18830]
128 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
129 no irreversible characters occurred.
130 * iconv/gconv_simple.c (internal_ucs4_loop)
131 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
132 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
133 (ucs4_internal_loop_single, internal_ucs4le_loop)
134 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
135 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
136 (ucs4le_internal_loop_single): Add const to outend.
137 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
138 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
139 * iconv/Makefile (tests): Add tst-iconv7.
140 * iconv/tst-iconv7.c: New file.
141
142 2019-06-03 Joseph Myers <joseph@codesourcery.com>
143
144 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
145
146 2019-06-01 Florian Weimer <fweimer@redhat.com>
147
148 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
149 * sysdeps/unix/sysv/linux/arm/Makefile
150 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
151 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
152 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
153 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
154 compatibility symbols.
155
156 2019-05-31 Florian Weimer <fweimer@redhat.com>
157
158 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
159 system calls for the arm architecture: breakpoint, get_tls,
160 set_tls, usr26, usr32.
161
162 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
163
164 * sysdeps/powerpc/Makefile
165 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
166 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
167 Declare '.machine power7' to get support for ldbrx.
168 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
169 directive based on the directory of the file.
170 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
171 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
172 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
173 '.machine' directive.
174 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
175 (VADDUQM_V7_V8): Remove.
176 (__STRCASECMP): Replace macros with actual instructions.
177 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
178 '.machine' directive.
179 (VCLZD_V8_v7): Remove.
180 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
181
182 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
183
184 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
185 Remove file.
186 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
187
188 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
189
190 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
191 NEARBYINT handling.
192 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
193 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
194 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
195 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
196 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
197 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
198
199 2019-05-28 mansayk <6688000@gmail.com>
200
201 [BZ #24370]
202 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
203
204 2019-05-28 mansayk <6688000@gmail.com>
205
206 [BZ #24369]
207 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
208 (abmon): Likewise, but remove the trailing dots.
209
210 2019-05-28 Joseph Myers <joseph@codesourcery.com>
211
212 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
213
214 2019-05-27 Florian Weimer <fweimer@redhat.com>
215
216 * nptl/nptl-init.c: Add comment.
217
218 2019-05-24 Florian Weimer <fweimer@redhat.com>
219
220 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
221 struct in_addr/struct in6_addr alignment.
222
223 2019-05-23 Joseph Myers <joseph@codesourcery.com>
224
225 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
226 (F_SEAL_FUTURE_WRITE): New macro.
227
228 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
229
230 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
231 * elf/tst-ldconfig-bad-aux-cache.c: New file.
232 * elf/tst-ldconfig_aux-cache.root: New directory.
233 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
234 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
235 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
236
237 2019-05-22 Zack Weinberg <zackw@panix.com>
238
239 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
240 host type.
241 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
242 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
243
244 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
247 Delete.
248
249 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
250 Issue an #error if used with a compiler in SPE-float mode.
251 * sysdeps/powerpc/powerpc32/__longjmp_common.S
252 * sysdeps/powerpc/powerpc32/setjmp_common.S
253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
259 Remove code to preserve SPE register state.
260
261 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
262 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
263 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
264 Remove __SPE__ ifndefs.
265
266 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
267
268 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
269 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
270 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
271 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
272 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
273 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
274 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
275 (INNER_LOOP_ITERS_MEDIUM): New define.
276 (INNER_LOOP_ITERS_SMALL): New define.
277 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
278 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
279 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
280 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
281 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
282
283 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
284
285 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
286 New define.
287 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
288 (SEMTIMEDOP_IPC_ARGS): Likewise.
289
290 2019-05-21 Florian Weimer <fweimer@redhat.com>
291
292 [BZ #24584]
293 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
294 before updating __counter field and release it afterwards. Add
295 overflow check.
296 * iconv/gconv.h (struct __gconv_step): Mention synchronization
297 requirement for __counter member.
298
299 2019-05-21 Florian Weimer <fweimer@redhat.com>
300
301 [BZ #24583]
302 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
303 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
304 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
305 instead of __gconv_release_step.
306 * libio/Makefile (tests): Add tst-wfile-gconv.
307 (tests-container): Add tst-wfile-ascii.
308 (tst-wfile-gconv-ENV): Enable mtrace.
309 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
310 (tests-special): Add tst-wfile-gconv-mem.out.
311 (tst-wfile-gconv.out): Depend on locales.
312 (tst-wfile-gconv-mem.out): Add mtrace rule.
313 * libio/tst-wfile-ascii.c: New file.
314 * libio/tst-wfile-gconv.c: Likewise.
315
316 2019-05-20 Florian Weimer <fweimer@redhat.com>
317
318 [BZ #24588]
319 libio: Remove codecvt vtable.
320 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
321 __libio_codecvt.
322 * libio/iofgetpos.c (_IO_new_fgetpos): Call
323 __libio_codecvt_encoding.
324 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
325 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
326 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
327 * libio/iofwide.c (__libio_codecvt): Remove variable.
328 (_IO_fwide): Do not copy __libio_codecvt.
329 (__libio_codecvt_out): Rename from do_out and export.
330 (do_unshift): Remove function.
331 (__libio_codecvt_in): Rename from do_in and export.
332 (__libio_codecvt_encoding): Rename from do_encoding and export.
333 (do_always_noconv): Remove function.
334 (__libio_codecvt_length): Rename from do_length and export.
335 (do_max_length): Remove function.
336 * libio/libio.h (enum __codecvt_result): Remove definition; moved
337 to libioP.h.
338 (struct _IO_codecvt): Remove fields __codecvt_destr,
339 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
340 __codecvt_do_encoding, __codecvt_do_always_noconv,
341 __codecvt_do_length, __codecvt_do_max_length.
342 * libio/libioP.h (enum __codecvt_result): Define; moved from
343 libio.h.
344 (__libio_codecvt_out, __libio_codecvt_in)
345 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
346 functions.
347 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
348 (_IO_wfile_underflow): Call __libio_codecvt_in.
349 (_IO_wfile_underflow): Likewise.
350 (_IO_wfile_underflow_mmap): Likewise.
351 (_IO_wfile_sync): Call __libio_codecvt_encoding,
352 __libio_codecvt_length.
353 (adjust_wide_data): Call __libio_codecvt_encoding,
354 __libio_codecvt_in.
355 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
356 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
357 __libio_codecvt_length.
358
359 2019-05-20 Florian Weimer <fweimer@redhat.com>
360
361 * support/support.h (support_sbindir_prefix): Declare.
362 (support_install_rootsbindir): Update comment.
363 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
364 * support/support_paths.c (support_sbindir_prefix): Define.
365
366 2019-05-20 Mike Crowe <mac@mcrowe.com>
367
368 * support/timespec.c: Add backslash to correct newline in failure
369 message.
370
371 * support/timespec.h: Correct confusing comment.
372
373 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
374
375 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
376 define.
377 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
378 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
379 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
380 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
381
382 [BZ #24570]
383 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
384 usage.
385
386 2019-05-20 Joseph Myers <joseph@codesourcery.com>
387
388 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
389 (NT_ARM_PACG_KEYS): Likewise.
390
391 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
392
393 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
394 (tcache_put): Remove redundant assert.
395 (tcache_get): Remove redundant asserts.
396 (__libc_malloc): Check tcache count is not zero.
397 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
398
399 2019-05-17 Florian Weimer <fweimer@redhat.com>
400
401 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
402
403 2019-05-16 Joseph Myers <joseph@codesourcery.com>
404
405 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
406 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
407 0x050100].
408 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
409 Likewise.
410 * sysdeps/unix/sysv/linux/sh/kernel-features.h
411 (__ASSUME_STATX): Likewise.
412
413 2019-05-16 Florian Weimer <fweimer@redhat.com>
414
415 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
416 flags argument.
417 (LINE_PARSER): Do not map IPv4 addresses.
418 (internal_nis_gethostent_r): Remove flags argument. Adjust call
419 to parse_line.
420 (_nss_nis_gethostent_r): Always pass AF_INET to
421 internal_nis_gethostent_r.
422 (internal_gethostbyname2_r): Remove flags argument. Adjust call
423 to parse_line.
424 (_nss_nis_gethostbyname2_r): Adjust call to
425 internal_nis_gethostent_r.
426 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
427 call to internal_nis_gethostent_r.
428 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
429 from parse_line.
430 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
431 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
432 Remove flags argument. Do not map IPv4 addresses.
433 (internal_nisplus_gethostent_r): Adjust call to
434 _nss_nisplus_parse_hostent.
435 (internal_gethostbyname2_r): Remove flags argument. Adjust call
436 to _nss_nisplus_parse_hostent.
437 (_nss_nisplus_gethostbyname2_r): Adjust call to
438 internal_gethostbyname2_r.
439 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
440 Adjust call to internal_gethostbyname2_r.
441 (_nss_nisplus_gethostbyaddr_r): Adjust call to
442 _nss_nisplus_parse_hostent.
443 (_nss_nisplus_gethostbyname4_r): Adjust call to
444 internal_gethostbyname2_r.
445
446 2019-05-16 Florian Weimer <fweimer@redhat.com>
447
448 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
449 Remove flags.
450 (LINE_PARSER): Remove address mapping.
451 (EXTRA_ARGS_VALUE): Remove flags argument.
452 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
453 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
454 gethostbyname3_multi.
455 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
456 _nss_files_gethostbyname3_r.
457 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
458
459 2019-05-16 Florian Weimer <fweimer@redhat.com>
460
461 * support/support_test_compare_blob.c (report_blob): Report
462 incorrect NULL blobs.
463
464 2019-05-15 Mark Wielaard <mark@klomp.org>
465
466 [BZ# 24476]
467 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
468 __libc_once_get (once) and static_buf == NULL.
469 (__dlerror): Check we have a valid key, set result to static_buf
470 otherwise.
471
472 2019-05-15 Andreas Schwab <schwab@suse.de>
473
474 [BZ #20568]
475 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
476 __codecvt_do_length.
477 * libio/Makefile (tests): Add tst-wfile-sync.
478 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
479 * libio/tst-wfile-sync.c: New file.
480 * libio/tst-wfile-sync.input: New file.
481
482 2019-05-15 Florian Weimer <fweimer@redhat.com>
483
484 nss: Turn __nss_database_lookup into a compatibility symbol.
485 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
486 __nss_database_lookup.
487 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
488 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
489 __nss_database_lookup.
490 (__nss_next): Move to …
491 * nss/compat-lookup.c (nss_next): … here. Change it to fail
492 unconditionally.
493 (__nss_database_lookup): New function.
494 * nss/Versions (GLIBC_2.0): Update comment.
495 (GLIBC_PRIVATE): Export __nss_database_lookup2.
496 * grp/initgroups.c (internal_getgrouplist): Call
497 __nss_database_lookup2 instead of __nss_database_lookup.
498 * nscd/aicache.c (addhstaiX): Likewise.
499 * nscd/initgrcache.c (addinitgroupsX): Likewise.
500 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
501 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
502 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
503 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
504 Likewise.
505 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
506 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
507 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
508
509 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
510
511 * support/support.h (support_install_rootsbindir): New variable.
512 * support/support_paths.c: Likewise.
513 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
514
515 2019-05-15 Florian Weimer <fweimer@redhat.com>
516
517 * iconv/gconv.h (__gconv_transliterate): Move declaration …
518 * iconv/gconv_int.h (__gconv_transliterate): … here.
519 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
520 * iconv/skeleton.c: Likewise.
521
522 2019-05-14 Florian Weimer <fweimer@redhat.com>
523
524 Linux: Add the tgkill function.
525 * bits/signal_ext.h: New file.
526 * manual/signal.texi (Signaling Another Process): Document tgkill.
527 * signal/Makefile (headers): Add bits/signal_ext.h.
528 * signal/signal.h: Include <bits/signal_ext.h>.
529 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
530 (tst-tgkill): Link with libpthread.
531 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
532 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
533 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
534 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
535 tgkill.
536 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
537 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
538 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
539 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
540 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
541 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
542 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
543 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
544 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
545 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
546 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
547 Likewise.
548 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
549 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
550 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
552 Likewise.
553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
554 Likewise.
555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
556 Likewise.
557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
558 Likewise.
559 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
560 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
561 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
562 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
563 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
564 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
565 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
566 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
567
568 2019-05-14 Carlos O'Donell <carlos@redhat.com>
569
570 * manual/search.texi (Tree Search Function): Adjust twalk_r
571 documentation.
572
573 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
574
575 [BZ #24544]
576 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
577 pre-defined value.
578
579 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
580 * support/support.h (support_bindir_prefix): New variable.
581 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
582
583 * config.make.in (bindir): New variable.
584
585 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
586 (lll_trylock): Call __lll_trylock.
587 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
588 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
589 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
590 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
591 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
592 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
593 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
594 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
595 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
596 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
597 lowlevellock-futex.h.
598
599 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
600 initialization for LLL_LOCK_INITIALIZER different than 0.
601 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
602 Assume LLL_LOCK_INITIALIZER being 0.
603 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
604 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
605 Likewise.
606 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
607 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
608
609 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
610 Optimize futex call and add systemtap probe.
611
612 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
613 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
614 __libc_disable_asynccancel, __librt_enable_asynccancel,
615 __libc_disable_asynccancel, __librt_enable_asynccancel,
616 __librt_disable_asynccancel): Move to ...
617 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
618 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
619 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
620 * sysdeps/generic/single-thread.h: New file.
621 * sysdeps/unix/sysdep.h: Include single-thread.h.
622 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
623 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
624
625 2019-05-08 Mike FABIAN <mfabian@redhat.com>
626
627 [BZ #24535]
628 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
629 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
630 Unicode 12.1.0.
631 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
632 * localedata/unicode-gen/PropList.txt: Likewise.
633 * localedata/unicode-gen/UnicodeData.txt: Likewise.
634 * localedata/charmaps/UTF-8: Regenerate.
635 * localedata/locales/i18n_ctype: Likewise.
636 * localedata/locales/tr_TR: Likewise.
637 * localedata/locales/translit_circle: Likewise.
638 * localedata/locales/translit_cjk_compat: Likewise.
639 * localedata/locales/translit_combining: Likewise.
640 * localedata/locales/translit_compat: Likewise.
641 * localedata/locales/translit_font: Likewise.
642 * localedata/locales/translit_fraction: Likewise.
643
644 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
645
646 [BZ #24531]
647 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
648 (do_set_tcache_count): Only update if count is small enough.
649 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
650
651 2019-05-10 Florian Weimer <fweimer@redhat.com>
652
653 * nptl/sem_close.c (struct walk_closure): Define.
654 (walker): Adjust for __twalk_r.
655 (sem_close): Call __twalk_r.
656
657 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
658
659 * support/timespec.c (test_timespec_before_impl,
660 test_timespec_equal_or_after_impl): print timespec member as intmax_t
661 insted of long int.
662
663 2019-05-09 Mike Crowe <mac@mcrowe.com>
664
665 * nptl/tst-abstime.c: Use libsupport.
666
667 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
668 small bug where only tv.tv_usec was checked which could cause an
669 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
670 than a second.
671
672 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
673 libsupport.
674
675 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
676 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
677
678 * nptl/tst-cond11.c: Use libsupport.
679
680 * support/timespec.h: New file. Provide timespec helper functions
681 along with macros in the style of those in check.h.
682 * support/timespec.c: New file. Implement check functions declared
683 in support/timespec.h.
684 * support/timespec-add.c: New file from gnulib containing
685 timespec_add implementation that handles overflow.
686 * support/timespec-sub.c: New file from gnulib containing
687 timespec_sub implementation that handles overflow.
688 * support/README: Mention timespec.h.
689
690 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
691
692 [BZ #24537]
693 * nptl/Makefile: Move tst-eintr1 to xtests.
694
695 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
696
697 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
698 TRUNC handling.
699 (round_mode): Add definition for TRUNC.
700 * sysdeps/powerpc/fpu/s_trunc.c: New file.
701 * sysdeps/powerpc/fpu/s_truncf.c: New file.
702 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
703 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
704 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
705 Likewise.
706 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
707 Likewise.
708 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
709 Likewise.
710 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
711 Likewise.
712 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
713 file.
714 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
715 Likewise.
716 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
717 Likewise.
718 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
719 Likewise.
720 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
721 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
722 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
723 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
724 s_truncf-power5+, and s_truncf-ppc64.
725 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
726 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
727 file.
728 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
729 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
730 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
731 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
732 file.
733 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
734 Likewise.
735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
736 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
737 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
738 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
739 s_truncf-power5+, and s_truncf-ppc64.
740 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
741 file.
742 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
743 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
744 Likewise.
745 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
746 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
747 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
748 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
749 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
750
751 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
752 ROUND handling.
753 (round_mode): Add definition for ROUND.
754 (round_to_integer_float): Likewise.
755 * sysdeps/powerpc/fpu/s_round.c: New file.
756 * sysdeps/powerpc/fpu/s_roundf.c: New file.
757 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
758 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
759 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
760 Likewise.
761 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
762 Likewise.
763 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
764 Likewise.
765 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
766 Likewise.
767 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
768 file.
769 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
770 Likewise.
771 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
772 Likewise.
773 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
774 Likewise.
775 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
776 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
777 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
778 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
779 s_roundf-power5+, and s_roundf-ppc64.
780 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
781 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
782 file.
783 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
785 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
786 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
787 file.
788 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
789 Likewise.
790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
791 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
792 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
793 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
794 s_roundf-power5+, and s_roundf-ppc64.
795 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
796 file.
797 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
798 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
799 Likewise.
800 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
801 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
802 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
803 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
804 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
805
806 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
807 Add FLOOR option.
808 (round_mode): Add definition for FLOOR.
809 * sysdeps/powerpc/fpu/s_floor.c: New file.
810 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
811 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
812 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
813 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
814 Remove file.
815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
816 Likewise
817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
818 Likewise.
819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
820 Likewise.
821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
822 New file.
823 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
824 Likewise.
825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
826 Likewise.
827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
828 Likewise.
829 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
830 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
831 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
832 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
833 s_floorf-power5+, and s_floorf-ppc64.
834 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
835 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
836 file.
837 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
839 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
840 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
841 file.
842 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
843 Likewise.
844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
845 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
846 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
847 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
848 s_floorf-power5+, and s_floorf-ppc64.
849 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
850 file.
851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
852 file.
853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
854 Likewise.
855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
856 Likewise.
857 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
858 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
859 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
860 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
861
862 2019-05-08 Mike Crowe <mac@mcrowe.com>
863
864 * support/xclock_gettime.c (xclock_gettime): New file. Provide
865 clock_gettime wrapper for use in tests that fails the test rather
866 than returning failure.
867
868 * support/xtime.h: New file to declare xclock_gettime.
869
870 * support/Makefile: Add xclock_gettime.c.
871
872 * support/README: Mention xtime.h.
873
874 2019-05-08 Florian Weimer <fweimer@redhat.com>
875
876 malloc/tst-mallocfork2: Use process-shared barriers.
877 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
878 (signal_count, sigusr1_sender_pid): Remove.
879 (iterations): Define constant.
880 (shared): New variable.
881 (sigusr1_received): Update comment.
882 (sigusr1_handler): Do not send SIGSTOP to the sender process.
883 (signal_sender): Optional use barriers to avoid sending signals
884 during irrelevant times.
885 (do_it): Initialize variable shared. Use xfork for error
886 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
887 the iteration count, independent of signal delivery. Check for
888 deadlocks in fork. Introduce barriers for reducing signal
889 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
890 replaced by the barriers. Count signals during fork/free/malloc
891 and report them.
892 * malloc/Makefile (tst-mallocfork): Link with libpthread.
893
894 2019-05-07 Joseph Myers <joseph@codesourcery.com>
895
896 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
897 version to 5.1.
898 (clock_adjtime64) New syscall.
899 (clock_getres_time64) Likewise.
900 (clock_gettime64) Likewise.
901 (clock_nanosleep_time64) Likewise.
902 (clock_settime64) Likewise.
903 (futex_time64) Likewise.
904 (io_pgetevents_time64) Likewise.
905 (io_uring_enter) Likewise.
906 (io_uring_register) Likewise.
907 (io_uring_setup) Likewise.
908 (mq_timedreceive_time64) Likewise.
909 (mq_timedsend_time64) Likewise.
910 (pidfd_send_signal) Likewise.
911 (ppoll_time64) Likewise.
912 (pselect6_time64) Likewise.
913 (recvmmsg_time64) Likewise.
914 (rt_sigtimedwait_time64) Likewise.
915 (sched_rr_get_interval_time64) Likewise.
916 (semtimedop_time64) Likewise.
917 (timer_gettime64) Likewise.
918 (timer_settime64) Likewise.
919 (timerfd_gettime64) Likewise.
920 (timerfd_settime64) Likewise.
921 (utimensat_time64) Likewise.
922
923 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
924 version to 9 branch.
925
926 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
927
928 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
929 __memmove_thunderx2 to the list of implementations
930 * sysdeps/aarch64/multiarch/memmove.c: Likewise
931 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
932 (__memmove_thunderx2): Rewritten using SIMD ld/st
933 (__memcpy_thunderx2): Fixed handling overlapping cases.
934 Used ldp/stp instead of ldr/str if possible. Made loops
935 tails branchless.
936
937 2019-05-03 Florian Weimer <fweimer@redhat.com>
938
939 * misc/tst-tsearch.c (walk_tree): Add more error checking.
940
941 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
942
943 [BZ #24506]
944 * elf/tst-pldd.c (in_str_list): New function.
945 (do_test): Add default names for ld and libc as one option.
946
947 2019-05-02 Florian Weimer <fweimer@redhat.com>
948
949 misc: Add twalk_r function.
950 * include/search.h (__twalk_r): Declare.
951 * manual/examples/twalk.c: New file.
952 * manual/search.texi (Tree Search Function): Document twalk_r.
953 * misc/Versions (2.30): Export twalk_r.
954 (GLIBC_PRIVATE): Export __twalk_r.
955 * misc/search.h [__USE_GNU] (twalk_r): Declare.
956 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
957 (twalk_r): Add weak alias.
958 * misc/tst-tsearch.c (struct walk_trace_element): Define.
959 (walk_trace): New variable.
960 (struct twalk_with_twalk_r_closure): Define.
961 (twalk_with_twalk_r_action): New function.
962 (twalk_with_twalk_r): Likewise.
963 (walk_action): Call walk_trace_add.
964 (walk_tree_with): Rename from walk_tree. Add walk argument.
965 (walk_tree): New function.
966 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
967 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
968 Likewise.
969 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
970 Likewise.
971 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
972 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
973 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
974 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
975 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
976 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
977 Likewise.
978 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
979 Likewise.
980 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
981 Likewise.
982 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
983 (GLIBC_2.30): Likewise.
984 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
985 (GLIBC_2.30): Likewise.
986 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
987 (GLIBC_2.30): Likewise.
988 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
989 (GLIBC_2.30): Likewise.
990 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
991 Likewise.
992 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
993 (GLIBC_2.30): Likewise.
994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
995 (GLIBC_2.30): Likewise.
996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
997 (GLIBC_2.30): Likewise.
998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
999 (GLIBC_2.30): Likewise.
1000 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1001 Likewise.
1002 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1003 Likewise.
1004 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1005 Likewise.
1006 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1007 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1008 Likewise.
1009 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1010 Likewise.
1011 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1012 Likewise.
1013 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1014 Likewise.
1015
1016 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1017
1018 Make mktime etc. compatible with __time64_t
1019 Keep these functions compatible with Gnulib while adding
1020 __time64_t support. The basic idea is to move private API
1021 declarations from include/time.h to time/mktime-internal.h, since
1022 the former file cannot easily be shared with Gnulib whereas the
1023 latter can.
1024 Also, do some other minor cleanup while in the neighborhood.
1025 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1026 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1027 since Gnulib needs it.
1028 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1029 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1030 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1031 (in_time_t_range): New static function.
1032 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1033 so that glibc users are not tempted to use __time64_t.
1034 * time/mktime-internal.h: Rewrite so that it does both glibc
1035 and Gnulib work. Include time.h if not _LIBC.
1036 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1037 (__time64_t): New type or macro, moved here from
1038 posix/bits/types.h.
1039 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1040 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1041 from include/time.h.
1042 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1043 New macros, taken from GNulib.
1044 (__mktime_internal): New prototype, moved here from include/time.h.
1045 * time/mktime.c (mktime_min, mktime_max, convert_time)
1046 (ranged_convert, __mktime_internal, __mktime64):
1047 * time/timegm.c (__timegm64):
1048 Use __time64_t, not time_t.
1049 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1050 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1051 Rename from mktime.
1052 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1053 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1054 for libc_hidden_def.
1055 Include errno.h.
1056 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1057 Rename from timegm.
1058 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1059
1060 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1061
1062 [BZ #19444]
1063 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1064 from `-Wmaybe-uninitialized'.
1065 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1066
1067 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1068
1069 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1070 function.
1071 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1072 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1073 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1074 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1075 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1076 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1077 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1078 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1079 Remove file.
1080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1081 Likewise.
1082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1083 Likewise.
1084 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1085 Likewise.
1086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1087 New file.
1088 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1089 Likewise.
1090 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1091 Likewise.
1092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1093 Likewise.
1094 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1095 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1096 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1097 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1098 Likewise.
1099 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1100 Likewise.
1101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1102 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1103 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1104 file.
1105 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1106 Likewise.
1107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1108 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1109 * here.
1110 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1111 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1112 s_ceilf-power5+, and s_ceilf-ppc64.
1113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1114 file.
1115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1118 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1119 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1120 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1121 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1122
1123 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1124 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1125 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1126
1127 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1128
1129 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1130 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1131 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1132 (sem_getvalue): Likewise.
1133
1134 2019-04-26 Florian Weimer <fweimer@redhat.com>
1135
1136 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1137 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1138
1139 2019-04-26 Florian Weimer <fweimer@redhat.com>
1140
1141 Makeconfig: Move -Wl,-rpath-link options before library references.
1142 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1143 (link-libc): Remove $(link-libc-rpath-link).
1144
1145 2019-04-25 Florian Weimer <fweimer@redhat.com>
1146
1147 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1148 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1149 (+link-static-before-libc): Remove $(CC).
1150 (+link-static, +link-static-tests): Add $(CC).
1151 (+link-before-libc): Remove $(CC).
1152 (+link, +link-pie, +link-pie-printers): Add $(CC).
1153
1154 2019-04-26 Florian Weimer <fweimer@redhat.com>
1155
1156 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1157 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1158 (+link-static-before-libc): Remove $(CC).
1159 (+link-static, +link-static-tests): Add $(CC).
1160 (+link-before-libc): Remove $(CC).
1161 (+link, +link-pie, +link-pie-printers): Add $(CC).
1162
1163 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1164
1165 [BZ#24484]
1166 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1167
1168 2019-04-25 Florian Weimer <fweimer@redhat.com>
1169
1170 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1171 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1172 (bench-link-targets): New variable.
1173 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1174
1175 2019-04-25 Florian Weimer <fweimer@redhat.com>
1176
1177 Also enable BIND_NOW for programs if --enable-bind-now.
1178 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1179 (+link-pie): Use $(link-extra-flags).
1180 (+link-static): Likewise.
1181 [! $(build-pie-default)] (+link): Likewise.
1182 * manual/install.texi (Configuring and compiling): Update
1183 --enable-bind-now description.
1184 * INSTALL: Regenerated.
1185
1186 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1187
1188 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1189 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1190
1191 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1192
1193 [BZ #18465]
1194 * malloc/Makefile (others): Add memusagestat.
1195 ($(objpfx)memusagestat): Delete rule.
1196 (LDLIBS-memusagestat): New variable.
1197
1198 2019-04-24 Florian Weimer <fweimer@redhat.com>
1199
1200 * locale/Makefile (tests-special): Guard setting by
1201 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1202 to run while cross-compiling.
1203
1204 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1205
1206 [BZ #18035]
1207 * elf/Makefile (tests-container): Add tst-pldd.
1208 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1209 (E(find_maps)): Avoid use alloca, use default read file operations
1210 instead of explicit LFS names, and fix infinite loop.
1211 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1212 (get_process_info): Use _Static_assert instead of assert, use default
1213 directory operations instead of explicit LFS names, and free some
1214 leadek pointers.
1215 * elf/tst-pldd.c: New file.
1216
1217 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1218
1219 * malloc/arena.c (do_set_mallopt_check): Removed.
1220
1221 2019-04-23 Florian Weimer <fweimer@redhat.com>
1222
1223 locale: Add LOCPATH diagnostics to the locale program.
1224 * locale/programs/locale.c (setlocale_failed): New variable.
1225 (try_setlocale): New function.
1226 (quote_string): Likewise.
1227 (setlocale_diagnostics): Likewise.
1228 (main): Call try_setlocale instead of setlocale. Call
1229 setlocale_diagnostics.
1230 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1231 (tst-locale-locpath.out): New target.
1232 * locale/tst-locale-locpath.sh: New file.
1233
1234 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1235
1236 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1237 to 2.30 notes.
1238
1239 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1240
1241 [BZ #23741]
1242 * malloc/hooks.c (malloc_check, realloc_check): Use
1243 __builtin_add_overflow on overflow check and adapt to
1244 checked_request2size change.
1245 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1246 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1247 allocation size to PTRDIFF_MAX.
1248 (REQUEST_OUT_OF_RANGE): Remove macro.
1249 (checked_request2size): Change to inline function and limit maximum
1250 requested size to PTRDIFF_MAX.
1251 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1252 maximum allocation size to PTRDIFF_MAX.
1253 (_mid_memalign): Use _int_memalign call for overflow check.
1254 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1255 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1256 limit maximum requested size to PTRDIFF_MAX.
1257 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1258 valloc, pvalloc): Add __attribute_alloc_size__.
1259 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1260 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1261 larger than PTRDIFF_MAX.
1262 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1263 around tests of malloc with negative sizes.
1264 * malloc/tst-posix_memalign.c (do_test): Likewise.
1265 * malloc/tst-pvalloc.c (do_test): Likewise.
1266 * malloc/tst-valloc.c (do_test): Likewise.
1267 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1268 with resulting size allocation larger than PTRDIFF_MAX with
1269 reallocarray_nowarn.
1270 (reallocarray_nowarn): New function.
1271 * NEWS: Mention the malloc function semantic change.
1272
1273 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1274
1275 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1276 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1277
1278 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1279 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1280 * sysdeps/powerpc/fpu/s_fma.c: New file.
1281 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1282
1283 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1284 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1285
1286 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1287 the magic flag store.
1288 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1289 Likewise.
1290 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1291 Likewise.
1292 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1293 Remove rt_sigreturn call.
1294
1295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1296 Remove rt_sigreturn call.
1297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1298 Likewise.
1299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1301
1302 * support/Makefile (libsupport-routines): Add support_subprocess,
1303 xposix_spawn, xposix_spawn_file_actions_addclose, and
1304 xposix_spawn_file_actions_adddup2.
1305 (tst-support_capture_subprocess-ARGS): New rule.
1306 * support/capture_subprocess.h (support_capture_subprogram): New
1307 prototype.
1308 * support/support_capture_subprocess.c (support_capture_subprocess):
1309 Refactor to use support_subprocess and support_capture_poll.
1310 (support_capture_subprogram): New function.
1311 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1312 str_to_write_mode, test_common, parse_int, handle_restart,
1313 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1314 (do_test): Add support_capture_subprogram tests.
1315 * support/subprocess.h: New file.
1316 * support/support_subprocess.c: Likewise.
1317 * support/xposix_spawn.c: Likewise.
1318 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1319 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1320 * support/xspawn.h: Likewise.
1321
1322 2019-04-17 Mike Gerow <gerow@google.com>
1323
1324 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1325 groups limit.
1326
1327 2019-04-11 Florian Weimer <fweimer@redhat.com>
1328
1329 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1330 domain with empty string.
1331 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1332
1333 2019-04-11 Florian Weimer <fweimer@redhat.com>
1334
1335 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1336 comment.
1337 (alloc_buffer_next): Change return type to non-const. Update
1338 comment.
1339
1340 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1341
1342 * manual/time.texi (Formatting Calendar Time): Add missing percent
1343 sign to conversion specifier.
1344
1345 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1346 Kwok Cheung Yeung <kcy@codesourcery.com>
1347
1348 [BZ #16573]
1349 * malloc/mtrace.c: Define prototypes for all hooks.
1350 (set_default_hooks): New function.
1351 (set_trace_hooks): Likewise.
1352 (save_default_hooks): Likewise.
1353 (tr_freehook): Use new s*_hooks functions.
1354 (tr_mallochook): Likewise.
1355 (tr_reallochook): Likewise.
1356 (tr_memalignhook): Likewise.
1357 (mtrace): Likewise.
1358 (muntrace): Likewise.
1359
1360 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1361
1362 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1363 (generic_stpcpy): New function.
1364 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1365 (generic_stpncpy): New function.
1366 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1367 (generic_strcat): New function.
1368 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1369 (generic_strcpy): New function.
1370 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1371 (STUPID_STRNCAT): Remove function.
1372 (generic_strncat): New function.
1373 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1374 (STUPID_STRNCPY): Remove function.
1375 (generic_strncpy): New function.
1376 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1377 (generic_strnlen): New function.
1378 (memchr_strnlen): New function.
1379 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1380 (memchr_strlen): Likewise.
1381
1382 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1383
1384 * benchtests/bench-strstr.c (input): Add realistic input text.
1385 (stupid_strstr): Remove function.
1386 (basic_strstr): Add function.
1387 (twoway_strstr): Add function.
1388 (do_one_test): Add result checking.
1389 (do_test): Use new input text. Remove accidental early matches.
1390 (test_main): Improve range of tests, reduce unaligned cases.
1391
1392 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1393
1394 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1395 (basic_memmem): Add function.
1396 (twoway_memmem): Add function.
1397
1398 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1399
1400 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1401 * benchtests/bench-malloc-thread.c: Likewise.
1402 * benchtests/bench-skeleton.c: Likewise.
1403 * benchtests/bench-strtod.c: Likewise.
1404 * benchtests/bench-timing.h: Likewise.
1405
1406 2019-04-08 Florian Weimer <fweimer@redhat.com>
1407
1408 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1409 definitions.
1410 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1411 RES_INSECURE2 security checks.
1412 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1413 RES_INSECURE2 handling.
1414
1415 2019-04-08 Florian Weimer <fweimer@redhat.com>
1416
1417 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1418 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1419 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1420 GETHOSTBYNAME.
1421 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1422 (tests-internal): Update justification for tst-resolv-res_init,
1423 tst-resolv-res_init-thread.
1424 (tst-res_use_inet6): Remove target.
1425 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1426 * resolv/res_debug.c (p_option): Remove "inet6" support.
1427 * resolv/res_init.c (res_setoptions): Likewise.
1428 * resolv/res_use_inet6.h: Remove file.
1429 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1430 definition.
1431 (res_use_inet6): Always return false.
1432 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1433 * resolv/resolv_context.h: Adjust file comment.
1434 (struct resolv_context): Update comment on __next field.
1435 (__resolv_context_put): Update comment.
1436 * resolv/tst-res_use_inet6.c: Remove file.
1437 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1438 "inet6" support.
1439 (test_cases): Adjust test case.
1440 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1441 (thread_byname2_af_inet6): Use old byname_inet6 code.
1442 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1443 (gai): Remove do_inet6 argument.
1444 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1445 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1446 (thread_gai_unspec_inet6): Remove functions.
1447 (do_test): Adjust thread_funcs.
1448 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1449 RES_USE_INET6 flag.
1450 (gaih_inet): Do not disable RES_USE_INET6 flag.
1451
1452 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1453
1454 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1455 and remove redundant code.
1456
1457 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1458
1459 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1460 New rule.
1461 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1462 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1463 Likewise.
1464 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1465 Likewise.
1466 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1467 Likewise.
1468 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1469 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1470 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1471 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1472 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1473 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1474 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1475 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1476 wcsrchr-power7.
1477 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1478 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1479 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1480 Remove wcsrchr optimizations.
1481 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1482
1483 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1484 the loop unroll.
1485
1486 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1487 New rule.
1488 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1489 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1490 Likewise.
1491 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1492 Likewise.
1493 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1494 Likewise.
1495 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1496 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1497 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1498 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1499 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1500 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1501 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1502 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1503 wcschr-power7.
1504 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1505 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1506 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1507 Remove wcschr optimizations.
1508 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1509
1510 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1511 the loop unroll.
1512
1513 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1514 New rule.
1515 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1516 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1517 Likewise.
1518 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1519 Likewise.
1520 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1521 Likewise.
1522 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1523 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1524 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1525 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1526 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1527 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1528 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1529 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1530 wcscpy-power7.
1531 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1532 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1533 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1534 Remove wcscpy optimizations.
1535 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1536
1537 * include/loop_unroll.h: New file.
1538 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1539 besides generic implementation.
1540
1541 2019-04-03 DJ Delorie <dj@redhat.com>
1542
1543 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1544 snprintf truncating output.
1545
1546 2019-04-02 DJ Delorie <dj@redhat.com>
1547
1548 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1549 warning.
1550
1551 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1552
1553 [BZ #22964]
1554 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1555 era.
1556 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1557 (mkreftable): Add rules for the new Japanese era and the new dates.
1558
1559 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1560 Rafal Luzynski <digitalfreak@lingonborough.com>
1561
1562 * time/tst-strftime2.c (date_t): Explicitly define the type.
1563 (dates): Use natural month and year numbers to express a date.
1564 (is_before): New function to compare dates.
1565 (mkreftable): Minor improvements to simplify maintenance.
1566 (do_test): Reflect the changes in dates array.
1567
1568 [BZ #24293]
1569 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1570 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1571 * time/tst-strftime2.c (locales): Likewise.
1572 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1573 2010-04-01, and 2011-04-01.
1574 (mkreftable): Add rules for the new locales and the new dates.
1575
1576 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1577
1578 * localedata/locales/ja_JP: Add comments to era entries.
1579
1580 2019-04-01 DJ Delorie <dj@redhat.com>
1581
1582 [BZ #24394]
1583 * time/strptime_l.c (%Ey): Fix fencepost error.
1584 * time/tst-strftime3.c: New.
1585 * time/Makefile (tests): Add tst-strftime3.
1586
1587 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1588
1589 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1590 conditional branch to DIVBYZERO. Fix unwind info.
1591 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1592 excb after conditional branch to $powerof2. Add missing unop
1593 instructions and .align directives and reorder instructions to
1594 match __divqu.
1595
1596 2019-04-01 Richard Henderson <rth@twiddle.net>
1597
1598 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1599 Do not redefine.
1600 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1601 Do not redefine.
1602
1603 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1604
1605 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1606 $libc_cv_riscv_float_abi in `test' invocation.
1607 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1608
1609 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1610
1611 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1612 asm with builtin.
1613 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1614 Likewise.
1615 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1616 (_GET_SI_FPSCR): Likewise.
1617 (_SET_SI_FPSCR): Likewise.
1618
1619 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1620
1621 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1622 clang 2.8.
1623 (signbit): Use builtin for clang 3.3.
1624 (isinf): Use builtin for clang 3.7.
1625
1626 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1627
1628 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1629
1630 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1631
1632 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1633 quote in printf.
1634
1635 2019-03-25 Mike Crowe <mac@mcrowe.com>
1636
1637 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1638 pthread_rwlock_timedrdlock with calls to
1639 pthread_rwlock_timedwrlock to ensure that the latter is tested
1640 too. Use new function name in diagnostic messages too.
1641
1642 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1643 (do_test) Use libsupport test macros rather than hand-coded
1644 conditionals and error messages. Ensure that sem_init returns zero
1645 rather than not -1. Use <support/test-driver.c> rather than
1646 test-skeleton.c.
1647
1648 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1649 test macros rather than hand-coded conditionals and error messages.
1650 Use <support/test-driver.c> rather than test-skeleton.c.
1651
1652 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1653
1654 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1655
1656 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1657 (NT_MIPS_MSA): Likewise.
1658
1659 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1660
1661 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1662 * benchtests/README: Update description.
1663 * benchtests/bench-timing.h: Default to hp-timing.
1664 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1665 HP_TIMING_PRINT): Remove.
1666 (HP_TIMING_NOW): Add generic implementation.
1667 (hp_timing_t): Change to uint64_t.
1668
1669 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1670 HP_TIMING_INLINE.
1671 * nptl/descr.h: Likewise.
1672 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1673 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1674 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1675 Abstract hp-timing usage with RTLD_* macros.
1676 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1677 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1678 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1679 HP_TIMING_NONAVAIL): Likewise.
1680 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1681 Likewise.
1682 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1683 HP_SMALL_TIMING_AVAIL): Likewise.
1684 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1685 HP_SMALL_TIMING_AVAIL): Likewise.
1686 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1687 HP_SMALL_TIMING_AVAIL): Likewise.
1688 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1689 HP_SMALL_TIMING_AVAIL): Likewise.
1690 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1691 Likewise.
1692 * sysdeps/generic/hp-timing-common.h: Update comment with
1693 HP_TIMING_AVAIL removal.
1694
1695 * include/random-bits.h: New file.
1696 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1697 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1698 random_bits.
1699 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1700 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1701 Likewise.
1702
1703 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1704 * rt/Makefile (clock-routines): Remove get_clockfreq.
1705 * rt/get_clockfreq.c: Remove file.
1706 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1707 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1708 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1709 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1710 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1711
1712 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1713 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1714 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1715 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1716 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1717
1718 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1719 pthread_clock_settime.
1720 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1721 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1722 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1723 * elf/rtld.c (_dl_start_final): Likewise.
1724 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1725 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1726 Remove.
1727 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1728 (_dl_cpuclock_offset): Remove.
1729 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1730 cpuclock_offset_ununsed.
1731 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1732 cpuclock_offset set.
1733 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1734 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1735 * nptl/pthread_clock_gettime.c: Remove file.
1736 * nptl/pthread_clock_settime.c: Likewise.
1737 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1738 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1739 and CLOCK_PROCESS_CPUTIME_ID support.
1740 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1741 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1742 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1743 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1744 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1745 Likewise.
1746 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1747
1748 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1749
1750 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1751 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1752 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1753 New defines.
1754 * sysdeps/s390/memmem-arch13.S: New file.
1755 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1756 if it is only used as fallback.
1757 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1758 * sysdeps/s390/multiarch/ifunc-impl-list.c
1759 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1760
1761 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1762
1763 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1764 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1765 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1766 New defines.
1767 * sysdeps/s390/multiarch/ifunc-impl-list.c
1768 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1769 * sysdeps/s390/strstr-arch13.S: New file.
1770 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1771 if it is only used as fallback.
1772 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1773
1774 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1775
1776 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1777 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1778 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1779 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1780 ifunc selector.
1781 * sysdeps/s390/multiarch/ifunc-impl-list.c
1782 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1783 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1784 S390_IS_ARCH13_MIE3): New defines.
1785
1786 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1787
1788 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1789 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1790 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1791 * sysdeps/s390/configure: Regenerated.
1792
1793 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1794
1795 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1796 Add vxe2, vxp, dflt, sort flags.
1797 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1798 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1799 capabilities.
1800 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1801 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1802 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1803 HWCAP_S390_DFLT): Define.
1804
1805 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1806
1807 [BZ #24372]
1808 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1809 of compiler warning.
1810 * locale/programs/ld-collate.c (collate_output): Likewise.
1811
1812 2019-03-21 DJ Delorie <dj@redhat.com>
1813
1814 [BZ #24372]
1815 * iconv/iconvconfig.c (write_output): Replace floating point math
1816 with integer math to avoid imprecise results.
1817 * locale/programs/ld-collate.c (collate_output): Likewise.
1818
1819 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1820
1821 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1822 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1823
1824 2019-03-20 mansayk <6688000@gmail.com>
1825
1826 [BZ #24296]
1827 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1828 (abday): Likewise, but remove the trailing dots.
1829
1830 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1831
1832 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1833 macro.
1834 (HWCAP_PACA): Likewise.
1835 (HWCAP_PACG): Likewise.
1836 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1837 Increase to 32.
1838 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1839
1840 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1841
1842 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1843 should be handled.
1844
1845 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1846
1847 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1848 version to 5.0.
1849 (old_getpagesize): New syscall.
1850
1851 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1852
1853 [BZ #24293]
1854 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1855 * localedata/locales/cmn_TW (era): Likewise.
1856 * localedata/locales/hak_TW (era): Likewise.
1857 * localedata/locales/lzh_TW (era): Likewise.
1858 * localedata/locales/nan_TW (era): Likewise.
1859
1860 2019-03-14 Adam Maris <amaris@redhat.com>
1861
1862 * malloc/malloc.c (_int_malloc): Check for large bin list
1863 corruption when inserting unsorted chunk.
1864
1865 2019-03-14 Florian Weimer <fweimer@redhat.com>
1866
1867 Remove obsolete, never-implemented XSI STREAMS declarations.
1868 * manual/terminal.texi (Allocation): Remove portability note and
1869 adjust example.
1870 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1871 _SC_STREAMS.
1872 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1873 * sysdeps/unix/inet/Subdirs (streams): Remove.
1874 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1875 (conformtest-headers-UNIX98): Likewise.
1876 (conformtest-headers-XOPEN2K): Likewise.
1877 (conformtest-headers-POSIX2008): Likewise.
1878 * posix/compat-streams.c: New file.
1879 * posix/Makefile (routines): Add it.
1880 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1881 getpmsg, isastream, putmsg, putpmsg.
1882 (GLIBC_2.30): New section.
1883 * bits/stropts.h: Remove file.
1884 * bits/xtitypes.h: Likewise.
1885 * conform/data/stropts.h-data: Likewise.
1886 * include/stropts.h: Likewise.
1887 * include/sys/stropts.h: Likewise.
1888 * include/xtitypes.h: Likewise.
1889 * streams/Makefile: Likewise.
1890 * streams/fattach.c: Likewise.
1891 * streams/fdetach.c: Likewise.
1892 * streams/getmsg.c: Likewise.
1893 * streams/getpmsg.c: Likewise.
1894 * streams/isastream.c: Likewise.
1895 * streams/putmsg.c: Likewise.
1896 * streams/putpmsg.c: Likewise.
1897 * streams/stropts.h: Likewise.
1898 * streams/sys/stropts.h: Likewise.
1899 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1900 * sysdeps/s390/bits/xtitypes.h: Likewise.
1901 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1902 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1903 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1904 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1905 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1906 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1907 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1908 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1909 * sysdeps/x86/bits/xtitypes.h: Likewise.
1910
1911 2019-03-14 Florian Weimer <fweimer@redhat.com>
1912
1913 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1914 libnss_files.
1915 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1916 but not with libnss_files.
1917 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1918
1919 2019-03-14 Zack Weinberg <zackw@panix.com>
1920
1921 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1922 Specify encoding="utf-8" when opening headers to check.
1923
1924 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1925
1926 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1927 version to 5.0.
1928 (Context.checkout_tar): Handle variable major version for Linux
1929 kernel.
1930
1931 2019-03-13 Florian Weimer <fweimer@redhat.com>
1932
1933 [BZ #24047]
1934 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1935
1936 2019-03-13 Zack Weinberg <zackw@panix.com>
1937
1938 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1939 Move to stdlib.
1940 * include/inttypes.h: Adjust to match.
1941 * include/stdint.h: New wrapper.
1942
1943 2019-03-13 Zack Weinberg <zackw@panix.com>
1944
1945 * scripts/check-obsolete-constructs.py: New test script.
1946 * scripts/check-installed-headers.sh: Remove tests for
1947 obsolete typedefs, superseded by check-obsolete-constructs.py.
1948 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1949 as a special test. Update commentary.
1950 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1951 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1952 Update commentary.
1953 * posix/sys/types.h (__u_intN_t): Remove.
1954 (u_int8_t): Typedef using __uint8_t.
1955 (u_int16_t): Typedef using __uint16_t.
1956 (u_int32_t): Typedef using __uint32_t.
1957 (u_int64_t): Typedef using __uint64_t.
1958
1959 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1960
1961 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1962 call _dl_procinfo.
1963 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1964 Ignore types other than AT_HWCAP.
1965 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1966 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1967 Likewise.
1968 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1969 in the case of falling back to generic output mechanism.
1970 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1971 Likewise.
1972
1973 2019-03-12 Florian Weimer <fweimer@redhat.com>
1974
1975 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1976
1977 2019-03-12 Florian Weimer <fweimer@redhat.com>
1978
1979 [BZ #24047]
1980 resolv: Enable full ICMP errors for UDP DNS sockets
1981 * resolv/res_enable_icmp.c: New file.
1982 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1983 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1984 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1985 socket.
1986
1987 2019-03-11 Mao Han <han_mao@c-sky.com>
1988
1989 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1990 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1991
1992 2019-03-11 Mao Han <han_mao@c-sky.com>
1993
1994 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1995 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1996 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1997
1998 2019-03-11 Mao Han <han_mao@c-sky.com>
1999
2000 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2001 directly.
2002 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2003 definition.
2004
2005 2019-03-11 Mao Han <han_mao@c-sky.com>
2006
2007 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2008 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2009 in mcontext_t
2010
2011 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2012
2013 [BZ #24307]
2014 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2015 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2016 Unicode 12.0.0.
2017 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2018 * localedata/unicode-gen/PropList.txt: Likewise.
2019 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2020 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2021 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2022 * localedata/charmaps/UTF-8: Regenerate.
2023 * localedata/locales/i18n_ctype: Likewise.
2024 * localedata/locales/tr_TR: Likewise.
2025 * localedata/locales/translit_circle: Likewise.
2026 * localedata/locales/translit_cjk_compat: Likewise.
2027 * localedata/locales/translit_combining: Likewise.
2028 * localedata/locales/translit_compat: Likewise.
2029 * localedata/locales/translit_font: Likewise.
2030 * localedata/locales/translit_fraction: Likewise.
2031
2032 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2033
2034 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2035 than after operators.
2036 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2037 (setitimer_locked): Likewise.
2038 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2039 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2040 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2041 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2042 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2043 (PPC_CPU_SUPPORTED): Likewise.
2044 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2045 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2046 (stat_overflow): Likewise.
2047 (statfs_overflow): Likewise.
2048 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2049 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2050 (eq_ttyname_r): Likewise.
2051 (run_chroot_tests): Likewise.
2052
2053 2019-03-07 Florian Weimer <fweimer@redhat.com>
2054
2055 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2056 header check.
2057
2058 2019-03-07 Martin Liska <mliska@suse.cz>
2059
2060 * math/Makefile: Change location where math-vector-fortran.h is
2061 installed.
2062 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2063 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2064 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2065 * scripts/check-installed-headers.sh: Skip Fortran header files.
2066 * scripts/check-wrapper-headers.py: Likewise.
2067
2068 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2069
2070 * nptl/nptl-init.c (__have_futex_clock_realtime,
2071 __have_futex_clock_realtime): Remove definition.
2072 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2073 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2074 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2075 __ASSUME_FUTEX_CLOCK_REALTIME support.
2076 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2077 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2078 * sysdeps/unix/sysv/linux/kernel-features.h
2079 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2080 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2081 Adjust comment.
2082
2083 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2084
2085 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2086 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2087 __GI___wcscpy and wcscpy.
2088
2089 2019-03-04 Florian Weimer <fweimer@redhat.com>
2090
2091 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2092 declaration.
2093 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2094 defined.
2095
2096 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2097
2098 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2099 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2100
2101 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2102
2103 [BZ #24162]
2104 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2105 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2106
2107 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2108
2109 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2110 tests.
2111 (do_test): Likewise.
2112 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2113 (do_test_call_varg): Likewise.
2114 (do_test_call_rarg): Likewise.
2115 * sysdeps/ieee754/ldbl-opt/Makefile
2116 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2117 tst-nldbl-error.
2118 ($(objpfx)tst-nldbl-warn.c): New rule.
2119 ($(objpfx)tst-nldbl-error.c): Likewise.
2120 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2121 New variables.
2122
2123 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2124
2125 [BZ #23984]
2126 * include/bits/error-ldbl.h: New file.
2127 * include/error.h: Include stdarg.h. Declare internal functions
2128 __error_internal and __error_at_line_internal.
2129 * misc/Makefile (headers): Add bits/error-ldbl.h.
2130 * misc/bits/error-ldbl.h: New file.
2131 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2132 avoid the inclusion of bits/error.h.
2133 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2134 and __nldbl_error_at_line.
2135 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2136 (__nldbl_error, __ndlbl_error_at_line): New functions.
2137 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2138 Redirect error and error_at_line.
2139 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2141 Likewise.
2142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2143 Likewise.
2144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2145 Likewise.
2146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2147 Likewise.
2148 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2149 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2150 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2151
2152 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2153
2154 [BZ #23984]
2155 * include/bits/err-ldbl.h: New file.
2156 * include/err.h: Add prototypes for the internal functions:
2157 __vwarnx_internal and __vwarn_internal.
2158 * misc/Makefile (headers): Add bits/err-ldbl.h.
2159 * misc/bits/err-ldbl.h: New file.
2160 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2161 defined, i.e.: when -mlong-double-64 is in use.
2162 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2163 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2164 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2165 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2166 (VA_CALL): New macro.
2167 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2168 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2169 functions.
2170 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2171 declare prototypes for the new functions.
2172 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2174 Likewise.
2175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2176 Likewise.
2177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2178 Likewise.
2179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2180 Likewise.
2181 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2182 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2183 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2184
2185 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2186
2187 * sysdeps/ieee754/ldbl-opt/Makefile
2188 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2189 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2190 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2191
2192 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2193
2194 [BZ #23983]
2195 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2196 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2197 * argp/bits/argp-ldbl.h: New file.
2198 * include/argp.h: Include stdarg.h. Add prototypes for internal
2199 functions: __argp_error_internal and __argp_failure_internal.
2200 * include/bits/argp-ldbl.h: New file.
2201 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2202 __nldbl_argp_error and __nldbl_argp_failure.
2203 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2204 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2205 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2206 Redirect argp_error and argp_failure calls.
2207 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2209 Likewise.
2210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2211 Likewise.
2212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2213 Likewise.
2214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2215 Likewise.
2216 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2217 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2218 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2219
2220 2019-03-01 Florian Weimer <fweimer@redhat.com>
2221
2222 [BZ #20419]
2223 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2224 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2225 code, to avoid creating an ABI tag note.
2226 (modules-names-nobuild): Add tst-big-note-lib.
2227
2228 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2229
2230 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2231 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2232
2233 2019-03-01 Florian Weimer <fweimer@redhat.com>
2234
2235 [BZ #20271]
2236 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2237 (__netlink_assert_response): Add additional missing newlines.
2238
2239 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2240
2241 * sysdeps/powerpc/powerpc32/dl-machine.c
2242 (__elf_machine_fixup_plt): Use space before '('.
2243 (__process_machine_rela): Likewise.
2244 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2245 Likewise.
2246 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2247 Likewise.
2248 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2249 Likewise.
2250 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2251 (pattern): Likewise.
2252 (delta): Likewise.
2253 (check_result): Likewise.
2254 (check_excepts): Likewise.
2255 (check_op): Likewise.
2256 (fail_xr): Likewise.
2257 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2258 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2259 (SCNHSZ): Likewise.
2260 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2261 Likewise.
2262 (ARGS): Likewise.
2263 (__makecontext): Likewise.
2264 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2265 Likewise.
2266
2267 2019-02-28 Florian Weimer <fweimer@redhat.com>
2268
2269 [BZ #23937]
2270 elf: Add test with a local IFUNC resolver.
2271 * elf/ifuncmain9.c: New file.
2272 * elf/ifuncmain9pic.c: Likewise.
2273 * elf/ifuncmain9picstatic.c: Likewise.
2274 * elf/ifuncmain9pie.c: Likewise.
2275 * elf/ifuncmain9static.c: Likewise.
2276 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2277 ifuncmain9static, ifuncmain9picstatic.
2278 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2279 Add ifuncmain9, ifuncmain9pic.
2280 * elf/Makefile [multi-arch && build-shared && have-fpie]
2281 (ifunc-pie-tests): Add ifuncmain9pie.
2282 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2283 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2284 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2285
2286 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2287
2288 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2289 * configure: Regenerated.
2290 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2291
2292 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2293
2294 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2295 symbol as __wcspcy instead of wcscpy.
2296
2297 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2298
2299 * include/stdio.h (__renameat2): New hidden prototype.
2300 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2301 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2302 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2303 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2304
2305 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2306
2307 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2308 if statement.
2309
2310 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2311 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2312 * benchtests/bench-strlen.c (do_test): Likewise.
2313 (test_main): Likewise.
2314 * catgets/gencat.c (read_old): Likewise.
2315 * elf/cache.c (load_aux_cache): Likewise.
2316 * iconvdata/bug-iconv8.c (do_test): Likewise.
2317 * math/test-tgmath-ret.c (do_test): Likewise.
2318 * nis/nis_call.c (rec_dirsearch): Likewise.
2319 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2320 * nptl/tst-audit-threads.c (do_test): Likewise.
2321 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2322 * nss/nss_test1.c (init): Likewise.
2323 * nss/test-netdb.c (test_hosts): Likewise.
2324 * posix/execvpe.c (maybe_script_execute): Likewise.
2325 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2326 * stdio-common/tst-printf.c (do_test): Likewise.
2327 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2328 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2329 * stdlib/qsort.c (STACK_SIZE): Likewise.
2330 * stdlib/test-canon.c (do_test): Likewise.
2331 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2332 * string/memcmp.c (OPSIZ): Likewise.
2333 * string/test-strcpy.c (do_test): Likewise.
2334 (do_random_tests): Likewise.
2335 * string/test-strlen.c (do_test): Likewise.
2336 (test_main): Likewise.
2337 * string/test-strrchr.c (do_test): Likewise.
2338 (do_random_tests): Likewise.
2339 * string/tester.c (test_memrchr): Likewise.
2340 (test_memchr): Likewise.
2341 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2342 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2343 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2344 (read_encoded_value_with_base): Likewise.
2345 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2346 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2347 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2348 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2349 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2350 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2351 Likewise.
2352 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2353 Likewise.
2354 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2355 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2356 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2357 Likewise.
2358 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2359 Likewise.
2360 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2361 Likewise.
2362 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2363 Likewise.
2364 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2365 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2366 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2367 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2368 * time/test_time.c (main): Likewise.
2369
2370 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2371
2372 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2373
2374 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2375 wmemcpy.
2376
2377 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2378 wmemcpy.
2379
2380 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2381
2382 * include/wchar.h (__wcscpy): New prototype.
2383 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2384 (__wcscpy): Route internal symbol to generic implementation.
2385 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2386 Add internal __wcscpy alias.
2387 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2388 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2389 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2390 * wcsmbs/wcscpy.c (wcscpy): Add
2391 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2392 use generic implementation.
2393 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2394
2395 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2396 wmemset.
2397
2398 * sysdeps/m68k/wcpcpy.c: Remove file.
2399 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2400
2401 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2402
2403 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2404 than after operators.
2405 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2406 * sysdeps/mach/hurd/getcwd.c
2407 (__hurd_canonicalize_directory_name_internal): Likewise.
2408 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2409 (pthread_mutex_consistent): Likewise.
2410 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2411 Likewise.
2412 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2413 (__pthread_mutex_transfer_np): Likewise.
2414 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2415 (__pthread_mutex_unlock): Likewise.
2416 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2417 (mtx_owned_p): Likewise.
2418 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2419 (pthread_mutexattr_getrobust): Likewise.
2420 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2421 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2422 Likewise.
2423 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2424 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2425 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2426 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2427 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2428 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2429 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2430 Likewise.
2431 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2432 Likewise.
2433 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2434 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2435 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2436 (____longjmp_chk): Likewise.
2437 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2438 Likewise.
2439 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2440 (INTERNAL_SYSCALL): Likewise.
2441 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2442 (INTERNAL_SYSCALL): Likewise.
2443 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2444 (__get_clockfreq_via_cpuinfo): Likewise.
2445
2446 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2447 comments.
2448 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2449 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2450 (WORD_COPY_BWD): Likewise.
2451 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2452 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2453 Likewise.
2454 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2455 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2456 comment.
2457 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2458
2459 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2460
2461 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2462 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2463 rather than after operators.
2464 * elf/cache.c (print_cache): Likewise.
2465 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2466 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2467 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2468 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2469 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2470 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2471 (reauth_proc): Likewise.
2472 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2473 (__file_name_split_at): Likewise.
2474 (__directory_name_split_at): Likewise.
2475 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2476 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2477 * iconv/gconv_dl.c (do_print): Likewise.
2478 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2479 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2480 * locale/setlocale.c (new_composite_name): Likewise.
2481 * malloc/memusagestat.c (main): Likewise.
2482 * misc/fstab.c (fstab_convert): Likewise.
2483 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2484 Likewise.
2485 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2486 (getgrent_next_file): Likewise.
2487 (internal_getgrnam_r): Likewise.
2488 (internal_getgrgid_r): Likewise.
2489 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2490 Likewise.
2491 (internal_getgrent_r): Likewise.
2492 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2493 (getpwent_next_nss): Likewise.
2494 (getpwent_next_file): Likewise.
2495 (internal_getpwnam_r): Likewise.
2496 (internal_getpwuid_r): Likewise.
2497 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2498 Likewise.
2499 (getspent_next_nss): Likewise.
2500 (internal_getspnam_r): Likewise.
2501 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2502 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2503 * string/strchr.c (STRCHR): Likewise.
2504 * string/strchrnul.c (STRCHRNUL): Likewise.
2505 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2506 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2507 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2508 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2509 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2510 Likewise.
2511 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2512 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2513 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2514 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2515 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2516 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2517 (open_file): Likewise.
2518 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2519 (pthread_mutexattr_setprotocol): Likewise.
2520 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2521 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2522 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2523 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2524 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2525 Likewise.
2526 (elf_machine_rela): Likewise.
2527 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2528 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2529 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2530 * sysdeps/posix/rename.c (rename): Likewise.
2531 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2532 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2533 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2534 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2535 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2536 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2537 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2538 Likewise.
2539 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2540 Likewise.
2541 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2542 * time/tzfile.c (__tzfile_compute): Likewise.
2543
2544 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2545
2546 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2547 rather than after operators.
2548 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2549 * crypt/md5.c (md5_finish_ctx): Likewise.
2550 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2551 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2552 * elf/cache.c (load_aux_cache): Likewise.
2553 * elf/dl-load.c (open_verify): Likewise.
2554 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2555 * elf/readelflib.c (process_elf_file): Likewise.
2556 * elf/rtld.c (dl_main): Likewise.
2557 * elf/sprof.c (generate_call_graph): Likewise.
2558 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2559 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2560 * hurd/dtable.c (reauth_dtable): Likewise.
2561 * hurd/getdport.c (__getdport): Likewise.
2562 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2563 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2564 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2565 Likewise.
2566 * hurd/hurdioctl.c (fioctl): Likewise.
2567 * hurd/hurdselect.c (_hurd_select): Likewise.
2568 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2569 (STOPSIGS): Likewise.
2570 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2571 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2572 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2573 * hurd/msgportdemux.c (msgport_server): Likewise.
2574 * hurd/setauth.c (_hurd_setauth): Likewise.
2575 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2576 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2577 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2578 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2579 * login/tst-utmp.c (do_check): Likewise.
2580 (simulate_login): Likewise.
2581 * mach/lowlevellock.h (lll_lock): Likewise.
2582 (lll_trylock): Likewise.
2583 * math/test-fenv.c (ALL_EXC): Likewise.
2584 * math/test-fenvinline.c (ALL_EXC): Likewise.
2585 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2586 * nis/nis_call.c (__do_niscall3): Likewise.
2587 * nis/nis_callback.c (cb_prog_1): Likewise.
2588 * nis/nis_defaults.c (searchaccess): Likewise.
2589 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2590 * nis/nis_ismember.c (internal_ismember): Likewise.
2591 * nis/nis_local_names.c (nis_local_principal): Likewise.
2592 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2593 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2594 Likewise.
2595 * nis/ypclnt.c (yp_match): Likewise.
2596 (yp_first): Likewise.
2597 (yp_next): Likewise.
2598 (yp_master): Likewise.
2599 (yp_order): Likewise.
2600 * nscd/hstcache.c (cache_addhst): Likewise.
2601 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2602 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2603 (internal_getpwuid_r): Likewise.
2604 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2605 * posix/glob.h (__GLOB_FLAGS): Likewise.
2606 * posix/regcomp.c (peek_token): Likewise.
2607 (peek_token_bracket): Likewise.
2608 (parse_expression): Likewise.
2609 * posix/regexec.c (sift_states_iter_mb): Likewise.
2610 (check_node_accept_bytes): Likewise.
2611 * posix/tst-spawn3.c (do_test): Likewise.
2612 * posix/wordexp-test.c (testit): Likewise.
2613 * posix/wordexp.c (parse_tilde): Likewise.
2614 (exec_comm): Likewise.
2615 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2616 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2617 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2618 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2619 * stdio-common/tst-fileno.c (do_test): Likewise.
2620 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2621 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2622 * stdlib/strtod_l.c (round_and_return): Likewise.
2623 (____STRTOF_INTERNAL): Likewise.
2624 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2625 * string/strcspn.c (STRCSPN): Likewise.
2626 * string/test-memmem.c (simple_memmem): Likewise.
2627 * termios/tcsetattr.c (tcsetattr): Likewise.
2628 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2629 * time/asctime.c (asctime_internal): Likewise.
2630 * time/strptime_l.c (__strptime_internal): Likewise.
2631 * time/sys/time.h (timercmp): Likewise.
2632 * time/tzfile.c (__tzfile_compute): Likewise.
2633
2634 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2635
2636 [BZ #21915]
2637 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2638
2639 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2640
2641 * argp/argp-help.c (__argp_error_internal): New function,
2642 renamed from __argp_error, but that takes a 'mode_flags'
2643 parameter to control the format of long double parameters.
2644 (__argp_error): Converted into a call __argp_error_internal.
2645 (__argp_failure_internal): New function, renamed from
2646 __argp_failure, but that takes a 'mode_flags' parameter.
2647 (__argp_failure): Converted into a call __argp_failure_internal.
2648 * misc/err.c (__vwarnx_internal): New function, renamed from
2649 vwarnx, but that takes a 'mode_flags' parameter.
2650 (vwarnx): Converted into a call to __vwarnx_internal.
2651 (__vwarn_internal): New function, renamed from vwarn, but that
2652 takes a 'mode_flags' parameter.
2653 (vwarn): Converted into a call to __vwarn_internal.
2654 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2655 call to __vfxprintf with 'mode_flags'.
2656 (__error_internal): New function, renamed from error, but that
2657 takes a 'mode_flags' parameter.
2658 (error): Converted into a call to __error_internal.
2659 (__error_at_line_internal): New function, renamed from
2660 error_at_line, but that takes a 'mode_flags' parameter.
2661 (error_at_line): Converted into a call to
2662 __error_at_line_internal.
2663 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2664 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2665 Likewise.
2666
2667 2019-02-20 Martin Liska <mliska@suse.cz>
2668
2669 * math/Makefile: Install math-vector-fortran.h.
2670 * bits/math-vector-fortran.h: New file.
2671 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2672
2673 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2674
2675 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2676 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2677
2678 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2679
2680 * nptl/pthread_mutex_trylock.c: Fix comment.
2681
2682 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2683
2684 * nptl/pthread_tryjoin.c: Fix comment.
2685
2686 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2687
2688 [BZ #24231]
2689 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2690 after R_SPARC_H34 case.
2691
2692 2019-02-18 Florian Weimer <fweimer@redhat.com>
2693
2694 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2695 (getanswer): Do not call Dprintf.
2696 (res_gethostbyname2_context): Likewise.
2697 (res_gethostbyaddr_context): Likewise.
2698
2699 2019-02-18 Florian Weimer <fweimer@redhat.com>
2700
2701 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2702 declaration.
2703 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2704 Remove definitions.
2705 * libio/stdfiles.c: Update comment.
2706 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2707 set _IO_stdin, _IO_stdout, _IO_stderr.
2708 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2709 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2710 inline function.
2711 (_IO_deallocate_file): New inline function.
2712 * libio/iolibio.h (_IO_vprintf): Remove definition.
2713 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2714 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2715 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2716 _IO_legacy_file.
2717 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2718 __builtin_expect. Use _IO_legacy_file.
2719
2720 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2721
2722 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2723 Initialize ctid with a known value and remove update of ctid
2724 after clone.
2725 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2726 as assumed current value of ctid_ptr.
2727
2728 2019-02-16 Florian Weimer <fweimer@redhat.com>
2729
2730 Check that non-sysdeps headers have wrapper headers.
2731 * scripts/check-wrapper-headers.py: New file.
2732 * Makefile (tests-special): Add check-wrapper-headers.out.
2733 (check-wrapper-headers.out): New target.
2734 * Rules (tests-special): Add check-wrapper-headers.out.
2735 (check-wrapper-headers.out): New target.
2736
2737 2019-02-16 Florian Weimer <fweimer@redhat.com>
2738
2739 Add missing header wrappers under include/.
2740 * include/ar.h: New file.
2741 * include/bits/mqueue2.h: Likewise.
2742 * include/bits/stdio.h: Likewise.
2743 * include/bits/stdio2.h: Likewise.
2744 * include/fstab.h: Likewise.
2745 * include/fts.h: Likewise.
2746 * include/lastlog.h: Likewise.
2747 * include/netinet/icmp6.h: Likewise.
2748 * include/netinet/igmp.h: Likewise.
2749 * include/netinet/ip6.h: Likewise.
2750 * include/re_comp.h: Likewise.
2751 * include/regexp.h: Likewise.
2752 * include/rpcsvc/bootparam.h: Likewise.
2753 * include/rpcsvc/yp_prot.h: Likewise.
2754 * include/sys/random.h: Likewise.
2755 * include/sys/stropts.h: Likewise.
2756 * include/sys/ttychars.h: Likewise.
2757 * include/sys/vfs.h: Likewise.
2758 * include/wait.h: Likewise.
2759
2760 2019-02-16 Florian Weimer <fweimer@redhat.com>
2761
2762 * nptl_db/proc_service.h: Move to ...
2763 * sysdeps/nptl/proc_service.h: ... here.
2764 * nptl_db/thread_db.h: Move to ...
2765 * sysdeps/nptl/thread_db.h: ... here.
2766 * nptl/descr.h: Include <thread_db.h>.
2767
2768 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2769
2770 * io/Makefile (tests): Add tst-lockf.
2771 * io/lockf.c (lockf): Use __fcntl and only define for
2772 !__OFF_T_MATCHES_OFF64_T.
2773 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2774 __OFF_T_MATCHES_OFF64_T case.
2775 * io/tst-lockf.c: New file.
2776 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2777 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2778 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2779 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2780 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2782 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2783 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2784 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2785
2786 2019-02-15 Florian Weimer <fweimer@redhat.com>
2787
2788 [BZ #24211]
2789 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2790 pd->result after the thread descriptor has been freed.
2791
2792 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2793
2794 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2795 from function return type.
2796
2797 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2798
2799 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 * scripts/test_printers_common.py: Set TERM to a known harmless
2802 value.
2803
2804 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2805
2806 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2807 (xdr_u_int): Likewise.
2808 (xdr_enum): Likewise.
2809 (xdr_bytes): Reword fall-through comment.
2810 (xdr_string): Likewise.
2811
2812 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2813
2814 [BZ #2421]
2815 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2816 (tests): Add tst-join8 tst-join9.
2817 * nptl/lll_timedwait_tid.c: Remove file.
2818 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2819 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2820 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2821 * nptl/pthread_join_common.c (timedwait_tid): New function.
2822 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2823 is set.
2824 * nptl/tst-join5.c (thread_join): New function.
2825 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2826 check.
2827 * nptl/tst-join8.c: New file.
2828 * nptl/tst-join9.c: Likewise.
2829 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2830 lll_futex_timed_wait_cancel): Add generic macros.
2831 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2832 Remove definitions.
2833 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2834 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2835 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2836 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2837 Remove function.
2838 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2839 Likewise.
2840 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2841 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2842 (lll_futex_timed_wait_cancel): New macro.
2843
2844 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2845
2846 * benchtests/Makefile: Add malloc-simple benchmark.
2847 * benchtests/bench-malloc-simple.c: New benchmark.
2848
2849 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2850
2851 * benchtests/bench-memmove.c (do_one_test): Remove unused
2852 ORIG_SRC.
2853 (do_test): Adjust.
2854 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2855 ORIG_SRC.
2856 (do_test): Adjust.
2857
2858 2019-01-13 Jim Wilson <jimw@sifive.com>
2859
2860 [BZ #24040]
2861 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2862 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2863 (func): New.
2864 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2865 call func directly.
2866 * nptl/Makefile (tests): Add tst-unwind-thread.
2867 (CFLAGS-tst-unwind-thread.c): Define.
2868 * nptl/tst-unwind-thread.c: New file.
2869 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2870 as undefined.
2871
2872 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2873
2874 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2875 comment wording.
2876 * nis/nis_call.c (__do_niscall3): Likewise.
2877
2878 * catgets/gencat.c (normalize_line): Use braces around empty
2879 'else' body.
2880 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2881 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2882 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2883 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2884 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2885 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2886 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2887 definition.
2888
2889 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2890 execlp returns.
2891
2892 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2893
2894 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2895 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2896 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2897 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2898 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2899 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2900 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2901 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2902 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2903 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2904 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2905 * benchtests/bench-bcopy.c: Delete file.
2906 * benchtests/bench-bzero.c: Likewise.
2907 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2908 (simple_memccpy): Remove.
2909 (generic_memccpy): Add function.
2910 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2911 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2912 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2913 (generic_mempcpy): Add new function.
2914 * benchtests/bench-memset.c (simple_bzero): Remove.
2915 (builtin_bzero): Remove.
2916 (builtin_memset): Remove.
2917 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2918 (generic_rawmemchr): Add new function.
2919
2920 2019-02-12 Florian Weimer <fweimer@redhat.com>
2921
2922 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2923
2924 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2925
2926 [BZ #24122]
2927 * elf/Makefile (tests): Add tst-audit13.
2928 (modules-names): Add tst-audit13mod1.
2929 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2930 rule.
2931 * elf/tst-audit13.c: New file.
2932 * elf/tst-audit13mod1.c: Likewise.
2933
2934 2019-02-12 Florian Weimer <fweimer@redhat.com>
2935
2936 [BZ #24122]
2937 * elf/rtld.c (unload_audit_module): New function.
2938 (report_audit_module_load_error): Likewise.
2939 (load_audit_module): Likewise. Extracted from dl_main. Call
2940 _dl_close if the laversion symbol cannot be found. Use early
2941 returns for error handling. Add malloc error check. Check for a
2942 zero return value from la_version. Remove spurious comment about
2943 static TLS initialization. Remove useless casts.
2944 (notify_audit_modules_of_loaded_object): New function. Extracted
2945 from dl_main.
2946 (load_audit_module): Likewise.
2947 (dl_main): Call load_audit_modules.
2948
2949 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2950
2951 * elf/dl-exception.c (_dl_exception_create_format): Add
2952 fall-through comments.
2953 * elf/ldconfig.c (parse_conf_include): Likewise.
2954 * elf/rtld.c (print_statistics): Likewise.
2955 * locale/programs/charmap.c (parse_charmap): Likewise.
2956 * misc/mntent_r.c (__getmntent_r): Likewise.
2957 * posix/wordexp.c (parse_arith): Likewise.
2958 (parse_backtick): Likewise.
2959 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2960 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2961 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2962
2963 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2964
2965 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2966 Use float instead of double.
2967
2968 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2969
2970 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2971
2972 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2973
2974 * sysdeps/powerpc/bits/mathinline.h: Remove.
2975
2976 2019-02-08 Florian Weimer <fweimer@redhat.com>
2977
2978 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2979 * math/bits/math-finite.h: Move to ...
2980 * bits/math-finite.h: ... here.
2981
2982 2019-02-08 Florian Weimer <fweimer@redhat.com>
2983
2984 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2985 * bits/unistd_ext.h: here.
2986
2987 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2988
2989 [BZ #21915]
2990 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2991 * nss/tst-nss-files-hosts-long.c: New file.
2992 * nss/tst-nss-files-hosts-long.root: New directory.
2993 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2994 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2995
2996 2019-02-08 Florian Weimer <fweimer@redhat.com>
2997
2998 * include/bits/unistd_ext.h: Remove file.
2999 * posix/bits/unistd_ext.h: Move to ...
3000 * sysdeps/generic/bits/unistd_ext.h: ... here.
3001
3002 2019-02-08 Florian Weimer <fweimer@redhat.com>
3003
3004 * include/bits/unistd_ext.h: New file.
3005
3006 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3007
3008 * time/tst-strftime2.c: Use array_length macros instead of magic
3009 numbers.
3010
3011 2019-02-08 Florian Weimer <fweimer@redhat.com>
3012
3013 [BZ #24161]
3014 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3015 argument.
3016 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3017 locking if the new do_locking argument is true.
3018 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3019 __run_fork_handlers.
3020
3021 2019-02-08 Florian Weimer <fweimer@redhat.com>
3022
3023 [BZ #6399]
3024 Linux: Add gettid system call wrapper.
3025 * posix/Makefile (headers): Add bits/unistd_ext.h.
3026 * posix/bits/unistd_ext.h: New file.
3027 * posix/unistd.h: Include it.
3028 * manual/process.texi (Process Identification): Document gettid.
3029 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3030 tst-gettid, tst-gettid-kill.
3031 (tst-gettid): Link with $(shared-thread-library).
3032 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3033 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3034 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3035 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3036 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3037 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3038 Add gettid.
3039 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3040 Likewise.
3041 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3042 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3043 Likewise.
3044 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3045 Likewise.
3046 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3047 Likewise.
3048 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3049 Likewise.
3050 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3051 Likewise.
3052 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3053 Likewise.
3054 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3055 Likewise.
3056 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3057 (GLIBC_2.30): Likewise.
3058 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3059 (GLIBC_2.30): Likewise.
3060 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3061 (GLIBC_2.30): Likewise.
3062 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3063 (GLIBC_2.30): Likewise.
3064 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3065 Likewise.
3066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3067 (GLIBC_2.30): Likewise.
3068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3069 (GLIBC_2.30): Likewise.
3070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3071 (GLIBC_2.30): Likewise.
3072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3073 (GLIBC_2.30): Likewise.
3074 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3075 Likewise.
3076 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3077 Likewise.
3078 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3079 Likewise.
3080 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3081 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3082 Likewise.
3083 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3084 Likewise.
3085 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3086 Likewise.
3087 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3088 Likewise.
3089 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3090
3091 2019-02-08 Florian Weimer <fweimer@redhat.com>
3092
3093 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3094 compatibility symbols.
3095
3096 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3097
3098 [BZ #24180]
3099 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3100 Add compiler barriers and comments.
3101
3102 2019-02-07 Florian Weimer <fweimer@redhat.com>
3103
3104 * include/array_length.h (array_length): Do not use a statement
3105 expression and _Static_assert, so that array_length can be used at
3106 file scope and as a constant expression.
3107
3108 2019-02-07 Florian Weimer <fweimer@redhat.com>
3109
3110 * support/xdlfcn.h (xdlmopen): Declare.
3111 * support/xdlmopen.c: New file.
3112 * support/Makefile (libsupport-routines): Add xdlmopen.
3113
3114 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3115
3116 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3117 before return type, without separate inline.
3118 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3119 * elf/dl-tunables.h (tunable_is_name): Likewise.
3120 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3121 (do_set_top_pad): Likewise.
3122 (do_set_mmap_threshold): Likewise.
3123 (do_set_mmaps_max): Likewise.
3124 (do_set_mallopt_check): Likewise.
3125 (do_set_perturb_byte): Likewise.
3126 (do_set_arena_test): Likewise.
3127 (do_set_arena_max): Likewise.
3128 (do_set_tcache_max): Likewise.
3129 (do_set_tcache_count): Likewise.
3130 (do_set_tcache_unsorted_limit): Likewise.
3131 * nis/nis_subr.c (count_dots): Likewise.
3132 * nptl/allocatestack.c (advise_stack_range): Likewise.
3133 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3134 (do_sin): Likewise.
3135 (reduce_sincos): Likewise.
3136 (do_sincos): Likewise.
3137 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3138 (do_set_elision_enable): Likewise.
3139 (TUNABLE_CALLBACK_FNDECL): Likewise.
3140
3141 2019-02-06 Florian Weimer <fweimer@redhat.com>
3142
3143 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3144 (xdlsym): Use dlerror to detect a NULL symbol.
3145
3146 2019-02-06 Florian Weimer <fweimer@redhat.com>
3147
3148 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3149 <stap-probe.h>.
3150 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3151
3152 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3153
3154 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3155
3156 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3157
3158 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3159 __wmemcmp and weak alias to wmemcmp.
3160
3161 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3162
3163 [BZ #23403]
3164 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3165 TLS_TCB_AT_TP tls variant.
3166 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3167 Add alignment checks.
3168 * support/Makefile (libsupport-routines): Add xposix_memalign and
3169 xpthread_setstack.
3170 * support/support.h: Add xposix_memalign.
3171 * support/xthread.h: Add xpthread_attr_setstack.
3172 * support/xposix_memalign.c: New File.
3173 * support/xpthread_attr_setstack.c: Likewise.
3174
3175 2019-02-05 Florian Weimer <fweimer@redhat.com>
3176
3177 [BZ #24164]
3178 arm: Use "nr" constraint for Systemtap probes, to avoid the
3179 compiler using memory operands for constants, due to the "o"
3180 alternative in the default "nor" constraint.
3181 * include/stap-probe.h [USE_STAP_PROBE]: Include
3182 <stap-probe-machine.h>
3183 * sysdeps/generic/stap-probe-machine.h: New file.
3184 * sysdeps/arm/stap-probe-machine.h: Likewise.
3185
3186 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3187
3188 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3189 with 0, not tcache->entries[tc_idx].
3190
3191 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3192 once.
3193
3194 2019-02-04 Andreas Schwab <schwab@suse.de>
3195
3196 [BZ #16976]
3197 [BZ #17396]
3198 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3199 looking up collating elements match against (wide) character
3200 sequence instead of name. Correct alignment adjustment.
3201 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3202 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3203 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3204 (LOCALES): Add cs_CZ.ISO-8859-2.
3205 * posix/tst-fnmatch4.c: New file.
3206 * posix/tst-fnmatch5.c: New file.
3207 * include/wchar.h (__wmemcmp): Declare.
3208 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3209 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3210 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3211 * sysdeps/s390/wmemcmp.c: Likewise.
3212
3213 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3214
3215 [BZ #24155]
3216 CVE-2019-7309
3217 * NEWS: Updated for CVE-2019-7309.
3218 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3219 upper 32 bits of RDX register for x32. Use unsigned Jcc
3220 instructions, instead of signed.
3221 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3222 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3223
3224 2019-02-04 Florian Weimer <fweimer@redhat.com>
3225
3226 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3227 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3228 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3229 Likewise.
3230 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3231 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3232 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3233 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3234 Likewise.
3235 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3236 Likewise.
3237 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3238 Likewise.
3239 (posix_spawn_file_actions_addopen): Likewise.
3240 (posix_spawn_file_actions_addclose): Likewise.
3241 (posix_spawn_file_actions_adddup2): Likewise.
3242 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3243 qualifiers.
3244 (posix_spawn_file_actions_addfchdir_np): Likewise.
3245
3246 2019-02-04 David Newall <glibc@davidnewall.com>
3247
3248 elf: Implement --preload option for the dynamic linker.
3249 * elf/rtld.c (preloadarg): New variable.
3250 (handle_preload_list): Pass through “where” argument to
3251 do_preload.
3252 (dl_main): Handle "--preload" and add second call to
3253 handle_preload_list.
3254 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3255 (tst-rtld-preload-OBJS): Set variable.
3256 (tst-rtld-preload.out): New target.
3257 * elf/tst-rtld-preload.sh: New file.
3258
3259 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3260
3261 * Makefile (testrun.sh): Exit in case of incorrect argument.
3262
3263 2019-02-04 Florian Weimer <fweimer@redhat.com>
3264
3265 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3266 alignment gaps.
3267
3268 2019-02-03 Florian Weimer <fweimer@redhat.com>
3269
3270 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3271 implicit overflow checks.
3272
3273 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3274
3275 * stdlib/isomac.c: Include <unistd.h>.
3276
3277 2019-02-03 Florian Weimer <fweimer@redhat.com>
3278
3279 * include/time.h (__tzfile_default): Use int, not long int, for
3280 the GMT offsets.
3281 * time/tzfile.c (struct ttinfo): Change type of the offset member
3282 to int.
3283 (__tzfile_read): Remove useless cast.
3284 (__tzfile_default): Adjust prototype.
3285 * time/tzset.c (tz_rule): Change type of the offset member to int.
3286 (parse_offset): Change the type of the sign variable to int.
3287
3288 2019-02-03 Florian Weimer <fweimer@redhat.com>
3289
3290 [BZ #24153]
3291 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3292 * libio/getchar.c (getchar): Likewise.
3293 * libio/getchar_u.c (getchar_unlocked): Likewise.
3294 * libio/getwchar.c (getwchar): Likewise.
3295 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3296 * libio/iogets.c (_IO_gets): Likewise.
3297 * libio/vscanf.c (_IO_vscanf): Likewise.
3298 * libio/vwscanf.c (__vwscanf): Likewise.
3299 * libio/tst-bz24153.c: New file.
3300 * libio/Makefile (tests): Add it.
3301
3302 2019-02-02 Florian Weimer <fweimer@redhat.com>
3303
3304 [BZ #14829]
3305 * manual/resource.texi (Basic Scheduling Functions): Add
3306 portability note. Change process to task throughout the section.
3307 Remove incorrect comment about sched_yield as it affects
3308 tasks/threads, not entire processes.
3309 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3310 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3311
3312 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3313
3314 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3315 * configure: Regenerated.
3316 * manual/install.texi (Tools for Compilation): Update minimum GCC
3317 version.
3318 * INSTALL: Regenerated.
3319
3320 2019-02-01 Florian Weimer <fweimer@redhat.com>
3321
3322 * support/support_test_compare_string.c
3323 (support_test_compare_string): Use "string" in error message.
3324 * support/tst-test_compare_string.c (do_test): Adjust.
3325
3326 2019-02-01 Florian Weimer <fweimer@redhat.com>
3327
3328 * support/support_format_address_family.c
3329 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3330
3331 2019-02-01 Florian Weimer <fweimer@redhat.com>
3332
3333 * manual/socket.texi (Internet Address Formats): Clarify the byte
3334 order of struct sockaddr_in, struct sockaddr_in6. Document
3335 sin6_flowinfo and sin6_scope_id.
3336
3337 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3338
3339 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3340 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3341 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3342 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3343 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3344 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3345
3346 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3347
3348 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3349 [!MEMCHR](MEMCHR): Set to __memchr.
3350 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3351 Add memchr_generic and memchr_nosimd.
3352 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3353 (__libc_ifunc_impl_list): Add memchr ifuncs.
3354 * sysdeps/aarch64/multiarch/memchr.c: New file.
3355 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3356 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3357
3358 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3359
3360 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3361 Add memset_emag.
3362 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3363 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3364 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3365 Add IS_EMAG check for ifunc dispatch.
3366 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3367 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3368
3369 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3370
3371 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3372 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3373 Add emag.
3374 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3375 New macro.
3376
3377 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3378
3379 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3380
3381 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3382
3383 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3384 syscall-template file.
3385
3386 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3387 Torvald Riegel <triegel@redhat.com>
3388 Rik Prohaska <prohaska7@gmail.com>
3389
3390 [BZ# 23844]
3391 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3392 tst-rwlock-trywrlock-stall.
3393 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3394 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3395 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3396 Set __wrphase_fute to 1 only if we started the write phase.
3397 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3398 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3399 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3400 * support/xpthread_rwlock_destroy.c: New file.
3401 * support/xthread.h: Declare xpthread_rwlock_destroy.
3402
3403 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3404
3405 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3406 version to 4.0.2.
3407
3408 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3409
3410 [BZ #24051]
3411 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3412 * libio/fileops.c (_IO_new_file_underflow): Likewise
3413 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3414 * libio/putchar.c (putchar): Likewise.
3415 * libio/putchar_u.c (putchar_unlocked): Likewise.
3416 * libio/putwchar.c (putchar): Likewise.
3417 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3418 * libio/tst-bz24051.c: New test.
3419 * libio/Makefile (tests): Add tst-bz24051
3420
3421 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3422
3423 CVE-2019-9169
3424 regex: fix read overrun [BZ #24114]
3425 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3426 https://debbugs.gnu.org/34140
3427 * posix/regexec.c (proceed_next_node):
3428 Do not read past end of input buffer.
3429
3430 2019-01-31 Florian Weimer <fweimer@redhat.com>
3431
3432 [BZ #24059]
3433 * nss/nss_files/files-alias.c (get_next_alias): Handle
3434 continuation line without newline at the end.
3435 * nss/tst-nss-files-alias-truncated.c: New file.
3436 * nss/Makefile [$(build-shared)] (tests): Add
3437 tst-nss-files-alias-truncated.
3438 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3439 * support/namespace.h (struct support_chroot_configuration): Add
3440 aliases member.
3441 (struct support_chroot): Add path_aliases member.
3442 * support/support_chroot.c (support_chroot_create): Handle
3443 aliases.
3444 (support_chroot_free): Free path_aliases.
3445
3446 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3447
3448 * version.h (RELEASE): Set to "development".
3449 (VERSION): Set to "2.29.9000".
3450 * NEWS: Add section for 2.30.
3451
3452 * version.h (RELEASE): Set to "stable".
3453 (VERSION): Set to "2.29".
3454 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3455
3456 * NEWS: Add the list of bugs fixed in 2.29.
3457 * manual/contrib.texi: Update contributors list with some more
3458 names.
3459 * manual/install.texi: Update latest versions of packages
3460 tested.
3461 * INSTALL: Regenerated.
3462
3463 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3464
3465 * po/be.po: Update translations.
3466 * po/bg.po: Likewise.
3467 * po/ca.po: Likewise.
3468 * po/cs.po: Likewise.
3469 * po/da.po: Likewise.
3470 * po/de.po: Likewise.
3471 * po/el.po: Likewise.
3472 * po/eo.po: Likewise.
3473 * po/es.po: Likewise.
3474 * po/fi.po: Likewise.
3475 * po/fr.po: Likewise.
3476 * po/gl.po: Likewise.
3477 * po/hr.po: Likewise.
3478 * po/hu.po: Likewise.
3479 * po/ia.po: Likewise.
3480 * po/id.po: Likewise.
3481 * po/it.po: Likewise.
3482 * po/ja.po: Likewise.
3483 * po/ko.po: Likewise.
3484 * po/lt.po: Likewise.
3485 * po/nb.po: Likewise.
3486 * po/nl.po: Likewise.
3487 * po/pl.po: Likewise.
3488 * po/pt_BR.po: Likewise.
3489 * po/ru.po: Likewise.
3490 * po/rw.po: Likewise.
3491 * po/sk.po: Likewise.
3492 * po/sl.po: Likewise.
3493 * po/sv.po: Likewise.
3494 * po/tr.po: Likewise.
3495 * po/uk.po: Likewise.
3496 * po/vi.po: Likewise.
3497 * po/zh_CN.po: Likewise.
3498 * po/zh_TW.po: Likewise.
3499
3500 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3501
3502 [BZ #24130]
3503 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3504 of $f3 register on $y_is_neg path.
3505
3506 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3507
3508 [BZ #24110]
3509 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3510 sigaltstack.ss_flags.
3511
3512 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3513
3514 [BZ #23758]
3515 * manual/time.texi (strftime): Document "%Ey".
3516 * time/strftime_l.c (__strftime_internal): Set the default width
3517 padding with zero of "%Ey" to 2.
3518
3519 [BZ #24096]
3520 * manual/time.texi (strftime): Document "%EC" and "%EY".
3521 * time/Makefile (tests): Add tst-strftime2.
3522 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3523 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3524 override padding for "%Ey".
3525 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3526 "%Ey" in the subformat as if decorated with that flag.
3527 * time/tst-strftime2.c: New file.
3528
3529 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3530
3531 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3532 are not defined.
3533
3534 [BZ #24122]
3535 * elf/Makefile (tests): Add tst-audit13.
3536 (modules-names): Add tst-audit13mod1.
3537 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3538 rule.
3539 * elf/rtld.c (dl_main): Handle invalid audit module version.
3540 * elf/tst-audit13.c: New file.
3541 * elf/tst-audit13mod1.c: Likewise.
3542
3543 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3544
3545 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3546 returned by __hurd_at_flags.
3547 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3548 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3549 directly instead of __hurd_file_name_lookup.
3550
3551 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3552
3553 * scripts/build-many-glibcs.py (Context.checkout): Default
3554 binutils version to 2.32 branch.
3555
3556 2019-01-21 Florian Weimer <fweimer@redhat.com>
3557
3558 [BZ #20018]
3559 CVE-2016-10739
3560 resolv: Reject trailing characters in host names
3561 * include/arpa/inet.h (__inet_aton_exact): Declare.
3562 (inet_aton): Remove hidden prototype. No longer used internally.
3563 * nscd/gai.c (__inet_aton): Do not define.
3564 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3565 * nss/digits_dots.c (__inet_aton): Likewise.
3566 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3567 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3568 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3569 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3570 (tst-resolv-trailing): Likewise.
3571 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3572 libc.
3573 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3574 Make static. Add endp parameter.
3575 (__inet_aton_exact): New function.
3576 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3577 (__inet_addr): Call inet_aton_end.
3578 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3579 not just IPv6. Call __inet_aton_exact.
3580 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3581 (tests): Make const. Add additional test cases with trailing
3582 characters.
3583 (do_test): Use array_length.
3584 * resolv/tst-inet_aton_exact.c: New file.
3585 * resolv/tst-resolv-trailing.c: Likewise.
3586 * resolv/tst-resolv-nondecimal.c: Likewise.
3587 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3588
3589 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3590
3591 [BZ# 24097]
3592 CVE-2019-6488
3593 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3594 Clear the upper 32 bits of RSI register.
3595 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3596 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3597 and tst-size_t-wcsnlen.
3598 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3599 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3600
3601 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3602
3603 [BZ# 24097]
3604 CVE-2019-6488
3605 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3606 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3607 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3608 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3609 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3610
3611 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3612
3613 [BZ# 24097]
3614 CVE-2019-6488
3615 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3616 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3617 * sysdeps/x86_64/strcmp.S: Likewise.
3618 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3619 tst-size_t-strncmp and tst-size_t-wcsncmp.
3620 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3621 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3622 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3623
3624 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3625
3626 [BZ# 24097]
3627 CVE-2019-6488
3628 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3629 RDX_LP for length. Clear the upper 32 bits of RDX register.
3630 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3631 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3632 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3633 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3634
3635 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3636
3637 [BZ# 24097]
3638 CVE-2019-6488
3639 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3640 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3641 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3642 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3643
3644 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3645
3646 [BZ# 24097]
3647 CVE-2019-6488
3648 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3649 length. Clear the upper 32 bits of RDX register.
3650 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3651 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3652 Likewise.
3653 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3654 Likewise.
3655 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3656 tst-size_t-wmemchr.
3657 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3658
3659 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3660
3661 [BZ# 24097]
3662 CVE-2019-6488
3663 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3664 length. Clear the upper 32 bits of RDX register.
3665 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3666 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3667 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3668 tst-size_t-wmemcmp.
3669 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3670 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3671
3672 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3673
3674 [BZ# 24097]
3675 CVE-2019-6488
3676 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3677 upper 32 bits of RDX register.
3678 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3679 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3680 tst-size_t-wmemchr.
3681 * sysdeps/x86_64/x32/test-size_t.h: New file.
3682 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3683 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3684
3685 2019-01-18 Florian Weimer <fweimer@redhat.com>
3686
3687 [BZ #24112]
3688 resolv: Do not send queries for non-host-names in nss_dns.
3689 * resolv/nss_dns/dns-host.c (check_name): New function.
3690 (_nss_dns_gethostbyname2_r): Use it.
3691 (_nss_dns_gethostbyname_r): Likewise.
3692 (_nss_dns_gethostbyname4_r): Likewise.
3693
3694 2019-01-21 Florian Weimer <fweimer@redhat.com>
3695
3696 * resolv/inet_addr.c: Reformat to GNU style.
3697 (__inet_addr, __inet_aton): Update comment.
3698
3699 2019-01-18 Florian Weimer <fweimer@redhat.com>
3700
3701 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3702 ("malloc: Use current (C11-style) atomics for fastbin access").
3703 This commit introduces a substantial performance regression on
3704 POWER and Aarch64.
3705 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3706 (REMOVE_FB): Define.
3707 (_int_malloc): Use it and reindent.
3708 (_int_free): Use CAS loop with
3709 catomic_compare_and_exchange_val_rel.
3710 (malloc_consolidate): Use atomic_exchange_acq.
3711
3712
3713 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3714
3715 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3716 -Wl,-z,now.
3717 (LDFLAGS-tst-minsigstksz-2): Likewise.
3718 (LDFLAGS-tst-minsigstksz-3): Likewise.
3719 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3720 (LDFLAGS-tst-minsigstksz-4): Likewise.
3721
3722 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3723
3724 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3725 than "alternate".
3726
3727 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3728
3729 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3730
3731 2019-01-16 Zack Weinberg <zackw@panix.com>
3732
3733 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3734 (xget_sigstack_location): New test support functions.
3735 * support/xsigstack.c: New file, implementing them.
3736 * support/tst-xsigstack.c: New test for them.
3737 * support/Makefile: Update.
3738
3739 * signal/tst-minsigstksz-1.c
3740 * signal/tst-minsigstksz-2.c
3741 * signal/tst-minsigstksz-3.c
3742 * signal/tst-minsigstksz-3a.c
3743 * signal/tst-minsigstksz-4.c: New tests.
3744 * signal/Makefile: Run them.
3745
3746 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3747
3748 * po/libc.pot: Regenerate.
3749
3750 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3751
3752 * math/libm-test-fma.inc (fma_test_data): Set
3753 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3754
3755 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3756
3757 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3758 (do_test): Changed __vector __int128_t to __vector unsigned int.
3759
3760 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3761
3762 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3763 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3764 stpcpy-avx2 and stpncpy-avx2.
3765 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3766 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3767 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3768 and __stpncpy_avx2.
3769 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3770 ifunc-strcpy.h}: rename header for a more generic name.
3771 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3772 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3773 AVX unaligned load is fast and vzeroupper is preferred.
3774 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3775 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3776 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3777 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3778 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3779 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3780
3781 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3782
3783 * argp/argp-help.c: Fix typo in comment.
3784 * misc/sys/cdefs.h: Likewise.
3785 * posix/regexec.c (sift_states_iter_mb): Likewise.
3786 * socket/sockatmark.c: Likewise.
3787 * socket/sys/socket.h: Likewise.
3788 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3789 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3790 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3791 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3792 * sysdeps/unix/sockatmark.c: Likewise.
3793 * time/strptime_l.c: Likewise.
3794
3795 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3796
3797 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3798 missing space after the cast of "_NL_CURRENT".
3799
3800 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3801
3802 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3803 ifdef to fix read of VSCR.
3804 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3805 tst-ucontext-ppc64-vscr.c to test list.
3806 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3807
3808 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3809
3810 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3811 fall-through.
3812
3813 2019-01-09 Jim Wilson <jimw@sifive.com>
3814
3815 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3816
3817 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3818
3819 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3820 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3821 __memcpy_falkor for ares.
3822 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3823 Add new define.
3824 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3825 Add ares cpu.
3826
3827 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3828
3829 [BZ #24066]
3830 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3831 4_FP_W_TYPEs are used for IEEE quad precision.
3832 * soft-fp/extendhftf2.c: Likewise.
3833 * soft-fp/extendsftf2.c: Likewise.
3834 * soft-fp/extendxftf2.c: Likewise.
3835 * soft-fp/trunctfdf2.c: Likewise.
3836 * soft-fp/trunctfhf2.c: Likewise.
3837 * soft-fp/trunctfsf2.c: Likewise.
3838 * soft-fp/trunctfxf2.c: Likewise.
3839 * sysdeps/alpha/ots_cvttx.c: Likewise.
3840 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3841 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3842 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3843 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3844 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3845 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3846 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3847 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3848 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3849 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3850 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3851 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3852 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3853 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3854 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3855 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3856 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3857
3858 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3859
3860 [BZ #24024]
3861 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3862 code with -fmath-errno.
3863 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3864 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3865 * string/test-strerror-errno.c: New file.
3866
3867 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3868
3869 [BZ #24046]
3870 * localedata/locales/en_US (date_fmt): Add, set to
3871 "%a %d %b %Y %r %Z".
3872
3873 2019-01-07 Florian Weimer <fweimer@redhat.com>
3874
3875 [BZ #24063]
3876 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3877 instead of @var{errno}.
3878 (Parsing of Integers): Likewise.
3879 (Parsing of Floats): Likewise.
3880 * manual/filesys.texi (Working with Directory Trees): Likewise.
3881 (Temporary Files): Likewise.
3882 * manual/job.texi (Terminal Access Functions): Likewise.
3883 * manual/llio.texi (Synchronizing I/O): Likewise.
3884 * manual/math.texi (SVID Random): Likewise.
3885 * manual/message.texi (The catgets Functions): Likewise.
3886 (Translation with gettext): Likewise.
3887 (Locating gettext catalog): Likewise.
3888 (Charset conversion in gettext): Likewise.
3889 * manual/nss.texi (NSS Module Function Internals): Likewise.
3890 * manual/search.texi (Hash Search Function): Likewise.
3891 * manual/setjmp.texi (System V contexts): Likewise.
3892 * manual/time.texi (Sleeping): Likewise.
3893 * manual/users.texi (Lookup User): Likewise.
3894 (Lookup Group): Likewise.
3895
3896 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3897
3898 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3899 fix typo.
3900
3901 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3902
3903 [BZ #19444]
3904 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3905 __builtin_unreachable for default case in switch.
3906 (__ieee754_yn): Likewise.
3907 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3908 (__ieee754_ynl): Likewise.
3909 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3910 (__ieee754_ynl): Likewise.
3911 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3912 (__ieee754_ynl): Likewise.
3913
3914 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3915
3916 * manual/maint.texi: Use @{ and @}.
3917
3918 2019-01-04 Florian Weimer <fweimer@redhat.com>
3919
3920 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3921 function.
3922 (do_in_chroot_1): Call it.
3923 (run_chroot_tests):
3924 Improve error reporting in case it is not possible to create a
3925 collision for the PTY name required by the test.
3926
3927 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3928
3929 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3930 lll_wait_tid with timeout.
3931 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3932 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3933 futex_reltimed_wait_cancelable for cancelabla mode.
3934 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3935 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3936 macros.
3937 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3938 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3939 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3940 SYSCALL_CANCEL_NCS): New macro.
3941 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3942 (lll_timedwait_tid): Remove macro.
3943 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3944 Likewise.
3945 (lll_timedwait_tid): Likewise.
3946 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3947 Likewise.
3948 (lll_timedwait_tid): Likewise.
3949 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3950 Likewise.
3951 (lll_timedwait_tid): Likewise.
3952 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3953 Use INTERNAL_SYSCALL_CANCEL.
3954 * sysdeps/unix/sysv/linux/futex-internal.h
3955 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3956 instead of __pthread_{enable,disable}_asynccancel.
3957 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3958 (lll_futex_wait_cancel): New macro.
3959
3960 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3961 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3962
3963 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3964 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3965
3966 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3967 in backtrace analysis.
3968 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3969 side-effects.
3970 (tf_send): Likewise.
3971
3972 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3973 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3974 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3975 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3976 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3977 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3978 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3979 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3980 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3981 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3982 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3983 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3984 Likewise.
3985 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3986 tst-cancel-wrappers.sh.
3987 (generated): Remove tst-cancel-wrappers.out.
3988 (tst-cancel-wrappers.out): Remove rule.
3989 * nptl/tst-cancel-wrappers.sh: Remove file.
3990
3991 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3992
3993 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3994 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3995 Update.
3996
3997 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3998
3999 [BZ #23640]
4000 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4001 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4002 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4003 close-on-exec reset for adddup2 file action.
4004 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4005
4006 2019-01-03 Zack Weinberg <zackw@panix.com>
4007
4008 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4009 parameter. Only use deprecated scanf when __USE_GNU is defined
4010 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4011 than 201103L, whichever is relevant for the language being compiled.
4012
4013 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4014 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4015 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4016 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4017 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4018
4019 * libio/iovsscanf.c
4020 * libio/fwscanf.c
4021 * libio/iovswscanf.c
4022 * libio/swscanf.c
4023 * libio/vscanf.c
4024 * libio/vwscanf.c
4025 * libio/wscanf.c
4026 * stdio-common/fscanf.c
4027 * stdio-common/scanf.c
4028 * stdio-common/vfscanf.c
4029 * stdio-common/vfwscanf.c
4030 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4031 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4032 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4033 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4034 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4035 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4036 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4037 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4038 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4039 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4040 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4041 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4042 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4043 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4044 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4045
4046 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4047 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4048 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4049 not sscanf.
4050 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4051 with a preprocessor macro.
4052
4053 * stdio-common/bug21.c, stdio-common/scanf14.c:
4054 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4055 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4056 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4057 to xscanf, xfscanf, xsscanf.
4058
4059 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4060 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4061 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4062 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4063 xfscanf, xsscanf.
4064 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4065 override feature selection macros or provide definitions of u_char etc.
4066 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4067 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4068 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4069 with -std=gnu89.
4070
4071 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4072
4073 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4074 bits/termios-misc.h.
4075 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4076 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4077 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4078 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4079 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4080 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4081
4082 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4083 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4084 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4085 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4086 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4087 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4088 termios-misc.h.
4089 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4090 (sysdep_headers): Add termios-misc.h.
4091
4092 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4093 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4094 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4095
4096 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4097 termios-tcflow.h.
4098 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4099 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4100 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4101 TCSAFLUSH): Move to termios-tcflow.h.
4102 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4103 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4104 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4105 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4106
4107 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4108 termios-c_lflag.h.
4109 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4110 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4111 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4112 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4113 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4114 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4115 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4116 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4117 Likewise.
4118 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4119 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4120 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4121 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4122
4123 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4124 termios-c_cflag.h.
4125 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4126 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4127 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4128 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4129 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4130 termios-c_cflag.h.
4131 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4132 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4133 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4134 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4135
4136 [BZ #23783]
4137 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4138 termios-baud.h.
4139 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4140 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4141 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4142 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4143 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4144 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4145 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4146 __MAX_BAUD): Move to termios-baud.h.
4147 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4148 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4149 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4150 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4151 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4152
4153 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4154 termios-c_oflag.h.
4155 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4156 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4157 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4158 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4159 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4160 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4161 termios-c_oflag.h.
4162 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4163 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4164 FFR1): Likewise.
4165 [USE_MISC] (XTABS): Likewise.
4166 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4167 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4168 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4169 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4170
4171 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4172 termios-c_iflag.h.
4173 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4174 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4175 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4176 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4177 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4178 IUTF8): Move to termios-c_iflag.h.
4179 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4180 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4181 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4182 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4183
4184 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4185 termios-cc.h.
4186 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4187 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4188 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4189 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4190 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4191 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4192 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4193 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4194 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4195 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4196 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4197 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4198
4199 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4200 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4201 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4202 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4203 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4204 termios-struct.h.
4205 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4206 termios-struct.h.
4207 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4208 Likewise.
4209 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4210 Likewise.
4211 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4212 Likewise.
4213 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4214 Likewise.
4215 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4216 _HAVE_C_OSPEED): Define.
4217 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4218 _HAVE_C_OSPEED): Likewise.
4219 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4220 _HAVE_C_OSPEED): Likewise.
4221 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4222 (cfsetospeed): Check for define value instead of existence.
4223 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4224 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4225 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4226 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4227 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4228
4229 [BZ #17783]
4230 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4231 Define.
4232 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4233 (TIOCSER_TEMT): Likewise.
4234 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4235 (TEOCSER_TEMT): Likewise.
4236
4237 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4238
4239 [BZ #24011]
4240 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4241
4242 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4243
4244 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4245
4246 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4247
4248 * sysdeps/htl/pt-barrierattr-setpshared.c
4249 (pthread_barrierattr_setpshared): Add stub warning.
4250 * sysdeps/htl/pt-condattr-setpshared.c
4251 (pthread_condattr_setpshared): Likewise.
4252 * sysdeps/htl/pt-mutexattr-setpshared.c
4253 (pthread_mutexattr_setpshared): Likewise.
4254 * sysdeps/htl/pt-rwlockattr-setpshared.c
4255 (pthread_rwlockattr_setpshared): Likewise.
4256 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4257 (pthread_mutexattr_setpshared): Likewise.
4258
4259 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4260
4261 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4262 constants to match with Linux 4.20.
4263
4264 * sysdeps/mips/mips32/libm-test-ulps: Update.
4265 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4266
4267 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4268
4269 [BZ #24034]
4270 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4271 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4272 than __typeof (...) for the a_ptr variable.
4273
4274 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4275
4276 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4277 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4278 * libio/Makefile (tests): Add tst-sprintf-ub and
4279 tst-sprintf-chk-ub.
4280 (CFLAGS-tst-sprintf-ub.c): New variable.
4281 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4282 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4283 destination buffer and check for overflows in fortified mode.
4284 * libio/libioP.h (PRINTF_CHK): New macro.
4285 * libio/tst-sprintf-chk-ub.c: New file.
4286 * libio/tst-sprintf-ub.c: Likewise.
4287
4288 2019-01-02 Florian Weimer <fweimer@redhat.com>
4289
4290 [BZ #24018]
4291 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4292 failure.
4293
4294 2019-01-02 Florian Weimer <fweimer@redhat.com>
4295
4296 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4297
4298 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4299
4300 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4301 macro.
4302
4303 * sysdeps/unix/sysv/linux/netpacket/packet.h
4304 (PACKET_IGNORE_OUTGOING): New macro.
4305
4306 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4307 macro.
4308
4309 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4310 version to 4.20.
4311 (riscv_flush_icache): New syscall.
4312
4313 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4314 trailing whitespace removed.
4315 * scripts/config.guess: Update to version 2019-01-01.
4316 * scripts/config.sub: Update to version 2019-01-01.
4317 * scripts/move-if-change: Update from gnulib.
4318
4319 * NEWS: Update copyright dates.
4320 * catgets/gencat.c (print_version): Likewise.
4321 * csu/version.c (banner): Likewise.
4322 * debug/catchsegv.sh: Likewise.
4323 * debug/pcprofiledump.c (print_version): Likewise.
4324 * debug/xtrace.sh (do_version): Likewise.
4325 * elf/ldconfig.c (print_version): Likewise.
4326 * elf/ldd.bash.in: Likewise.
4327 * elf/pldd.c (print_version): Likewise.
4328 * elf/sotruss.sh: Likewise.
4329 * elf/sprof.c (print_version): Likewise.
4330 * iconv/iconv_prog.c (print_version): Likewise.
4331 * iconv/iconvconfig.c (print_version): Likewise.
4332 * locale/programs/locale.c (print_version): Likewise.
4333 * locale/programs/localedef.c (print_version): Likewise.
4334 * login/programs/pt_chown.c (print_version): Likewise.
4335 * malloc/memusage.sh (do_version): Likewise.
4336 * malloc/memusagestat.c (print_version): Likewise.
4337 * malloc/mtrace.pl: Likewise.
4338 * manual/libc.texinfo: Likewise.
4339 * nptl/version.c (banner): Likewise.
4340 * nscd/nscd.c (print_version): Likewise.
4341 * nss/getent.c (print_version): Likewise.
4342 * nss/makedb.c (print_version): Likewise.
4343 * posix/getconf.c (main): Likewise.
4344 * scripts/test-installation.pl: Likewise.
4345 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4346
4347 * All files with FSF copyright notices: Update copyright dates
4348 using scripts/update-copyrights.
4349 * locale/programs/charmap-kw.h: Regenerated.
4350 * locale/programs/locfile-kw.h: Likewise.
4351
4352 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4353
4354 * timezone/zdump.c: Update from tzcode 2018i.
4355 * timezone/zic.c: Likewise.
4356
4357 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4358
4359 regex: improve Gnulib port to AIX
4360 From the glibc point of view, this removes duplicate macro
4361 definitions and is obviously safe.
4362 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4363 * posix/regex_internal.h:
4364 (__attribute__, __attribute_warn_unused_result__):
4365 Remove; already defined elsewhere.
4366
4367 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4368
4369 [BZ #24027]
4370 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4371 copying operation. (ncopies had the wrong type, resulting in an
4372 integer wraparound and too few elements being copied.)
4373
4374 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4375
4376 [BZ #24022]
4377 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4378 <asm/syscalls.h> exists with __has_include__ before including it.
4379
4380 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4381
4382 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4383 version to 4.20.
4384
4385 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4386
4387 * hurd/lookup-retry: Include <unistd.h>.
4388 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4389 Release it on return. Handle "pid" magical lookup retry.
4390
4391 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4392
4393 [BZ #10496]
4394 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4395 (t_fmt_ampm): Likewise.
4396 * localedata/locales/aa_ER (t_fmt): Likewise.
4397 (t_fmt_ampm): Likewise.
4398 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4399 (t_fmt_ampm): Likewise.
4400 * localedata/locales/aa_ET (t_fmt): Likewise.
4401 (t_fmt_ampm): Likewise.
4402 * localedata/locales/am_ET (t_fmt): Likewise.
4403 (t_fmt_ampm): Likewise.
4404 * localedata/locales/byn_ER (t_fmt): Likewise.
4405 (t_fmt_ampm): Likewise.
4406 * localedata/locales/om_ET (t_fmt): Likewise.
4407 (t_fmt_ampm): Likewise.
4408 * localedata/locales/sid_ET (t_fmt): Likewise.
4409 (t_fmt_ampm): Likewise.
4410 * localedata/locales/so_DJ (t_fmt): Likewise.
4411 (t_fmt_ampm): Likewise.
4412 * localedata/locales/so_ET (t_fmt): Likewise.
4413 (t_fmt_ampm): Likewise.
4414 * localedata/locales/so_SO (t_fmt): Likewise.
4415 (t_fmt_ampm): Likewise.
4416 * localedata/locales/ti_ER (t_fmt): Likewise.
4417 (t_fmt_ampm): Likewise.
4418 * localedata/locales/ti_ET (t_fmt): Likewise.
4419 (t_fmt_ampm): Likewise.
4420 * localedata/locales/tig_ER (t_fmt): Likewise.
4421 (t_fmt_ampm): Likewise.
4422 * localedata/locales/wal_ET (t_fmt): Likewise.
4423 (t_fmt_ampm): Likewise.
4424
4425 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4426 * localedata/locales/ar_IN (t_fmt): Likewise.
4427 * localedata/locales/bhb_IN (t_fmt): Likewise.
4428 * localedata/locales/bho_IN (t_fmt): Likewise.
4429 * localedata/locales/bi_VU (t_fmt): Likewise.
4430 * localedata/locales/bn_BD (t_fmt): Likewise.
4431 * localedata/locales/bn_IN (t_fmt): Likewise.
4432 * localedata/locales/brx_IN (t_fmt): Likewise.
4433 * localedata/locales/doi_IN (t_fmt): Likewise.
4434 * localedata/locales/en_HK (t_fmt): Likewise.
4435 (t_fmt_ampm): Likewise.
4436 * localedata/locales/en_IN (t_fmt): Likewise.
4437 * localedata/locales/en_PH (t_fmt): Likewise.
4438 * localedata/locales/gu_IN (t_fmt): Likewise.
4439 * localedata/locales/hi_IN (t_fmt): Likewise.
4440 * localedata/locales/hif_FJ (t_fmt): Likewise.
4441 * localedata/locales/hne_IN (t_fmt): Likewise.
4442 * localedata/locales/kn_IN (t_fmt): Likewise.
4443 * localedata/locales/kok_IN (t_fmt): Likewise.
4444 * localedata/locales/ks_IN (t_fmt): Likewise.
4445 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4446 * localedata/locales/mag_IN (t_fmt): Likewise.
4447 * localedata/locales/mai_IN (t_fmt): Likewise.
4448 * localedata/locales/mjw_IN (t_fmt): Likewise.
4449 * localedata/locales/ml_IN (t_fmt): Likewise.
4450 * localedata/locales/mni_IN (t_fmt): Likewise.
4451 * localedata/locales/mr_IN (t_fmt): Likewise.
4452 * localedata/locales/ms_MY (t_fmt): Likewise.
4453 * localedata/locales/pa_IN (t_fmt): Likewise.
4454 * localedata/locales/raj_IN (t_fmt): Likewise.
4455 * localedata/locales/sa_IN (t_fmt): Likewise.
4456 * localedata/locales/sat_IN (t_fmt): Likewise.
4457 * localedata/locales/sd_IN (t_fmt): Likewise.
4458 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4459 * localedata/locales/tcy_IN (t_fmt): Likewise.
4460 * localedata/locales/the_NP (t_fmt): Likewise.
4461 * localedata/locales/to_TO (t_fmt): Likewise.
4462 * localedata/locales/ur_IN (t_fmt): Likewise.
4463
4464 * localedata/locales/hif_FJ (d_t_fmt): Set to
4465 "%A %d %b %Y %I:%M:%S %p".
4466 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4467
4468 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4469 * localedata/locales/ar_BH (t_fmt): Likewise.
4470 * localedata/locales/ar_DZ (t_fmt): Likewise.
4471 * localedata/locales/ar_EG (t_fmt): Likewise.
4472 * localedata/locales/ar_IQ (t_fmt): Likewise.
4473 * localedata/locales/ar_JO (t_fmt): Likewise.
4474 * localedata/locales/ar_KW (t_fmt): Likewise.
4475 * localedata/locales/ar_LB (t_fmt): Likewise.
4476 * localedata/locales/ar_LY (t_fmt): Likewise.
4477 * localedata/locales/ar_OM (t_fmt): Likewise.
4478 * localedata/locales/ar_QA (t_fmt): Likewise.
4479 * localedata/locales/ar_SD (t_fmt): Likewise.
4480 * localedata/locales/ar_SS (t_fmt): Likewise.
4481 * localedata/locales/ar_SY (t_fmt): Likewise.
4482 * localedata/locales/ar_TN (t_fmt): Likewise.
4483 * localedata/locales/ar_YE (t_fmt): Likewise.
4484
4485 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4486 (t_fmt_ampm): Likewise.
4487 * localedata/locales/gez_ET (t_fmt): Likewise.
4488 (t_fmt_ampm): Likewise.
4489
4490 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4491 (t_fmt_ampm): Likewise.
4492 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4493
4494 * localedata/locales/zh_HK (t_fmt):
4495 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4496
4497 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4498 because this locale does not use the 12-hour clock.
4499 (t_fmt): Set to "%Z %H:%M:%S".
4500 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4501
4502 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4503 because this locale does not use the 12-hour clock.
4504 (t_fmt): Set to "%H:%M:%S %Z".
4505 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4506
4507 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4508 because this locale does not use the 12-hour clock.
4509 (t_fmt): Set to "%T".
4510 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4511 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4512
4513 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4514 because this locale does not use the 12-hour clock.
4515 (t_fmt): Set to "%H:%M:%S %Z".
4516 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4517
4518 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4519 because this locale does not use the 12-hour clock.
4520 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4521 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4522
4523 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4524
4525 [BZ #10496]
4526 [BZ #23724]
4527 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4528 (t_fmt_ampm): Likewise.
4529 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4530 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4531 (d_fmt): Set to "%-d.%-m.%y".
4532
4533 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4534
4535 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4536 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4537 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4538 Likewise.
4539 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4540 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4541 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4542 function.
4543 * support/blob_repeat.c (check_mul_overflow_size_t,
4544 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4545
4546 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4547
4548 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4549
4550 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4551
4552 regex: simplify Gnulib port
4553 This simplifies the code, by removing stuff intended for porting
4554 to Gnulib but no longer needed there.
4555 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4556 uses of libc_hidden_def, weak_alias.
4557 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4558 _Restrict_ except for public-facing headers.
4559 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4560 Remove; already defined elsewhere.
4561 * posix/regex.c, posix/regex_internal.h:
4562 Use __GNUC_PREREQ instead of rolling our own.
4563 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4564
4565 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4566
4567 * benchtests/bench-strlen.c (generic_strlen): New function.
4568 (memchr_strlen): New function.
4569
4570 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4571
4572 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4573 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4574 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4575
4576 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4577
4578 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4579
4580 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4581
4582 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4583 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4584 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4585 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4586 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4587 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4588 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4589
4590 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4591
4592 [BZ #24023]
4593 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4594 PLT reference in libc.so.
4595 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4596 _Q_lltoq and _Q_qtod PLT references in libc.so.
4597
4598 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4599
4600 * benchtests/bench-memchr.c: Cleanup defines.
4601 * benchtests/bench-memcmp.c: Likewise.
4602 * benchtests/bench-memset.c: Likewise.
4603 * benchtests/bench-memset-large.c: Likewise.
4604 * benchtests/bench-memset-walk.c: Likewise.
4605 * benchtests/bench-stpcpy.c: Likewise.
4606 * benchtests/bench-stpncpy.c: Likewise.
4607 * benchtests/bench-strcat.c: Likewise.
4608 * benchtests/bench-strchr.c: Likewise.
4609 * benchtests/bench-strcmp.c: Likewise.
4610 * benchtests/bench-strcpy.c: Likewise.
4611 * benchtests/bench-strcspn.c: Likewise.
4612 * benchtests/bench-string.h: Likewise.
4613 * benchtests/bench-strlen.c: Likewise.
4614 * benchtests/bench-strncat.c: Likewise.
4615 * benchtests/bench-strncmp.c: Likewise.
4616 * benchtests/bench-strncpy.c: Likewise.
4617 * benchtests/bench-strnlen.c: Likewise.
4618 * benchtests/bench-strpbrk.c: Likewise.
4619 * benchtests/bench-strrchr.c: Likewise.
4620 * benchtests/bench-strspn.c: Likewise.
4621
4622 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4623
4624 * stdlib/longlong.h: Update from GCC.
4625
4626 [BZ #23993]
4627 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4628 * configure: Regenerated.
4629 * manual/install.texi (Tools for Compilation): Update minimum GCC
4630 version.
4631 * INSTALL: Regenerated.
4632
4633 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4634
4635 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4636
4637 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4638
4639 * malloc/malloc.c (mremap_chunk): Additional checks.
4640
4641 2018-12-21 Mao Han <han_mao@c-sky.com>
4642
4643 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4644 * scripts/build-many-glibcs.py: Add C-SKY targets.
4645 * sysdeps/csky/Implies: New file.
4646 * sysdeps/csky/Makefile: Likewise.
4647 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4648 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4649 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4650 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4651 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4652 * sysdeps/csky/abiv2/memmove.S: Likewise.
4653 * sysdeps/csky/abiv2/memset.S: Likewise.
4654 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4655 * sysdeps/csky/abiv2/start.S: Likewise.
4656 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4657 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4658 * sysdeps/csky/abiv2/strlen.S: Likewise.
4659 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4660 * sysdeps/csky/abort-instr.h: Likewise.
4661 * sysdeps/csky/atomic-machine.h: Likewise.
4662 * sysdeps/csky/bits/endian.h: Likewise.
4663 * sysdeps/csky/bits/fenv.h: Likewise.
4664 * sysdeps/csky/bits/link.h: Likewise.
4665 * sysdeps/csky/bits/setjmp.h: Likewise.
4666 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4667 * sysdeps/csky/bsd-setjmp.S: Likewise.
4668 * sysdeps/csky/configure: Likewise.
4669 * sysdeps/csky/configure.ac: Likewise.
4670 * sysdeps/csky/dl-machine.h: Likewise.
4671 * sysdeps/csky/dl-procinfo.c: Likewise.
4672 * sysdeps/csky/dl-procinfo.h: Likewise.
4673 * sysdeps/csky/dl-sysdep.h: Likewise.
4674 * sysdeps/csky/dl-tls.h: Likewise.
4675 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4676 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4677 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4678 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4679 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4680 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4681 * sysdeps/csky/fpu/fegetround.c: Likewise.
4682 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4683 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4684 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4685 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4686 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4687 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4688 * sysdeps/csky/fpu/fesetround.c: Likewise.
4689 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4690 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4691 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4692 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4693 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4694 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4695 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4696 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4697 * sysdeps/csky/fpu_control.h: Likewise.
4698 * sysdeps/csky/gccframe.h: Likewise.
4699 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4700 * sysdeps/csky/ldsodefs.h: Likewise.
4701 * sysdeps/csky/libc-tls.c: Likewise.
4702 * sysdeps/csky/linkmap.h: Likewise.
4703 * sysdeps/csky/machine-gmon.h: Likewise.
4704 * sysdeps/csky/memusage.h: Likewise.
4705 * sysdeps/csky/nofpu/Implies: Likewise.
4706 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4707 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4708 * sysdeps/csky/nptl/Makefile: Likewise.
4709 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4710 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4711 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4712 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4713 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4714 * sysdeps/csky/nptl/tls.h: Likewise.
4715 * sysdeps/csky/preconfigure: Likewise.
4716 * sysdeps/csky/sfp-machine.h: Likewise.
4717 * sysdeps/csky/sotruss-lib.c: Likewise.
4718 * sysdeps/csky/stackinfo.h: Likewise.
4719 * sysdeps/csky/sysdep.h: Likewise.
4720 * sysdeps/csky/tininess.h: Likewise.
4721 * sysdeps/csky/tst-audit.h: Likewise.
4722 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4723 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4724 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4725 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4726 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4727 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4728 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4729 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4730 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4731 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4732 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4733 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4734 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4735 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4736 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4737 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4738 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4739 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4740 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4741 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4742 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4743 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4744 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4745 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4746 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4747 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4748 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4749 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4750 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4751 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4752 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4753 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4754 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4755 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4756 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4757 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4758 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4759 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4760 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4761 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4762 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4763 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4764 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4765 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4766
4767 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4768
4769 * include/time.h (__difftime64): Add.
4770 * time/difftime.c (subtract): convert to 64-bit time.
4771 * time/difftime.c (__difftime64): Add.
4772 * time/difftime.c (__difftime): Wrap around __difftime64.
4773
4774 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4775
4776 * manual/examples/add.c: Remove redundant "if not".
4777 * manual/examples/argp-ex1.c: Likewise.
4778 * manual/examples/argp-ex2.c: Likewise.
4779 * manual/examples/argp-ex3.c: Likewise.
4780 * manual/examples/argp-ex4.c: Likewise.
4781 * manual/examples/atexit.c: Likewise.
4782 * manual/examples/db.c: Likewise.
4783 * manual/examples/dir.c: Likewise.
4784 * manual/examples/dir2.c: Likewise.
4785 * manual/examples/execinfo.c: Likewise.
4786 * manual/examples/filecli.c: Likewise.
4787 * manual/examples/filesrv.c: Likewise.
4788 * manual/examples/fmtmsgexpl.c: Likewise.
4789 * manual/examples/genpass.c: Likewise.
4790 * manual/examples/inetcli.c: Likewise.
4791 * manual/examples/inetsrv.c: Likewise.
4792 * manual/examples/isockad.c: Likewise.
4793 * manual/examples/longopt.c: Likewise.
4794 * manual/examples/memopen.c: Likewise.
4795 * manual/examples/memstrm.c: Likewise.
4796 * manual/examples/mkdirent.c: Likewise.
4797 * manual/examples/mkfsock.c: Likewise.
4798 * manual/examples/mkisock.c: Likewise.
4799 * manual/examples/mygetpass.c: Likewise.
4800 * manual/examples/pipe.c: Likewise.
4801 * manual/examples/popen.c: Likewise.
4802 * manual/examples/rprintf.c: Likewise.
4803 * manual/examples/search.c: Likewise.
4804 * manual/examples/select.c: Likewise.
4805 * manual/examples/setjmp.c: Likewise.
4806 * manual/examples/sigh1.c: Likewise.
4807 * manual/examples/sigusr.c: Likewise.
4808 * manual/examples/stpcpy.c: Likewise.
4809 * manual/examples/strdupa.c: Likewise.
4810 * manual/examples/strftim.c: Likewise.
4811 * manual/examples/subopt.c: Likewise.
4812 * manual/examples/swapcontext.c: Likewise.
4813 * manual/examples/termios.c: Likewise.
4814 * manual/examples/testopt.c: Likewise.
4815 * manual/examples/testpass.c: Likewise.
4816 * manual/examples/timeval_subtract.c: Likewise.
4817
4818 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4819
4820 * sysdeps/x86/fpu/math_private.h: New file.
4821 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4822
4823 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4824 definition.
4825 (cosh): Likewise.
4826 (tanh): Likewise.
4827
4828 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4829
4830 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4831 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4832 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4833 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4834 fields.
4835 (_dl_show_auxv): Give a special treatment to
4836 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4837 and AT_L3_CACHEGEOMETRY.
4838 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4839 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4840 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4841 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4842
4843 2018-12-19 Andreas Schwab <schwab@suse.de>
4844
4845 * nscd/connections.c (check_use): Don't abort on invalid len.
4846
4847 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4848
4849 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4850 values in the 64bit value cases.
4851
4852 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4853
4854 * include/time.h
4855 (__ctime64_r): Add.
4856 * time/ctime_r.c
4857 (__ctime64_r): Add.
4858 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4859
4860 * include/time.h
4861 (__ctime64): Add.
4862 * time/gmtime.c
4863 (__ctime64): Add.
4864 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4865
4866 * include/time.h
4867 (__gmtime64_r): Add.
4868 * time/gmtime.c
4869 (__gmtime64_r): Add.
4870 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4871
4872 * include/time.h
4873 (__gmtime64): Add.
4874 * time/gmtime.c
4875 (__gmtime64): Add.
4876 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4877
4878 * include/time.h
4879 (__localtime64_r): Add.
4880 * time/localtime.c
4881 (__localtime64_r): Add.
4882 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4883
4884 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4885
4886 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4887 kernel_sigction definition.
4888
4889 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4890
4891 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4892
4893 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4894 __syscall_rt_sigaction.
4895 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4896 (kernel_sigaction): Use Linux generic defintion.
4897 (STUB): Define.
4898 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4899 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4900 (__syscall_rt_sigaction): Remove implementation.
4901 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4902 hidden.
4903 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4904 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4905 INTERNAL_SYSCALL): Remove definitions.
4906 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4907 action and signal set size.
4908 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4909 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4910
4911 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4912 James Clarke <jrtc27@jrtc27.com>
4913
4914 [BZ #23967]
4915 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4916 Define if SA_RESTORER is defined.
4917 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4918 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4919 already defined.
4920 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4921 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4922 definitions.
4923 (HAS_SA_RESTORER): Define.
4924 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4925 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4926 (HAS_SA_RESTORER): Define.
4927 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4928 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4929 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4930 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4931 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4932
4933 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4934
4935 * sysdeps/unix/sysv/linux/kernel-features.h
4936 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4937 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4938 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4939 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4940 (__ASSUME_ST_INO_64_BIT): Likewise.
4941 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4942 <kernel-features.h>.
4943 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4944 Remove conditional code.
4945 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4946 <kernel-features.h>.
4947 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4948 Remove conditional code.
4949 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4950 <kernel-features.h>.
4951 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4952 Remove conditional code.
4953 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4954 <kernel-features.h>.
4955 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4956 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4957
4958 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4959
4960 * sysdeps/s390/multiarch/ifunc-resolve.h
4961 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4962 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4963 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4964 Delete macro definition.
4965 (s390_libc_ifunc_init): Rename to
4966 s390_libc_ifunc_expr_stfle_init.
4967 * sysdeps/s390/bzero: Use
4968 s390_libc_ifunc_expr_stfle_init instead of
4969 s390_libc_ifunc_init.
4970 * sysdeps/s390/memcmp.c: Likewise.
4971 * sysdeps/s390/memcpy.c: Likewise.
4972 * sysdeps/s390/mempcpy.c: Likewise.
4973 * sysdeps/s390/memset.c: Likewise.
4974
4975 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4976
4977 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4978 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4979
4980 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4981
4982 * sysdeps/s390/multiarch/Makefile
4983 (sysdep_routines): Remove wmemcmp variants.
4984 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4985 * sysdeps/s390/multiarch/ifunc-impl-list.c
4986 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4987 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4988 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4989 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4990 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4991 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4992 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4993 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4994
4995 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4996
4997 * sysdeps/s390/multiarch/Makefile
4998 (sysdep_routines): Remove wmemset variants.
4999 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5000 * sysdeps/s390/multiarch/ifunc-impl-list.c
5001 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5002 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5003 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5004 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5005 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5006 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5007 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5008 * sysdeps/s390/ifunc-wmemset.h: New file.
5009
5010 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5011
5012 * sysdeps/s390/multiarch/Makefile
5013 (sysdep_routines): Remove wmemchr variants.
5014 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5015 * sysdeps/s390/multiarch/ifunc-impl-list.c
5016 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5017 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5018 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5019 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5020 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5021 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5022 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5023 * sysdeps/s390/ifunc-wmemchr.h: New file.
5024
5025 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5026
5027 * sysdeps/s390/multiarch/Makefile
5028 (sysdep_routines): Remove wcscspn variants.
5029 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5030 * sysdeps/s390/multiarch/ifunc-impl-list.c
5031 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5032 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5033 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5034 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5035 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5036 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5037 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5038 * sysdeps/s390/ifunc-wcscspn.h: New file.
5039
5040 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5041
5042 * sysdeps/s390/multiarch/Makefile
5043 (sysdep_routines): Remove wcspbrk variants.
5044 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5045 * sysdeps/s390/multiarch/ifunc-impl-list.c
5046 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5047 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5048 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5049 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5050 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5051 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5052 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5053 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5054
5055 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5056
5057 * sysdeps/s390/multiarch/Makefile
5058 (sysdep_routines): Remove wcsspn variants.
5059 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5060 * sysdeps/s390/multiarch/ifunc-impl-list.c
5061 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5062 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5063 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5064 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5065 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5066 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5067 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5068 * sysdeps/s390/ifunc-wcsspn.h: New file.
5069
5070 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5071
5072 * sysdeps/s390/multiarch/Makefile
5073 (sysdep_routines): Remove wcsrchr variants.
5074 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5075 * sysdeps/s390/multiarch/ifunc-impl-list.c
5076 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5077 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5078 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5079 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5080 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5081 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5082 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5083 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5084
5085 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5086
5087 * sysdeps/s390/multiarch/Makefile
5088 (sysdep_routines): Remove wcschrnul variants.
5089 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5090 * sysdeps/s390/multiarch/ifunc-impl-list.c
5091 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5092 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5093 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5094 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5095 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5096 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5097 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5098 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5099
5100 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5101
5102 * sysdeps/s390/multiarch/Makefile
5103 (sysdep_routines): Remove wcschr variants.
5104 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5105 * sysdeps/s390/multiarch/ifunc-impl-list.c
5106 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5107 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5108 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5109 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5110 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5111 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5112 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5113 * sysdeps/s390/ifunc-wcschr.h: New file.
5114
5115 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5116
5117 * sysdeps/s390/multiarch/Makefile
5118 (sysdep_routines): Remove wcsncmp variants.
5119 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5120 * sysdeps/s390/multiarch/ifunc-impl-list.c
5121 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5122 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5123 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5124 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5125 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5126 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5127 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5128 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5129
5130 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5131
5132 * sysdeps/s390/multiarch/Makefile
5133 (sysdep_routines): Remove wcscmp variants.
5134 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5135 * sysdeps/s390/multiarch/ifunc-impl-list.c
5136 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5137 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5138 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5139 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5140 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5141 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5142 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5143 * sysdeps/s390/ifunc-wcscmp.h: New file.
5144
5145 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5146
5147 * sysdeps/s390/multiarch/Makefile
5148 (sysdep_routines): Remove wcsncat variants.
5149 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5150 * sysdeps/s390/multiarch/ifunc-impl-list.c
5151 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5152 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5153 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5154 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5155 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5156 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5157 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5158 * sysdeps/s390/ifunc-wcsncat.h: New file.
5159
5160 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5161
5162 * sysdeps/s390/multiarch/Makefile
5163 (sysdep_routines): Remove wcscat variants.
5164 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5165 * sysdeps/s390/multiarch/ifunc-impl-list.c
5166 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5167 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5168 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5169 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5170 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5171 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5172 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5173 * sysdeps/s390/ifunc-wcscat.h: New file.
5174
5175 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5176
5177 * sysdeps/s390/multiarch/Makefile
5178 (sysdep_routines): Remove wcpncpy variants.
5179 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5180 * sysdeps/s390/multiarch/ifunc-impl-list.c
5181 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5182 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5183 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5184 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5185 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5186 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5187 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5188 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5189
5190 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5191
5192 * sysdeps/s390/multiarch/Makefile
5193 (sysdep_routines): Remove wcsncpy variants.
5194 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5195 * sysdeps/s390/multiarch/ifunc-impl-list.c
5196 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5197 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5198 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5199 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5200 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5201 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5202 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5203 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5204
5205 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5206
5207 * sysdeps/s390/multiarch/Makefile
5208 (sysdep_routines): Remove wcpcpy variants.
5209 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5210 * sysdeps/s390/multiarch/ifunc-impl-list.c
5211 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5212 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5213 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5214 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5215 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5216 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5217 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5218 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5219
5220 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5221
5222 * sysdeps/s390/multiarch/Makefile
5223 (sysdep_routines): Remove wcscpy variants.
5224 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5225 * sysdeps/s390/multiarch/ifunc-impl-list.c
5226 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5227 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5228 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5229 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5230 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5231 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5232 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5233 * sysdeps/s390/ifunc-wcscpy.h: New file.
5234
5235 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5236
5237 * sysdeps/s390/multiarch/Makefile
5238 (sysdep_routines): Remove wcsnlen variants.
5239 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5240 * sysdeps/s390/multiarch/ifunc-impl-list.c
5241 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5242 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5243 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5244 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5245 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5246 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5247 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5248 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5249
5250 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5251
5252 * sysdeps/s390/multiarch/Makefile
5253 (sysdep_routines): Remove wcslen variants.
5254 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5255 * sysdeps/s390/multiarch/ifunc-impl-list.c
5256 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5257 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5258 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5259 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5260 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5261 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5262 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5263 * sysdeps/s390/ifunc-wcslen.h: New file.
5264
5265 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5266
5267 * sysdeps/s390/multiarch/Makefile
5268 (sysdep_routines): Remove memrchr variants.
5269 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5270 * sysdeps/s390/multiarch/ifunc-impl-list.c
5271 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5272 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5273 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5274 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5275 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5276 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5277 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5278 * sysdeps/s390/ifunc-memrchr.h: New file.
5279
5280 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5281
5282 * sysdeps/s390/multiarch/Makefile
5283 (sysdep_routines): Remove memccpy variants.
5284 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5285 * sysdeps/s390/multiarch/ifunc-impl-list.c
5286 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5287 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5288 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5289 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5290 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5291 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5292 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5293 * sysdeps/s390/ifunc-memccpy.h: New file.
5294
5295 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5296
5297 * sysdeps/s390/multiarch/Makefile
5298 (sysdep_routines): Remove rawmemchr variants.
5299 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5300 * sysdeps/s390/multiarch/ifunc-impl-list.c
5301 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5302 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5303 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5304 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5305 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5306 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5307 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5308 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5309
5310 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5311
5312 * sysdeps/s390/multiarch/Makefile
5313 (sysdep_routines): Remove memchr variants.
5314 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5315 * sysdeps/s390/multiarch/ifunc-impl-list.c
5316 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5317 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5318 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5319 * sysdeps/s390/multiarch/memchr.c: Move to ...
5320 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5321 * sysdeps/s390/ifunc-memchr.h: New file.
5322 * sysdeps/s390/s390-64/memchr.S: Move to ...
5323 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5324 for 31/64bit and ifunc handling.
5325 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5326 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5327 * sysdeps/s390/s390-32/memchr.S: Likewise.
5328
5329 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5330
5331 * sysdeps/s390/multiarch/Makefile
5332 (sysdep_routines): Remove strcspn variants.
5333 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5334 * sysdeps/s390/multiarch/ifunc-impl-list.c
5335 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5336 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5337 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5338 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5339 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5340 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5341 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5342 * sysdeps/s390/ifunc-strcspn.h: New file.
5343
5344 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5345
5346 * sysdeps/s390/multiarch/Makefile
5347 (sysdep_routines): Remove strpbrk variants.
5348 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5349 * sysdeps/s390/multiarch/ifunc-impl-list.c
5350 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5351 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5352 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5353 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5354 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5355 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5356 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5357 * sysdeps/s390/ifunc-strpbrk.h: New file.
5358
5359 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5360
5361 * sysdeps/s390/multiarch/Makefile
5362 (sysdep_routines): Remove strspn variants.
5363 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5364 * sysdeps/s390/multiarch/ifunc-impl-list.c
5365 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5366 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5367 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5368 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5369 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5370 * sysdeps/s390/multiarch/strspn.c: Move to ...
5371 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5372 * sysdeps/s390/ifunc-strspn.h: New file.
5373
5374 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5375
5376 * sysdeps/s390/multiarch/Makefile
5377 (sysdep_routines): Remove strrchr variants.
5378 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5379 * sysdeps/s390/multiarch/ifunc-impl-list.c
5380 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5381 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5382 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5383 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5384 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5385 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5386 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5387 * sysdeps/s390/ifunc-strrchr.h: New file.
5388
5389 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5390
5391 * sysdeps/s390/multiarch/Makefile
5392 (sysdep_routines): Remove strchrnul variants.
5393 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5394 * sysdeps/s390/multiarch/ifunc-impl-list.c
5395 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5396 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5397 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5398 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5399 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5400 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5401 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5402 * sysdeps/s390/ifunc-strchrnul.h: New file.
5403
5404 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5405
5406 * sysdeps/s390/multiarch/Makefile
5407 (sysdep_routines): Remove strchr variants.
5408 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5409 * sysdeps/s390/multiarch/ifunc-impl-list.c
5410 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5411 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5412 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5413 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5414 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5415 * sysdeps/s390/multiarch/strchr.c: Move to ...
5416 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5417 * sysdeps/s390/ifunc-strchr.h: New file.
5418
5419 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5420
5421 * sysdeps/s390/multiarch/Makefile
5422 (sysdep_routines): Remove strncmp variants.
5423 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5424 * sysdeps/s390/multiarch/ifunc-impl-list.c
5425 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5426 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5427 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5428 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5429 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5430 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5431 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5432 * sysdeps/s390/ifunc-strncmp.h: New file.
5433
5434 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5435
5436 * sysdeps/s390/multiarch/Makefile
5437 (sysdep_routines): Remove strcmp variants.
5438 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5439 * sysdeps/s390/multiarch/ifunc-impl-list.c
5440 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5441 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5442 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5443 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5444 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5445 * sysdeps/s390/ifunc-strcmp.h: New file.
5446 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5447 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5448 for 31/64bit and ifunc handling.
5449 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5450 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5451 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5452
5453 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5454
5455 * sysdeps/s390/multiarch/Makefile
5456 (sysdep_routines): Remove strncat variants.
5457 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5458 * sysdeps/s390/multiarch/ifunc-impl-list.c
5459 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5460 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5461 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5462 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5463 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5464 * sysdeps/s390/multiarch/strncat.c: Move to ...
5465 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5466 * sysdeps/s390/ifunc-strncat.h: New file.
5467
5468 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5469
5470 * sysdeps/s390/multiarch/Makefile
5471 (sysdep_routines): Remove strcat variants.
5472 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5473 * sysdeps/s390/multiarch/ifunc-impl-list.c
5474 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5475 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5476 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5477 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5478 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5479 * sysdeps/s390/multiarch/strcat.c: Move to ...
5480 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5481 * sysdeps/s390/ifunc-strcat.h: New file.
5482
5483 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5484
5485 * sysdeps/s390/multiarch/Makefile
5486 (sysdep_routines): Remove stpncpy variants.
5487 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5488 * sysdeps/s390/multiarch/ifunc-impl-list.c
5489 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5490 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5491 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5492 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5493 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5494 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5495 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5496 * sysdeps/s390/ifunc-stpncpy.h: New file.
5497
5498 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5499
5500 * sysdeps/s390/multiarch/Makefile
5501 (sysdep_routines): Remove strncpy variants.
5502 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5503 * sysdeps/s390/multiarch/ifunc-impl-list.c
5504 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5505 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5506 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5507 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5508 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5509 * sysdeps/s390/ifunc-strncpy.h: New file.
5510 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5511 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5512 and adjust ifunc handling.
5513 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5514 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5515 and adjust ifunc handling.
5516 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5517 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5518
5519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5520
5521 * sysdeps/s390/multiarch/Makefile
5522 (sysdep_routines): Remove stpcpy variants.
5523 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5524 * sysdeps/s390/multiarch/ifunc-impl-list.c
5525 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5526 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5527 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5528 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5529 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5530 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5531 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5532 * sysdeps/s390/ifunc-stpcpy.h: New file.
5533
5534 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5535
5536 * sysdeps/s390/multiarch/Makefile
5537 (sysdep_routines): Remove strcpy variants.
5538 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5539 * sysdeps/s390/multiarch/ifunc-impl-list.c
5540 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5541 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5542 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5543 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5544 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5545 * sysdeps/s390/ifunc-strcpy.h: New file.
5546 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5547 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5548 for 31/64bit and ifunc handling.
5549 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5550 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5551 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5552
5553 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5554
5555 * sysdeps/s390/multiarch/Makefile
5556 (sysdep_routines): Remove strnlen variants.
5557 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5558 * sysdeps/s390/multiarch/ifunc-impl-list.c
5559 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5560 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5561 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5562 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5563 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5564 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5565 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5566 * sysdeps/s390/ifunc-strnlen.h: New file.
5567
5568 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5569
5570 * sysdeps/s390/multiarch/Makefile
5571 (sysdep_routines): Remove strlen variants.
5572 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5573 * sysdeps/s390/multiarch/ifunc-impl-list.c
5574 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5575 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5576 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5577 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5578 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5579 * sysdeps/s390/multiarch/strlen.c: Move to ...
5580 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5581 * sysdeps/s390/ifunc-strlen.h: New file.
5582
5583 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5584
5585 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5586 * sysdeps/s390/multiarch/ifunc-impl-list.c
5587 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5588 * sysdeps/s390/ifunc-memmem.h: New file.
5589 * sysdeps/s390/memmem.c: Likewise.
5590 * sysdeps/s390/memmem-c.c: Likewise.
5591 * sysdeps/s390/memmem-vx.c: Likewise.
5592
5593 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5594
5595 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5596 * sysdeps/s390/multiarch/ifunc-impl-list.c
5597 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5598 * sysdeps/s390/ifunc-strstr.h: New file.
5599 * sysdeps/s390/strstr.c: Likewise.
5600 * sysdeps/s390/strstr-c.c: Likewise.
5601 * sysdeps/s390/strstr-vx.c: Likewise.
5602
5603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5604
5605 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5606 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5607 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5608 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5609 New defines.
5610 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5611 * sysdeps/s390/memmove-c.c: New file.
5612 * sysdeps/s390/memmove.c: Likewise.
5613 * sysdeps/s390/multiarch/ifunc-impl-list.c
5614 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5615
5616 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5617
5618 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5619 * sysdeps/s390/configure.ac: Add check for z13 support.
5620 * sysdeps/s390/configure: Regenerated.
5621
5622 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5623
5624 * sysdeps/s390/memcopy.h: New file.
5625
5626 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5627
5628 * sysdeps/s390/s390-32/bcopy.S: Remove.
5629 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5630
5631 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5632
5633 * sysdeps/s390/ifunc-memcpy.h: New File.
5634 * sysdeps/s390/memcpy.S: Move to ...
5635 * sysdeps/s390/memcpy-z900.S ... here.
5636 Move implementations from memcpy-s390x.s to here.
5637 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5638 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5639 Remove memcpy/mempcpy variants.
5640 * sysdeps/s390/Makefile (sysdep_routines):
5641 Add memcpy/mempcpy variants.
5642 * sysdeps/s390/multiarch/ifunc-impl-list.c
5643 (__libc_ifunc_impl_list): Adjust ifunc variants for
5644 memcpy and mempcpy.
5645 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5646 to ...
5647 * sysdeps/s390/memcpy.c: ... here.
5648 Adjust ifunc variants for memcpy.
5649 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5650 * sysdeps/s390/mempcpy.c: ... here.
5651 Adjust ifunc variants for mempcpy.
5652 * sysdeps/s390/mempcpy.S: Delete file.
5653
5654 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5655
5656 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5657 * sysdeps/s390/memcpy.S: ... here.
5658 Adjust to be usable for 31/64bit.
5659 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5660 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5661 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5662 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5663 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5664 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5665 Adjust to be usable for 31/64bit.
5666 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5667 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5668 * sysdeps/s390/multiarch/memcpy.c: ... here.
5669 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5670
5671 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5672
5673 * sysdeps/s390/ifunc-memcmp.h: New File.
5674 * sysdeps/s390/memcmp.S: Move to ...
5675 * sysdeps/s390/memcmp-z900.S ... here.
5676 Move implementations from memcmp-s390x.s to here.
5677 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5678 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5679 Remove memcmp variants.
5680 * sysdeps/s390/Makefile (sysdep_routines):
5681 Add memcmp variants.
5682 * sysdeps/s390/multiarch/ifunc-impl-list.c
5683 (__libc_ifunc_impl_list): Adjust ifunc variants for
5684 memcmp.
5685 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5686 to ...
5687 * sysdeps/s390/memcmp.c: ... here.
5688 Adjust ifunc variants for memcmp.
5689
5690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5691
5692 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5693 * sysdeps/s390/memcmp.S: ... here.
5694 Adjust to be usable for 31/64bit.
5695 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5696 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5697 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5698 Remove memcmp.
5699 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5700 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5701 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5702 Adjust to be usable for 31/64bit.
5703 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5704 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5705 * sysdeps/s390/multiarch/memcmp.c: ... here.
5706 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5707
5708 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5709
5710 * sysdeps/s390/s390-32/bzero.S: Delete file.
5711 * sysdeps/s390/s390-64/bzero.S: Likewise.
5712 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5713 * sysdeps/s390/bzero.c: New file.
5714 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5715 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5716 * sysdeps/s390/multiarch/ifunc-impl-list.c
5717 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5718
5719 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5720
5721 * sysdeps/s390/ifunc-memset.h: New File.
5722 * sysdeps/s390/memset.S: Move to ...
5723 * sysdeps/s390/memset-z900.S ... here.
5724 Move implementations from memset-s390x.s to here.
5725 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5726 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5727 Remove memset variants.
5728 * sysdeps/s390/Makefile (sysdep_routines):
5729 Add memset variants.
5730 * sysdeps/s390/multiarch/ifunc-impl-list.c
5731 (__libc_ifunc_impl_list): Adjust ifunc variants for
5732 memset.
5733 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5734 to ...
5735 * sysdeps/s390/memset.c: ... here.
5736 Adjust ifunc variants for memset.
5737
5738 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5739
5740 * sysdeps/s390/s390-64/memset.S: Move to ...
5741 * sysdeps/s390/memset.S: ... here.
5742 Adjust to be usable for 31/64bit.
5743 * sysdeps/s390/s390-32/memset.S: Delete File.
5744 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5745 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5746 Remove memset.
5747 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5748 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5749 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5750 Adjust to be usable for 31/64bit.
5751 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5752 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5753 * sysdeps/s390/multiarch/memset.c: ... here.
5754 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5755
5756 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5757
5758 * sysdeps/s390/multiarch/ifunc-resolve.h
5759 (s390_libc_ifunc_init, s390_libc_ifunc,
5760 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5761
5762 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5763
5764 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5765 * sysdeps/s390/configure.ac: Add check for z10 support.
5766 * sysdeps/s390/configure: Regenerated.
5767
5768 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5769
5770 * sysdeps/i386/atomic-machine.h: Merged with ...
5771 * sysdeps/x86_64/atomic-machine.h: To ...
5772 * sysdeps/x86/atomic-machine.h: This. New file.
5773
5774 2018-12-18 Florian Weimer <fweimer@redhat.com>
5775
5776 Rewrite locale/gen-translit.pl in Python.
5777 * locale/Makefile (generated): Add C-translit.h.
5778 (before-compile): Add $(objpfx)C-translit.h.
5779 (C-translit.h): Move to $(objpfx). Create target directory.
5780 Build using Python script.
5781 * locale/gen-translit.py: New file.
5782 * locale/gen-translit.pl: Remove file.
5783 * locale/C-translit.h.in: Change comment character to '#' for
5784 easier parsing without a C preprocessor.
5785 * locale/C-translit.h: Remove generated file.
5786 * manual/install.texi (Tools for Compilation): Do not mention
5787 C-translit.h.
5788 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5789 Remove locale/C-translit.h.
5790 * scripts/update-copyrights: Likewise.
5791 * INSTALL: Regenerate.
5792
5793 2018-12-18 Florian Weimer <fweimer@redhat.com>
5794
5795 [BZ #23995]
5796 * localedata/locales/bi_VU: Remove executable bit from file.
5797
5798 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5799
5800 * include/time.h
5801 (__localtime64): Add.
5802 * manual/maint.texi: Document Y2038 symbol handling.
5803 * time/localtime.c
5804 (__localtime64): Add.
5805 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5806
5807 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5808
5809 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5810 Do not clobber r12.
5811
5812 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5813 to allow extra macros from first or second sources.
5814 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5815 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5816 (tests-special): Add $(objpfx)tst-mman-consts.out.
5817 ($(objpfx)tst-mman-consts.out): New makefile target.
5818
5819 2018-12-17 Mao Han <han_mao@c-sky.com>
5820
5821 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5822 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5823 without stat64 system call support.
5824 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5825 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5826 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5827 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5828 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5829 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5830 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5831 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5832 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5833 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5834 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5835
5836 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5837
5838 regex: fix storage-exhaustion error
5839 [BZ #18040]
5840 * posix/regexec.c (get_subexp):
5841 Do not continue if storage is exhausted.
5842
5843 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5844
5845 regex: fix heap-use-after-free error
5846 [BZ #18040]
5847 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5848 https://debbugs.gnu.org/32592
5849 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5850 call extend_buffers which reallocates the re_string_t internal buffer.
5851 Local variable 'buf' was not updated in such case, resulting in
5852 use-after-free.
5853 * posix/regexec.c (get_subexp): Update 'buf' after call to
5854 get_subexp_sub.
5855
5856 2018-12-15 Florian Weimer <fweimer@redhat.com>
5857
5858 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5859 (minimum_stride_size): Use it.
5860 (support_blob_repeat_allocate): Likewise.
5861
5862 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5863
5864 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5865 definition.
5866 (acosh): Likewise.
5867 (atanh): Likewise.
5868
5869 2018-12-14 Florian Weimer <fweimer@redhat.com>
5870
5871 * manual/process.texi (Process Creation Concepts): Remove
5872 documentation of process (ID) lifetime. List more process
5873 creation functions. Reference Process Identification section.
5874 (Process Identification): Add information about process ID
5875 lifetime. Describe Linux thread/task IDs.
5876 * manual/signal.texi (Signaling Another Process): Mention that the
5877 signal is always sent to the process.
5878
5879 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5880
5881 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5882 and tst-ldbl-efgcvt.
5883 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5884 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5885 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5886 (fcvt_tests, output_error, output_r_error, do_test): Use the
5887 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5888 select the type of floating-point variables and arguments; to
5889 produce extra tests for double and conversion specifiers for
5890 printf; and to set the names of called functions.
5891 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5892 in tst-efgcvt-template.c.
5893 * misc/tst-ldbl-efgcvt.c: Likewise.
5894
5895 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5896
5897 * nss/Makefile (tst-nss-test3.out): New rule.
5898
5899 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5900
5901 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5902 clobber sp.
5903
5904 2018-12-13 fanjinke <fanjinke@hygon.cn>
5905
5906 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5907 "HygonGenuine".
5908
5909 2018-12-13 Andreas Schwab <schwab@suse.de>
5910
5911 [BZ #23861]
5912 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5913 (__pthread_rwlock_rdlock_full): Update expected value for
5914 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5915 * nptl/tst-rwlock-pwn.c: New file.
5916 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5917
5918 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5919
5920 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5921 definition.
5922
5923 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5924
5925 * benchtests/scripts/compare_bench.py (do_compare): write to
5926 stderr in casestat is not present.
5927 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5928 stderr in case timings field is not present. Also string showing
5929 the output filename goes into the stderr.
5930
5931 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5932
5933 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5934 and ZeroDivisorError exceptions.
5935 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5936 argument to loop through user provided statistics.
5937 * benchtests/scripts/compare_bench.py (main): Include the --stats
5938 argument.
5939
5940 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5941
5942 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5943 instead of return.
5944
5945 2018-12-12 Florian Weimer <fweimer@redhat.com>
5946
5947 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5948 clause to copyright header.
5949
5950 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5951
5952 [BZ #23614]
5953 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5954 registers saved in the stack frame.
5955 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5956 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5957
5958 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5959
5960 * include/bits/monetary-ldbl.h: New file.
5961 * include/bits/printf-ldbl.h: Likewise.
5962 * include/bits/stdio-ldbl.h: Likewise.
5963 * include/bits/stdlib-ldbl.h: Likewise.
5964 * include/bits/syslog-ldbl.h: Likewise.
5965 * include/bits/wchar-ldbl.h: Likewise.
5966
5967 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5968
5969 * libio/libio.h: Remove redirection for _IO_vfprintf.
5970
5971 2018-12-11 Andreas Schwab <schwab@suse.de>
5972
5973 * Makerules: Remove all references to abilist-pattern.
5974 (update-all-abi): Simplify find expression.
5975
5976 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5977
5978 [BZ #23961]
5979 * math/auto-libm-test-in: Add new test case.
5980 * math/auto-libm-test-out-pow: Regenerated.
5981 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5982
5983 2018-12-10 DJ Delorie <dj@redhat.com>
5984
5985 [BZ #23948]
5986 * support/test-container.c: Move postclean step to before we
5987 change namespaces.
5988
5989 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5990
5991 * scripts/gen-as-const.py (main): Handle --python option.
5992 * scripts/gen-py-const.awk: Remove.
5993 * Makerules (py-const-script): Use gen-as-const.py.
5994 ($(py-const)): Likewise.
5995 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5996 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5997 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5998 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5999 ~PTHREAD_MUTEX_NO_ELISION_NP.
6000 * manual/README.pretty-printers: Update reference to
6001 gen-py-const.awk.
6002
6003 * scripts/glibcextract.py: New file.
6004 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6005 or tempfile. Import glibcexctract.
6006 (compute_c_consts): Remove. Moved to glibcextract.py.
6007 (gen_test): Update reference to compute_c_consts.
6008 (main): Likewise.
6009 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6010 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6011 * sysdeps/unix/sysv/linux/Makefile
6012 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6013 Redirect stderr as well as stdout.
6014
6015 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6016
6017 [BZ #19767]
6018 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6019 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6020 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6021 ALWAYS_USE_VSYSCALL.
6022 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6023 ALWAYS_USE_VSYSCALL.
6024 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6025 ALWAYS_USE_VSYSCALL.
6026
6027 2018-12-10 Florian Weimer <fweimer@redhat.com>
6028
6029 [BZ #23972]
6030 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6031 offset instead of count for clarity. Fix typo in comment.
6032 (__old_getdents64): Keep track of previous offset. Use it to call
6033 handle_overflow.
6034 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6035 that d_off is never zero.
6036
6037 2018-12-10 Andreas Schwab <schwab@suse.de>
6038
6039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6040 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6042 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6043 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6044
6045 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6046
6047 * timezone/private.h: Update from tzcode 2018g.
6048 * timezone/tzfile.h: Likewise.
6049 * timezone/tzselect.ksh: Likewise.
6050 * timezone/zdump.c: Likewise.
6051 * timezone/zic.c: Likewise.
6052
6053 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6054
6055 [BZ #23490]
6056 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6057 (do_test): Adjust buffer size and fix format.
6058
6059 2018-12-07 DJ Delorie <dj@redhat.com>
6060
6061 [BZ #23907]
6062 * malloc/tst-tcfree3.c: New.
6063 * malloc/Makefile: Add it.
6064
6065 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6066
6067 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6068
6069 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6070
6071 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6072 used as a mask for the mode argument of __vfscanf_internal and
6073 __vfwscanf_internal.
6074 * stdio-common/vfscanf-internal.c
6075 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6076 (__strtof128_internal): Define to __wcstof128_internal.
6077 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6078 __strtof128_internal or __wcstof128_internal when the format of
6079 long double is the same as _Float128.
6080
6081 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6082
6083 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6084 * posix/confstr.c (confstr): Rename to __confstr.
6085 (__confstr): Add hidden def.
6086 (confstr): Add weak alias for __confstr.
6087 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6088 confstr.
6089
6090 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6091
6092 * NEWS: Mention getcpu.
6093 * include/sched.h (__getcpu): New libc_hidden_proto.
6094 * manual/resource.texi: Document getcpu.
6095 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6096 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6097 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6098 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6099 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6100 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6101 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6102 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6103 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6104 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6105 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6106 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6107 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6108 Likewise.
6109 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6110 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6111 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6113 Likewise.
6114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6115 Likewise.
6116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6117 Likewise.
6118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6119 Likewise.
6120 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6121 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6122 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6123 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6124 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6125 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6126 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6127 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6128 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6129 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6130 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6131 Also check getcpu.
6132
6133 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6134
6135 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6136 functions.
6137 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6138
6139 2018-12-07 Florian Weimer <fweimer@redhat.com>
6140
6141 [BZ #17405]
6142 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6143 * posix/Versions (GLIBC_2.29): Export
6144 posix_spawn_file_actions_addfchdir_np.
6145 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6146 * posix/spawn_faction_destroy.c
6147 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6148 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6149 and the field action.fchdir_action.
6150 * posix/tst-spawn-chdir.c (add_chdir): New function.
6151 (do_test): Add do_fchdir loop. Call add_chdir.
6152 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6153 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6154 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6155 posix_spawn_file_actions_addfchdir_np.
6156 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6157 Likewise.
6158 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6159 Likewise.
6160 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6161 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6162 Likewise.
6163 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6164 Likewise.
6165 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6166 Likewise.
6167 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6168 Likewise.
6169 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6170 Likewise.
6171 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6172 Likewise.
6173 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6174 (GLIBC_2.29): Likewise.
6175 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6176 (GLIBC_2.29): Likewise.
6177 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6178 (GLIBC_2.29): Likewise.
6179 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6180 (GLIBC_2.29): Likewise.
6181 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6182 Likewise.
6183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6184 (GLIBC_2.29): Likewise.
6185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6186 (GLIBC_2.29): Likewise.
6187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6188 (GLIBC_2.29): Likewise.
6189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6190 (GLIBC_2.29): Likewise.
6191 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6192 Likewise.
6193 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6194 Likewise.
6195 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6196 Likewise.
6197 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6198 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6199 Likewise.
6200 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6201 Likewise.
6202 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6203 Likewise.
6204 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6205 Likewise.
6206
6207 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6208
6209 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6210 trailing whitespace removed.
6211 * scripts/config.guess: Update to version 2018-11-28.
6212 * scripts/config.sub: Update to version 2018-11-28.
6213 * scripts/install-sh: Update to version 2018-03-11.20.
6214 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6215 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6216
6217 2018-12-07 Florian Weimer <fweimer@redhat.com>
6218
6219 [BZ #23927]
6220 CVE-2018-19591
6221 * inet/tst-if_index-long.c: New file.
6222 * inet/Makefile (tests): Add tst-if_index-long.
6223
6224 2018-12-07 Florian Weimer <fweimer@redhat.com>
6225
6226 * support/check.h (support_record_failure_is_failed): Declare.
6227 * support/descriptors.h: New file.
6228 * support/support_descriptors.c: Likewise.
6229 * support/tst-support_descriptors.c: Likewise.
6230 * support/support_record_failure.c
6231 (support_record_failure_is_failed): New function.
6232 * support/Makefile (libsupport-routines): Add support_descriptors.
6233 (tests): Add tst-support_descriptors.
6234
6235 2018-12-05 Zack Weinberg <zackw@panix.com>
6236 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6237
6238 * stdio-common/vfprintf-internal.c
6239 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6240 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6241 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6242 and __no_long_double.
6243 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6244 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6245 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6246 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6247 and __nldbl_*syslog* functions.
6248 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6249 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6250 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6251 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6252 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6253 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6254 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6255 (__nldbl_vwprintf, __nldbl_wprintf):
6256 Directly call the appropriate __v*printf_internal routine, passing
6257 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6258 variable names.
6259 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6260 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6261 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6262 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6263 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6264 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6265 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6266 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6267 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6268 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6269 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6270 (__nldbl_syslog, __nldbl_vsyslog):
6271 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6272 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6273 appropriate.
6274 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6275 appropriate.
6276
6277 2018-12-05 Zack Weinberg <zackw@panix.com>
6278 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6279
6280 [BZ #11319]
6281 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6282 Moved here from debug/vsprintf_chk.c.
6283 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6284 and completion logic for the strfile to match exactly what
6285 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6286 _IO_str_init_static_internal instead of maxlen-1.
6287 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6288 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6289 __vsprintf_internal.
6290
6291 * debug/vsprintf_chk.c (__vsprintf_chk)
6292 * debug/sprintf_chk.c (__sprintf_chk):
6293 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6294 'flags' argument is positive, and slen as maxlen. No need to lock
6295 the FILE and/or construct a temporary FILE. Minimize and normalize
6296 header inclusions and variable names. Do not libc_hidden_def anything.
6297
6298 * debug/asprintf_chk.c (__asprintf_chk)
6299 * debug/dprintf_chk.c (__dprintf_chk)
6300 * debug/fprintf_chk.c (__fprintf_chk)
6301 * debug/fwprintf_chk.c (__fwprintf_chk)
6302 * debug/printf_chk.c (__printf_chk)
6303 * debug/snprintf_chk.c (__snprintf_chk)
6304 * debug/swprintf_chk.c (__swprintf_chk)
6305 * debug/vasprintf_chk.c (__vasprintf_chk)
6306 * debug/vdprintf_chk.c (__vdprintf_chk)
6307 * debug/vfprintf_chk.c (__vfprintf_chk)
6308 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6309 * debug/vprintf_chk.c (__vprintf_chk)
6310 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6311 * debug/vswprintf_chk.c (__vswprintf_chk)
6312 * debug/vwprintf_chk.c (__vwprintf_chk)
6313 * debug/wprintf_chk.c (__wprintf_chk):
6314 Directly call the corresponding vxxprintf_internal function, passing
6315 PRINTF_FORTIFY if 'flag' argument is positive. 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/obprintf_chk.c (__obstack_printf_chk): Directly call
6320 __obstack_vprintf_internal.
6321 (__obstack_vprintf_chk): Convert into a wrapper that calls
6322 __obstack_vprintf_internal (these two functions already had the
6323 same code) and move to new file...
6324 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6325 file.
6326 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6327 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6328 * debug/Makefile (routines): Add vobprintf_chk.
6329
6330 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6331 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6332 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6333 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6334 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6335 (__nldbl___obstack_vfprintf_chk):
6336 Directly call the corresponding vxxprintf_internal function,
6337 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6338 duplicate comparison of slen with 0 or maxlen from the corresponding
6339 non-__nldbl function.
6340
6341 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6342 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6343 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6344 Remove libc_hidden_proto.
6345
6346 * stdio-common/vfprintf-internal.c
6347 (__vfprintf_internal, __vfwprintf_internal):
6348 Do not check _IO_FLAGS2_FORTIFY.
6349 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6350 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6351 a comment explaining why it has the maxlen argument.
6352 (_IO_acquire_lock_clear_flags2_fct): Remove.
6353 (_IO_acquire_lock_clear_flags2): Remove.
6354 (_IO_release_lock): Remove conditional statement which will
6355 now never execute.
6356 (_IO_acquire_lock): Remove variable which is now unused.
6357 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6358 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6359
6360 * stdio-common/Makefile (tests): Add tst-bz11319 and
6361 tst-bz11319-fortify2.
6362 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6363 * stdio-common/tst-bz11319-fortify2.c: New file.
6364 * stdio-common/tst-bz11319.c: Likewise.
6365
6366 2018-12-05 Zack Weinberg <zackw@panix.com>
6367 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6368
6369 * misc/syslog.c: Include libioP.h, not iolibio.h.
6370 (__vsyslog_internal): New function with the former body of
6371 __vsyslog_chk; takes mode_flags argument same as
6372 __v*printf_internal. Call __vfprintf_internal directly.
6373
6374 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6375 Remove libc_hidden_def.
6376 (__syslog, __syslog_chk): Use __vsyslog_internal.
6377 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6378
6379 * include/sys/syslog.h: Add multiple inclusion guard.
6380 Add prototype for __vsyslog_internal.
6381 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6382
6383 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6384 Use __vsyslog_internal.
6385
6386 2018-12-05 Zack Weinberg <zackw@panix.com>
6387 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6388
6389 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6390 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6391 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6392 New functions.
6393 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6394 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6395
6396 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6397 Include wctype.h here if COMPILE_WPRINTF is defined.
6398 Define __vfprintf_internal or __vfwprintf_internal, depending
6399 on COMPILE_WPRINTF.
6400 Temporarily, on entry to this function, update mode_flags
6401 according to the environmental settings corresponding to
6402 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6403 Throughout, check mode_flags instead of __ldbl_is_dbl and
6404 _IO_FLAGS2_FORTIFY on the destination FILE.
6405 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6406 Include vfprintf-internal.c. Don't include wctype.h.
6407 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6408 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6409 and vfprintf.
6410 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6411 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6412 and vfwprintf.
6413 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6414
6415 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6416 and add mode_flags argument; use __vfprintf_internal.
6417 (__vdprintf): New function. Alias vdprintf to this.
6418 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6419 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6420 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6421 (__obstack_printf): Use __obstack_printf_internal.
6422 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6423 public aliases __vsnprintf and vsnprintf.
6424 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6425 called internally.
6426 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6427 public aliases _IO_vsprintf and vsprintf.
6428 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6429 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6430 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6431 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6432 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6433
6434 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6435 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6436 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6437 * stdio-common/printf.c: Use __vfprintf_internal.
6438
6439 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6440 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6441 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6442
6443 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6444 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6445 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6446 __vfwprintf_internal.
6447
6448 * libio/libio.h: Remove libc_hidden_proto and declaration for
6449 _IO_vfprintf.
6450 Remove declaration of _IO_vfwprintf.
6451 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6452 _IO_vsprintf.
6453 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6454 _IO_obstack_printf.
6455 * include/stdio.h: Add prototype for __vasprintf.
6456 (__vsnprintf): Remove declaration, because there are no more
6457 internal calls.
6458 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6459 declaration, because there are no more internal calls.
6460
6461 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6462 __vsnprintf_internal, instead of _IO_vsnprintf.
6463 * argp/argp-help.c (__argp_error, __argp_failure): Use
6464 __vasprintf_internal, instead of _IO_vasprintf.
6465 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6466 redefine, because there are no more internal calls.
6467
6468 2018-12-05 Zack Weinberg <zackw@panix.com>
6469 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6470
6471 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6472 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6473 Include libio/strfile.h instead of libioP.h.
6474 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6475 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6476 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6477 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6478 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6479 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6480 necessary. Do not set __no_long_double. Normalize variable names.
6481 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6482 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6483 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6484 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6485 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6486 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6487 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6488 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6489 Do not set __no_long_double. Normalize variable names.
6490
6491 2018-12-05 Zack Weinberg <zackw@panix.com>
6492 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6493
6494 * stdio-common/isoc99_scanf.c
6495 * stdio-common/isoc99_fscanf.c
6496 * stdio-common/isoc99_sscanf.c
6497 * stdio-common/isoc99_vscanf.c
6498 * stdio-common/isoc99_vfscanf.c
6499 * stdio-common/isoc99_vsscanf.c
6500 * wcsmbs/isoc99_wscanf.c
6501 * wcsmbs/isoc99_fwscanf.c
6502 * wcsmbs/isoc99_swscanf.c
6503 * wcsmbs/isoc99_vwscanf.c
6504 * wcsmbs/isoc99_vfwscanf.c
6505 * wcsmbs/isoc99_vswscanf.c:
6506 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6507 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6508 No need to lock and unlock the FILE passed to that function.
6509
6510 * stdio-common/vfscanf-internal.c
6511 (__vfscanf_internal, __vfwscanf_internal):
6512 Don't look at _IO_FLAGS2_SCANF_STD.
6513 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6514 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6515 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6516
6517 2018-12-05 Zack Weinberg <zackw@panix.com>
6518 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6519
6520 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6521 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6522 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6523 * libio/strfile.h: Add multiple inclusion guard.
6524 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6525
6526 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6527 consistency with the other version of this file.
6528 (ldbl_compat_symbol): New macro.
6529 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6530 New macro.
6531
6532 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6533 Define __vfscanf_internal or __vfwscanf_internal, depending on
6534 COMPILE_WSCANF; don't define any other public symbols.
6535 Remove errval and code to set errp.
6536 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6537 as the mode_flags argument.
6538 (encode_error, conv_error, input_error): Don't set errval.
6539 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6540 Include vfscanf-internal.c.
6541 * stdio-common/vfscanf.c: New file defining the public entry
6542 point vfscanf, which calls __vfscanf_internal.
6543 * stdio-common/vfwscanf.c: New file defining the public entry
6544 point vfwscanf, which calls __vfwscanf_internal.
6545
6546 * stdio-common/iovfscanf.c: New file.
6547 * stdio-common/iovfwscanf.c: Likewise.
6548
6549 * stdio-common/Makefile (routines): Add vfscanf-internal,
6550 vfwscanf-internal, iovfscanf, iovfwscanf.
6551 * stdio-common/Versions: Mention GLIBC_2.29, so that
6552 it can be used in SHLIB_COMPAT expressions.
6553 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6554 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6555 Call __vfscanf_internal, instead of _IO_vfscanf.
6556 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6557 _IO_vfscanf.
6558 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6559 _IO_vfwscanf.
6560
6561 * libio/iovsscanf.c: Clean up includes, when possible. Use
6562 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6563 __vfscanf_internal or __vfwscanf_internal directly.
6564 * libio/iovswscanf.c: Likewise.
6565 * libio/swscanf.c: Likewise.
6566 * libio/vscanf.c: Likewise.
6567 * libio/vwscanf.c: Likewise.
6568 * libio/wscanf.c: Likewise.
6569 * stdio-common/isoc99_fscanf.c: Likewise.
6570 * stdio-common/isoc99_scanf.c: Likewise.
6571 * stdio-common/isoc99_sscanf.c: Likewise.
6572 * stdio-common/isoc99_vfscanf.c: Likewise.
6573 * stdio-common/isoc99_vscanf.c: Likewise.
6574 * stdio-common/isoc99_vsscanf.c: Likewise.
6575 * stdio-common/scanf.c: Likewise.
6576 * stdio-common/sscanf.c: Likewise.
6577 * wcsmbs/isoc99_fwscanf.c: Likewise.
6578 * wcsmbs/isoc99_swscanf.c: Likewise.
6579 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6580 * wcsmbs/isoc99_vswscanf.c: Likewise.
6581 * wcsmbs/isoc99_vwscanf.c: Likewise.
6582 * wcsmbs/isoc99_wscanf.c: Likewise.
6583
6584 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6585
6586 * include/time.h
6587 (__tz_compute): Replace time_t with __time64_t.
6588 (__tz_convert): Replace time_t* with __time64_t.
6589 (__offtime): Replace time_t* with __time64_t.
6590 * time/gmtime.c
6591 (__gmtime_r): Adjust call to __tz_convert.
6592 (gmtime): Likewise.
6593 * time/localtime.c
6594 (__localtime_r): Likewise.
6595 (localtime): Likewise.
6596 * time/offtime.c: Replace time_t with __time64_t.
6597 * time/tzset.c: Likewise.
6598
6599 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6600
6601 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6602 dynamic linker unless [$(run-built-tests) = yes].
6603
6604 2018-12-03 DJ Delorie <dj@delorie.com>
6605
6606 * support/test-container.c (check_for_unshare_hints): New.
6607 (main): Call it if unshare fails. Add support for "su" scriptlet
6608 command.
6609
6610 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6611
6612 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6613 'START' to indicate that start text should be output.
6614 (gen_test): Likewise.
6615 (main): Generate 'START' for first symbol or '--' line, or at end
6616 of input if not previously generated.
6617
6618 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6619
6620 [BZ #19767]
6621 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6622 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6623 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6624 ALWAYS_USE_VSYSCALL.
6625
6626 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6627
6628 [BZ #23913]
6629 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6630 new_argv by one.
6631
6632 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6633
6634 [BZ #23923]
6635 * locale/programs/localedef.c: Declare boolean hard_links default true.
6636 (options): Add --no-hard-links option.
6637 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6638 * locale/programs/localedef.h: Declare prototype for hard_links.
6639 * locale/programs/locfile.c (write_locale_data): Don't use hard
6640 links if hard_links is false.
6641
6642 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6643
6644 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6645 cpu_features_basic.
6646 (__cache_sysconf): Likewise.
6647 (init_cacheinfo): Likewise.
6648 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6649 populate COMMON_CPUID_INDEX_80000007 and
6650 COMMON_CPUID_INDEX_80000008.
6651 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6652 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6653 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6654 (init_cpu_features): Use _Static_assert on
6655 index_arch_Fast_Unaligned_Load.
6656 __get_cpuid_registers and __get_arch_feature. Updated for
6657 cpu_features_basic. Set stepping in cpu_features.
6658 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6659 (FEATURE_INDEX_2): New.
6660 (FEATURE_INDEX_MAX): Changed to enum.
6661 (COMMON_CPUID_INDEX_D_ECX_1): New.
6662 (COMMON_CPUID_INDEX_80000007): Likewise.
6663 (COMMON_CPUID_INDEX_80000008): Likewise.
6664 (cpuid_registers): Likewise.
6665 (cpu_features_basic): Likewise.
6666 (CPU_FEATURE_USABLE): Likewise.
6667 (bit_arch_XXX_Usable): Likewise.
6668 (cpu_features): Use cpuid_registers and cpu_features_basic.
6669 (bit_arch_XXX): Reweritten.
6670 (bit_cpu_XXX): Likewise.
6671 (index_cpu_XXX): Likewise.
6672 (reg_XXX): Likewise.
6673 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6674 <support/check.h>.
6675 (CHECK_CPU_FEATURE): New.
6676 (CHECK_CPU_FEATURE_USABLE): Likewise.
6677 (cpu_kinds): Likewise.
6678 (do_test): Print vendor, family, model and stepping. Check
6679 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6680 (TEST_FUNCTION): Removed.
6681 Include <support/test-driver.c> instead of
6682 "../../test-skeleton.c".
6683 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6684 Check POPCNT instead of POPCOUNT.
6685 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6686
6687 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6688
6689 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6690 there is no element in `consts'.
6691
6692 2018-12-01 Florian Weimer <fweimer@redhat.com>
6693
6694 * support/support_capture_subprocess.c
6695 (support_capture_subprocess): Check that pipe descriptors have
6696 expected values. Close original pipe descriptors in subprocess.
6697
6698 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6699
6700 [BZ #23032]
6701 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6702 attr with __pthread_default_barrierattr.
6703 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6704 attr with __pthread_default_condattr.
6705 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6706 attr with __pthread_default_mutexattr.
6707 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6708 attr with __pthread_default_rwlockattr.
6709
6710 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6711
6712 * manual/tunables.texi (POSIX Thread Tunables): New node.
6713 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6714 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6715 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6716 __pthread_tunables_init.
6717 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6718 (max_adaptive_count): Define.
6719 * nptl/pthread_mutex_conf.c: New file.
6720 * nptl/pthread_mutex_conf.h: New file.
6721 * sysdeps/generic/adaptive_spin_count.h: New file.
6722 * sysdeps/nptl/dl-tunables.list: New file.
6723 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6724 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6725 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6726 Likewise.
6727
6728 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6729
6730 [BZ #20544]
6731 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6732 * stdlib/on_exit.c (__on_exit): Likewise.
6733 * stdlib/Makefile (tests): Add tst-bz20544.
6734 * stdlib/tst-bz20544.c: New test.
6735
6736 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6737
6738 [BZ #19767]
6739 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6740 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6741 New.
6742
6743 2018-11-30 Florian Weimer <fweimer@redhat.com>
6744
6745 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6746 Extend error logging.
6747 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6748 symbol.
6749
6750 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6751
6752 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6753 __sigismember instead of sigismember.
6754 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6755 cancel_handler): New definitions.
6756 (do_system): Use posix_spawn instead of fork and execl and remove
6757 reentracy code.
6758 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6759 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6760 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6761 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6762 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6763 * sysdeps/unix/sysv/linux/system.c: Likewise.
6764
6765 [BZ #22834]
6766 [BZ #17490]
6767 * NEWS: Add new semantic for atfork with popen and system.
6768 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6769 fork and execl.
6770
6771 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6772
6773 [BZ #23690]
6774 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6775 modification order when accessing reloc_result->addr.
6776 * include/link.h (reloc_result): Add field init.
6777 * nptl/Makefile (tests): Add tst-audit-threads.
6778 (modules-names): Add tst-audit-threads-mod1 and
6779 tst-audit-threads-mod2.
6780 Add rules to build tst-audit-threads.
6781 * nptl/tst-audit-threads-mod1.c: New file.
6782 * nptl/tst-audit-threads-mod2.c: Likewise.
6783 * nptl/tst-audit-threads.c: Likewise.
6784 * nptl/tst-audit-threads.h: Likewise.
6785
6786 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6787
6788 * scripts/gen-as-const.py: New file.
6789 * scripts/gen-as-const.awk: Remove.
6790 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6791 gen-as-const.py.
6792 ($(objpfx)test-as-const-%.c): Likewise.
6793
6794 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6795
6796 * elf/dl-exception.c: Include <_itoa.h>.
6797
6798 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6799
6800 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6801 returned by __f_setlk.
6802
6803 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6804 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6805
6806 * elf/Makefile (tests-internal): Add tst-create_format1.
6807 * elf/dl-exception.c (_dl_exception_create_format): Support
6808 %x, %lx and %zx.
6809 * elf/tst-create_format1.c: New file.
6810
6811 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6812
6813 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6814 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6815 gnulib.)
6816 * argp/argp-help.c (__argp_failure): Likewise.
6817
6818 2018-11-29 Mao Han <han_mao@c-sky.com>
6819
6820 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6821 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6822 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6823 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6824 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6825 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6826 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6827 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6828 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6829 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6830 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6831 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6832 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6833 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6834 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6835 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6836 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6837 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6838 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6839 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6840 (R_CKCORE_TLS_TPOFF32): New defines.
6841
6842 2018-11-29 Florian Weimer <fweimer@redhat.com>
6843
6844 * posix/Makefile (before-compile): Remove testcases.h and
6845 ptestcases.h.
6846 (generated): Add testcases.h and ptestcases.h.
6847 (testcases.h, ptestcases.h): Move to $(objpfx).
6848 (runtests.o): Add dependency on testcases.h.
6849 (runptests.o): Add dependency on ptestcases.h.
6850 * posix/testcases.h, posix/ptestcases.h: Remove files.
6851 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6852 not touch posix/testcases.h and posix/ptestcases.h.
6853
6854 2018-11-28 Florian Weimer <fweimer@redhat.com>
6855
6856 support: Add signal support to support_capture_subprocess_check.
6857 * support/capture_subprocess.h (support_capture_subprocess_check):
6858 Adjust comment and rename parameter.
6859 * support/support_capture_subprocess_check.c
6860 (print_actual_status): New function.
6861 (support_capture_subprocess_check): Support negative
6862 status_or_signal. Call print_actual_status.
6863 * support/tst-support_capture_subprocess.c (do_test): Call
6864 support_capture_subprocess_check.
6865 * libio/tst-vtables-common.c (termination_status)
6866 (init_termination_status): Remove.
6867 (check_for_termination): Adjust support_capture_subprocess_check
6868 call.
6869 (do_test): Remove call to init_termination_status.
6870
6871 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6872
6873 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6874 source directory instead of a copy.
6875 (CommandList.create_copy_dir): Remove.
6876
6877 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6878
6879 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6880
6881 2018-11-28 Florian Weimer <fweimer@redhat.com>
6882
6883 * support/support.h (support_quote_string): Do not use str
6884 parameter name.
6885
6886 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6887
6888 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6889 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6890
6891 2018-11-27 Florian Weimer <fweimer@redhat.com>
6892
6893 * support/support.h (support_quote_string): Declare.
6894 * support/support_quote_string.c: New file.
6895 * support/tst-support_quote_string.c: Likewise.
6896 * support/Makefile (libsupport-routines): Add
6897 support_quote_string.
6898 (tests): Add tst-support_quote_string.
6899
6900 2018-11-27 Florian Weimer <fweimer@redhat.com>
6901
6902 [BZ #23927]
6903 CVE-2018-19591
6904 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6905 descriptor leak in case of ENODEV error.
6906
6907 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6908
6909 [BZ #19767]
6910 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6911 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6912 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6913
6914 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6915
6916 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6917 Error for unknown lines.
6918
6919 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6920
6921 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6922 Touch additional files.
6923
6924 2018-11-26 Florian Weimer <fweimer@redhat.com>
6925
6926 [BZ #23907]
6927 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6928 double-frees.
6929
6930 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6931
6932 [BZ #19767]
6933 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6934 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6935 SHARED. Include sysdep.h.
6936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6937 ALWAYS_USE_VSYSCALL.
6938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6939 ALWAYS_USE_VSYSCALL.
6940
6941 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6942
6943 [BZ #19767]
6944 * nptl/Makefile (tests-static): Add tst-cond11-static.
6945 (tests): Likewise.
6946 * nptl/tst-cond11-static.c: New File.
6947 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6948 tst-affinity-static.
6949 (tests): Likewise.
6950 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6951 instead of SHARED.
6952 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6953 (USE_VSYSCALL): Likewise.
6954 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6955 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6956 instead of SHARED.
6957 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6958 SHARED.
6959 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6960 New.
6961
6962 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6963
6964 [BZ #23915]
6965 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6966 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6967 Undefine.
6968
6969 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6970
6971 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6972 (tst-cet-legacy-1a-ARGS): New.
6973 ($(objpfx)tst-cet-legacy-1a): New target.
6974 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6975
6976 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6977
6978 * conform/conformtest.py (CompileSubTest.__init__): Set
6979 self.run_early to False.
6980 (ExecuteSubTest.__init__): Likewise.
6981 (HeaderTests.run): Try running all non-optional, non-XFAILed
6982 compilation tests in a single execution of the compiler.
6983
6984 * conform/conformtest.py (CompileSubTest): New class.
6985 (ExecuteSubTest): Likewise.
6986 (ElementTest.run): Rename to gen_subtests. Append tests to
6987 self.subtests instead of running them.
6988 (ConstantTest.run): Likewise.
6989 (SymbolTest.run): Likewise.
6990 (TypeTest.run): Likewise.
6991 (TagTest.run): Likewise.
6992 (FunctionTest.run): Likewise.
6993 (VariableTest.run): Likewise.
6994 (MacroFunctionTest.run): Likewise.
6995 (MacroStrTest.run): Likewise.
6996 (HeaderTests.handle_test_line): Generate subtests for tests.
6997 (HeaderTests.run): Run subtests for tests.
6998
6999 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7000
7001 * math/Versions (GLIBC_2.29): Add pow.
7002 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7003 symbol.
7004 * math/w_pow.c: New file.
7005 * sysdeps/i386/fpu/w_pow.c: New file.
7006 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7007 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7008 and add necessary aliases.
7009 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7010 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7011 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7012 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7013 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7014 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7015 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7016 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7017 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7018 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7019 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7020 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7021 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7022 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7023 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7028 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7029 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7030 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7031 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7032 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7033 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7034 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7035 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7036 __pow.
7037 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7038 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7039 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7040
7041 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7042
7043 * math/Versions (GLIBC_2.29): Add log2.
7044 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7045 symbol.
7046 * math/w_log2.c: New file.
7047 * sysdeps/i386/fpu/w_log2.c: New file.
7048 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7049 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7050 and add necessary aliases.
7051 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7052 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7053 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7054 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7055 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7056 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7057 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7058 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7059 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7060 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7061 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7062 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7063 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7064 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7065 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7067 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7070 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7071 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7072 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7073 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7074 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7075 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7076 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7077
7078 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7079
7080 * math/Versions (GLIBC_2.29): Add log.
7081 * math/w_log_compat.c (__log_compat): Change to versioned compat
7082 symbol.
7083 * math/w_log.c: New file.
7084 * sysdeps/i386/fpu/w_log.c: New file.
7085 * sysdeps/ia64/fpu/e_log.S: Update.
7086 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7087 and add necessary aliases.
7088 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7089 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7090 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7091 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7092 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7093 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7094 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7095 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7096 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7097 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7098 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7099 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7100 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7101 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7102 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7107 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7108 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7109 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7110 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7111 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7112 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7113 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7114 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7115 __log.
7116 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7117 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7118 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7119 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7120
7121 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7122
7123 * math/Versions (GLIBC_2.29): Add exp and exp2.
7124 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7125 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7126 * math/w_exp_compat.c (__exp_compat): Likewise.
7127 * math/w_exp.c: New file.
7128 * math/w_exp2.c: New file.
7129 * sysdeps/i386/fpu/w_exp.c: New file.
7130 * sysdeps/i386/fpu/w_exp2.c: New file.
7131 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7132 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7133 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7134 and add necessary aliases.
7135 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7136 and add necessary aliases.
7137 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7138 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7139 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7140 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7141 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7142 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7143 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7144 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7145 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7146 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7147 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7148 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7149 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7150 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7151 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7152 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7153 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7158 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7159 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7160 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7161 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7162 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7163 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7164 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7165 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7166 (__ieee754_exp): Rename to __exp.
7167 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7168 (__ieee754_exp): Rename to __exp.
7169 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7170 (__ieee754_exp): Rename to __exp.
7171 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7172 __exp.
7173 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7174
7175 2018-11-20 DJ Delorie <dj@redhat.com>
7176
7177 * malloc/malloc.c (tcache_entry): Add key field.
7178 (tcache_put): Set it.
7179 (tcache_get): Likewise.
7180 (_int_free): Check for double free in tcache.
7181 * malloc/tst-tcfree1.c: New.
7182 * malloc/tst-tcfree2.c: New.
7183 * malloc/Makefile: Run the new tests.
7184 * manual/probes.texi: Document memory_tcache_double_free probe.
7185
7186 * dlfcn/dlerror.c (check_free): Prevent double frees.
7187
7188 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7189
7190 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7191
7192 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7193
7194 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7195 in tests. Use names for format arguments.
7196 (ConstantTest.run): Likewise.
7197 (SymbolTest.run): Likewise.
7198 (TypeTest.run): Likewise.
7199 (TagTest.run): Likewise.
7200 (FunctionTest.run): Likewise.
7201 (VariableTest.run): Likewise.
7202 (MacroFunctionTest.run): Likewise.
7203 (MacroStrTest.run): Likewise.
7204 (HeaderTests.__init__): Set self.num_tests.
7205 (HeaderTests.handle_test_line): Set test.num. Increment
7206 self.num_tests.
7207
7208 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7209
7210 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7211 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7212 SEEK_SET.
7213
7214 2018-11-19 Mao Han <han_mao@c-sky.com>
7215
7216 * scripts/config.guess: Update to version 2018-08-29.
7217 * scripts/config.sub: Update to version 2018-08-29.
7218
7219 2018-11-19 Florian Weimer <fweimer@redhat.com>
7220
7221 support: Print timestamps in timeout handler.
7222 * support/support_test_main.c (print_timestamp): New function.
7223 (signal_handler): Use it to print the termination time and the
7224 time of the last write to standard output.
7225
7226 2018-11-16 Zack Weinberg <zackw@panix.com>
7227 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7228
7229 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7230 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7231 argument.
7232 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7233 and add flags argument. Check flags instead of __ldbl_is_dbl when
7234 deciding whether to set is_long_double.
7235 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7236 passing zero for flags argument.
7237 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7238
7239 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7240 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7241 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7242 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7243 variable names. Remove libc_hidden_def/libc_hidden_proto from
7244 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7245 longer called from within the library.
7246 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7247 for __nldbl___vstrfmon_l, declare it explicitly.
7248
7249 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7250
7251 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7252
7253 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7254 macros
7255 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7256 F_SETLK64, F_SETLKW64, respectively.
7257 * sysdeps/mach/hurd/f_setlk.c: New file.
7258 * sysdeps/mach/hurd/f_setlk.h: New file.
7259 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7260 f_setlk.
7261 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7262 (__libc_fcntl): Move non-flock operations to...
7263 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7264 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7265
7266 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7267
7268 mktime: DEBUG_MKTIME cleanup
7269 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7270 And it’s no longer needed now that glibc and Gnulib both have
7271 their own testing mechanisms for mktime.
7272 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7273
7274 mktime: fix non-EOVERFLOW errno handling
7275 [BZ#23789]
7276 mktime was not properly reporting failures when the underlying
7277 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7278 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7279 The problem could happen on non-glibc platforms, with Gnulib.
7280 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7281 (tm_diff): ... this simpler function, which does not change errno.
7282 All callers changed to deal with errno themselves.
7283 (ranged_convert, __mktime_internal): Return failure immediately if
7284 the underlying function reports any failure other than EOVERFLOW.
7285 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7286 gap code fails.
7287
7288 mktime: fix bug with Y2038 DST transition
7289 [BZ#23789]
7290 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7291 mishandle a DST transition that jumps over the Y2038 boundary.
7292 No such DST transitions are known so this is only a theoretical
7293 bug, but we might as well do things right.
7294
7295 mktime: make more room for overflow
7296 [BZ#23789]
7297 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7298 This is so that we can add tm_diff results to a previous guess,
7299 which will be useful in a later patch.
7300
7301 mktime: simplify offset guess
7302 [BZ#23789]
7303 * time/mktime.c (__mktime_internal): Omit excess precision.
7304
7305 mktime: new test for mktime failure
7306 [BZ#23789]
7307 Based on a test suggested by Albert Aribaud in:
7308 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7309 * time/Makefile (tests): Add bug-mktime4.
7310 * time/bug-mktime4.c: New file.
7311
7312 mktime: fix EOVERFLOW bug
7313 [BZ#23789]
7314 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7315 Include libc-config.h, not config.h, for __set_errno.
7316 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7317
7318 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7319
7320 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7321 __attribute_copy__ to copy attributes from name. Drop static qualifier
7322 to avoid warnings about leaf attribute not having effect on static
7323 functions.
7324
7325 2018-11-13 Florian Weimer <fweimer@redhat.com>
7326
7327 * malloc/malloc.c (fastbin_push_entry): New function.
7328 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7329 (REMOVE_FB): Remove macro.
7330 (_int_malloc): Use fastbin_pop_entry and reindent.
7331 (_int_free): Use fastbin_push_entry.
7332 (malloc_consolidate): Use atomic_exchange_acquire.
7333
7334 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7335
7336 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7337 alias attribute, not with strong_alias.
7338
7339 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7340 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7341 with additional parameter thread.
7342 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7343 in terms of __hidden_ver2.
7344 (hidden_tls_def): New macro.
7345 (libc_hidden_tls_def): Likewise.
7346 (rtld_hidden_tls_def): Likewise.
7347 (libm_hidden_tls_def): Likewise.
7348 (libmvec_hidden_tls_def): Likewise.
7349 (libresolv_hidden_tls_def): Likewise.
7350 (librt_hidden_tls_def): Likewise.
7351 (libdl_hidden_tls_def): Likewise.
7352 (libnss_files_hidden_tls_def): Likewise.
7353 (libnsl_hidden_tls_def): Likewise.
7354 (libnss_nisplus_hidden_tls_def): Likewise.
7355 (libutil_hidden_tls_def): Likewise.
7356 (libutil_hidden_tls_def): Likweise.
7357 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7358 libc_hidden_tls_def.
7359 (__sim_disabled_exceptions_thread): Likewise.
7360 (__sim_round_mode_thread): Likewise.
7361
7362 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7363 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7364 copy attributes from name.
7365
7366 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7367
7368 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7369 Use __attribute_copy__ to copy attributes from name.
7370
7371 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7372 with __hidden_ver1 call.
7373 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7374 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7375 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7376 (__cosf): Do not declare here.
7377 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7378 (__sincosf): Do not declare here.
7379 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7380 (__sinf): Do not declare here.
7381
7382 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7383 (__BIG_ENDIAN): Likewise.
7384 (__BYTE_ORDER): Likewise.
7385 (strong_alias): Likewise.
7386 (_strong_alias): Likewise.
7387
7388 2018-11-12 Florian Weimer <fweimer@redhat.com>
7389
7390 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7391 function. Move after the definition of in_smallbin_range. Do not
7392 use __builtin_expect for paths that lead to a noreturn function.
7393 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7394 because it is unclear whether this is in fact an unlikely
7395 condition.
7396 (_int_malloc, _int_free): Adjust.
7397 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7398 variables.
7399 * malloc/arena.c (heap_trim): Likewise.
7400
7401 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7402
7403 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7404 it, free it if needed.
7405 (reauthenticate): Test and use ccwdir.
7406 (child_init_port): In non-resetids case, test and use ccwdir.
7407 (child_chdir): New nested function to set ccwdir.
7408 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7409 * hurd/hurd/port.h (_hurd_port_move): New function.
7410 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7411 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7412 * hurd/Versions (_hurd_port_move): Export function.
7413 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7414 symbol.
7415 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7416 of dtablesize for allocating dtable_cloexec.
7417
7418 2018-11-09 Martin Sebor <msebor@redhat.com>
7419
7420 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7421 it's already defined.
7422 (_strong_alias): Use __attribute_copy__.
7423 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7424 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7425 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7426 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7427 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7428 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7429 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7430 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7431 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7432 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7433 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7434 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7435 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7436 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7437 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7438 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7439 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7440 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7441 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7442
7443 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7444
7445 * misc/tst-efgcvt.c: Include support/check.h and
7446 support/test-driver.c. Do not include test-skeleton.c.
7447 (error_count): Remove.
7448 (output_error): Replace increments to error_count with calls to
7449 support_record_failure.
7450 (output_r_error): Likewise.
7451 (special): Likewise.
7452 (do_test): Unconditionally return zero.
7453 (TEST_FUNCTION): Remove.
7454
7455 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7456
7457 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7458 not $(@D)/scratch.
7459 ($(linknamespace-header-tests)): Likewise.
7460
7461 * conform/conformtest.py: New file.
7462 * conform/conformtest.pl: Remove.
7463 * conform/GlibcConform.pm: Likewise.
7464 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7465 (KEYWORDS_C99): Likewise.
7466 (KEYWORDS): Likewise.
7467 * conform/Makefile ($(conformtest-header-tests)): Use
7468 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7469 option. Use --header instead of --headers.
7470 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7471 function entries.
7472 * conform/data/spawn.h-data: Likewise.
7473 * conform/data/fcntl.h-data (openat): Add space after function
7474 name.
7475 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7476 (wcscasecmp_l): Likewise.
7477 * conform/data/termios.h-data (c_cc): Add space after element
7478 name.
7479
7480 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7481
7482 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7483 instead of manually comparing and reporting mismatching strings.
7484 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7485 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7486
7487 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7488
7489 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7490 __ASSUME_SOCKETCALL.
7491 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7492 (__ASSUME_SOCKETCALL): Remove.
7493 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7494 (__ASSUME_SOCKETCALL): Likewise.
7495 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7496 (__ASSUME_SOCKETCALL): Likewise.
7497 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7498 (__ASSUME_SOCKETCALL): Likewise.
7499 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7500 (__ASSUME_SOCKETCALL): Likewise.
7501 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7502 (__ASSUME_SOCKETCALL): Likewise.
7503 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7504 (__ASSUME_SOCKETCALL): Likewise.
7505
7506 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7507
7508 [BZ #23509]
7509 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7510 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7511 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7512 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7513 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7514 lc_unknown.
7515
7516 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7517
7518 [BZ #17630]
7519 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7520
7521 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7522
7523 [BZ #23867]
7524 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7525 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7526 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7527 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7528
7529 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7530
7531 * support/support_test_compare_string.c
7532 (support_test_compare_string): Fix printf format.
7533
7534 2018-11-07 Florian Weimer <fweimer@redhat.com>
7535
7536 Implement TEST_COMPARE_STRING.
7537 * support/check.h (TEST_COMPARE_STRING): Define.
7538 (support_test_compare_string): Declare.
7539 * support/Makefile (libsupport-routines): Add
7540 support_test_compare_string.
7541 (tests): Add tst-test_compare_string.
7542 * support/support_test_compare_string.c: New file.
7543 * support/tst-test_compare_string.c: Likewise.
7544
7545 2018-11-07 Andreas Schwab <schwab@suse.de>
7546
7547 [BZ #23864]
7548 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7549 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7550 Undef.
7551
7552 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7553
7554 [BZ #23862]
7555 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7556 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7557 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7558 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7559 Likewise.
7560
7561 2018-11-06 Florian Weimer <fweimer@redhat.com>
7562
7563 [BZ #17405]
7564 * posix/Makefile (routines): Add spawn_faction_addchdir.
7565 (tests): Add tst-spawn-chdir.
7566 * posix/Versions (GLIBC_2.29): Add
7567 posix_spawn_file_actions_addchdir_np.
7568 * posix/spawn_faction_addchdir.c: New file.
7569 * posix/spawn_faction_destroy.c
7570 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7571 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7572 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7573 chdir_action.
7574 * posix/tst-spawn-chdir.c: New file.
7575 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7576 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7577 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7578 posix_spawn_file_actions_addchdir_np.
7579 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7580 Likewise.
7581 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7582 Likewise.
7583 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7584 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7585 Likewise.
7586 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7587 Likewise.
7588 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7589 Likewise.
7590 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7591 Likewise.
7592 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7593 Likewise.
7594 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7595 Likewise.
7596 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7597 (GLIBC_2.29): Likewise.
7598 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7599 (GLIBC_2.29): Likewise.
7600 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7601 (GLIBC_2.29): Likewise.
7602 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7603 (GLIBC_2.29): Likewise.
7604 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7605 Likewise.
7606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7607 (GLIBC_2.29): Likewise.
7608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7609 (GLIBC_2.29): Likewise.
7610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7611 (GLIBC_2.29): Likewise.
7612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7613 (GLIBC_2.29): Likewise.
7614 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7615 Likewise.
7616 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7617 Likewise.
7618 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7619 Likewise.
7620 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7621 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7622 Likewise.
7623 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7624 Likewise.
7625 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7626 Likewise.
7627 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7628 Likewise.
7629
7630 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7631
7632 * misc/Makefile (tests): Add tst-ldbl-error.
7633 * misc/tst-ldbl-error.c: New file.
7634
7635 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7636
7637 * misc/Makefile (tests): Add tst-ldbl-warn.
7638 * misc/tst-ldbl-warn.c: New file.
7639
7640 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7641
7642 * argp/Makefile (tests): Add tst-ldbl-argp.
7643 * argp/tst-ldbl-argp.c: New file.
7644
7645 2018-11-05 Arjun Shankar <arjun@redhat.com>
7646
7647 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7648 __gconv_path_elem and call __gconv_get_path unconditionally.
7649
7650 2018-11-05 Andreas Schwab <schwab@suse.de>
7651
7652 [BZ #22927]
7653 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7654 creating the first helper thread failed.
7655
7656 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7657
7658 * sysdeps/mach/hurd/msync.c: New file.
7659
7660 2018-11-02 Florian Weimer <fweimer@redhat.com>
7661
7662 * support/shell-container.c (copy_func): Call
7663 support_copy_file_range instead of copy_file_range to support
7664 cross-device copies.
7665
7666 2018-11-02 Florian Weimer <fweimer@redhat.com>
7667
7668 * support/test-container.c: Include <libc-pointer-arith.h> for
7669 ALIGN_UP.
7670
7671 2018-11-01 Zong Li <zong@andestech.com>
7672
7673 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7674 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7675 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7676 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7677
7678 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7679 variable to avoid overlap arguments.
7680
7681 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7682
7683 * posix/bug-regex22.c (main): Use puts with distinct error
7684 messages for unexpected success of re_compile_pattern, not printf
7685 with NULL argument to %s.
7686
7687 * stdio-common/bug22.c: Include <libc-diag.h>.
7688 (do_test): Disable -Wformat-overflow= warnings around fprintf
7689 calls outputting more than INT_MAX characters.
7690 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7691 around printf call with NULL %s argument.
7692
7693 [BZ #23848]
7694 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7695 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7696 Undefine.
7697 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7698 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7699 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7700 (__ASSUME_SENDTO_SYSCALL): Likewise.
7701 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7702 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7703 [!__arch64__].
7704 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7705 (__ASSUME_CONNECT_SYSCALL): Likewise.
7706 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7707 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7708 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7709 Define.
7710 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7711 Likewise.
7712 [__LINUX_KERNEL_VERSION >= 0x040400]
7713 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7714 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7715 Remove.
7716 (listen): Likewise.
7717 (setsockopt): Likewise.
7718
7719 2018-11-01 Fredrik Noring <noring@nocrew.org>
7720
7721 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7722 with the ISA override.
7723
7724 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7725
7726 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7727 #endif.
7728
7729 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7730
7731 * manual/errno.texi (EIEIO): Document how translators should
7732 translate the error message.
7733 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7734 printing trailing whitespaces refused by git.
7735 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7736 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7737 * hurd/Makefile (user-interfaces): Add pci.
7738
7739 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7740
7741 * conform/linknamespace.py: New file.
7742 * conform/linknamespace.pl: Remove file.
7743 * conform/Makefile ($(linknamespace-header-tests)): Use
7744 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7745 option.
7746
7747 2018-10-30 Florian Weimer <fweimer@redhat.com>
7748
7749 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7750 memory leaks.
7751
7752 2018-10-30 Florian Weimer <fweimer@redhat.com>
7753
7754 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7755
7756 2018-10-30 Florian Weimer <fweimer@redhat.com>
7757
7758 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7759 support_blob_repeat.
7760
7761 2018-10-30 Florian Weimer <fweimer@redhat.com>
7762
7763 Avoid spurious test failures in stdlib/test-bz22786.
7764 * support/Makefile (libsupport-routines): Add blob_repeat.
7765 (tests): Add tst-support_blob_repeat.
7766 * support/blob_repeat.h: New file.
7767 * support/blob_repeat.c: Likewise.
7768 * support/tst-support_blob_repeat.c: Likewise.
7769 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7770 support_blob_repeat_allocate.
7771
7772 2018-10-30 Andreas Schwab <schwab@suse.de>
7773
7774 [BZ #23125]
7775 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7776 Don't use tail call.
7777 * elf/tst-unwind-main.c: New file.
7778 * elf/Makefile (tests): Add tst-unwind-main.
7779 (CFLAGS-tst-unwind-main.c): Define.
7780
7781 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7782
7783 [BZ #23791]
7784 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7785 n_cs_precedes to 0.
7786 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7787
7788 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7789
7790 * conform/glibcconform.py: Do not import shutil.
7791 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7792 of mkdtemp.
7793
7794 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7795 critic_missing for versions before 3.4.
7796 * configure: Regenerated.
7797 * manual/install.texi (Tools for Compilation): Document
7798 requirement for Python to build glibc.
7799 * INSTALL: Regenerated.
7800 * Rules [PYTHON]: Make code unconditional.
7801 * benchtests/Makefile [PYTHON]: Likewise.
7802 * conform/Makefile [PYTHON]: Likewise.
7803 * manual/Makefile [PYTHON]: Likewise.
7804 * math/Makefile [PYTHON]: Likewise.
7805
7806 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7807
7808 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7809 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7810 answer to interrupt_operation, return EIEIO instead of EINTR.
7811 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7812 _hurd_intr_rpc_msg_about_to global point to start of controlled
7813 assembly snippet. Make it check canceled flag.
7814 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7815 the _hurd_intr_rpc_msg_about_to point.
7816 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7817 issue, remove cancel flag check.
7818
7819 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7820
7821 * scripts/build-many-glibcs.py: Remove compatibility for missing
7822 os.cpu_count and re.fullmatch.
7823
7824 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7825
7826 [BZ #23822]
7827 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7828 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7829 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7830
7831 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7832
7833 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7834 macro.
7835
7836 2018-10-25 Florian Weimer <fweimer@redhat.com>
7837
7838 [BZ #23562]
7839 [BZ #23821]
7840 XFAIL siginfo_t si_band conform test on sparc64.
7841 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7842 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7843 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7844 (conformtest-xfail-conds): Add sparc64-linux.
7845 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7846 sparc64.
7847 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7848
7849 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7850
7851 * elf/elf.h (NT_MIPS_DSP): New macro.
7852 (NT_MIPS_FP_MODE): Likewise.
7853
7854 2018-10-25 Zong Li <zong@andestech.com>
7855
7856 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7857 name by adding the file extension (.so).
7858
7859 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7860
7861 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7862 (test-xfail-ISO11/threads.h/linknamespace,
7863 test-xfail-ISO11/threads.h/conform): Add.
7864
7865 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7866
7867 * math/gen-libm-test.py: Import os.
7868 (ALL_FLOATS_MANUAL): New constant.
7869 (ALL_FLOATS_SUFFIX): Likewise.
7870 (Ulps.all_functions): New function.
7871 (real_all_ulps): Likewise.
7872 (generate_err_table_sub): Likewise.
7873 (generate_err_table): Likewise.
7874 (main): Handle -s and -m options.
7875 * manual/libm-err-tab.pl: Remove.
7876 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7877 instead of libm-err-tab.pl.
7878 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7879 != no].
7880 * manual/install.texi (Tools for Compilation): Document
7881 requirement for Python to build manual.
7882 * INSTALL: Regenerated.
7883
7884 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7885
7886 * bits/time64.h: New file.
7887 * include/time.h: Replace internal_time_t with __time64_t.
7888 * posix/bits/types (__time64_t): Add.
7889 * stdlib/Makefile: Add bits/time64.h to includes.
7890 * time/tzfile.c: Replace internal_time_t with __time64_t.
7891
7892 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7893
7894 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7895 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7896 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7897 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7898 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7899 prototype.
7900 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7901 * posix/spawn_faction_addclose.c
7902 (__posix_spawn_file_actions_addclose): Add hidden definition.
7903 * posix/spawn_faction_adddup2.c
7904 (__posix_spawn_file_actions_adddup2): Likewise.
7905 * posix/spawn_faction_destroy.c
7906 (__posix_spawn_file_actions_destroy): Likewise.
7907 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7908 Likewise.
7909 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7910 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7911 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7912 Likewise.
7913 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7914 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7915 Likewise.
7916
7917 2018-10-24 Andreas Schwab <schwab@suse.de>
7918
7919 [BZ #18093]
7920 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7921 format cache.
7922 * elf/cache.c (print_cache): Likewise.
7923
7924 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7925
7926 * bits/timesize.h: New file.
7927 * stdlib/Makefile (headers): Add bits/timesize.h.
7928 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7929 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7930 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7931 (__SEM_PAD_AFTER_TIME): Likewise.
7932 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7933 (__SHM_PAD_AFTER_TIME): Likewise.
7934 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7935 (__MSQ_PAD_BEFORE_TIME): Likewise.
7936 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7937 (__SEM_PAD_BEFORE_TIME): Likewise.
7938 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7939 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7940 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7941 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7942 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7943 (__MSQ_PAD_BEFORE_TIME): Likewise.
7944 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7945 (__SEM_PAD_BEFORE_TIME): Likewise.
7946 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7947 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7948 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7949 (__MSQ_PAD_BEFORE_TIME): Likewise.
7950 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7951 (__SEM_PAD_BEFORE_TIME): Likewise.
7952 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7953 (__SHM_PAD_BEFORE_TIME): Likewise.
7954 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7955 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7956 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7957
7958 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7959
7960 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7961 USE_RDTSCP is defined.
7962 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7963 USE_RDTSCP is defined.
7964
7965 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7966
7967 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7968 defined.
7969
7970 [BZ #23709]
7971 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7972 independently of other flags.
7973
7974 2018-10-23 Florian Weimer <fweimer@redhat.com>
7975
7976 * time/tst-mktime2.c (N_STRINGS): Remove.
7977 (set_timezone): New function.
7978 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7979 (mktime_test1): Report localtime failure and check errno value.
7980 Use TEST_COMPARE.
7981 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7982 (do_test): Remove alarm call. Use set_timezone and array_length.
7983
7984 2018-10-23 Andreas Schwab <schwab@suse.de>
7985
7986 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7987 (__start_context): Use END instead of PSEUDO_END.
7988
7989 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7990
7991 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7992 version to 4.19.
7993
7994 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7995 version to 4.19.
7996
7997 [BZ #23793]
7998 * wcsmbs/c32rtomb.c: New file.
7999 * wcsmbs/mbrtoc32.c: Likewise.
8000 * wcsmbs/tst-c32-state.c: Likewise.
8001 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8002 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8003 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8004 (tests): Add tst-c32-state.
8005 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8006 $(gen-locales).
8007
8008 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8009
8010 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8011 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8012
8013 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8014
8015 [BZ #23794]
8016 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8017 pair and return 0 in that case, and use saved character to
8018 interpret following character.
8019 * wcsmbs/tst-c16-surrogate.c: New file.
8020 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8021 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8022 Depend on $(gen-locales)
8023
8024 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8025
8026 [BZ #23562]
8027 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8028 (struct siginfo_t): Use correct type for si_band.
8029
8030 2018-10-19 Florian Weimer <fweimer@redhat.com>
8031
8032 [BZ #23689]
8033 * resource/bits/types/struct_rusage.h (struct rusage): Update
8034 comment on struct. Remove extraneous field comment.
8035
8036 2018-10-18 David S. Miller <davem@davemloft.net>
8037
8038 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8039 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8040 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8041 sysdep_routines in subdir elf.
8042 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8043 version for __vdso_clock_gettime.
8044 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8045 Define.
8046 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8047 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8048
8049 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8050
8051 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8052
8053 * sysdeps/i386/init-arch.h: Removed.
8054 * sysdeps/i386/i586/init-arch.h: Likewise.
8055 * sysdeps/i386/i686/init-arch.h: Likewise.
8056 * sysdeps/i386/i686/hp-timing.h: Likewise.
8057 * sysdeps/x86_64/hp-timing.h: Likewise.
8058 * sysdeps/i386/isa.h: New file.
8059 * sysdeps/i386/i586/isa.h: Likewise.
8060 * sysdeps/i386/i686/isa.h: Likewise.
8061 * sysdeps/x86_64/isa.h: Likewise.
8062 * sysdeps/x86/hp-timing.h: New file.
8063 * sysdeps/x86/init-arch.h: Include <isa.h>.
8064
8065 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8066
8067 * math/libm-test-pow.inc (pow_test_data): Do not allow
8068 divide-by-zero exception for pow(+/- 0, -Inf).
8069
8070 2018-10-17 Zack Weinberg <zackw@panix.com>
8071
8072 * manual/job.texi (Job Control is Optional): Remove node, as
8073 job control has not been optional in quite some time.
8074 (Job Control): Mention briefly that systems older than
8075 POSIX.1-2001 might not support job control.
8076 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8077 defined on systems conforming to POSIX.1-2001.
8078
8079 2018-10-17 Arjun Shankar <arjun@redhat.com>
8080
8081 [BZ #22062]
8082 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8083 indentation.
8084 * (__gconv_read_conf): Mark function static.
8085 * (once): New static variable.
8086 * (__gconv_load_conf): New function.
8087 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8088 * iconv/gconv_db.c (once): Remove static variable.
8089 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8090 __gconv_read_conf.
8091 * (__gconv_find_transform): Likewise.
8092 * iconv/tst-iconv-mt.c: New test.
8093 * iconv/Makefile: Add tst-iconv_mt.
8094
8095 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8096
8097 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8098 bits/shm-pad.h.
8099 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8100 (shmatt_t): Define as __syscall_ulong_t.
8101 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8102 and [__SHM_PAD_AFTER_TIME].
8103 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8104 Define shm_segsz and associated padding based on
8105 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8106 Use __syscall_ulong_t instead of unsigned long int.
8107 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8108 unsigned long int.
8109 [__USE_MISC] (struct shm_info): Likewise.
8110 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8111 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8112 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8113 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8114 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8115 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8116 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8117 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8118 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8119 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8120 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8121
8122 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8123 bits/shmlba.h.
8124 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8125 (SHMLBA): Remove macro.
8126 (__getpagesize): Remove function declaration.
8127 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8128 <bits/shmlba.h>.
8129 (SHMLBA): Remove macro.
8130 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8131 <bits/shmlba.h>.
8132 (SHMLBA): Remove macro.
8133 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8134 <bits/shmlba.h>.
8135 (SHMLBA): Remove macro.
8136 (__getpagesize): Remove function declaration.
8137 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8138 <bits/shmlba.h>.
8139 (SHMLBA): Remove macro.
8140 (__getshmlba): Remove function declaration.
8141 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8142 (SHMLBA): Remove macro.
8143 (__getpagesize): Remove function declaration.
8144 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8145 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8146 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8147 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8148 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8149 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8150 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8151 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8152 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8153 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8154
8155 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8156
8157 [BZ #23275]
8158 * nptl/tst-mutex10.c: New File.
8159 * nptl/Makefile (tests): Add tst-mutex10.
8160 (tst-mutex10-ENV): New variable.
8161 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8162 Ensure that elision path is used if elision is available.
8163 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8164 Likewise.
8165 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8166 Likewise.
8167 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8168 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8169 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8170 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8171 Likewise.
8172 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8173 (__pthread_mutex_cond_lock_adjust): Likewise.
8174 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8175 Likewise.
8176 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8177 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8178 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8179 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8180 Add comments.
8181 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8182 Use atomic_load_relaxed and atomic_store_relaxed.
8183 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8184 Use atomic_store_relaxed.
8185
8186 2018-10-17 Andreas Schwab <schwab@suse.de>
8187
8188 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8189 * crypt/badsalttest.c (TIMEOUT): Likewise.
8190 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8191 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8192 * io/test-lfs.c (TIMEOUT): Likewise.
8193 * libio/tst-atime.c (TIMEOUT): Likewise.
8194 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8195 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8196 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8197 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8198 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8199 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8200 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8201 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8202 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8203 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8204 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8205 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8206 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8207 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8208 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8209 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8210 * nptl/tst-once2.c (TIMEOUT): Likewise.
8211 * nptl/tst-once3.c (TIMEOUT): Likewise.
8212 * nptl/tst-once4.c (TIMEOUT): Likewise.
8213 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8214 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8215 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8216 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8217 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8218 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8219 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8220 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8221 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8222 * posix/tst-chmod.c (TIMEOUT): Likewise.
8223 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8224 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8225 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8226 * posix/tst-regex2.c (TIMEOUT): Likewise.
8227 * posix/tst-waitid.c (TIMEOUT): Likewise.
8228 * rt/tst-aio.c (TIMEOUT): Likewise.
8229 * rt/tst-aio10.c (TIMEOUT): Likewise.
8230 * rt/tst-aio4.c (TIMEOUT): Likewise.
8231 * rt/tst-aio5.c (TIMEOUT): Likewise.
8232 * rt/tst-aio6.c (TIMEOUT): Likewise.
8233 * rt/tst-aio64.c (TIMEOUT): Likewise.
8234 * rt/tst-aio7.c (TIMEOUT): Likewise.
8235 * rt/tst-aio9.c (TIMEOUT): Likewise.
8236 * rt/tst-clock.c (TIMEOUT): Likewise.
8237 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8238 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8239 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8240 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8241 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8242 * rt/tst-timer4.c (TIMEOUT): Likewise.
8243 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8244 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8245 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8246 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8247 * time/tst-ftime.c (TIMEOUT): Likewise.
8248 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8249
8250 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8251
8252 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8253 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8254 for thunderX2.
8255
8256 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8257
8258 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8259 bits/sem-pad.h.
8260 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8261 instead of <bits/wordsize.h>.
8262 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8263 and [__SEM_PAD_AFTER_TIME].
8264 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8265 __syscall_ulong_t instead of unsigned long int.
8266 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8267 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8268 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8269 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8270 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8271 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8272 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8273 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8274 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8275 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8276 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8277
8278 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8279
8280 regex: simplify by using intprops.h
8281 [BZ#23744]
8282 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8283 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8284 intprops.h defines them.
8285
8286 regex: __builtin_expect → __glibc_unlikely
8287 [BZ#23744]
8288 This refactoring was prompted by a problem when the regex code is
8289 used as part of Gnulib and when the builder’s compiler does not grok
8290 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8291 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8292 Although this refactoring does not fix the problem directly,
8293 we might as well have Gawk use the now-preferred glibc style for when
8294 __builtin_expect is unavailable.
8295 * posix/regex_internal.h (BE): Remove.
8296 All uses replaced by __glibc_unlikely or __glibc_likely.
8297
8298 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8299
8300 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8301 bits/msq-pad.h.
8302 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8303 instead of <bits/wordsize.h>.
8304 (msgqnum_t): Define as __syscall_ulong_t.
8305 (msglen_t): Likewise.
8306 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8307 and [__MSQ_PAD_AFTER_TIME].
8308 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8309 __syscall_ulong_t instead of unsigned long int.
8310 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8311 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8312 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8313 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8314 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8315 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8316 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8317 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8318 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8319 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8320 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8321
8322 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8323
8324 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8325 (struct shmid_ds): Condition padding after time fields on
8326 [__WORDSIZE == 32].
8327 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8328 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8329 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8330
8331 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8332 (struct semid_ds): Condition padding after time fields on
8333 [__WORDSIZE == 32].
8334 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8335 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8336 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8337 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8338
8339 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8340 (struct msqid_ds): Condition padding after time fields on
8341 [__WORDSIZE == 32].
8342 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8343 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8344 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8345 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8346
8347 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8348
8349 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8350
8351 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8352
8353 * libio/tst-readline.c (TIMEOUT): Define.
8354
8355 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8356
8357 mktime fix for Gnulib + coreutils
8358 [BZ#23745]
8359 This fix affects only Gnulib. Problem discovered when
8360 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8361 * time/mktime.c:
8362 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8363 Do not define since it is not used. Defining an unused static
8364 function prompts a warning from GCC when Coreutils is configured
8365 with --enable-gcc-warnings.
8366
8367 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8368
8369 * benchtests/scripts/compare_bench.py (main): set float type on
8370 threshold argument.
8371
8372 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8373
8374 [BZ #23740]
8375 * localedata/locales/kl_GL (mon): Update, the relative case.
8376 (alt_mon): Add, fill with month names in the nominative case.
8377 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8378 (d_fmt): Set to "%b %d %Y".
8379
8380 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8381
8382 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8383 <bits/mman-linux.h>.
8384 (PROT_READ): Don't define here.
8385 (PROT_WRITE): Likewise.
8386 (PROT_EXEC): Likewise.
8387 (PROT_NONE): Likewise.
8388 (PROT_GROWSDOWN): Likewise.
8389 (PROT_GROWSUP): Likewise.
8390 (MAP_SHARED): Likewise.
8391 (MAP_PRIVATE): Likewise.
8392 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8393 [__USE_MISC] (MAP_FILE): Likewise.
8394 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8395 [__USE_MISC] (MAP_ANON): Likewise.
8396 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8397 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8398 (MCL_CURRENT): Likewise.
8399 (MCL_FUTURE): Likewise.
8400 (MCL_ONFAULT): Likewise.
8401 [__USE_MISC] (MADV_NORMAL): Likewise.
8402 [__USE_MISC] (MADV_RANDOM): Likewise.
8403 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8404 [__USE_MISC] (MADV_WILLNEED): Likewise.
8405 [__USE_MISC] (MADV_DONTNEED): Likewise.
8406 [__USE_MISC] (MADV_FREE): Likewise.
8407 [__USE_MISC] (MADV_REMOVE): Likewise.
8408 [__USE_MISC] (MADV_DONTFORK): Likewise.
8409 [__USE_MISC] (MADV_DOFORK): Likewise.
8410 [__USE_MISC] (MADV_HWPOISON): Likewise.
8411 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8412 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8413 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8414 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8415 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8416 (__MAP_ANONYMOUS): New macro.
8417 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8418 <bits/mman-linux.h> inclusion.
8419 (MAP_FIXED): Likewise.
8420 (MS_SYNC): Likewise.
8421 (MS_ASYNC): Likewise.
8422 (MS_INVALIDATE): Likewise.
8423 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8424 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8425 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8426 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8427 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8428 [__USE_MISC] (MADV_DODUMP): Likewise.
8429 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8430 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8431
8432 [BZ #23735]
8433 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8434 Define.
8435 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8436 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8437 Add test-nldbl-redirect.
8438 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8439 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8440 $(objpfx)libnldbl_nonshared.a.
8441
8442 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8443
8444 * support/support.h (support_objdir_elf_ldso): New variable.
8445 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8446 * support/Makefile (CFLAGS-support_paths.c): Add definition
8447 for OBJDIR_ELF_LDSO_PATH.
8448 * support/test-container.c (main): Search for the ld.so
8449 which is also used by the testsuite.
8450
8451 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8452
8453 [BZ #20209]
8454 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8455 should be "sap" rather than "sab".
8456 (day): Fix spelling of Sunday, should be "sapaat" rather than
8457 "sabaat".
8458
8459 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8460
8461 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8462
8463 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8464
8465 [BZ #19444]
8466 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8467 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8468 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8469
8470 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8471
8472 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8473
8474 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8475
8476 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8477 Add -mrtm.
8478 (CFLAGS-elision-unlock.c): Likewise.
8479 (CFLAGS-elision-timed.c): Likewise.
8480 (CFLAGS-elision-trylock.c): Likewise.
8481 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8482
8483 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8484
8485 [BZ #21037]
8486 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8487 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8488 new fd_to_filename interface.
8489 * libio/freopen64.c (freopen64): Likewise.
8490 * libio/tst-memstream.h: New file.
8491 * libio/tst-memstream4.c: Likewise.
8492 * libio/tst-wmemstream4.c: Likewise.
8493 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8494 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8495 and remove internal dynamic allocation.
8496
8497 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8498
8499 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8500 (MREMAP_MAYMOVE): Do not define here.
8501 [__USE_GNU] (MREMAP_FIXED): Likewise.
8502 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8503 (MREMAP_MAYMOVE): Define here instead.
8504 [__USE_GNU] (MREMAP_FIXED): Likewise.
8505 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8506 (MREMAP_MAYMOVE): Remove.
8507 [__USE_GNU] (MREMAP_FIXED): Likewise.
8508
8509 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8510
8511 * math/fromfp.h: Do not include <math_private.h>.
8512 * math/s_cacosh_template.c: Likewise.
8513 * math/s_casin_template.c: Likewise.
8514 * math/s_casinh_template.c: Likewise.
8515 * math/s_ccos_template.c: Likewise.
8516 * math/s_cproj_template.c: Likewise.
8517 * math/s_fdim_template.c: Likewise.
8518 * math/s_fmaxmag_template.c: Likewise.
8519 * math/s_fminmag_template.c: Likewise.
8520 * math/s_iseqsig_template.c: Likewise.
8521 * math/s_ldexp_template.c: Likewise.
8522 * math/s_nextdown_template.c: Likewise.
8523 * math/w_log1p_template.c: Likewise.
8524 * math/w_scalbln_template.c: Likewise.
8525 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8526 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8527 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8528 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8529 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8530 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8531 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8532 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8533 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8534 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8535 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8536 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8537 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8538 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8539 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8540 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8541 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8542 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8543 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8544 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8545 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8546 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8547 * sysdeps/ieee754/k_standardf.c: Likewise.
8548 * sysdeps/ieee754/k_standardl.c: Likewise.
8549 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8550 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8551 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8552 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8553 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8554 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8555 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8556 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8557 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8558 * sysdeps/ieee754/s_signgam.c: Likewise.
8559 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8560 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8561 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8562 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8563 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8564 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8565 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8566 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8567 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8568 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8569 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8570 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8571 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8572 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8573 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8574 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8575 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8576 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8577 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8578 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8579 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8580 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8581 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8582 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8583 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8584 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8585 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8586 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8587 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8588 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8589 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8590 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8591 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8592 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8593 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8594 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8595 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8596 <math_private.h>.
8597 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8598
8599 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8600
8601 [BZ #23716]
8602 * sysdeps/i386/dl-cet.c: Removed.
8603 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8604 prototype.
8605 (_dl_runtime_profile_shstk): Likewise.
8606 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8607 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8608
8609 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8610
8611 [BZ #23579]
8612 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8613 do_test_with_invalid_iov): New tests.
8614 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8615 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8616 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8617 errno is ENOSYS.
8618 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8619 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8620 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8621
8622 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8623
8624 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8625 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8626 (MATH_REDIRECT_BINARY_ARGS): New macro.
8627 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8628 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8629 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8630 header inclusion.
8631 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8632 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8633 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8634 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8635 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8636 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8637 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8639 Likewise.
8640 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8641 Likewise.
8642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8644 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8645 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8646 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8647 Likewise.
8648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8649 Likewise.
8650 * sysdeps/generic/math_private_calls.h
8651 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8652 Do not declare and define as an inline function.
8653 * math/divtc3.c (__divtc3): Use copysign functions instead of
8654 __copysign variants.
8655 * math/multc3.c (__multc3): Likewise.
8656 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8657 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8658 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8659 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8660 Likewise.
8661 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8662 (__ieee754_yn): Likewise.
8663 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8664 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8665 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8666 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8667 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8668 (__sin): Likewise.
8669 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8670 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8671 Likewise.
8672 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8673 Likewise.
8674 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8675 Likewise.
8676 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8677 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8678 Likewise.
8679 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8680 (__ieee754_ynf): Likewise.
8681 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8682 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8683 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8684 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8685 Likewise.
8686 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8687 (__ieee754_ynl): Likewise.
8688 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8689 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8690 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8691 Likewise.
8692 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8693 (__ieee754_ynl): Likewise.
8694 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8695 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8696 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8697 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8698 Likewise.
8699 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8700 (__ieee754_ynl)
8701 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8702 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8703 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8704 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8705 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8706
8707 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8708 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8709 using MATH_REDIRECT.
8710 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8711 header inclusion.
8712 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8713 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8714 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8715 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8716 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8717 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8718 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8719 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8720 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8721 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8723 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8724 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8725 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8726 (round): Redirect to __round.
8727 (__roundl): Call round instead of __round.
8728 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8729 Remove macro.
8730 [_ARCH_PWR5X] (__roundf): Likewise.
8731 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8732 functions instead of __round variants.
8733 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8734 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8735 Likewise.
8736 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8737 Likewise.
8738 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8739 Likewise.
8740 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8741 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8742 __lroundl.
8743 (__ieee754_expl): Call roundl instead of __roundl.
8744
8745 2018-09-27 Andreas Schwab <schwab@suse.de>
8746
8747 [BZ #23717]
8748 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8749 (do_test): Make st1 static.
8750
8751 2018-09-26 Andreas Schwab <schwab@suse.de>
8752
8753 [BZ #23707]
8754 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8755 * elf/Makefile (tests): Add tst-unwind-ctor.
8756 (modules-names): Add tst-unwind-ctor-lib.
8757 ($(objpfx)tst-unwind-ctor): Depend on
8758 $(objpfx)tst-unwind-ctor-lib.so.
8759
8760 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8761
8762 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8763 file. Most contents moved from ....
8764 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8765 and include <bits/mman-map-flags-generic.h>.
8766 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8767 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8768 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8769 <bits/mman-map-flags-generic.h>.
8770 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8771 macros defined in <bits/mman-map-flags-generic.h>.
8772 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8773 <bits/mman-map-flags-generic.h>.
8774 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8775 defined in <bits/mman-map-flags-generic.h>.
8776
8777 2018-09-26 Andreas Schwab <schwab@suse.de>
8778
8779 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8780 output.
8781
8782 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8783 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8784 Fangrui Song <maskray@google.com>
8785
8786 [BZ #20480]
8787 * config.make.in (have-textrel_ifunc): New define.
8788 * configure.ac: Add check if linker supports textrel relocation with
8789 ifunc.
8790 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8791 tst-ifunc-textrel.
8792 (CFLAGS-tst-ifunc-textrel.c): New rule.
8793 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8794 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8795 * elf/tst-ifunc-textrel.c: New file.
8796
8797 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8798
8799 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8800 <bits/procfs-prregset.h>.
8801 (prgregset_t): Define using __prgregset_t.
8802 (prfpregset_t): Define using __prfpregset_t.
8803 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8804 (sysdep_headers): Add bits/procfs-prregset.h.
8805 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8806 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8807 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8808 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8809
8810 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8811 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8812 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8813 pr_uid and pr_gid.
8814 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8815 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8816 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8817 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8818 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8819 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8820 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8821 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8822 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8823 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8824 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8825 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8826 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8827 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8828 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8829 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8830 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8831 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8832 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8833 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8834 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8835 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8836 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8837 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8838
8839 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8840 AArch64 version. Include <bits/procfs.h>.
8841 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8842 (sysdep_headers): Add bits/procfs.h.
8843 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8844 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8845 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8846 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8847 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8848 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8849 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8850 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8851 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8852 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8853 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8854 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8855 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8856 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8857 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8858 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8859 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8860
8861 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8862
8863 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8864 Use libsupport.
8865
8866 2018-09-25 Arjun Shankar <arjun@redhat.com>
8867
8868 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8869 (__gconv_max_path_elem_len): Likewise.
8870 (__gconv_nmodules): Likewise.
8871 (__gconv_get_path): Likewise.
8872 (path_elem): Move to ...
8873 * iconv/gconv_conf.c: ... here.
8874 (__gconv_get_path): Mark function static.
8875 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8876 * iconv/gconv_open.c: ... here.
8877
8878 2018-09-24 Andreas Schwab <schwab@suse.de>
8879
8880 * scripts/haveversions.awk: New file.
8881 * Makerules ($(common-objpfx)Versions.def)
8882 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8883 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8884 Move rules ...
8885 * Makeconfig ($(common-objpfx)Versions.def)
8886 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8887 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8888 ... here.
8889 ($(common-objpfx)Versions.mk): New rule. Include it.
8890 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8891 Emit error if build-obsolete-nsl = yes.
8892 * manual/install.texi (Configuring and compiling): Describe
8893 --enable-obsolete-nsl as unavaiable after version 2.28.
8894 * INSTALL: Regenerate.
8895
8896 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8897
8898 * NEWS: Add note about new TLE support on powerpc64le.
8899 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8900 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8901 __ununsed1.
8902 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8903 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8904 * sysdeps/powerpc/powerpc32/sysdep.h,
8905 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8906 ABORT_TRANSACTION): Remove macros.
8907 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8908 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8909 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8911 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8912 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8913 usage.
8914 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8915
8916 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8917
8918 [BZ #10425]
8919 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8920 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8921 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8922 which is the same as in it_IT.
8923 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8924 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8925
8926 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8927
8928 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8929 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8930 using MATH_REDIRECT.
8931 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8932 header inclusion.
8933 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8934 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8935 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8936 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8937 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8938 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8940 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8943 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8944 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8945 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8946 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8947 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8948 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8949 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8950 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8951 (ceil): Redirect to __ceil.
8952 (floor): Redirect to __floor.
8953 (trunc): Redirect to __trunc.
8954 (__truncl): Call trunc instead of __trunc.
8955 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8956 Remove macro.
8957 [_ARCH_PWR5X] (__truncf): Likewise.
8958 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8959 trunc functions instead of __trunc variants.
8960 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8961 Likewise.
8962 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8963 Likewise.
8964 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8965 Likewise.
8966 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8967 Likewise.
8968
8969 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8970 [__i586__ || __pentium__].
8971 [__i486__]: Handle explicitly.
8972 (HAS_CPUID): Define to 1 if above macros are undefined.
8973 (HAS_I586): Likewise.
8974 (HAS_I686): Likewise.
8975
8976 2018-09-20 Florian Weimer <fweimer@redhat.com>
8977
8978 * misc/tst-gethostid.c: New file.
8979 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8980 (tst-gethostid): Link with -ldl.
8981
8982 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8983
8984 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8985 value from gethostbyname_r.
8986
8987 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8988
8989 * stdlib/tst-setcontext9.c (f1): Rename to...
8990 (f1a): ... this.
8991 (f1b): New function implementing lower half of f1 in alternate stack.
8992
8993 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8994
8995 Fix mktime localtime offset confusion
8996 [BZ #23603]
8997 * include/time.h (__mktime_internal): The localtime offset is now
8998 of type long int instead of time_t. This is the longstanding type
8999 in glibc, and it is more than enough to represent difference
9000 between localtime and gmtime even if it is 32 bits and time_t is
9001 64. Changing it now will let us avoid an unnecessary change when
9002 time_t is widened to 64 bits on 32-bit platforms.
9003 * time/mktime-internal.h (mktime_offset_t): Now long int.
9004
9005 Merge mktime, timegm from upstream Gnulib
9006 [BZ #23603][BZ #16346]
9007 This fixes some obscure problems with integer overflow.
9008 Although it looks scary, it is almost all a byte-for-byte copy
9009 from Gnulib, and the Gnulib code has been tested reasonably well.
9010 * include/intprops.h: New file, copied from Gnulib.
9011 * include/verify.h, time/mktime-internal.h:
9012 New tiny files, simplified from Gnulib.
9013 * time/mktime.c: Copy from Gnulib. This has the following changes:
9014 Do not include config.h if DEBUG_MKTIME is nonzero.
9015 Include stdbool.h, intprops.h, verify.h.
9016 Include string.h only if needed.
9017 Include stdlib.h on MS-Windows.
9018 Include mktime-internal.h.
9019 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9020 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9021 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9022 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9023 simplify later conditionals; default the others to zero. Use
9024 these conditionals to express only the code needed on the current
9025 platform. In uses of these conditionals, explicitly spell out how
9026 _LIBC affects things, so it’s easier to review from a glibc
9027 viewpoint.
9028 (WRAPV): Remove; no longer needed now that we have
9029 systematic overflow checking.
9030 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9031 compartmentalize tzset issues. Move system-dependent tzsettish
9032 code here from mktime.
9033 (verify): Remove; now done by verify.h. All uses changed.
9034 (long_int): Use a more-conservative definition, to avoid
9035 integer overflow.
9036 (SHR): Remove, replacing with ...
9037 (shr): New function, which means we needn’t worry about side
9038 effects in args, and conversion analysis is simpler.
9039 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9040 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9041 (time_t_avg, time_t_add_ok): Remove.
9042 (mktime_min, mktime_max): New constants.
9043 (leapyear, isdst_differ): Use bool for booleans.
9044 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9045 Use long_int, not time_t, for mktime differences.
9046 (long_int_avg): New function, replacing time_t_avg.
9047 INT_ADD_WRAPV replaces time_t_add_ok.
9048 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9049 All uses changed.
9050 (convert_time): New function.
9051 (ranged_convert): Use it.
9052 (__mktime_internal): Last arg now points to mktime_offset_t, not
9053 time_t. All uses changed. This is a no-op on glibc, where
9054 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9055 offset guess. Directly check for integer overflow instead of
9056 using a heuristic that works only 99.9...% of the time.
9057 Access *OFFSET only once, to avoid an unlikely race if the
9058 compiler delays a load and if this cascades into a signed integer
9059 overflow.
9060 (mktime): Move tzsettish code to my_tzset, and move
9061 localtime_offset to within mktime so that it doesn’t
9062 need a separate ifdef.
9063 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9064 instead of localtime.
9065 * time/timegm.c: Copy from Gnulib. This has the following changes:
9066 Include mktime-internal.h.
9067 [!_LIBC]: Include config.h and time.h. Do not include
9068 timegm.h or time_r.h. Make __mktime_internal a macro,
9069 and include mktime-internal.h to get its declaration.
9070 (timegm): Temporary is now mktime_offset_t, not time_t.
9071 This affects only Gnulib.
9072
9073 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9074
9075 [BZ #23637]
9076 * string/test-strstr.c (pr23637): New function.
9077 (test_main): Add tests with longer needles.
9078 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9079 * string/strstr.c (AVAILABLE): Likewise.
9080
9081 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9082
9083 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9084
9085 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9086
9087 * NEWS: Mention pow improvements.
9088 * math/Makefile (type-double-routines): Add e_pow_log_data.
9089 * sysdeps/generic/math_private.h (__exp1): Remove.
9090 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9091 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9092 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9093 contraction.
9094 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9095 (exp_inline): Remove.
9096 (__ieee754_exp): Only single double input is handled.
9097 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9098 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9099 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9100 (__pow_log_data): Define.
9101 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9102 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9103 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9104 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9105 contraction.
9106 (CFLAGS-e_pow-fma4.c): Likewise.
9107
9108 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9109
9110 Simplify tzfile fstat failure code
9111 [BZ #21716]
9112 * time/tzfile.c (__tzfile_read): Simplify slightly.
9113
9114 Fix tzfile low-memory assertion failure
9115 [BZ #21716]
9116 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9117 when registering time zone abbreviations.
9118
9119 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9120
9121 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9122 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9123 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9124 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9125 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9126 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9127 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9128 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9129 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9130
9131 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9132 __ceil.
9133 (__ceill): Call ceil instead of __ceil.
9134 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9135 __floor.
9136 (__floorl): Call floor instead of __floor.
9137
9138 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9139
9140 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9141 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9142 using MATH_REDIRECT.
9143 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9144 header inclusion.
9145 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9146 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9147 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9148 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9149 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9150 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9151 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9152 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9153 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9154 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9157 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9158 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9159 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9160 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9161 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9162 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9163 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9164 Remove macro.
9165 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9166 functions instead of __ceil variants.
9167 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9168 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9169 Likewise.
9170 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9171 Likewise.
9172 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9173 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9174 Likewise.
9175 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9176 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9177
9178 [BZ #21286]
9179 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9180 constant.
9181 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9182 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9183 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9184 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9185 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9186 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9187 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9188 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9189 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9190 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9191 (ILL_BADIADDR): Remove constant.
9192 (TRAP_BRANCH): Likewise.
9193 (TRAP_HWBKPT): Likewise.
9194
9195 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9196
9197 [BZ #23656]
9198 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9199 Remove [_MIPS_SIM = _ABIN32] conditional case.
9200 (struct elf_prpsinfo): Likewise.
9201
9202 [BZ #23649]
9203 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9204 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9205 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9206 Likewise.
9207 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9208 elf_prpsinfo): Likewise.
9209 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9210 elf_prpsinfo): Likewise.
9211 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9212 Likewise.
9213
9214 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9215 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9216 using MATH_REDIRECT.
9217 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9218 header inclusion.
9219 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9220 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9221 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9222 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9223 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9224 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9225 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9226 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9227 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9228 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9229 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9230 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9231 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9232 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9233 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9234 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9235 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9236 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9237 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9240 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9241 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9242 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9243 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9244 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9245 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9246 __rint variants.
9247 * math/e_scalbf.c (invalid_fn): Likewise.
9248 * math/e_scalbl.c (invalid_fn): Likewise.
9249 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9250 Likewise.
9251 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9252 Likewise.
9253 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9254 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9255 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9256 Likewise.
9257 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9258 Likewise.
9259 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9260 Likewise.
9261 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9262 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9263
9264 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9265 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9266 New macro.
9267 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9268 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9269 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9270 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9271 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9272 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9273 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9274 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9275 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9276 && !NO_MATH_REDIRECT] (floor): Likewise.
9277 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9278 header inclusion.
9279 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9280 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9281 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9282 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9283 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9284 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9285 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9286 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9287 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9288 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9291 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9292 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9293 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9294 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9295 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9296 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9297 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9298 Remove macro.
9299 [_ARCH_PWR5X] (__floorf): Likewise.
9300 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9301 inline function.
9302 [__SSE4_1__] (__floorf): Likewise.
9303 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9304 instead of __floor variants.
9305 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9306 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9307 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9308 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9309 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9310 * math/w_tgamma_compat.c (__tgamma): Likewise.
9311 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9312 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9313 * math/w_tgammal_compat.c (__tgammal): Likewise.
9314 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9315 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9316 Likewise.
9317 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9318 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9319 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9320 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9321 Likewise.
9322 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9323 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9324 Likewise.
9325 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9326 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9327 Likewise.
9328 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9329 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9330 Likewise.
9331 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9332 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9333 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9334 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9335 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9336 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9337
9338 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9339
9340 * elf/Makefile (modules-names-tests): New variable.
9341
9342 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9343
9344 * NEWS: Mention log2 improvements.
9345 * math/Makefile (type-double-routines): Add e_log2_data.
9346 * sysdeps/i386/fpu/e_log2_data.c: New file.
9347 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9348 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9349 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9350 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9351 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9352 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9353
9354 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9355
9356 * NEWS: Mention log improvement.
9357 * math/Makefile (type-double-routines): Add e_log_data.
9358 * sysdeps/i386/fpu/e_log_data.c: New file.
9359 * sysdeps/ia64/fpu/e_log_data.c: New file.
9360 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9361 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9362 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9363 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9364 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9365 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9366
9367 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9368 Xuepeng Guo <xuepeng.guo@intel.com>
9369
9370 [BZ #23606]
9371 * sysdeps/i386/start.S: Include <sysdep.h>
9372 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9373 enabled. Add cfi_undefined (eip).
9374
9375 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9376
9377 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9378 (MOVQ): Likewise.
9379 (EXTRACT_WORDS64): Likewise.
9380 (INSERT_WORDS64): Likewise.
9381 (GET_FLOAT_WORD): Likewise.
9382 (SET_FLOAT_WORD): Likewise.
9383
9384 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9385 argument.
9386 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9387 build, but not for second build if --full-gcc. Use
9388 --enable-languages=all for second build if --full-gcc.
9389 (get_parser): Add --full-gcc option.
9390 (main): Update call to Context.
9391
9392 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9393
9394 [BZ #10797]
9395 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9396 Single Quotation Mark).
9397 (thousands_sep): Likewise.
9398 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9399 * localedata/locales/it_IT (thousands_sep): Use ".".
9400 (grouping): Use "3;3".
9401
9402 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9403
9404 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9405 x86_64 and i686 configs using --enable-obsolete-rpc
9406 --enable-obsolete-nsl.
9407
9408 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9409
9410 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9411
9412 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9413
9414 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9415 Increment size of new_argv by one.
9416
9417 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9418
9419 [BZ #17426]
9420 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9421 * localedata/locales/ar_IN (d_fmt): Likewise.
9422 * localedata/locales/bhb_IN (d_fmt): Likewise.
9423 * localedata/locales/bho_IN (d_fmt): Likewise.
9424 * localedata/locales/bn_BD (d_fmt): Likewise.
9425 * localedata/locales/bn_IN (d_fmt): Likewise.
9426 * localedata/locales/doi_IN (d_fmt): Likewise.
9427 * localedata/locales/gu_IN (d_fmt): Likewise.
9428 * localedata/locales/hi_IN (d_fmt): Likewise.
9429 * localedata/locales/hne_IN (d_fmt): Likewise.
9430 * localedata/locales/kn_IN (d_fmt): Likewise.
9431 * localedata/locales/mag_IN (d_fmt): Likewise.
9432 * localedata/locales/mai_IN (d_fmt): Likewise.
9433 * localedata/locales/mjw_IN (d_fmt): Likewise.
9434 * localedata/locales/ml_IN (d_fmt): Likewise.
9435 * localedata/locales/mni_IN (d_fmt): Likewise.
9436 * localedata/locales/mr_IN (d_fmt): Likewise.
9437 * localedata/locales/pa_IN (d_fmt): Likewise.
9438 * localedata/locales/raj_IN (d_fmt): Likewise.
9439 * localedata/locales/sat_IN (d_fmt): Likewise.
9440 * localedata/locales/sd_IN (d_fmt): Likewise.
9441 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9442 * localedata/locales/ta_IN (d_fmt): Likewise.
9443 * localedata/locales/ta_LK (d_fmt): Likewise.
9444 * localedata/locales/tcy_IN (d_fmt): Likewise.
9445 * localedata/locales/ur_IN (d_fmt): Likewise.
9446
9447 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9448 * localedata/locales/ks_IN (d_fmt): Likewise.
9449 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9450
9451 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9452 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9453 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9454 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9455
9456 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9457
9458 * NEWS: Mention exp and exp2 improvements.
9459 * math/Makefile (libm-support): Remove t_exp.
9460 (type-double-routines): Add math_err and e_exp_data.
9461 * sysdeps/aarch64/libm-test-ulps: Update.
9462 * sysdeps/arm/libm-test-ulps: Update.
9463 * sysdeps/i386/fpu/e_exp_data.c: New file.
9464 * sysdeps/i386/fpu/math_err.c: New file.
9465 * sysdeps/i386/fpu/t_exp.c: Remove.
9466 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9467 * sysdeps/ia64/fpu/math_err.c: New file.
9468 * sysdeps/ia64/fpu/t_exp.c: Remove.
9469 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9470 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9471 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9472 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9473 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9474 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9475 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9476 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9477 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9478 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9479 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9480 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9481 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9482 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9483 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9484 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9485
9486 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9487
9488 * sysdeps/alpha/fpu/math_private.h: Remove.
9489
9490 * sysdeps/generic/math_private.h
9491 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9492 Move this inline function ....
9493 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9494 * include/math.h [!_ISOMAC]: To here....
9495
9496 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9497
9498 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9499 code ....
9500 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9501 * include/fenv.h [!_ISOMAC]: ... to here.
9502 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9503 (feraiseexcept): Likewise.
9504 * math/fromfp.h: Do not include <fenv_private.h>.
9505 * math/s_cexp_template.c: Likewise.
9506 * math/s_csin_template.c: Likewise.
9507 * math/s_csinh_template.c: Likewise.
9508 * math/s_ctan_template.c: Likewise.
9509 * math/s_ctanh_template.c: Likewise.
9510 * math/s_iseqsig_template.c: Likewise.
9511 * math/w_acos_compat.c: Likewise.
9512 * math/w_acosf_compat.c: Likewise.
9513 * math/w_acosl_compat.c: Likewise.
9514 * math/w_asin_compat.c: Likewise.
9515 * math/w_asinf_compat.c: Likewise.
9516 * math/w_asinl_compat.c: Likewise.
9517 * math/w_j0_compat.c: Likewise.
9518 * math/w_j0f_compat.c: Likewise.
9519 * math/w_j0l_compat.c: Likewise.
9520 * math/w_j1_compat.c: Likewise.
9521 * math/w_j1f_compat.c: Likewise.
9522 * math/w_j1l_compat.c: Likewise.
9523 * math/w_jn_compat.c: Likewise.
9524 * math/w_jnf_compat.c: Likewise.
9525 * math/w_log10_compat.c: Likewise.
9526 * math/w_log10f_compat.c: Likewise.
9527 * math/w_log10l_compat.c: Likewise.
9528 * math/w_log2_compat.c: Likewise.
9529 * math/w_log2f_compat.c: Likewise.
9530 * math/w_log2l_compat.c: Likewise.
9531 * math/w_log_compat.c: Likewise.
9532 * math/w_logf_compat.c: Likewise.
9533 * math/w_logl_compat.c: Likewise.
9534 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9535 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9536 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9537 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9538 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9539 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9540 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9541 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9542 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9543 * sysdeps/ieee754/k_standardl.c: Likewise.
9544 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9545 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9546 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9547 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9548 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9549 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9550 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9551 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9552 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9553 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9554 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9555 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9556 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9557 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9558 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9559 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9560 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9561 * math/w_ilogb_template.c: Include <fenv.h> instead of
9562 <fenv_private.h>.
9563 * math/w_llogb_template.c: Likewise.
9564 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9565 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9566
9567 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9568
9569 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9570 * math/fromfp.h: Include <fenv_private.h>.
9571 * math/math-narrow.h: Likewise.
9572 * math/s_cexp_template.c: Likewise.
9573 * math/s_csin_template.c: Likewise.
9574 * math/s_csinh_template.c: Likewise.
9575 * math/s_ctan_template.c: Likewise.
9576 * math/s_ctanh_template.c: Likewise.
9577 * math/s_iseqsig_template.c: Likewise.
9578 * math/w_acos_compat.c: Likewise.
9579 * math/w_acosf_compat.c: Likewise.
9580 * math/w_acosl_compat.c: Likewise.
9581 * math/w_asin_compat.c: Likewise.
9582 * math/w_asinf_compat.c: Likewise.
9583 * math/w_asinl_compat.c: Likewise.
9584 * math/w_ilogb_template.c: Likewise.
9585 * math/w_j0_compat.c: Likewise.
9586 * math/w_j0f_compat.c: Likewise.
9587 * math/w_j0l_compat.c: Likewise.
9588 * math/w_j1_compat.c: Likewise.
9589 * math/w_j1f_compat.c: Likewise.
9590 * math/w_j1l_compat.c: Likewise.
9591 * math/w_jn_compat.c: Likewise.
9592 * math/w_jnf_compat.c: Likewise.
9593 * math/w_llogb_template.c: Likewise.
9594 * math/w_log10_compat.c: Likewise.
9595 * math/w_log10f_compat.c: Likewise.
9596 * math/w_log10l_compat.c: Likewise.
9597 * math/w_log2_compat.c: Likewise.
9598 * math/w_log2f_compat.c: Likewise.
9599 * math/w_log2l_compat.c: Likewise.
9600 * math/w_log_compat.c: Likewise.
9601 * math/w_logf_compat.c: Likewise.
9602 * math/w_logl_compat.c: Likewise.
9603 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9604 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9605 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9606 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9607 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9608 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9609 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9610 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9611 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9612 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9613 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9614 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9615 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9616 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9617 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9618 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9619 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9620 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9621 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9622 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9623 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9624 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9625 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9626 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9627 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9628 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9629 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9630 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9631 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9632 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9633 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9634 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9635 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9636 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9637 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9638 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9639 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9640 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9641 * sysdeps/ieee754/k_standardl.c: Likewise.
9642 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9643 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9644 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9645 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9646 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9647 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9648 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9649 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9650 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9651 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9652 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9653 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9654 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9655 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9656 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9657 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9658 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9659 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9660 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9661 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9662 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9663 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9664 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9665 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9666 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9667 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9668 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9669 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9670 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9671 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9672 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9673 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9674 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9675 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9676 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9677 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9678 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9679 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9680 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9681 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9682 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9683 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9684 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9685 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9686 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9687 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9688 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9689 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9690 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9691 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9692 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9693 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9694 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9695 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9696 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9697 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9698 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9699 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9700 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9701 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9702 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9703 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9704 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9705 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9706 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9707 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9708 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9709 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9710 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9711 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9712 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9713
9714 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9715
9716 [BZ #20271]
9717 * include/stdio.h (__libc_fatal): Mention newline in comment.
9718 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9719 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9720 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9721 * nss/nsswitch.c (__nss_next2): Likewise.
9722 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9723 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9724 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9725 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9726 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9727 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9728 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9729 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9730 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9731 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9732 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9733 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9734 (__netlink_assert_response): Likewise.
9735
9736 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9737
9738 * conform/glibcconform.py: New file.
9739 * conform/list-header-symbols.py: Likewise.
9740 * conform/list-header-symbols.pl: Remove.
9741 * conform/Makefile (tests-special): Only add linknamespace tests
9742 if [PYTHON].
9743 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9744
9745 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9746
9747 [BZ #23597]
9748 * support/Makefile (libsupport-routines): Add
9749 support_copy_file_range and xcopy_file_range.
9750 * support/support.h: Include <sys/types.h>.
9751 (support_copy_file_range): New prototype.
9752 * support/support_copy_file_range.c: New file. Copied and
9753 modified from io/copy_file_range-compat.c.
9754 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9755 instead of copy_file_range.
9756 * support/xcopy_file_range.c: New file.
9757 * support/xunistd.h (xcopy_file_range): New prototype.
9758
9759 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9760
9761 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9762 xpthread_create and xpthread_join.
9763
9764 2018-08-30 Florian Weimer <fweimer@redhat.com>
9765
9766 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9767
9768 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9769
9770 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9771 if malloc fails.
9772
9773 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9774
9775 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9776 and minus_oflow as non-finite.
9777
9778 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9779
9780 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9781 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9782 moved to fenv_private.h except for ...
9783 (TOINT_INTRINSICS): Kept in math_private.h.
9784 (roundtoint): Likewise.
9785 (converttoint): Likewise.
9786 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9787 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9788 * sysdeps/arm/math_private.h: Remove.
9789 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9790 ....
9791 * sysdeps/generic/math_private.h: ... this file. Include
9792 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9793 Include <fenv_private.h>. Remove functions and macros moved to
9794 fenv_private.h.
9795 * sysdeps/i386/fpu/math_private.h: Remove.
9796 * sysdeps/mips/math_private.h: Move to ....
9797 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9798 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9799 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9800 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9801 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9802 * sysdeps/powerpc/fpu/math_private.h: Do not include
9803 <fenv_private.h>.
9804 * sysdeps/riscv/rvf/math_private.h: Move to ....
9805 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9806 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9807 <fenv_private.h>.
9808 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9809 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9810 * sysdeps/sparc/fpu/math_private.h: Remove.
9811 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9812 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9813 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9814 <fenv_private.h>.
9815 * sysdeps/x86_64/fpu/math_private.h: Do not include
9816 <sysdeps/i386/fpu/fenv_private.h>.
9817
9818 2018-08-28 Florian Weimer <fweimer@redhat.com>
9819
9820 [BZ #23578]
9821 * posix/tst-regcomp-truncated.c: New file.
9822 * posix/Makefile (tests): Add it.
9823 (tst-regcomp-truncated.out): Depend on generated locales.
9824
9825 2018-08-28 Florian Weimer <fweimer@redhat.com>
9826
9827 * support/test-container.c (main): Treat unshare failure with
9828 EPERM as an unsupported test.
9829
9830 2018-08-28 Florian Weimer <fweimer@redhat.com>
9831
9832 [BZ #23520]
9833 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9834 * nscd/netgroupcache.c
9835 (addgetnetgrentX): Add tofreep parameter. Do not free
9836 heap-allocated buffer.
9837 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9838 (addgetnetgrentX_ignore): New function.
9839 (addgetnetgrent): Call it.
9840 (readdgetnetgrent): Likewise.
9841
9842 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9843
9844 * string/memmem.c: Use memcmp for first match.
9845
9846 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9847
9848 [BZ #17426]
9849 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9850
9851 2018-08-27 DJ Delorie <dj@redhat.com>
9852
9853 * support/Makefile (others): Don't list programs explicitly as a
9854 dependency of "others".
9855
9856 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9857
9858 * sysdeps/generic/math-tests-trap-force.h: New file.
9859 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9860 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9861 * sysdeps/powerpc/math-tests.h: Remove file.
9862 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9863
9864 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9865 Torvald Riegel <triegel@redhat.com>
9866
9867 [BZ #23538]
9868 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9869 Update r to include the set wake-request flag if waiters are
9870 remaining after spinning.
9871
9872 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9873
9874 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9875
9876 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9877
9878 [BZ #23578]
9879 regex: fix uninitialized memory access
9880 I introduced this bug into gnulib in commit
9881 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9882 eventually it was merged into glibc. The bug was found by
9883 project-repo <bugs@feusi.co> and reported here:
9884 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9885 Diagnosis and draft fix reported by Assaf Gordon here:
9886 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9887 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9888 * posix/regex_internal.c (build_wcs_upper_buffer):
9889 Fix bug when mbrtowc returns 0.
9890
9891 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9892
9893 * po/be.po: Update translation.
9894
9895 2018-08-24 DJ Delorie <dj@delorie.com>
9896
9897 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9898 $(libunwind).
9899
9900 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9901
9902 [BZ #23400]
9903 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9904 create temporary files in source tree.
9905
9906 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9907
9908 * sysdeps/generic/math-tests-trap.h: New file.
9909 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9910 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9911 * sysdeps/aarch64/math-tests.h: Remove file.
9912 * sysdeps/arm/math-tests.h: Likewise.
9913 * sysdeps/riscv/math-tests.h: Likewise.
9914 * sysdeps/aarch64/math-tests-trap.h: New file.
9915 * sysdeps/arm/math-tests-trap.h: Likewise.
9916 * sysdeps/riscv/math-tests-trap.h: Likewise.
9917
9918 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9919
9920 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9921 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9922 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9923 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9924 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9925 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9926 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9927 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9928 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9929 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9930 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9931 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9932 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9933 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9934 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9935 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9936 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9937 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9938
9939 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9940
9941 * sysdeps/generic/math-tests-exceptions.h: New file.
9942 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9943 (EXCEPTION_TESTS_float): Do not define here.
9944 (EXCEPTION_TESTS_double): Likewise.
9945 (EXCEPTION_TESTS_long_double): Likewise.
9946 (EXCEPTION_TESTS_float128): Likewise.
9947 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9948 Likewise.
9949 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9950 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9951 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9952 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9953 * sysdeps/mips/math-tests.h: Likewise.
9954 * sysdeps/nios2/math-tests.h: Likewise.
9955 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9956 (EXCEPTION_TESTS_float): Do not define here.
9957 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9958 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9959 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9960
9961 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9962
9963 * NEWS: Move optimized sinf entry to 2.29.
9964
9965 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9966
9967 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9968
9969 2018-08-22 DJ Delorie <dj@redhat.com>
9970
9971 * Makefile (testroot.pristine): New rules to initialize the
9972 test-in-container "testroot".
9973 * Makerules (all-testsuite): Add tests-container.
9974 * Rules (tests-expected): Add tests-container.
9975 (binaries-all-tests): Likewise.
9976 (tests-container): New, run these tests in the testroot container.
9977 * support/Makefile (others): Add *-container, support_paths.c,
9978 xmkdirp, and links-dso-program.
9979 * support/links-dso-program-c.c: New.
9980 * support/links-dso-program.cc: New.
9981 * support/test-container.c: New.
9982 * support/shell-container.c: New.
9983 * support/echo-container.c: New.
9984 * support/true-container.c: New.
9985 * support/xmkdirp.c: New.
9986 * support/xsymlink.c: New.
9987 * support/support_paths.c: New.
9988 * support/support.h: Add support paths prototypes.
9989 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9990
9991 * nss/tst-nss-test3.c: Convert to test-in-container.
9992 * nss/tst-nss-test3.root/: New.
9993
9994 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9995
9996 regex: port Gnulib code to z/OS POSIX environment
9997 Problem reported by Arnold Robbins in:
9998 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9999 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10000 Undef.
10001
10002 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10003
10004 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10005 (ROUNDING_TESTS_double): Remove.
10006 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10007 (ROUNDING_TESTS_double): Remove.
10008 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10009 (ROUNDING_TESTS_double): Remove.
10010 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10011 (ROUNDING_TESTS_float): Remove.
10012 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10013 (ROUNDING_TESTS_float): Remove.
10014 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10015 (ROUNDING_TESTS_float): Remove.
10016 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10017 !TEST_MATHVEC here.
10018 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10019 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10020
10021 * sysdeps/generic/math-tests-rounding.h: New file.
10022 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10023 (ROUNDING_TESTS_float): Do not define here.
10024 (ROUNDING_TESTS_double): Likewise.
10025 (ROUNDING_TESTS_long_double): Likewise.
10026 (ROUNDING_TESTS_float128): Likewise.
10027 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10028 (ROUNDING_TESTS_double): Undefine before defining.
10029 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10030 (ROUNDING_TESTS_double): Undefine before defining.
10031 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10032 (ROUNDING_TESTS_double): Undefine before defining.
10033 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10034 (ROUNDING_TESTS_float): Undefine before defining.
10035 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10036 (ROUNDING_TESTS_float): Undefine before defining.
10037 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10038 (ROUNDING_TESTS_float): Undefine before defining.
10039 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10040 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10041 not define here.
10042 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10043 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10044 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10045 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10046 (ROUNDING_TESTS_float): Do not define here.
10047 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10048 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10049 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10050 (ROUNDING_TESTS_float): Likewise.
10051 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10052 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10053 * sysdeps/mips/math-tests.h [__mips_soft_float]
10054 (ROUNDING_TESTS_float): Likewise.
10055 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10056 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10057 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10058 (ROUNDING_TESTS_double): Likewise.
10059 (ROUNDING_TESTS_long_double): Likewise.
10060
10061 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10062
10063 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10064 (PF_XDP): New macro.
10065 (AF_XDP): New macro.
10066 (SOL_XDP): New macro.
10067
10068 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10069
10070 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10071 (TCP_INQ): Likewise.
10072 (TCP_CM_INQ): Likewise.
10073 (TCP_REPAIR_ON): Likewise.
10074 (TCP_REPAIR_OFF): Likewise.
10075 (TCP_REPAIR_OFF_NO_WP): Likewise.
10076 (struct tcp_zerocopy_receive): New type.
10077
10078 2018-08-21 Florian Weimer <fweimer@redhat.com>
10079
10080 * support/support.h (support_descriptor_supports_holes): Declare.
10081 * support/Makefile (libsupport-routines): Add
10082 support_descriptor_supports_holes.
10083 * support/support_descriptor_supports_holes.c: New file.
10084 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10085 and stop testing if holes are not supported.
10086 * io/test-lfs.c (do_prepare): Likewise.
10087 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10088 Likewise.
10089 * timezone/tst-tzset.c (create_tz_file): Likewise.
10090 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10091 variable.
10092 (do_prepare): Set it.
10093 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10094
10095 2018-08-21 Florian Weimer <fweimer@redhat.com>
10096
10097 [BZ #17248]
10098 * Makeconfig (+cflags): Do not sort (and deduplicate).
10099
10100 2018-08-21 Florian Weimer <fweimer@redhat.com>
10101
10102 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10103 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10104
10105 2018-08-20 Florian Weimer <fweimer@redhat.com>
10106
10107 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10108 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10109
10110 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10111
10112 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10113 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10114 and ssi_arch members.
10115
10116 * elf/elf.c (NT_VMCOREDD): New macro.
10117 (AT_MINSIGSTKSZ): Likewise.
10118
10119 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10120
10121 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10122 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10123 s_cosf-ppc64 and s_cosf-power8.
10124 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10125 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10126 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10127 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10134 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10135 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10136
10137 2018-08-17 Florian Weimer <fweimer@redhat.com>
10138
10139 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10140
10141 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10142
10143 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10144
10145 2018-08-16 Florian Weimer <fweimer@redhat.com>
10146
10147 * configure.ac: Add --with-nonshared-cflags option.
10148 * config.make.in (extra-nonshared-cflags): Set variable.
10149 * Makeconfig (CFLAGS-.oS): Use it.
10150 * manual/install.texi (Configuring and compiling): Document
10151 --with-nonshared-cflags.
10152 * configure: Regenerate.
10153 * INSTALL: Likewise.
10154
10155 2018-08-16 Florian Weimer <fweimer@redhat.com>
10156
10157 * Makeconfig (ASFLAGS): Always append required assembler flags.
10158
10159 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10160
10161 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10162 (malloc_consolidate): Likewise.
10163
10164 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10165
10166 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10167
10168 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10169
10170 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10171 every strlen call.
10172
10173 * benchtests/bench-strlen.c: Print performance numbers in json.
10174
10175 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10176
10177 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10178 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10179 only for little endian.
10180 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10181 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10182 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10183 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10184 Add check for little endian.
10185 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10186 (__strcmp_power9): Add check for little endian.
10187 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10188 Add check for little endian.
10189 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10190 (__strncmp_power9): Add check for little endian.
10191 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10192 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10193 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10194 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10195 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10196
10197 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10198
10199 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10200 [!STRLEN](STRLEN): Set to __strlen.
10201 * sysdeps/aarch64/multiarch/strlen.c: New file.
10202 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10203 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10204 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10205 (__libc_ifunc_impl_list): Add strlen.
10206 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10207 strlen_generic and strlen_asimd.
10208
10209 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10210
10211 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10212 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10213 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10214
10215 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10216
10217 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10218
10219 2018-08-14 Florian Weimer <fweimer@redhat.com>
10220
10221 [BZ #23519]
10222 * include/stdio.h (__vfxprintf): Declare.
10223 * stdio-common/fxprintf.c (__vfxprintf): New function.
10224 (__fxprintf): Call it.
10225 * misc/err.c (convert_and_print): Remove function.
10226 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10227 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10228 * misc/Makefile (tests): Add tst-warn-wide.
10229 * misc/tst-warn-wide.c: New file.
10230
10231 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10232 Szabolcs Nagy <szabolcs.nagy@arm.com>
10233
10234 * NEWS: Mention sinf, cosf, sincosf.
10235 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10236 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10237 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10238 constants rather than including generic sincosf.h.
10239 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10240 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10241 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10242 (reduced_cos): Remove.
10243 (sinf_poly): New function.
10244 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10245
10246 2018-08-14 Florian Weimer <fweimer@redhat.com>
10247
10248 [BZ #23521]
10249 [BZ #23522]
10250 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10251 processing, bail out if no room, and close the stream before
10252 returning ERANGE.
10253 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10254 (tst-nss-files-alias-leak): Link with libdl.
10255 (tst-nss-files-alias-leak.out): Depend on nss_files.
10256
10257 * nss/tst-nss-files-alias-leak.c: New file.
10258
10259 2018-08-14 Florian Weimer <fweimer@redhat.com>
10260
10261 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10262 server_user, stat_user.
10263
10264 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10265
10266 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10267 version to 4.18.
10268 (io_pgetevents): New syscall.
10269 (rseq): Likewise.
10270
10271 * manual/install.texi (Configuring and compiling): Do not list
10272 tools used for testing pretty printers here.
10273 (Tools for Compilation): List Python, PExpect and GDB here.
10274 Update descriptions of uses of Perl and Python.
10275 * INSTALL: Regenerate.
10276
10277 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10278 version to 4.18.
10279
10280 2018-08-13 Florian Weimer <fweimer@redhat.com>
10281
10282 * misc/error.c (error): Add missing va_end call.
10283 (error_at_line): Likewise.
10284
10285 2018-08-13 Florian Weimer <fweimer@redhat.com>
10286
10287 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10288
10289 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10290
10291 * benchtests/scripts/benchout.schema.json (properties): Add
10292 new properties.
10293
10294 * benchtests/bench-skeleton.c (main): Add duration and
10295 iterations attributes.
10296
10297 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10298
10299 regex: Gnulib unibyte RRI uses bytes not chars
10300 Adjust the non-glibc code to agree with what Gawk needs for
10301 rational range interpretation (RRI) for regular expression ranges.
10302 In unibyte locales, Gawk wants ranges to use the underlying byte
10303 rather than the character code point. This change does not affect
10304 glibc proper.
10305 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10306 In unibyte locales, use the byte value rather than
10307 running it through btowc.
10308
10309 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10310
10311 * sysdeps/generic/math-tests-snan.h: New file.
10312 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10313 (SNAN_TESTS_float): Do not define here.
10314 (SNAN_TESTS_double): Likewise.
10315 (SNAN_TESTS_long_double): Likewise.
10316 (SNAN_TESTS_float128): Likewise.
10317 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10318 * sysdeps/i386/fpu/math-tests.h: Remove file.
10319 * sysdeps/ia64/math-tests-snan.h: New file.
10320 * sysdeps/ia64/math-tests.h: Remove file.
10321 * sysdeps/x86/math-tests.h: Likewise.
10322 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10323
10324 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10325 Szabolcs Nagy <szabolcs.nagy@arm.com>
10326
10327 * math/Makefile: Add s_sincosf_data.c.
10328 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10329 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10330 (sincosf_poly): Likewise.
10331 (reduce_small): Likewise.
10332 (reduce_large): Likewise.
10333 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10334 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10335 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10336 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10337
10338 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10339 Szabolcs Nagy <szabolcs.nagy@arm.com>
10340
10341 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10342 (converttoint): Use lround.
10343 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10344 document the semantics when TOINT_INTRINSICS is set.
10345 (converttoint): Likewise.
10346 (TOINT_RINT): Remove.
10347 (TOINT_SHIFT): Remove.
10348 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10349 path.
10350
10351 2018-08-10 Florian Weimer <fweimer@redhat.com>
10352
10353 [BZ #23497]
10354 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10355 function.
10356 (__old_getdents64): Use getdents64. Convert entries without
10357 moving them.
10358 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10359 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10360 tst-readdir64-compat.
10361
10362 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10363
10364 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10365 Fix unwind.
10366
10367 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10368
10369 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10370 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10371 code to s390x-mcount.h and #include it.
10372 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10373 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10374 (__fentry__): Add.
10375
10376 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10377
10378 * stdlib/Versions: Remove __fentry__.
10379 * sysdeps/i386/Versions: Add __fentry__.
10380 * sysdeps/x86_64/Versions: Add __fentry__.
10381
10382 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10383
10384 * sysdeps/s390/Makefile: Register the new tests.
10385 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10386 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10387 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10388 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10389 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10390 * sysdeps/s390/tst-dl-runtime.c: New file.
10391
10392 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10393
10394 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10395 Do not clobber R0.
10396
10397 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10398
10399 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10400 Do not clobber R0.
10401
10402 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10403
10404 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10405 Do not clobber R0.
10406
10407 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10408
10409 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10410 Do not clobber R0.
10411
10412 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10413
10414 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10415 Use symbolic offsets for stack variables.
10416
10417 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10418
10419 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10420 Use symbolic offsets for stack variables.
10421
10422 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10423
10424 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10425 Use symbolic offsets for stack variables.
10426
10427 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10428
10429 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10430 Use symbolic offsets for stack variables.
10431
10432 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10433
10434 * math/gen-libm-test.py: New file.
10435 * math/gen-libm-test.pl: Remove.
10436 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10437 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10438 gen-libm-test.pl.
10439 ($(libm-test-c-noauto-obj)): Likewise.
10440 ($(libm-test-c-auto-obj)): Likewise.
10441 ($(libm-test-c-narrow-obj)): Likewise.
10442 (regen-ulps): Likewise.
10443 * math/README.libm-test: Update references to gen-libm-test.pl.
10444 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10445 referencing gen-libm-test.pl.
10446 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10447 * math/libm-test-support.c: Likewise.
10448 * math/libm-test-support.h: Likewise.
10449 * sysdeps/generic/libm-test-ulps: Likewise.
10450
10451 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10452
10453 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10454 Fix value.
10455
10456 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10457
10458 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10459 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10460
10461 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10462
10463 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10464 symbols.
10465 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10466 __pthread_setspecific): Add hidden proto.
10467 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10468 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10469
10470 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10471
10472 * benchtests/bench-string.h (buf1_size, buf2_size): New
10473 variables.
10474 (init_sizes): New function.
10475 (test_init): Use it.
10476 (alloc_buf, exit_error): New functions.
10477 (alloc_bufs): Use ALLOC_BUF.
10478 (realloc_bufs): Remove.
10479 * benchtests/bench-memcmp.c (do_test): Adjust.
10480 * benchtests/bench-memset-large.c (do_test): Likewise.
10481 * benchtests/bench-memset-walk.c (do_test): Likewise.
10482 * benchtests/bench-memset.c (do_test): Likewise.
10483 * benchtests/bench-strncmp.c (do_test): Likewise.
10484
10485 2018-08-06 Andreas Schwab <schwab@suse.de>
10486
10487 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10488 of CONST_THREAD_AREA.
10489
10490 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10491
10492 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10493 (STATE_SAVE_MASK): Likewise.
10494 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10495 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10496 (STATE_SAVE_MASK): Likewise.
10497 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10498 instead of <cpu-features.h>.
10499
10500 2018-08-03 DJ Delorie <dj@redhat.com>
10501
10502 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10503 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10504
10505 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10506
10507 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10508
10509 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10510 after TEST_* calls.
10511 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10512 * math/libm-test-logb.inc (logb_test_data): Likewise.
10513
10514 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10515
10516 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10517 * string/strstr.c (AVAILABLE): Likewise.
10518
10519 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10520
10521 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10522 <init-arch.h>.
10523 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10524 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10525 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10526
10527 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10528
10529 * po/be.po: Update translation.
10530
10531 * po/be.po: Update translation.
10532
10533 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10534
10535 * sysdeps/x86/cpu-features-offsets.sym
10536 (rtld_global_ro_offsetof): Removed.
10537 (CPU_FEATURES_SIZE): Likewise.
10538 (CPUID_OFFSET): Likewise.
10539 (CPUID_SIZE): Likewise.
10540 (CPUID_EAX_OFFSET): Likewise.
10541 (CPUID_EBX_OFFSET): Likewise.
10542 (CPUID_ECX_OFFSET): Likewise.
10543 (CPUID_EDX_OFFSET): Likewise.
10544 (FAMILY_OFFSET): Likewise.
10545 (MODEL_OFFSET): Likewise.
10546 (FEATURE_OFFSET): Likewise.
10547 (FEATURE_SIZ): Likewise.
10548 (COMMON_CPUID_INDEX_1): Likewise.
10549 (COMMON_CPUID_INDEX_7): Likewise.
10550 (FEATURE_INDEX_1): Likewise.
10551 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10552
10553 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10554
10555 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10556 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10557 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10558 (install-locales): Depend on install-locale-archive.
10559 (install-locale-archive): Define.
10560 (install-locale-files): Define.
10561 (build-one-locale): Define macro.
10562 * manual/install.texi (Running make install): Document.
10563 * manual/INSTALL: Regenerate.
10564
10565 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10566
10567 * benchtests/scripts/compare_strings.py: Import traceback.
10568 (parse_file): Pretty-print error.
10569
10570 * NEWS: Mention the change.
10571 * elf/dl-tunables.list: Rename tune namespace to cpu.
10572 * sysdeps/powerpc/dl-tunables.list: Likewise.
10573 * sysdeps/x86/dl-tunables.list: Likewise.
10574 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10575 cpu.name.
10576 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10577 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10578 * manual/README.tunables: Likewise.
10579 * manual/tunables.texi: Likewise.
10580 * sysdeps/powerpc/cpu-features.c: Likewise.
10581 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10582 (init_cpu_features): Likewise.
10583 * sysdeps/x86/cpu-features.c: Likewise.
10584 * sysdeps/x86/cpu-features.h: Likewise.
10585 * sysdeps/x86/cpu-tunables.c: Likewise.
10586 * sysdeps/x86_64/Makefile: Likewise.
10587 * sysdeps/x86/dl-cet.c: Likewise.
10588
10589 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10590
10591 [BZ #23479]
10592 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10593 [__mips_hard_float].
10594 (FE_UNDERFLOW): Likewise.
10595 (FE_OVERFLOW): Likewise.
10596 (FE_DIVBYZERO): Likewise.
10597 (FE_INVALID): Likewise.
10598 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10599 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10600 (FE_UPWARD): Likewise.
10601 (FE_DOWNWARD): Likewise.
10602 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10603 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10604 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10605 [__mips_hard_float].
10606 (FP_ROUNDMODE): Likewise.
10607 (FP_RND_NEAREST): Likewise.
10608 (FP_RND_ZERO): Likewise.
10609 (FP_RND_PINF): Likewise.
10610 (FP_RND_MINF): Likewise.
10611 (FP_EX_INVALID): Likewise.
10612 (FP_EX_OVERFLOW): Likewise.
10613 (FP_EX_UNDERFLOW): Likewise.
10614 (FP_EX_DIVZERO): Likewise.
10615 (FP_EX_INEXACT): Likewise.
10616 (FP_INIT_ROUNDMODE): Likewise.
10617 * sysdeps/mips/nofpu/fesetenv.c: New file.
10618 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10619
10620 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10621
10622 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10623 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10624 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10625 conditional on [FE_UPWARD].
10626
10627 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10628
10629 regex: fix memory leak in Gnulib
10630 Problem and fix reported by Assaf Gordon in:
10631 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10632 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10633 range_ends members too, as they are defined in 'struct
10634 re_charset_t' even if not _LIBC. This affects only Gnulib.
10635
10636 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10637
10638 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10639 ...
10640 (get_common_indices): This.
10641 (init_cpu_features): Updated.
10642
10643 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10644
10645 * sysdeps/generic/math-tests-snan-payload.h: New file.
10646 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10647 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10648 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10649 * sysdeps/generic/math-tests.h: Include
10650 <math-tests-snan-payload.h>.
10651 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10652 * sysdeps/hppa/math-tests.h: Remove file.
10653 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10654 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10655 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10656 Likewise.
10657
10658 * sysdeps/generic/math-tests-snan-cast.h: New file.
10659 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10660 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10661 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10662 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10663
10664 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10665
10666 * version.h (RELEASE): Set to "development".
10667 (VERSION): Set to "2.28.9000".
10668 * NEWS (2.29): New section.
10669
10670 * version.h (RELEASE): Set to "stable".
10671 (VERSION): Set to "2.28".
10672 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10673 * NEWS: Add the list of bugs fixed in 2.28.
10674
10675 * po/ca.po: Update to latest version.
10676 * po/cs.po: Likewise
10677 * po/da.po: Likewise
10678 * po/el.po: Likewise
10679 * po/eo.po: Likewise
10680 * po/es.po: Likewise
10681 * po/fi.po: Likewise
10682 * po/fr.po: Likewise
10683 * po/gl.po: Likewise
10684 * po/hu.po: Likewise
10685 * po/ia.po: Likewise
10686 * po/id.po: Likewise
10687 * po/it.po: Likewise
10688 * po/ja.po: Likewise
10689 * po/ko.po: Likewise
10690 * po/lt.po: Likewise
10691 * po/nb.po: Likewise
10692 * po/nl.po: Likewise
10693 * po/pt_BR.po: Likewise
10694 * po/ru.po: Likewise
10695 * po/rw.po: Likewise
10696 * po/sk.po: Likewise
10697 * po/sl.po: Likewise
10698 * po/tr.po: Likewise
10699 * po/zh_CN.po: Likewise
10700 * po/zh_TW.po: Likewise
10701
10702 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10703
10704 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10705 initialization...
10706 (init): ... before initializing libpthread.
10707
10708 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10709 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10710 (__mach_setup_tls): ... new function.
10711 (mach_setup_tls): New alias.
10712 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10713 __mach_setup_thread.
10714 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10715 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10716 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10717 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10718
10719 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10720
10721 * manual/install.texi: Update versions.
10722 * INSTALL: Regenerate.
10723
10724 * manual/contrib.texi (Contributors): Update contributions.
10725
10726 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10727
10728 * po/be.po: Update translations.
10729
10730 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10731
10732 * sysdeps/sh/libm-test-ulps: Update.
10733
10734 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10735
10736 * po/bg.po: Update translations.
10737 * po/de.po: Likewise.
10738 * po/hr.po: Likewise.
10739 * po/pt_BR.po: Likewise.
10740 * po/sv.po: Likewise.
10741 * po/vi.po: Likewise.
10742
10743 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10744
10745 [BZ #23467]
10746 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10747 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10748 (CFLAGS-tst-cet-property-1.o): New.
10749 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10750 ($(objpfx)tst-cet-property-2): Likewise.
10751 ($(objpfx)tst-cet-property-2.out): Likewise.
10752 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10753 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10754 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10755 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10756 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10757
10758 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10759
10760 [BZ #23458]
10761 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10762
10763 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10764
10765 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10766 __sbrk): Do not set attribute_hidden.
10767 * sysdeps/mach/hurd/not-errno.h: New file.
10768 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10769 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10770
10771 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10772
10773 * po/uk.po: Update translations.
10774 * po/cs.po: Likewise.
10775 * po/pl.po: Likewise.
10776
10777 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10778
10779 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10780 parse beyond the note end.
10781
10782 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10783
10784 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10785 kernel does not support OFD locks.
10786 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10787
10788 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10789
10790 * sysdeps/mach/hurd/Versions (libc): Make __access and
10791 __access_noerrno external so they can override the ld symbols.
10792 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10793 __writev, __open64, __access_noerrno extern so they can be overrided.
10794 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10795 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10796
10797 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10798
10799 * po/libc.pot: Regenerate.
10800
10801 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10802
10803 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10804
10805 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10806
10807 [BZ #23459]
10808 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10809 function.
10810 (init_cpu_features): Call get_extended_indices for both Intel
10811 and AMD CPUs.
10812 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10813 Remove "for AMD" comment.
10814
10815 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10816
10817 [BZ # 23456]
10818 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10819 COMMON_CPUID_INDEX_80000001.
10820
10821 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10822
10823 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10824 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10825
10826 2018-07-26 Florian Weimer <fweimer@redhat.com>
10827
10828 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10829 aliases for symbols not in the implementation namespace.
10830
10831 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10832
10833 [BZ #23393]
10834 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10835 lowercase in LATIN script.
10836 * localedata/Makefile (test-input): Add en_US.UTF-8.
10837 * localedata/en_US.UTF-8.in: New file.
10838 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10839 and restore old tests.
10840 * posix/tst-regexloc.c (do_test): Add back range expression test.
10841
10842 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10843
10844 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10845
10846 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10847
10848 * nptl/threads.h: Move to ...
10849 * sysdeps/nptl/threads.h: ... here.
10850 * sysdeps/hurd/stdc-predef.h: New file.
10851
10852 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10853
10854 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10855 tst-cet-setcontext-1 if CET is enabled.
10856 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10857 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10858
10859 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10860
10861 * include/threads.h: Move to ...
10862 * sysdeps/nptl/threads.h: ... here.
10863 * sysdeps/htl/threads.h: New file.
10864 * conform/Makefile (linknamespace-libs-ISO11): Use
10865 static-thread-library instead of linking libpthread.
10866 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10867
10868 2018-07-25 Florian Weimer <fweimer@redhat.com>
10869
10870 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10871 nanoseconds into seconds.
10872 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10873 (do_test): Likewise.
10874 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10875 (do_test): Likewise. Avoid nanosecond overflow and spurious
10876 timeouts due to system load.
10877 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10878 (child_wait): Increment it.
10879 (do_test): Wait as long as necessary until all expected threads
10880 have arrived.
10881
10882 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10883 H.J. Lu <hongjiu.lu@intel.com>
10884
10885 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10886 __ssp.
10887 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10888 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10889 (__push___start_context): New.
10890 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10891 <asm/prctl.h>.
10892 (__getcontext): Record the current shadow stack base. Save the
10893 caller's shadow stack pointer and base.
10894 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10895 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10896 (__push___start_context): New prototype.
10897 (__makecontext): Call __push___start_context to allocate a new
10898 shadow stack, push __start_context onto the new stack as well
10899 as the new shadow stack.
10900 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10901 <asm/prctl.h>.
10902 (__setcontext): Restore the target shadow stack.
10903 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10904 <asm/prctl.h>.
10905 (__swapcontext): Record the current shadow stack base. Save
10906 the caller's shadow stack pointer and base. Restore the target
10907 shadow stack.
10908 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10909 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10910 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10911
10912 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10913
10914 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10915 tst-setcontext8 and tst-setcontext9.
10916 * stdlib/tst-setcontext6.c: New file.
10917 * stdlib/tst-setcontext7.c: Likewise.
10918 * stdlib/tst-setcontext8.c: Likewise.
10919 * stdlib/tst-setcontext9.c: Likewise.
10920
10921 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10922
10923 * stdlib/Makefile ((tests): Add tst-setcontext5.
10924 * stdlib/tst-setcontext5.c: New file.
10925
10926 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10927
10928 * stdlib/Makefile (tests): Add tst-setcontext4.
10929 * stdlib/tst-setcontext4.c: New file.
10930
10931 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10932
10933 * stdlib/Makefile (tests): Add tst-swapcontext1.
10934 * stdlib/tst-swapcontext1.c: New test.
10935
10936 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10937
10938 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10939 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10940 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10941 and tst-cet-legacy-4c.
10942 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10943 and tst-cet-legacy-mod-4.
10944 (CFLAGS-tst-cet-legacy-2.c): New.
10945 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10946 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10947 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10948 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10949 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10950 ($(objpfx)tst-cet-legacy-1): Likewise.
10951 ($(objpfx)tst-cet-legacy-2): Likewise.
10952 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10953 ($(objpfx)tst-cet-legacy-2a): Likewise.
10954 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10955 ($(objpfx)tst-cet-legacy-4): Likewise.
10956 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10957 ($(objpfx)tst-cet-legacy-4a): Likewise.
10958 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10959 (tst-cet-legacy-4a-ENV): Likewise.
10960 ($(objpfx)tst-cet-legacy-4b): Likewise.
10961 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10962 (tst-cet-legacy-4b-ENV): Likewise.
10963 ($(objpfx)tst-cet-legacy-4c): Likewise.
10964 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10965 (tst-cet-legacy-4c-ENV): Likewise.
10966 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10967 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10968 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10969 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10970 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10971 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10972 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10973 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10974 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10975 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10976 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10977
10978 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10979
10980 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10981 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10982 with ssp_base.
10983 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10984 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10985 with ssp_base.
10986
10987 2018-07-25 Andreas Schwab <schwab@suse.de>
10988
10989 [BZ #23442]
10990 * locale/weightwc.h (findidx): Handle the case where usrc is a
10991 prefix of cp but one character too short.
10992
10993 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10994
10995 * NEWS: Add ISO C threads addition.
10996
10997 2018-07-24 Florian Weimer <fweimer@redhat.com>
10998
10999 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11000 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11001 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11002 4.13.
11003
11004 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11005
11006 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11007 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11008 <sys/prctl.h> and <asm/prctl.h>.
11009 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11010 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11011 and <asm/prctl.h>.
11012 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11013 ARCH_CET_LEGACY_BITMAP.
11014 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11015 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11016 * sysdeps/x86/libc-start.c: Include <startup.h>.
11017
11018 2018-07-24 Florian Weimer <fweimer@redhat.com>
11019
11020 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11021 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11022
11023 2018-07-24 Rical Jasan <rj@2c3t.io>
11024 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11025 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11026
11027 [BZ #14092]
11028 * manual/debug.texi: Update adjacent chapter name.
11029 * manual/probes.texi: Likewise.
11030 * manual/threads.texi (ISO C Threads): New section.
11031 (POSIX Threads): Convert to a section.
11032
11033 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11034 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11035
11036 [BZ# 14092]
11037 * nptl/Makefile (tests): Add new test files.
11038 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11039 * nptl/tst-cnd-basic.c: Likewise.
11040 * nptl/tst-cnd-broadcast.c: Likewise.
11041 * nptl/tst-cnd-timedwait.c: Likewise.
11042 * nptl/tst-mtx-basic.c: Likewise.
11043 * nptl/tst-mtx-recursive.c: Likewise.
11044 * nptl/tst-mtx-timedlock.c: Likewise.
11045 * nptl/tst-mtx-trylock.c: Likewise.
11046 * nptl/tst-thrd-basic.c: Likewise.
11047 * nptl/tst-thrd-detach.c: Likewise.
11048 * nptl/tst-thrd-sleep.c: Likewise.
11049 * nptl/tst-tss-basic.c: Likewise.
11050
11051 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11052
11053 [BZ #14092]
11054 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11055 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11056 symbols.
11057 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11058 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11059 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11060 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11061 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11062 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11063 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11064 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11065 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11066 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11068 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11070 Likewise.
11071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11072 Likewise.
11073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11074 Likewise.
11075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11076 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11077 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11078 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11085 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11086 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11087 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11088 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11089 Likewise.
11090 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11091 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11092 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11093 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11094 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11095 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11096 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11097 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11100 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11101 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11102 ikewise.
11103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11105 Likewise.
11106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11107 Likewise.
11108 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11109 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11110 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11111 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11112 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11113 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11114 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11115 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11116
11117 [BZ #14092]
11118 * conform/data/threads.h-data (thread_local): New macro.
11119 (TSS_DTOR_ITERATIONS): Likewise.
11120 (tss_t): New type.
11121 (tss_dtor_t): Likewise.
11122 (tss_create): New function.
11123 (tss_get): Likewise.
11124 (tss_set): Likewise.
11125 (tss_delete): Likewise.
11126 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11127 tss_get, and tss_set objects.
11128 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11129 * nptl/tss_create.c: New file.
11130 * nptl/tss_delete.c: Likewise.
11131 * nptl/tss_get.c: Likewise.
11132 * nptl/tss_set.c: Likewise.
11133 * sysdeps/nptl/threads.h (thread_local): New define.
11134 (TSS_DTOR_ITERATIONS): Likewise.
11135 (tss_t): New typedef.
11136 (tss_dtor_t): Likewise.
11137 (tss_create): New prototype.
11138 (tss_get): Likewise.
11139 (tss_set): Likewise.
11140 (tss_delete): Likewise.
11141
11142 [BZ #14092]
11143 * conform/data/threads.h-data (cnd_t): New type.
11144 (cnd_init): New function.
11145 (cnd_signal): Likewise.
11146 (cnd_broadcast): Likewise.
11147 (cnd_wait): Likewise.
11148 (cnd_timedwait): Likewise.
11149 (cnd_destroy): Likewise.
11150 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11151 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11152 object.
11153 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11154 * nptl/cnd_broadcast.c: New file.
11155 * nptl/cnd_destroy.c: Likewise.
11156 * nptl/cnd_init.c: Likewise.
11157 * nptl/cnd_signal.c: Likewise.
11158 * nptl/cnd_timedwait.c: Likewise.
11159 * nptl/cnd_wait.c: Likewise.
11160 * sysdeps/nptl/threads.h (cnd_t): New type.
11161 (cnd_init): New prototype.
11162 (cnd_signa): Likewise.
11163 (cnd_broadcast): Likewise.
11164 (cnd_wait): Likewise.
11165 (cnd_timedwait): Likewise.
11166 (cnd_destroy): Likewise.
11167
11168 [BZ #14092]
11169 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11170 (once_flag): New type.
11171 (call_once): New function.
11172 * nptl/Makefile (libpthread-routines): Add call_once object.
11173 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11174 * nptl/call_once.c: New file.
11175 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11176 (once_flag): New type.
11177 (call_once): New prototype.
11178
11179 [BZ #14092]
11180 * conform/data/threads.h-data (mtx_plain): New constant.
11181 (mtx_recursive): Likewise.
11182 (mtx_timed): Likewise.
11183 (mtx_t): New type.
11184 (mtx_init): New function.
11185 (mtx_lock): Likewise.
11186 (mtx_timedlock): Likewise.
11187 (mtx_trylock): Likewise.
11188 (mtx_unlock): Likewise.
11189 (mtx_destroy): Likewise.
11190 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11191 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11192 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11193 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11194 * nptl/mtx_destroy.c: New file.
11195 * nptl/mtx_init.c: Likewise.
11196 * nptl/mtx_lock.c: Likewise.
11197 * nptl/mtx_timedlock.c: Likewise.
11198 * nptl/mtx_trylock.c: Likewise.
11199 * nptl/mtx_unlock.c: Likewise.
11200 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11201 (mtx_recursive): Likewise.
11202 (mtx_timed): Likewise.
11203 (mtx_t): New type.
11204 (mtx_init): New prototype.
11205 (mtx_lock): Likewise.
11206 (mtx_timedlock): Likewise.
11207 (mtx_trylock): Likewise.
11208 (mtx_unlock): Likewise.
11209 (mtx_destroy): Likewise.
11210
11211 [BZ #14092]
11212 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11213 (linknamespace-libs-ISO11): Add libpthread.a.
11214 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11215 functions.
11216 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11217 * nptl/Makefile (headers): Add threads.h.
11218 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11219 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11220 thrd_yield.
11221 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11222 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11223 thrd_join, thrd_sleep, and thrd_yield symbols.
11224 * nptl/descr.h (struct pthread): Add c11 field.
11225 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11226 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11227 routine with expected function prototype.
11228 (__pthread_create_2_1): Add C11 threads check based on attribute
11229 value.
11230 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11231 * nptl/thrd_create.c: New file.
11232 * nptl/thrd_current.c: Likewise.
11233 * nptl/thrd_detach.c: Likewise.
11234 * nptl/thrd_equal.c: Likewise.
11235 * nptl/thrd_exit.c: Likewise.
11236 * nptl/thrd_join.c: Likewise.
11237 * nptl/thrd_priv.h: Likewise.
11238 * nptl/thrd_sleep.c: Likewise.
11239 * nptl/thrd_yield.c: Likewise.
11240 * include/threads.h: Likewise.
11241
11242 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11243
11244 * bits/indirect-return.h: New file.
11245 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11246 * sysdeps/x86/bits/indirect-return.h: Likewise.
11247 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11248 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11249 (swapcontext): Add __INDIRECT_RETURN.
11250 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11251 (prepare_test_buffer): Use it.
11252
11253 2018-07-24 Andreas Schwab <schwab@suse.de>
11254
11255 [BZ #23448]
11256 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11257 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11258
11259 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11260
11261 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11262 Redefine if shadow stack is enabled.
11263 (SYSCALL_ERROR_LABEL): Likewise.
11264 (__vfork): Pop shadow stack and jump back to to caller directly
11265 when shadow stack is in use.
11266 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11267 Redefine if shadow stack is enabled.
11268 (SYSCALL_ERROR_LABEL): Likewise.
11269 (__vfork): Pop shadow stack and jump back to to caller directly
11270 when shadow stack is in use.
11271
11272 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11273
11274 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11275 enabled.
11276 (foo): Likewise.
11277 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11278 (foo): Likewise.
11279
11280 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11281
11282 * scripts/build-many-glibcs.py (Context.checkout): Default
11283 binutils version to 2.31 branch.
11284
11285 2018-07-20 Zong Li <zong@andestech.com>
11286
11287 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11288 URL of gcc's tarball.
11289
11290 2018-07-20 Florian Weimer <fweimer@redhat.com>
11291
11292 [BZ #23396]
11293 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11294 not compare an extra byte after the end of the weights.
11295
11296 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11297
11298 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11299 to 1.
11300 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11301 hidden prototypes.
11302 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11303 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11304 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11305 list of libraries whose stack executability is expected.
11306 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11307 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11308 variable.
11309 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11310 libc.so libpthread.so.
11311
11312 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11313
11314 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11315 SOCK_NONBLOCK.
11316 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11317 and SOCK_NONBLOCK.
11318 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11319 implement __pipe2.
11320 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11321
11322 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11323
11324 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11325 library to improve command line parsing.
11326 (__main__): make schema file as optional parameter (--schema),
11327 defaulting to benchtests/scripts/benchout.schema.json.
11328 (main): move out of the parsing stuff to __main_  and leave it
11329 only as caller of main comparison functions.
11330
11331 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11332
11333 * NEWS: Add a note for Intel CET status.
11334 * manual/install.texi: Likewise.
11335 * INSTALL: Regenerated.
11336
11337 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11338
11339 [BZ #23140]
11340 * localedata/locales/oc_FR (mon): Rename to...
11341 (alt_mon): This, then update October (typo fix).
11342 (mon): New content (genitive case, month names preceded by
11343 "de" or "d’").
11344
11345 [BZ #23422]
11346 * localedata/locales/oc_FR (abday): Update all items.
11347 (day): Update Wednesday and Saturday (typo fixes).
11348 (abmon): Update all items, except May.
11349 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11350 (LC_IDENTIFICATION): Bump the revision number and date.
11351 Keep the "category" entries in alphabetic order.
11352 (LC_ADDRESS): Remove no longer needed comment.
11353 (LC_COLLATE): Use “copy "ca_ES"”.
11354 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11355 "name_mrs".
11356
11357 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11358
11359 * grp/tst_fgetgrent.c: Include <unistd.h>.
11360 (main): Use mkstemp instead of tmpnam.
11361 * io/test-utime.c (main): Likewise.
11362 * posix/annexc.c (macrofile): Change to modifiable array.
11363 (main): Remove macrofile here.
11364 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11365 macrofile here.
11366 (check_header): Do not remove macrofile here.
11367 * posix/bug-getopt1.c: Include <stdlib.h>.
11368 (do_test): Use mkstemp instead of tmpnam.
11369 * posix/bug-getopt2.c: Include <stdlib.h>.
11370 (do_test): Use mkstemp instead of tmpnam.
11371 * posix/bug-getopt3.c: Include <stdlib.h>.
11372 (do_test): Use mkstemp instead of tmpnam.
11373 * posix/bug-getopt4.c: Include <stdlib.h>.
11374 (do_test): Use mkstemp instead of tmpnam.
11375 * posix/bug-getopt5.c: Include <stdlib.h>.
11376 (do_test): Use mkstemp instead of tmpnam.
11377 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11378 (main): Use mkstemp instead of tmpnam.
11379 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11380 (main): Use mkstemp instead of tmpnam.
11381 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11382 (main): use mkstemp instead of tmpnam.
11383 * stdlib/isomac.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
11389 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11390
11391 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11392 glibc.tune.x86_shstk.
11393
11394 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11395
11396 * NEWS: Mention --enable-cet.
11397 * manual/install.texi: Document --enable-cet.
11398 * INSTALL: Regenerated.
11399
11400 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11401
11402 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11403 Add _CET_NOTRACK before indirect jump to jump table.
11404
11405 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11406
11407 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11408 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11409 to jump table.
11410
11411 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11412
11413 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11414 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11415 to jump table.
11416
11417 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11418
11419 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11420 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11421 to jump table.
11422
11423 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11424
11425 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11426 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11427 to jump table.
11428
11429 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11430
11431 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11432 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11433 to jump table.
11434 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11435
11436 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11437
11438 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11439 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11440 to jump table.
11441
11442 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11443
11444 * sysdeps/i386/i686/multiarch/memset-sse2.S
11445 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11446 to jump table.
11447
11448 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11449
11450 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11451 indirect jump to jump table.
11452
11453 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11454
11455 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11456 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11457 to jump table.
11458 (MEMCPY): Likewise.
11459
11460 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11461
11462 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11463 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11464 to jump table.
11465 (MEMCPY): Likewise.
11466
11467 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11468
11469 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11470 _CET_NOTRACK before indirect jump to jump table.
11471
11472 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11473
11474 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11475 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11476 to jump table.
11477
11478 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11479
11480 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11481 indirect jump to jump table.
11482
11483 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11484
11485 [BZ #22241]
11486 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11487 (LOCALES): Likewise.
11488 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11489 * localedata/locales/sah_RU: New file.
11490 * localedata/sah_RU.UTF-8.in: New file.
11491
11492 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11493
11494 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11495 "sysdep.h".
11496 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11497 _CET_ENDBR to indirect jump targets and adjust jump destination
11498 for _CET_ENDBR.
11499 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11500 "sysdep.h".
11501 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11502 _CET_ENDBR to indirect jump targets and adjust jump destination
11503 for _CET_ENDBR.
11504 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11505 "sysdep.h".
11506 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11507 _CET_ENDBR to indirect jump targets and adjust jump destination
11508 for _CET_ENDBR.
11509
11510 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11511
11512 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11513 _CET_ENDBR.
11514
11515 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11516
11517 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11518 _CET_ENDBR.
11519 (_dl_tlsdesc_undefweak): Likewise.
11520 (_dl_tlsdesc_dynamic): Likewise.
11521 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11522 (_dl_tlsdesc_resolve_rel): Likewise.
11523 (_dl_tlsdesc_resolve_rela): Likewise.
11524 (_dl_tlsdesc_resolve_hold): Likewise.
11525 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11526 (_dl_tlsdesc_undefweak): Likewise.
11527 (_dl_tlsdesc_dynamic): Likewise.
11528 (_dl_tlsdesc_resolve_rela): Likewise.
11529 (_dl_tlsdesc_resolve_hold): Likewise.
11530
11531 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11532
11533 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11534 (_fini): Likewise.
11535 * sysdeps/x86_64/crti.S (_init): Likewise.
11536 (_fini): Likewise.
11537
11538 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11539
11540 [BZ #23140]
11541 * localedata/locales/os_RU (mon): Rename to...
11542 (alt_mon): This.
11543 (mon): Import from CLDR (genitive case).
11544
11545 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11546
11547 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11548 cet-tunables.h> when CET is enabled.
11549
11550 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11551
11552 [BZ #21598]
11553 * configure.ac: Add --enable-cet.
11554 * configure: Regenerated.
11555 * elf/Makefille (all-built-dso): Add a comment.
11556 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11557 Include <dl-prop.h>.
11558 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11559 segment.
11560 * elf/dl-open.c: Include <dl-prop.h>.
11561 (dl_open_worker): Call _dl_open_check.
11562 * elf/rtld.c: Include <dl-prop.h>.
11563 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11564 _rtld_main_check.
11565 * sysdeps/generic/dl-prop.h: New file.
11566 * sysdeps/i386/dl-cet.c: Likewise.
11567 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11568 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11569 * sysdeps/x86/cet-tunables.h: Likewise.
11570 * sysdeps/x86/check-cet.awk: Likewise.
11571 * sysdeps/x86/configure: Likewise.
11572 * sysdeps/x86/configure.ac: Likewise.
11573 * sysdeps/x86/dl-cet.c: Likewise.
11574 * sysdeps/x86/dl-procruntime.c: Likewise.
11575 * sysdeps/x86/dl-prop.h: Likewise.
11576 * sysdeps/x86/libc-start.h: Likewise.
11577 * sysdeps/x86/link_map.h: Likewise.
11578 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11579 _CET_ENDBR.
11580 (_dl_runtime_profile): Likewise.
11581 (_dl_runtime_resolve_shstk): New.
11582 (_dl_runtime_profile_shstk): Likewise.
11583 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11584 if CET is enabled.
11585 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11586 (CFLAGS-.os): Likewise.
11587 (CFLAGS-.op): Likewise.
11588 (CFLAGS-.oS): Likewise.
11589 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11590 is enabled.
11591 (tests-special): Add $(objpfx)check-cet.out.
11592 (cet-built-dso): New.
11593 (+$(cet-built-dso:=.note)): Likewise.
11594 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11595 ($(objpfx)check-cet.out): New.
11596 (generated): Add check-cet.out.
11597 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11598 <cet-tunables.h>.
11599 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11600 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11601 (init_cpu_features): Call get_cet_status to check CET status
11602 and update dl_x86_feature_1 with CET status. Call
11603 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11604 (set_x86_shstk). Disable and lock CET in libc.a.
11605 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11606 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11607 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11608 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11609 (_CET_ENDBR): Define if not defined.
11610 (ENTRY): Add _CET_ENDBR.
11611 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11612 x86_shstk.
11613 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11614 _CET_ENDBR.
11615 (_dl_runtime_profile): Likewise.
11616
11617 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11618
11619 [BZ #21895]
11620 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11621 restore r2 on longjmp.
11622 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11623 test list.
11624 Added rules to build test tst-setjmp-bug21895-static.
11625 Added module setjmp-bug21895 and rules to build a shared object from it.
11626 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11627 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11628
11629 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11630
11631 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11632 * benchtests/bench-strstr.c: Likewise.
11633 * string/memmem.c (FASTSEARCH): Define.
11634 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11635 Add support for FASTSEARCH.
11636 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11637 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11638 (FASTSEARCH): Define.
11639 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11640 * string/test-strstr.c: Likewise.
11641
11642 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11643
11644 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11645 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11646
11647 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11648 H.J. Lu <hongjiu.lu@intel.com>
11649
11650 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11651 (__longjmp): Restore shadow stack pointer if shadow stack is
11652 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11653 isn't defined for __longjmp_cancel.
11654 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11655 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11656 and SHADOW_STACK_POINTER_OFFSET is defined.
11657 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11658 (setjmp): Save shadow stack pointer if shadow stack is enabled
11659 and SHADOW_STACK_POINTER_OFFSET is defined.
11660 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11661 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11662 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11663 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11664 <jmp_buf-ssp.h>.
11665 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11666 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11667 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11668 Remove jmp_buf-ssp.sym.
11669 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11670 <jmp_buf-ssp.h>.
11671 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11672 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11673 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11674 jmp_buf-ssp.sym.
11675 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11676 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11677 (__longjmp): Restore shadow stack pointer if shadow stack is
11678 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11679 isn't defined for __longjmp_cancel.
11680 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11681 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11682 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11683
11684 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11685
11686 [BZ #22563]
11687 * nptl/pthread_create.c: Include <tls-setup.h>.
11688 (__pthread_create_2_1): Call tls_setup_tcbhead.
11689 * sysdeps/generic/tls-setup.h: New file.
11690 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11691 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11692 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11693 Likewise.
11694 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11695 to feature_1.
11696 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11697 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11698 (X86_FEATURE_1_SHSTK): Likewise.
11699 (CET_ENABLED): Likewise.
11700 (IBT_ENABLED): Likewise.
11701 (SHSTK_ENABLED): Likewise.
11702
11703 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11704
11705 [BZ #23208]
11706 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11707 (LOCALES): Likewise.
11708 * localedata/dsb_DE.UTF-8.in: New file.
11709 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11710
11711 2018-07-12 Florian Weimer <fweimer@redhat.com>
11712
11713 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11714 __mprotect, not mprotect.
11715
11716 2018-07-11 Florian Weimer <fweimer@redhat.com>
11717
11718 * io/Makefile (headers): Add bits/statx.h.
11719
11720 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11721
11722 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11723 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11724 and headers.
11725 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11726 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11727 for utf8_gen.py
11728
11729 2018-07-10 Florian Weimer <fweimer@redhat.com>
11730
11731 * io/Makefile (routines): Add statx.
11732 (tests-internal): Add tst-statx.
11733 * io/Versions (GLIBC_2.28): Export statx.
11734 * io/bits/statx.h: New file.
11735 * io/sys/stat.h [__USE_GNU]: Include it.
11736 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11737 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11738 Define.
11739 * io/statx.c: New file.
11740 * io/statx_generic.: Likewise.
11741 * io/tst-statx.: Likewise.
11742 * include/bits/statx.h: Likewise.
11743 * sysdeps/unix/sysv/linux/kernel-features.h
11744 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11745 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11746 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11747 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11748 Undefine.
11749 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11750 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11751 * sysdeps/unix/sysv/linux/statx.c: New file.
11752 * manual/filesys.texi: Note that statx is undocumented.
11753 * sysdeps/**/libc*.abilist: Update.
11754
11755 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11756
11757 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11758 a kernel issue which lead to test failure in some cases.
11759
11760 2018-07-10 Florian Weimer <fweimer@redhat.com>
11761
11762 [BZ #23036]
11763 * posix/regexec.c (check_node_accept_bytes): When comparing
11764 weights, do not compare an extra byte after the end of the
11765 weights.
11766
11767 2018-07-10 Florian Weimer <fweimer@redhat.com>
11768
11769 * libio/readline.c: Fix copyright year.
11770 * libio/tst-readline.c Likewise.
11771 * nss/tst-nss-files-hosts-getent.c: Likewise.
11772
11773 2018-07-06 Florian Weimer <fweimer@redhat.com>
11774
11775 [BZ #18991]
11776 * nss/nss_files/files-XXX.c (internal_getent): Use
11777 __libc_readline_unlocked. Seek back to the start of the line if
11778 parsing failes with ERANGE.
11779 (get_contents_ret, get_contents): Remove.
11780 * nss/tst-nss-files-hosts-getent.c: New file.
11781 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11782 (tst-nss-files-hosts-getent): Link with -ldl.
11783
11784 2018-07-06 Florian Weimer <fweimer@redhat.com>
11785
11786 * include/stdio.h (__libc_readline_unlocked): Declare.
11787 (__ftello64, __fseeko64): Declare aliases.
11788 * libio/readline.c: New file.
11789 * libio/tst-readline.c: Likewise.
11790 (routines): Add readline.
11791 (tests-internal): Add tst-readlime.
11792 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11793 __libc_readline_unlocked.
11794 * libio/fseeko.c (__fseeko): Rename from fseeko.
11795 (fseeko): Add alias.
11796 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11797 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11798 (fseeko64): Add alias.
11799 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11800 * libio/ftello64.c (__ftello64): Rename from ftello64.
11801 (ftello64): Add alias.
11802
11803 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11804
11805 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11806 HWCAP_ATOMICS.
11807
11808 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11809
11810 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11811 Use dl_hwcap without masking.
11812 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11813 Remove HWCAP_CPUID.
11814
11815 2018-07-06 Florian Weimer <fweimer@redhat.com>
11816
11817 * conform/conformtest.pl (checknamespace): Escape literal braces
11818 in regular expressions.
11819
11820 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11821
11822 * sysdeps/x86/cpu-features.c (get_common_indeces):
11823 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11824 * sysdeps/x86/cpu-features.c (init_cpu_features):
11825 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11826
11827 2018-07-05 Florian Weimer <fweimer@redhat.com>
11828
11829 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11830 protector.
11831 (CFLAGS-elf-init.oS): Likewise.
11832
11833 2018-07-05 Florian Weimer <fweimer@redhat.com>
11834 Carlos O'Donell <carlos@redhat.com>
11835
11836 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11837 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11838 with stack protector enabled because there is no risk of infinite
11839 recursion.
11840
11841 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11842
11843 [BZ #19818]
11844 [BZ #23307]
11845 * libc-abis (ABSOLUTE): New ABI.
11846 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11847 * NEWS: Mention the new ABI.
11848
11849 2018-07-05 Florian Weimer <fweimer@redhat.com>
11850
11851 [BZ # 17662]
11852 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11853 (RENAME_WHITEOUT): Define.
11854 [__USE_GNU] (renameat2): Declare.
11855 * stdio-common/Makefile (routines): Add renameat2.
11856 (tests): Add tst-renameat2.
11857 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11858 * stdio-common/renameat2.c: New file.
11859 * stdio-common/tst-renameat2.c: Likewise.
11860 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11861 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11862 undocumented.
11863 * sysdeps/unix/sysv/linux/kernel-features.h
11864 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11865 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11866 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11867 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11868 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11869 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11870 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11871 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11872 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11873 * include/stdio.h (__renameat): Add alias for renameat.
11874 * stdio-common/renameat.c (__renameat): Rename from renameat.
11875 Add hidden definition and alias.
11876 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11877 * sysdeps/mach/hurd/renameat.c: Likewise.
11878 * sysdeps/**/libc*.abilist: Add renameat2.
11879
11880 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11881
11882 * posix/bug-regex33.c: Fix build after regex sync.
11883
11884 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11885
11886 [BZ #23164]
11887 * localedata/tst-langinfo-setlocale.c: New file.
11888 * localedata/tst-langinfo-setlocale-static.c: New file.
11889 * localedata/tst-langinfo-newlocale.c: New file.
11890 * localedata/tst-langinfo-newlocale-static.c: New file.
11891 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11892 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11893 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11894 (tests-static): Remove tst-langinfo-static. Add
11895 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11896 (tests-special): Remove $(objpfx)tst-langinfo.out,
11897 $(objpfx)tst-langinfo-static.out. Add
11898 $(objpfx)tst-langinfo-setlocale.out,
11899 $(objpfx)tst-langinfo-newlocale.out,
11900 $(objpfx)tst-langinfo-setlocale-static.out,
11901 $(objpfx)tst-langinfo-newlocale-static.out.
11902 ($(objpfx)tst-langinfo.out): Remove.
11903 ($(objpfx)tst-langinfo-static.out): Remove.
11904 ($(objpfx)tst-langinfo-newlocale.out): New target.
11905 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11906 (test-xfail-tst-langinfo-newlocale-static): Add.
11907 ($(objpfx)tst-langinfo-setlocale.out): New target.
11908 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11909 * localedata/tst-langinfo.c: Call test_locale.
11910 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11911 data.
11912
11913 2018-07-04 Florian Weimer <fweimer@redhat.com>
11914
11915 testrun.sh: Implement --tool=strace, --tool=valgrind
11916 * Makefile (testrun-script): Define variable.
11917 (testrun.sh): Use variable.
11918 * manual/install.texi (Tools for Compilation): make 4.0 or later
11919 is required.
11920 * configure.ac: Check for make 4.0 or later.
11921 * INSTALL: Regenerate.
11922 * configure: Likewise.
11923
11924 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11925
11926 [BZ #23233]
11927 [BZ #21163]
11928 [BZ #18986]
11929 [BZ #13762]
11930 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11931 * posix/PCRE.tests: Remove invalid test.
11932 * posix/bug-regex28.c: Fix expected values for used syntax.
11933 * posix/bug-regex37.c: New file.
11934 * posix/bug-regex38.c: Likewise.
11935 * posix/regcomp.c: Sync with gnulib.
11936 * posix/regex.c: Likewise.
11937 * posix/regex.h: Likewise.
11938 * posix/regex_internal.c: Likewise.
11939 * posix/regex_internal.h: Likewise.
11940 * posix/regexec.c: Likewise.
11941
11942 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11943
11944 [BZ #23308]
11945 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11946 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11947 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11948 * localedata/unicode-gen/PropList.txt: likewise.
11949 * localedata/unicode-gen/UnicodeData.txt: likewise.
11950 * localedata/charmaps/UTF-8: Regenerate.
11951 * localedata/locales/i18n_ctype: likewise.
11952 * localedata/locales/tr_TR: likewise.
11953 * localedata/locales/translit_circle: likewise.
11954 * localedata/locales/translit_cjk_compat: likewise.
11955 * localedata/locales/translit_combining: likewise.
11956 * localedata/locales/translit_compat: likewise.
11957 * localedata/locales/translit_font: likewise.
11958 * localedata/locales/translit_fraction: likewise.
11959
11960 2018-07-03 Florian Weimer <fweimer@redhat.com>
11961
11962 [BZ #23363]
11963 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11964 * stdio-common/tst-printf.sh: Adjust expected output.
11965 * LICENSES: Update.
11966
11967 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11968
11969 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11970 symbol.
11971
11972 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11973
11974 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11975 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11976 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11977 * stdio-common/tst-printfsz-islongdouble.c: New file.
11978 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11979 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11980 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11981 [subdir == stdio-common] (tests-internal): Add
11982 test-printf-size-ieee128, and test-printf-size-ibm128.
11983 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11984 (CFLAGS-test-printf-size-ibm128.c): New variables.
11985 [subdir == stdio-common] (tests-special): Add
11986 $(objpfx)test-printf-size-ieee128.out and
11987 $(objpfx)test-printf-size-ibm128.out.
11988 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11989 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11990 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11991 __printf_sizeieee128.
11992 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11993 New file.
11994 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11995 Likewise.
11996 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11997 Likewise.
11998
11999 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12000
12001 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12002 (exp2f_inline): Likewise.
12003 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12004 (__math_uflowf): Likewise.
12005 (__math_may_uflowf): Likewise.
12006 (__math_divzerof): Likewise.
12007 (__math_invalidf): Likewise.
12008 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12009 (__math_oflowf): Likewise.
12010 (__math_uflowf): Likewise.
12011 (__math_may_uflowf): Likewise.
12012 (__math_divzerof): Likewise.
12013 (__math_invalidf): Likewise.
12014
12015 2018-06-29 DJ Delorie <dj@redhat.com>
12016 Carlos O'Donell <carlos@redhat.com>
12017
12018 [BZ #23329]
12019 * include/libc-symbols.h: Comment the freeres framework.
12020 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12021 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12022 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12023 * dlfcn/dlerror.c: Include libc-symbols.h
12024 (__dlerror_main_freeres): New function.
12025 * dlfcn/dlfreeres.c: New file.
12026 * dlfcn/sdlfreeres.c: New file.
12027 * include/dlfcn.h: Declare __dlerror_main_freeres.
12028 * malloc/set-freeres.c: Declare __libdl_freeres, and
12029 __libpthread_freeres.
12030 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12031 the releavant libraries are loaded.
12032 * malloc/thread-freeres.c: Add comments.
12033 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12034 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12035 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12036 (__free_stacks): Rename to...
12037 (free_stacks): ...this. Mark static.
12038 (queue_stack): Call free_stacks.
12039 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12040 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12041 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12042 ptr_freeres element from struct.
12043 (pthread_functions): Remove .ptr_freeres from struct initializer.
12044 [SHARED] (nptl_freeres): Remove.
12045 * nptl/nptlfreeres.c: New file.
12046 * nptl/pthreadP.h
12047 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12048 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12049 attribute_hidden.
12050 (__free_stacks): Rename to...
12051 (__nptl_stacks_freeres): ...this.
12052 (__shm_directory_freeres): Declare.
12053 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12054 (__nptl_unwind_freeres): ...this.
12055 * resolv/res-close.c: Add comment.
12056 * resolv/resolv_conf.c: Include libc-symbols.h.
12057 * string/strerror_l.c: Include libc-symbols.h.
12058 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12059 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12060 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12061 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12062
12063 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12064
12065 * stdlib/tst-strfmon_l.c: Add tests for long double.
12066
12067 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12068
12069 [BZ #23208]
12070 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12071 * localedata/locales/dsb_DE: New file.
12072
12073 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12074
12075 [BZ #23140]
12076 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12077 genitive case).
12078 (alt_mon): New entry, import from CLDR (nominative case).
12079
12080 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12081
12082 [BZ #22996]
12083 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12084
12085 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12086
12087 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12088 Use vector registers.
12089
12090 * sysdeps/aarch64/multiarch/memmove_falkor.S
12091 (__memcpy_falkor): Use vector registers.
12092
12093 2018-06-29 Martin Sebor <msebor@redhat.com>
12094
12095 * manual/stdio.texi (Customizing Printf): Mention interaction
12096 with GCC built-ins.
12097
12098 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12099
12100 [BZ #23307]
12101 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12102 `st_value' is 0 if `st_shndx' is SHN_ABS.
12103 * elf/tst-absolute-zero.c: New file.
12104 * elf/tst-absolute-zero-lib.c: New file.
12105 * elf/tst-absolute-zero-lib.lds: New file.
12106 * elf/Makefile (tests): Add `tst-absolute-zero'.
12107 (modules-names): Add `tst-absolute-zero-lib'.
12108 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12109 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12110 ($(objpfx)tst-absolute-zero: New dependency.
12111
12112 2018-06-29 Zack Weinberg <zackw@panix.com>
12113
12114 * configure.ac: New command-line option --disable-crypt.
12115 Force --disable-nss-crypt when --disable-crypt is given, with a
12116 warning if it was explicitly enabled.
12117 * configure: Regenerate.
12118 * config.make.in: New boolean substitution variable $(build-crypt).
12119 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12120 when $(build-crypt).
12121 * manual/install.texi: Document --disable-crypt.
12122 * INSTALL: Regenerate.
12123
12124 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12125 which is never set.
12126 * conform/Makefile: Only include libcrypt.a in
12127 linknamespace-libs-xsi and linknamespace-libs-XPG4
12128 when $(build-crypt).
12129 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12130 USE_CRYPT to 1 when $(build-crypt).
12131 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12132 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12133 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12134
12135 2018-06-29 Zack Weinberg <zackw@panix.com>
12136
12137 * crypt/crypt.h, posix/unistd.h: Update comments and
12138 prototypes for crypt and crypt_r.
12139
12140 * manual/crypt.texi (Cryptographic Functions): New initial
12141 exposition.
12142 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12143 (Unpredictable Bytes): Improve initial exposition. Clarify error
12144 behavior of getentropy and getrandom.
12145 * manual/examples/genpass.c: Generate a salt using getentropy
12146 instead of the current time. Use hash $5$ (SHA-2-256).
12147 * manual/examples/testpass.c: Demonstrate validation against
12148 hashes generated with three different one-way functions.
12149
12150 * manual/intro.texi: crypt.texi does not need an overview
12151 anymore.
12152
12153 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12154 * manual/terminal.texi: Consistently refer to "passphrases"
12155 * instead of "passwords", and to the "user database" instead
12156 * of the "password database".
12157 * manual/users.texi: Similarly. Add notes about how actual
12158 passphrase hashes are now stored in the shadow database.
12159 Remove 20-year-old junk todo note.
12160
12161 2018-06-29 Zack Weinberg <zackw@panix.com>
12162
12163 * manual/crypt.texi: Use a normal top-level @node declaration.
12164 Move most of the introductory text to the 'crypt' section.
12165 Move the example programs below the @deftypefun for 'crypt_r'.
12166 Move the 'getpass' section...
12167 * manual/terminal.texi: ...here.
12168
12169 2018-06-29 Zack Weinberg <zackw@panix.com>
12170 Florian Weimer <fweimer@redhat.com>
12171
12172 * posix/unistd.h: Do not declare encrypt.
12173 (_XOPEN_CRYPT): Remove macro definition.
12174 (crypt): Declare only for _USE_MISC.
12175 * stdlib/stdlib.h: Do not declare setkey.
12176 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12177 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12178
12179 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12180 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12181 into compat symbols. Don't define initial_perm if it's not
12182 going to be used.
12183 * crypt/cert.c: Link explicitly with the expected versions for
12184 setkey and encrypt. If they are not available at all, mark
12185 the test as unsupported.
12186
12187 * sunrpc/des_crypt.c: Unconditionally block linkage with
12188 cbc_crypt and ecb_crypt for new binaries.
12189 * sunrpc/des_soft.c: Unconditionally block linkage with
12190 des_setparity for new binaries.
12191
12192 * manual/crypt.texi: Remove the entire "DES Encryption"
12193 section. Also remove the paragraph talking about FIPS 140-2
12194 from the introduction.
12195 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12196 of libgcrypt for "real" encryption, not DES.
12197 * manual/conf.texi (Constants for Sysconf): Mention that
12198 _XOPEN_CRYPT is no longer impelemented.
12199
12200 * conform/data/unistd.h-data: Remove crypt function declaration.
12201
12202 2018-06-29 Florian Weimer <fweimer@redhat.com>
12203
12204 [BZ #23351]
12205 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12206 (disallow_malloc_check): Remove variable.
12207 (__malloc_check_init): Adjust.
12208 (malloc_set_state): Update comment.
12209 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12210 declarations.
12211
12212 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12213
12214 [BZ #23140]
12215 * localedata/locales/ast_ES (mon): Rename to...
12216 (alt_mon): This.
12217 (mon): Import from CLDR (genitive case).
12218
12219 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12220 Jakub Sitnicki <jkbs@redhat.com>
12221
12222 [BZ #21812]
12223 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12224 on NLM_F_DUMP_INTR.
12225
12226 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12227
12228 * manual/llio.texi: Remove spurious space.
12229
12230 2018-06-28 Florian Weimer <fweimer@redhat.com>
12231
12232 [BZ #23349]
12233 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12234 _STRUCT_TIMESPEC.
12235
12236 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12237
12238 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12239 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12240 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12241 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12242 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12243 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12244 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12245
12246 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12247
12248 [BZ #23266]
12249 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12250 Copy and null-terminate entries that are not terminated, in
12251 addition to empty ones.
12252
12253 2018-06-27 Florian Weimer <fweimer@redhat.com>
12254
12255 [BZ #18023]
12256 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12257 (extend_alloca_account): Remove.
12258 * manual/stdio.texi (Variable Arguments Output): Update comment.
12259
12260 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12261
12262 * nptl/sockperf.c: Remove file.
12263
12264 2018-06-27 Florian Weimer <fweimer@redhat.com>
12265
12266 [BZ #18023]
12267 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12268 scratch_buffer instead of extend_alloca.
12269
12270 2018-06-27 Florian Weimer <fweimer@redhat.com>
12271
12272 [BZ #18023]
12273 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12274 scratch_buffer instead of extend_alloca. Update comments.
12275
12276 2018-06-27 Florian Weimer <fweimer@redhat.com>
12277
12278 [BZ #18023]
12279 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12280 instead of extend_alloca.
12281
12282 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12283
12284 [BZ #13888]
12285 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12286 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12287 /tmp.
12288 * scripts/test-installation.pl: Put temporary files in build
12289 directory, not /tmp.
12290 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12291 (CFLAGS-bug4.c): Likewise.
12292 (CFLAGS-bug5.c): Likewise.
12293 (CFLAGS-test-fseek.c): Likewise.
12294 (CFLAGS-test-popen.c): Likewise.
12295 (CFLAGS-test_rdwr.c): Likewise.
12296 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12297 /tmp.
12298 * stdio-common/bug4.c (main): Likewise.
12299 * stdio-common/bug5.c (main): Likewise.
12300 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12301 * stdio-common/test-popen.c (do_test): Likewise.
12302 * stdio-common/test_rdwr.c (main): Likewise.
12303
12304 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12305
12306 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12307 (sem_open): Set sem.newsem.pad to zero for valgrind.
12308
12309 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12310
12311 [BZ #20251]
12312 * NEWS: Mention fcntl64 addition.
12313 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12314 * login/utmp_file.c: Likewise.
12315 * sysdeps/posix/fdopendir.c: Likewise.
12316 * sysdeps/posix/opendir.c: Likewise.
12317 * sysdeps/unix/pt-fcntl.c: Likewise.
12318 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12319 __fcntl64_nocancel_adjusted): New prototype.
12320 (__fcntl_nocancel_adjusted): Remove prototype.
12321 * io/Makefile (routines): Add fcntl64.
12322 (CFLAGS-fcntl64.c): New rule.
12323 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12324 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12325 * io/fcntl.h (fcntl64): Add prototype and redirect if
12326 __USE_FILE_OFFSET64 is defined.
12327 * io/fcntl64.c: New file.
12328 * manual/llio.text: Add a note for which commands fcntl acts a
12329 cancellation point.
12330 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12331 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12332 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12333 New symbols.
12334 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12335 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12336 non-LFS case.
12337 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12338 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12339 to __fcntl64_nocancel.
12340 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12341 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12342 to __fcntl64_nocancel.
12343 * sysdeps/generic/not-cancel.h: Likewise.
12344 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12345 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12346 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12347 (fcntl64): New symbol.
12348 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12359 fcntl64): Likewise.
12360 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12362 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12370 Likewise.
12371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12372 Likewise.
12373 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12376
12377 2018-06-26 Florian Weimer <fweimer@redhat.com>
12378
12379 Run thread shutdown functions in an explicit order.
12380 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12381 definition.
12382 (__libc_thread_freeres): Call thread shutdown functions
12383 explicitly.
12384 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12385 * include/string.h (__strerror_thread_freeres): Declare.
12386 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12387 arena_thread_freeres. No longer static. Remove thread shutdown
12388 hook registration.
12389 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12390 Declare.
12391 * resolv/res-close.c (__res_thread_freeres): Renamed from
12392 res_thread_freeres. No longer static. Remove thread shutdown
12393 hook registration.
12394 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12395 * resolv/resolv_conf.c (freeres): Remove incorrect section
12396 attribute and use libc_freeres_fn.
12397 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12398 strerror_thread_freeres. No longer static. Remove thread
12399 shutdown hook registration.
12400 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12401 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12402 shutdown hook registration.
12403 * Makerules (shlib.lds): Do not provide section boundary symbols
12404 for __libc_thread_subfreeres.
12405 * manual/memory.texi (Basic Allocation): Update comment.
12406
12407 2018-06-26 Florian Weimer <fweimer@redhat.com>
12408
12409 Remove always-defined _RPC_THREAD_SAFE_ macro.
12410 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12411 Do not define _RPC_THREAD_SAFE_.
12412 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12413 conditional.
12414 * sunrpc/clnt_perr.c: Likewise.
12415 * sunrpc/clnt_raw.c: Likewise.
12416 * sunrpc/clnt_simp.c: Likewise.
12417 * sunrpc/key_call.c: Likewise.
12418 * sunrpc/rpc_common.c: Likewise.
12419 * sunrpc/rpc_main.c: Likewise.
12420 * sunrpc/rpc_thread.c: Likewise.
12421 * sunrpc/svc.c: Likewise.
12422 * sunrpc/svc_raw.c: Likewise.
12423 * sunrpc/svc_simple.c: Likewise.
12424 * sumrpc/svcauth_des.c: Likewise.
12425
12426 2018-06-26 Florian Weimer <fweimer@redhat.com>
12427
12428 * libio/Makefile (tests-internal): Add tst-vtables,
12429 tst-vtables-interposed.
12430 * libio/tst-vtables.c: New file.
12431 * libio/tst-vtables-common.c: Likewise.
12432 * libio/tst-vtables-interposed.c: Likewise.
12433
12434 2018-06-26 Florian Weimer <fweimer@redhat.com>
12435
12436 * support/support_test_main.c (support_test_main): Only call
12437 setvbuf if not disables.
12438 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12439 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12440
12441 2018-06-26 Florian Weimer <fweimer@redhat.com>
12442
12443 [BZ #23313]
12444 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12445
12446 2018-06-25 Florian Weimer <fweimer@redhat.com>
12447
12448 [BZ #18023]
12449 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12450 Use struct scratch_buffer instead of extend_alloca.
12451
12452 2018-06-25 Florian Weimer <fweimer@redhat.com>
12453
12454 [BZ #18023]
12455 * nss/getent.c (initgroups_keys): Use dynarray instead of
12456 extend_alloca.
12457
12458 2018-06-25 Florian Weimer <fweimer@redhat.com>
12459
12460 [BZ #18023]
12461 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12462 Use struct scratch_buffer instead of extend_alloca.
12463
12464 2018-06-25 Florian Weimer <fweimer@redhat.com>
12465
12466 [BZ #18023]
12467 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12468 back to malloc directly, without stack allocations.
12469
12470 2018-06-25 Florian Weimer <fweimer@redhat.com>
12471
12472 [BZ #18023]
12473 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12474 of extend_alloca.
12475
12476 2018-06-25 Florian Weimer <fweimer@redhat.com>
12477
12478 [BZ #18023]
12479 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12480 of extend_alloca.
12481 * nscd/hstcache.c (addhstbyX): Likewise.
12482 * nscd/pwdcache.c (addpwbyX): Likewise.
12483 * nscd/servicescache.c (addservbyX): Likewise.
12484
12485 2018-06-25 Florian Weimer <fweimer@redhat.com>
12486
12487 [BZ #18023]
12488 * nscd/connections.c (read_cmdline): New function.
12489 (restart): Use it. Update comment.
12490
12491 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12492
12493 [BZ #23140]
12494 * localedata/locales/csb_PL (mon): Rename to...
12495 (alt_mon): This.
12496 (abmon): Rename to...
12497 (ab_alt_mon): This.
12498 (mon): Add with proper genitive forms, copy from Wikipedia.
12499 (abmon): Likewise.
12500
12501 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12502
12503 [BZ #19485]
12504 * localedata/locales/csb_PL (mon): Fix typos:
12505 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12506 (yesstr): Add, value is "jo".
12507 (nostr): Add, value is "nié".
12508
12509 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12510
12511 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12512 all log1p and significand functions on m680x0.
12513 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12514 of s_significand.c..
12515 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12516 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12517 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12518 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12519 s_log1p.c and include it..
12520
12521 2018-06-21 Vincent Chen <vincentc@andestech.com>
12522
12523 * elf/elf.h (R_NDS32_NONE): New define.
12524 (R_NDS32_32_RELA): Likewise.
12525 (R_NDS32_COPY): Likewise.
12526 (R_NDS32_GLOB_DAT): Likewise.
12527 (R_NDS32_JUMP_SLOT): Likewise.
12528 (R_NDS32_RELATIVE): Likewise.
12529 (R_NDS32_TLS_TPOFF): Likewise.
12530 (R_NDS32_TLS_DESC): Likewise.
12531
12532 2018-06-21 Mark Wielaard <mark@klomp.org>
12533
12534 * elf/elf.h (R_BPF_MAP_FD): Removed.
12535 (R_BPF_64_64, R_BPF_64_32): New.
12536
12537 2018-06-21 Florian Weimer <fweimer@redhat.com>
12538
12539 [BZ #23253]
12540 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12541 Renamed from libc_feholdsetround_ctx.
12542 (default_libc_feresetround_ctx): Renamed from
12543 libc_feresetround_ctx.
12544 (default_libc_feholdsetround_noex_ctx): Renamed from
12545 libc_feholdsetround_noex_ctx.
12546 (default_libc_feresetround_noex_ctx): Renamed from
12547 libc_feresetround_noex_ctx.
12548 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12549 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12550 forwardning to the old implementations under the new names.
12551 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12552 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12553 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12554 (libc_feresetround_ctx): Forward to default implements for i386
12555 and MATH_SET_BOTH_ROUNDING_MODES.
12556 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12557 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12558
12559 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12560
12561 * string/tst-cmp.c: Include <libc-diag.h>.
12562 (strncmp_max): Disable -Wstringop-overflow= around call to
12563 strncmp.
12564 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12565 strncasecmp.
12566
12567 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12568 (main): Disable -Wunused-value around call to strpbrk.
12569 * string/bug-strspn1.c: Include <libc-diag.h>.
12570 (main): Disable -Wunused-value around call to strspn.
12571
12572 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12573 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12574
12575 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12576 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12577
12578 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12579
12580 * math/Makefile (libm-calls): Move s_significandF to...
12581 (gen-libm-calls): ... here.
12582 * math/s_significand_template.c: New file.
12583 * math/s_significand.c: Removed.
12584 * math/s_significandf.c: Removed.
12585 * math/s_significandl.c: Removed.
12586 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12587 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12588
12589 * math/e_exp2_template.c (declare_mgen_finite_alias,
12590 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12591 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12592 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12593
12594 2018-06-20 Florian Weimer <fweimer@redhat.com>
12595
12596 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12597
12598 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12599
12600 [BZ #23280]
12601 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12602 floating-point number to strtod functions rather than possibly
12603 negating result of those functions.
12604 * stdio-common/tst-scanf-round.c: New file.
12605 * stdio-common/Makefile (tests): Add tst-scanf-round.
12606 ($(objpfx)tst-scanf-round): Depend on $(libm).
12607
12608 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12609
12610 * sysdeps/mach/hurd/localplt.data: Move to...
12611 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12612 R_386_GLOB_DAT like on Linux i386.
12613
12614 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12615
12616 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12617 (SHM_STAT_ANY): New macro.
12618 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12619 (SHM_STAT_ANY): Likewise.
12620 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12621 (SHM_STAT_ANY): Likewise.
12622 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12623 (SHM_STAT_ANY): Likewise.
12624 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12625 (SHM_STAT_ANY): Likewise.
12626 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12627 (SHM_STAT_ANY): Likewise.
12628 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12629 (SHM_STAT_ANY): Likewise.
12630 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12631 (SHM_STAT_ANY): Likewise.
12632 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12633 (SHM_STAT_ANY): Likewise.
12634 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12635 (SHM_STAT_ANY): Likewise.
12636 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12637 (SHM_STAT_ANY): Likewise.
12638 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12639 (SHM_STAT_ANY): Likewise.
12640
12641 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12642 (SEM_STAT_ANY): New macro.
12643 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12644 (SEM_STAT_ANY): Likewise.
12645 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12646 (SEM_STAT_ANY): Likewise.
12647 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12648 (SEM_STAT_ANY): Likewise.
12649 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12650 (SEM_STAT_ANY): Likewise.
12651 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12652 (SEM_STAT_ANY): Likewise.
12653 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12654 (SEM_STAT_ANY): Likewise.
12655 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12656 (SEM_STAT_ANY): Likewise.
12657 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12658 (SEM_STAT_ANY): Likewise.
12659 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12660 (SEM_STAT_ANY): Likewise.
12661
12662 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12663 (MSG_STAT_ANY): New macro.
12664 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12665 (MSG_STAT_ANY): Likewise.
12666 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12667 (MSG_STAT_ANY): Likewise.
12668 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12669 (MSG_STAT_ANY): Likewise.
12670 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12671 (MSG_STAT_ANY): Likewise.
12672 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12673 (MSG_STAT_ANY): Likewise.
12674 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12675 (MSG_STAT_ANY): Likewise.
12676 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12677 (MSG_STAT_ANY): Likewise.
12678 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12679 (MSG_STAT_ANY): Likewise.
12680 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12681 (MSG_STAT_ANY): Likewise.
12682
12683 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12684 (MAP_TYPE): Change value to 0x2b.
12685
12686 2018-06-18 Florian Weimer <fweimer@redhat.com>
12687
12688 [BZ #15722]
12689 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12690 socket with SOCK_CLOEXEC.
12691
12692 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12693
12694 [BZ #23303]
12695 * sysdeps/powerpc/powerpc64/le/Makefile
12696 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12697 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12698 (gnulib-tests): Also add $(f128-loader-link) for
12699 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12700
12701 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12702
12703 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12704 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12705 of sendfile.
12706 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12707 (sendfile64): New strong alias.
12708 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12709 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12710 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12711 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12712 attribute.
12713 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12714 ___pthread_get_cleanup_stack.
12715 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12716 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12717 * mach/shortcut.awk: Make syscall stubs include
12718 <mach-shortcuts-hidden.h> and add hidden definition.
12719 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12720 (__mach_msg): Add hidden prototype.
12721 * mach/msg.c: Include <mach.h>.
12722 (__mach_msg): Add hidden definition.
12723 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12724 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12725 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12726 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12727 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12728 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12729 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12730 prototype and definition.
12731 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12732 hidden target for _hurd_self_sigstate.
12733
12734 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12735
12736 [BZ #23007]
12737 * stdlib/tst-strtod-nan-sign-main.c: New file.
12738 * stdlib/tst-strtod-nan-sign.c: Likewise.
12739 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12740 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12741 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12742 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12743 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12744
12745 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12746
12747 [BZ #23007]
12748 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12749 appropriate sign.
12750
12751 2018-06-14 Florian Weimer <fweimer@redhat.com>
12752
12753 [BZ #23290]
12754 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12755 that the result stays within the ISO-8859-1 range.
12756 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12757 characters are defined in IBM273.
12758
12759 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12760
12761 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12762 __mach_task_self): Remove attribute_hidden.
12763
12764 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12765
12766 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12767 ignore -Wrestrict for one test.
12768
12769 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12770 Szabolcs Nagy <szabolcs.nagy@arm.com>
12771
12772 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12773
12774 2018-06-14 Florian Weimer <fweimer@redhat.com>
12775
12776 * scripts/update-abilist.sh: Accept empty list of files to patch.
12777
12778 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12779
12780 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12781 test-xfail-check-abi-libmachuser): Add.
12782 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12783 __libc_read and __libc_write to __read and __write.
12784 * sysdeps/hurd/include/hurd/port.h: New file.
12785 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12786 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12787 __thread_switch, __evc_wait): Move declarations to...
12788 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12789 attribute_hidden.
12790 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12791 use PLT to call _hurd_self_sigstate.
12792
12793 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12794
12795 [BZ #23279]
12796 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12797 MAX_EXP as overflowing.
12798 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12799 overflow flag.
12800 (round_str): Output also whether result overflows in each rounding
12801 mode.
12802 * stdlib/tst-strtod-round-data: Add more tests.
12803 * stdlib/tst-strtod-round-data.h: Regenerated.
12804 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12805 (TEST): Handle extra arguments for overflow flags.
12806 (struct test_overflow): New type.
12807 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12808 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12809 (test_in_one_mode): Take argument with overflow information.
12810 (do_test): Update calls to test_in_one_mode.
12811
12812 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12813
12814 * elf/dl-load (_dl_dst_substitute): Correct comment.
12815 (_dl_dst_count): Likewise.
12816
12817 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12818 lll_futex_timed_wait.
12819
12820 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12821
12822 [BZ #23277]
12823 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12824 attribute.
12825 * math/test-nan-const.c: New file.
12826 * math/Makefile (tests): Add test-nan-const.
12827 (CFLAGS-test-nan-const.c): New variable.
12828
12829 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12830
12831 * benchtests/scripts/compare_strings.py (process_results): Add
12832 funcs argument. Compare only functions which are selected.
12833 (main): Check if base function is among selected functions.
12834 Pass selected functions to process_results.
12835 (__main__): Add -f/--functions argument.
12836
12837 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12838 Hongbo Zhang <hongbo.zhang@linaro.org>
12839
12840 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12841 __memcpy_falkor for phecda core.
12842 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12843 __memmove_falkor for phecda core.
12844 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12845 __memset_falkor for phecda core.
12846 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12847 for phecda core.
12848 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12849 macro to identify phecda core.
12850
12851 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12852 Andreas Schwab <schwab@suse.de>
12853 Dmitry V. Levin <ldv@altlinux.org>
12854 Florian Weimer <fweimer@redhat.com>
12855
12856 [BZ #23102]
12857 [BZ #21942]
12858 [BZ #18018]
12859 [BZ #23259]
12860 CVE-2011-0536
12861 * elf/dl-dst.h: Remove DL_DST_COUNT.
12862 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12863 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12864 (is_dst): Comment. Support ELF gABI.
12865 (_dl_dst_count): Comment. Simplify and count DSTs.
12866 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12867 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12868 locals.
12869
12870 2018-06-12 Zack Weinberg <zackw@panix.com>
12871
12872 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12873 * sysdeps/unix/sysv/linux/dl-sysdep.c
12874 Include not-cancel.h. Use __close_nocancel instead of __close,
12875 __open64_nocancel instead of __open, __read_nocancel instead of
12876 __libc_read, and __write_nocancel instead of __libc_write.
12877
12878 * csu/check_fds.c (check_one_fd)
12879 * sysdeps/posix/fdopendir.c (__fdopendir)
12880 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12881 instead of __fcntl and/or __libc_fcntl.
12882
12883 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12884 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12885 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12886 Use __open64_nocancel instead of __open_nocancel.
12887
12888 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12889 hidden_proto declarations to the end and issue them if either
12890 IS_IN(libc) or IS_IN(rtld).
12891 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12892 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12893 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12894 read_nocancel, waitpid_nocancel, write_nocancel.
12895
12896 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12897 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12898 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12899
12900 * nptl/pt-fcntl.c: New file.
12901 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12902 (libpthread-routines): Add pt-fcntl.
12903 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12904 (__libc_fcntl): Remove attribute_hidden.
12905 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12906 __fcntl_nocancel_adjusted, not fcntl_common.
12907 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12908 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12909 to fcntl_nocancel.c.
12910 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12913 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12914
12915 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12916 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12917 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12918 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12919 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12920 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12921 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12922 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12923 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12924 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12925 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12926 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12927 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12928 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12929 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12930 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12931 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12932 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12933 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12934 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12935
12936 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12937 libpthread-routines.
12938 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12939 defines nothing.
12940
12941 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12942 __libc_read, and __write instead of __libc_write. Define
12943 __open64 in addition to __open.
12944
12945 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12946
12947 [BZ #23250]
12948 [BZ #10686]
12949 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12950 to _private_tm[3] and add __glibc_reserved2.
12951 Add _Static_assert of offset of __private_ss == 0x30.
12952 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12953 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12954
12955 2018-06-12 Florian Weimer <fweimer@redhat.com>
12956
12957 x86: Make strncmp usable from rtld.
12958 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12959 __strncmp_ia32 if in libc (and not in rtld).
12960 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12961 strncmp if not in libc (and not to __strncmp_sse2).
12962
12963 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12964
12965 [BZ #23140]
12966 * localedata/locales/gd_GB (mon): Rename to...
12967 (alt_mon): This.
12968 (mon): Import from CLDR (genitive case).
12969 * localedata/locales/hsb_DE (mon): Rename to...
12970 (alt_mon): This.
12971 (mon): Import from CLDR (genitive case).
12972 * localedata/locales/wa_BE (mon): Rename to...
12973 (alt_mon): This.
12974 (mon): Add, fill with the proper genitive forms, but CLDR data
12975 is incomplete; completed according to the comments in this file.
12976 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12977
12978 * localedata/locales/wa_BE (country_name): Reword
12979 "Beljike" -> "Beldjike".
12980
12981 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12982
12983 [BZ #23272]
12984 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12985 cases of non-finite arguments.
12986 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12987
12988 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12989
12990 [BZ #23174]
12991 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12992
12993 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12994
12995 [BZ #23264]
12996 * include/unistd.h (__execvpex): New prototype.
12997 * posix/Makefile (tests): Add tst-spawn4.
12998 (tests-internal): Add tst-spawn4-compat.
12999 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13000 * posix/tst-spawn4-compat.c: New file.
13001 * posix/tst-spawn4.c: Likewise.
13002 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13003 binaries as shell scripts.
13004 * sysdeps/posix/spawni.c (__spawni): Likewise.
13005
13006 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13007
13008 [BZ #23145]
13009 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13010 ($(all-built-dso:=.dynsym): New target.
13011 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13012 ($(objpfx)check-initfini.out): New target.
13013 (generated): Add check-initfini.out.
13014 * scripts/check-initfini.awk: New file.
13015 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13016 (_fini): Likewise.
13017 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13018 (_fini): Likewise.
13019 * sysdeps/arm/crti.S (_init): Mark as hidden.
13020 (_fini): Likewise.
13021 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13022 (_fini): Likewise.
13023 * sysdeps/i386/crti.S (_init): Mark as hidden.
13024 (_fini): Likewise.
13025 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13026 (_fini): Likewise.
13027 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13028 (_fini): Likewise.
13029 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13030 (_fini): Likewise.
13031 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13032 (_fini): Likewise.
13033 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13034 (_fini): Likewise.
13035 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13036 (_fini): Likewise.
13037 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13038 (_fini): Likewise.
13039 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13040 (_fini): Likewise.
13041 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13042 (_fini): Likewise.
13043 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13044 (_fini): Likewise.
13045 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13046 (_fini): Likewise.
13047 * sysdeps/sh/crti.S (_init): Mark as hidden.
13048 (_fini): Likewise.
13049 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13050 (_fini): Likewise.
13051 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13052 (_fini): Likewise.
13053
13054 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13055
13056 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13057 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13058 and TF redirection to KFtype and KF only when the default
13059 long double type is not the IEEE 128-bit floating point type.
13060
13061 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13062
13063 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13064 macro.
13065 (HWCAP_USCAT): Likewise.
13066 (HWCAP_ILRCPC): Likewise.
13067 (HWCAP_FLAGM): Likewise.
13068 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13069 Increase to 28.
13070 (_dl_aarch64_cap_flags): Add new flag names.
13071
13072 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13073 (MAP_FIXED_NOREPLACE): New macro.
13074 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13075 (MAP_FIXED_NOREPLACE): Likewise.
13076 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13077 (MAP_FIXED_NOREPLACE): Likewise.
13078 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13079 (MAP_FIXED_NOREPLACE): Likewise.
13080 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13081 (MAP_FIXED_NOREPLACE): Likewise.
13082 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13083 (MAP_FIXED_NOREPLACE): Likewise.
13084 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13085 (MAP_FIXED_NOREPLACE): Likewise.
13086 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13087 (MAP_FIXED_NOREPLACE): Likewise.
13088 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13089 (MAP_FIXED_NOREPLACE): Likewise.
13090 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13091 (MAP_FIXED_NOREPLACE): Likewise.
13092 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13093 (MAP_FIXED_NOREPLACE): Likewise.
13094 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13095 (MAP_FIXED_NOREPLACE): Likewise.
13096 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13097 (MAP_FIXED_NOREPLACE): Likewise.
13098 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13099 (MAP_FIXED_NOREPLACE): Likewise.
13100 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13101 (MAP_FIXED_NOREPLACE): Likewise.
13102
13103 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13104 version to 4.17.
13105
13106 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13107
13108 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13109 version to 4.17
13110
13111 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13112
13113 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13114 int.
13115 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13116
13117 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13118
13119 * benchtests/scripts/compare_string.py: (process_results) Catch
13120 exception in non-existent base_func and catch exception in
13121 non-existent attribute.
13122 (parse_file) Catch exception if input file does not exist.
13123
13124 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13125
13126 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13127 options to avoid diff calculation and omit header, respectively.
13128 (main): process --no-diff and --no-header
13129
13130 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13131 H.J. Lu <hongjiu.lu@intel.com>
13132
13133 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13134 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13135 wcsncmp-sse2.
13136 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13137 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13138 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13139 and __wcsncmp_sse2.
13140 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13141 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13142 AVX unaligned load is fast and vzeroupper is preferred.
13143 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13144 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13145 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13146 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13147 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13148 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13149 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13150 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13151 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13152 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13153 is undefined.
13154
13155 2018-06-01 Florian Weimer <fweimer@redhat.com>
13156
13157 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13158 configuring with --disable-multi-arch, building with
13159 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13160 Haswell-era CPU.
13161
13162 2018-06-01 Florian Weimer <fweimer@redhat.com>
13163
13164 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13165 results from building with “-march=x86-64 -mtune=generic
13166 -mfpmath=sse” and running on a Haswell-era CPU.
13167
13168 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13169
13170 [BZ #18473]
13171 * soft-fp/sqrttf2.c: Remove file.
13172 * soft-fp/sqrtdf2.c: Move to ....
13173 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13174 <shlib-compat.h>.
13175 (__sqrtdf2): Make conditional on
13176 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13177 symbol.
13178 * soft-fp/sqrtsf2.c: Move to ....
13179 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13180 <shlib-compat.h>.
13181 (__sqrtsf2): Make conditional on
13182 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13183 symbol.
13184 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13185 (gcc-double-routines): Remove sqrtdf2.
13186 (gcc-quad-routines): Remove sqrttf2.
13187 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13188 Do not filter out sqrtsf2 and sqrtdf2.
13189 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13190 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13191
13192 2018-06-01 Florian Weimer <fweimer@redhat.com>
13193
13194 * sysdeps/generic/libcidn.abilist: Remove file.
13195
13196 2018-06-01 Florian Weimer <fweimer@redhat.com>
13197
13198 [BZ #23236]
13199 * libio/strfile.h (struct _IO_str_fields): Rename members to
13200 discourage their use and add comment.
13201 (_IO_STR_DYNAMIC): Remove unused macro.
13202 * libio/strops.c (_IO_str_init_static_internal): Do not use
13203 callback pointers. Call malloc and free.
13204 (_IO_str_overflow): Do not use callback pointers. Call malloc
13205 and free.
13206 (enlarge_userbuf): Likewise.
13207 (_IO_str_finish): Call free.
13208 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13209 _allocate_buffer_unused.
13210 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13211 and free.
13212 (enlarge_userbuf): Likewise.
13213 (_IO_wstr_finish): Call free.
13214 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13215 _allocate_buffer_unused, _free_buffer_unused.
13216 * libio/memstream.c (__open_memstream): Likewise.
13217 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13218 * libio/wmemstream.c (open_wmemstream): Likewise.
13219
13220 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13221
13222 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13223 AMD Ryzen 7 1800X.
13224
13225 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13226
13227 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13228 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13229 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13230 New file.
13231 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13232 Likewise.
13233 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13234
13235 2018-05-29 Florian Weimer <fweimer@redhat.com>
13236
13237 * support/Makefile (libsupport-routines): Add
13238 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13239 xpthread_barrierattr_setpshared.
13240 * support/xpthread_barrierattr_destroy.c: New file.
13241 * support/xpthread_barrierattr_init.c: Likewise.
13242 * support/xpthread_barrierattr_setpshared.c: Likewise.
13243
13244 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13245
13246 [BZ #23206]
13247 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13248 _r_debug and update DT_DEBUG for debugger.
13249
13250 2018-05-29 Florian Weimer <fweimer@redhat.com>
13251
13252 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13253 (tst-strtod5i.out): Likewise.
13254
13255 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13256
13257 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13258 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13259 (sparc64-quad-routines): New variable. Moved from ....
13260 [$(subdir) = soft-fp] (sysdep_routines): Add
13261 $(sparc64-quad-routines). Moved from ....
13262 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13263 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13264 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13265 moved from ....
13266 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13267 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13268 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13269 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13270 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13271 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13272 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13273 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13274 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13275 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13276 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13277 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13278 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13279 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13280 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13281 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13282 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13283 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13284 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13285 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13286 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13287 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13288 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13289 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13290 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13291 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13292 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13293 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13294 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13295 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13296 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13297 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13298 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13299 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13300 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13301 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13302 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13303 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13304 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13305 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13306 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13307 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13308 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13309 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13310 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13311 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13312 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13313 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13314 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13315 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13316 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13317 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13318 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13319 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13320 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13321 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13322 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13323 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13324
13325 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13326 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13327 (sparc32-quad-routines): New variable. Moved from ....
13328 [$(subdir) = soft-fp] (sysdep_routines): Add
13329 $(sparc32-quad-routines). Moved from ....
13330 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13331 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13332 moved from ....
13333 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13334 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13335 * sysdeps/sparc/sparc32/q_add.c: ... here.
13336 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13337 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13338 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13339 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13340 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13341 * sysdeps/sparc/sparc32/q_div.c: ... here.
13342 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13343 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13344 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13345 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13346 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13347 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13348 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13349 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13350 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13351 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13352 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13353 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13354 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13355 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13356 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13357 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13358 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13359 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13360 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13361 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13362 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13363 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13364 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13365 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13366 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13367 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13368 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13369 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13370 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13371 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13372 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13373 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13374 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13375 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13376 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13377 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13378 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13379 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13380 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13381 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13382 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13383 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13384 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13385 * sysdeps/sparc/sparc32/q_util.c: ... here.
13386 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13387 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13388 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13389 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13390
13391 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13392 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13393
13394 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13395 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13396 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13397 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13398
13399 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13400
13401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13402 powerpc/soft-fp.
13403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13404 Likewise.
13405 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13406 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13407
13408 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13409
13410 [BZ #23171]
13411 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13412 double version.
13413
13414 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13415
13416 * sysdeps/sh/Implies: Remove sh/soft-fp.
13417 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13418 * sysdeps/sh/sfp-machine.h: ... here.
13419
13420 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13421
13422 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13423 (__mempcpy_erms): Skip zero length.
13424 (__memmove_erms): Likewise.
13425 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13426 (__memset_erms): Likewise.
13427
13428 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13429
13430 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13431 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13432 Add functions moved from ....
13433 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13434 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13435 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13436 from ....
13437 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13438 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13439 * sysdeps/alpha/e_sqrtl.c: ... here.
13440 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13441 * sysdeps/alpha/local-soft-fp.h: ... here.
13442 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13443 * sysdeps/alpha/ots_add.c: ... here.
13444 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13445 * sysdeps/alpha/ots_cmp.c: ... here.
13446 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13447 * sysdeps/alpha/ots_cmpe.c: ... here.
13448 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13449 * sysdeps/alpha/ots_cvtqux.c: ... here.
13450 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13451 * sysdeps/alpha/ots_cvtqx.c: ... here.
13452 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13453 * sysdeps/alpha/ots_cvttx.c: ... here.
13454 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13455 * sysdeps/alpha/ots_cvtxq.c: ... here.
13456 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13457 * sysdeps/alpha/ots_cvtxt.c: ... here.
13458 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13459 * sysdeps/alpha/ots_div.c: ... here.
13460 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13461 * sysdeps/alpha/ots_mul.c: ... here.
13462 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13463 * sysdeps/alpha/ots_nintxq.c: ... here.
13464 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13465 * sysdeps/alpha/ots_sub.c: ... here.
13466 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13467 * sysdeps/alpha/sfp-machine.h: ... here.
13468
13469 2018-05-23 Florian Weimer <fweimer@redhat.com>
13470
13471 [BZ #19728]
13472 [BZ #19729]
13473 [BZ #22247]
13474 CVE-2016-6261
13475 CVE-2016-6263
13476 CVE-2017-14062
13477 Switch to extern IDNA implementation (libidn2).
13478 * libidn: Remove subdirectory.
13479 * LICENSES: Do not mention licensing conditions for the removed
13480 libidn code.
13481 * config.h.in (HAVE_LIBIDN): Remove.
13482 * include/dlfcn.h (__libc_dlopen): Update comment.
13483 * include/idna.h: Remove file.
13484 * inet/Makefile (routines): Add idna.
13485 (tests-static, tests-internal): Add tst-idna_name_classify.
13486 (LOCALES): Generate locales for tests.
13487 (tst-idna_name_classify.out): Depend on generated locales.
13488 * inet/idna_name_classify.c: New file.
13489 * inet/tst-idna_name_classify.c: Likewise.
13490 * inet/net-internal.h (__idna_to_dns_encoding)
13491 (__idna_from_dns_encoding): Declare.
13492 * inet/net-internal.h (enum idna_name_classification): Define.
13493 (__idna_name_classify): Declare.
13494 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13495 __idna_from_dns_encoding.
13496 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13497 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13498 name as a fallback in case of encoding errors.
13499 (getnameinfo): Use DEPRECATED_NI_IDN.
13500 * inet/idna.c: New file.
13501 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13502 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13503 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13504 (modules-names): Add tst-no-libidn2.
13505 (extra-test-objs): Add tst-no-libidn2.os.
13506 (LDFLAGS-tst-no-libidn2.so): Set soname.
13507 (LOCALES): Set, and generate locales.
13508 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13509 (tst-resolv-ai_idn-latin1): Likewise.
13510 (tst-resolv-ai_idn-nolibidn2): Likewise.
13511 (tst-resolv-ai_idn.out): Depend on locales.
13512 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13513 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13514 tst-no-libidn2.so.
13515 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13516 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13517 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13518 * resolv/tst-resolv-ai_idn.c: New file.
13519 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13520 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13521 * resolv/tst-no-libidn2.c: Likewise.
13522 * support/support_format_addrinfo.c (format_ai_flags): Do not
13523 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13524 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13525 (gaih_inet): Call __idna_to_dns_encoding and
13526 __idna_from_dns_encoding, and use the original (punycode) name if
13527 __idna_from_dns_encoding fails due to an encoding error.
13528 (getaddrinfo): Use DEPRECATED_AI_IDN.
13529 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13530 * sysdeps/unix/inet/configure: Remove file.
13531 * sysdeps/unix/inet/configure.ac: Likewise.
13532
13533 2018-05-23 Florian Weimer <fweimer@redhat.com>
13534
13535 Implement allocate_once.
13536 * include/allocate_once.h: New file.
13537 * misc/allocate_once.c: Likewise.
13538 * misc/tst-allocate_once.c: Likewise.
13539 * misc/Makefile (routines): Add allocate_once.
13540 (tests-internal): Add tst-allocate_once.
13541 (generated): Add tst-allocate_once.mtrace,
13542 tst-allocate_once-mem.out.
13543 (tests-special): Add tst-allocate_once-mem.out.
13544 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13545 (tst-allocate_once-mem.out): Call mtrace.
13546 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13547
13548 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13549
13550 [BZ #23196]
13551 * string/test-memcpy.c (do_test1): New function.
13552 (test_main): Call it.
13553
13554 2018-05-23 Andreas Schwab <schwab@suse.de>
13555
13556 [BZ #23196]
13557 CVE-2018-11237
13558 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13559 (L(preloop_large)): Save initial destination pointer in %r11 and
13560 use it instead of %rax after the loop.
13561 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13562
13563 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13564
13565 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13566 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13567 -I../soft-fp. Moved from ....
13568 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13569 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13570 * sysdeps/aarch64/e_sqrtl.c: ... here.
13571 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13572 * sysdeps/aarch64/sfp-machine.h: ... here.
13573
13574 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13575 -Wmaybe-uninitialized around access to fq[0].
13576 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13577 Likewise.
13578
13579 [BZ #18471]
13580 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13581 aliases for non-libc case of versioned symbols.
13582 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13583 (llseek): Define as compat symbol if
13584 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13585 with link warning.
13586 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13587 Make into a compat symbol, disabled for minimum symbol version
13588 GLIBC_2.28 and later.
13589 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13590
13591 2018-05-22 Florian Weimer <fweimer@redhat.com>
13592
13593 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13594 not add -mpreferred-stack-boundary=4.
13595 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13596 (stack-align-test-flags): Likewise.
13597 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13598 Likewise.
13599 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13600 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13601 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13602 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13603 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13604 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13605 (CFLAGS-tst-align2.c): Likewise.
13606
13607 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13608
13609 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13610 (index_arch_Prefer_FSRM): Likewise.
13611 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13612 Also check Prefer_FSRM.
13613 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13614 Also return OPTIMIZE (erms) for Prefer_FSRM.
13615
13616 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13617
13618 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13619 (index_cpu_FSRM): Likewise.
13620 (reg_FSRM): Likewise.
13621
13622 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13623
13624 * math/gen-tgmath-tests.py: Import sys.
13625 (Tests.__init__): Initialize macros_seen.
13626 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13627 if requested to do so for this macro.
13628 (Tests.add_all_tests): Take argument for macro for which to
13629 generate tests.
13630 (Tests.check_macro_list): New function.
13631 (main): Handle check-list argument and argument specifying macro
13632 for which to generate tests.
13633 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13634 [PYTHON] (tgmath3-macro-tests): Likewise.
13635 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13636 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13637 not test-tgmath3.c.
13638 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13639 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13640 to CFLAGS.
13641 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13642 [PYTHON] ($(foreach
13643 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13644 rule.
13645 [PYTHON] (tests-special): Add
13646 $(objpfx)test-tgmath3-macro-list.out.
13647 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13648
13649 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13650 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13651 later.
13652
13653 [BZ #22639]
13654 * time/tzset.c (SECSPERDAY): Cast to time_t.
13655 * time/tst-y2039.c: New file.
13656 * time/Makefile (tests): Add tst-y2039.
13657
13658 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13659
13660 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13661 (PREFETCH_ONE_SET): Remove duplicate line.
13662
13663 2018-05-17 Florian Weimer <fweimer@redhat.com>
13664
13665 * sysdeps/generic/math-type-macros-double.h: Include
13666 <math-nan-payload-double.h> after <libm-alias-double.h>.
13667 * sysdeps/generic/math-type-macros-float.h: Include
13668 <math-nan-payload-float.h> after <libm-alias-float.h>.
13669 * sysdeps/generic/math-type-macros-float128.h: Include
13670 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13671 * sysdeps/generic/math-type-macros-ldouble.h: Include
13672 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13673
13674 2018-05-17 Andreas Schwab <schwab@suse.de>
13675
13676 * resolv/res_send.c (__res_context_send): Don't set errno when
13677 returing error after malloc failure.
13678
13679 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13680
13681 * nptl/allocatestack.c (allocate_stack): Remove the
13682 !__ASSUME_PRIVATE_FUTEX paths.
13683 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13684 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13685 Likewise.
13686 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13687 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13688 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13689 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13690 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13691 !__ASSUME_PRIVATE_FUTEX path.
13692 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13693 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13694 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13695 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13696 !__ASSUME_PRIVATE_FUTEX macros.
13697 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13698 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13699 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13700 * sysdeps/unix/sysv/linux/kernel-features.h
13701 (__ASSUME_PRIVATE_FUTEX): Removed.
13702
13703 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13704
13705 * math/Makefile (libm-narrow-fns): Add div.
13706 (libm-test-funcs-narrow): Likewise.
13707 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13708 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13709 * math/gen-auto-libm-tests.c (test_functions): Add div.
13710 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13711 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13712 (NARROW_DIV_TRIVIAL): Likewise.
13713 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13714 macro.
13715 (__ddivl): Likewise.
13716 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13717 ddiv.
13718 (CFLAGS-nldbl-ddiv.c): New variable.
13719 (CFLAGS-nldbl-fdiv.c): Likewise.
13720 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13721 __nldbl_ddivl.
13722 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13723 prototype.
13724 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13725 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13726 * math/auto-libm-test-in: Add tests of div.
13727 * math/auto-libm-test-out-narrow-div: New generated file.
13728 * math/libm-test-narrow-div.inc: New file.
13729 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13730 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13731 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13732 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13733 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13734 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13735 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13736 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13737 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13738 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13739 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13740 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13741 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13742 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13743 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13744 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13745 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13746 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13747 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13748 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13749 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13750 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13751 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13752 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13753 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13754 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13755 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13756 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13757 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13765 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13766 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13767 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13768 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13769 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13770 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13771 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13772 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13773
13774 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13775
13776 [BZ #23178]
13777 * nscd/nscd-client.h (sendfileall): Remove prototype.
13778 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13779 (handle_request): Use writeall instead of sendfileall.
13780 * nscd/aicache.c (addhstaiX): Likewise.
13781 * nscd/grpcache.c (cache_addgr): Likewise.
13782 * nscd/hstcache.c (cache_addhst): Likewise.
13783 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13784 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13785 * nscd/pwdcache.c (cache_addpw): Likewise.
13786 * nscd/servicescache.c (cache_addserv): Likewise.
13787 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13788 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13789 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13790 Remove define.
13791
13792 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13793
13794 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13795 Include <string/strncat.c>.
13796 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13797 alias.
13798 (__GI___strncat): New hidden alias.
13799
13800 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13801
13802 * sysdeps/mips/mips32/libm-test-ulps: Update.
13803 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13804
13805 2018-05-16 Florian Weimer <fweimer@redhat.com>
13806
13807 * support/Makefile (libsupport-routines): Add support_quote_blob,
13808 support_test_compare_blob.
13809 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13810 * support/check.h (TEST_COMPARE_BLOB): Define.
13811 (support_test_compare_blob): Declare.
13812 * support/support.h (support_quote_blob): Declare.
13813 * support/support_quote_blob.c: New file.
13814 * support/support_test_compare_blob.c: Likewise.
13815 * support/tst-support_quote_blob.c: Likewise.
13816 * support/tst-test_compare_blob.c: Likewise.
13817
13818 2018-05-16 Florian Weimer <fweimer@redhat.com>
13819
13820 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13821 of <strtod_nan_double.h>.
13822 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13823 instead of SET_MANTISSA.
13824 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13825 of include <strtod_nan_float.h>.
13826 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13827 instead of <strtod_nan_ldouble.h>.
13828 * stdlib/strtod_nan_double.h: Move to ...
13829 * sysdeps/generic/math-nan-payload-double.h: ... here.
13830 (FLOAT): Remove definition.
13831 (SET_MANTISSA): Rename to ...
13832 (SET_NAN_PAYLOAD): ... this.
13833 * stdlib/strtod_nan_float.h: Move to ...
13834 * sysdeps/generic/math-nan-payload-float.h: ... here.
13835 (FLOAT): Remove definition.
13836 (SET_MANTISSA): Rename to ...
13837 (SET_NAN_PAYLOAD): ... this.
13838 * sysdeps/generic/math-type-macros-double.h: Include
13839 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13840 instead of <math-svid-compat.h>.
13841 * sysdeps/generic/math-type-macros-float.h: Include
13842 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13843 instead of <math-svid-compat.h>.
13844 * sysdeps/generic/math-type-macros-float128.h: Include
13845 <math-nan-payload-float128.h>.
13846 * sysdeps/generic/math-type-macros-ldouble.h: Include
13847 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13848 instead of <math-svid-compat.h>.
13849 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13850 check for definition.
13851 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13852 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13853 Include <ieee754_float128.h>.
13854 (FLOAT): Remove definition.
13855 (SET_MANTISSA): Rename to ...
13856 (SET_NAN_PAYLOAD): ... this.
13857 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13858 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13859 Do not include <float128_private.h>.
13860 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13861 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13862 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13863 (FLOAT): Remove definition.
13864 (SET_MANTISSA): Rename to ...
13865 (SET_NAN_PAYLOAD): ... this.
13866 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13867 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13868 (FLOAT): Remove definition.
13869 (SET_MANTISSA): Rename to ...
13870 (SET_NAN_PAYLOAD): ... this.
13871 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13872 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13873 (FLOAT): Remove definition.
13874 (SET_MANTISSA): Rename to ...
13875 (SET_NAN_PAYLOAD): ... this.
13876 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13877 of "../stdlib/strtod_nan_double.h".
13878 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13879 of "../stdlib/strtod_nan_float.h".
13880 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13881 instead of "../stdlib/strtod_nan_ldouble.h".
13882 * manual/arith.texi (Parsing of Floats): Adjust comment.
13883
13884 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13885
13886 * math/Makefile (libm-narrow-fns): Add mul.
13887 (libm-test-funcs-narrow): Likewise.
13888 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13889 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13890 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13891 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13892 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13893 (NARROW_MUL_TRIVIAL): Likewise.
13894 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13895 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13896 macro.
13897 (__dmull): Likewise.
13898 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13899 dmul.
13900 (CFLAGS-nldbl-dmul.c): New variable.
13901 (CFLAGS-nldbl-fmul.c): Likewise.
13902 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13903 __nldbl_dmull.
13904 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13905 prototype.
13906 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13907 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13908 * math/auto-libm-test-in: Add tests of mul.
13909 * math/auto-libm-test-out-narrow-mul: New generated file.
13910 * math/libm-test-narrow-mul.inc: New file.
13911 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13912 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13913 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13914 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13915 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13916 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13917 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13918 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13919 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13920 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13921 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13922 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13923 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13924 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13925 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13926 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13927 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13928 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13929 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13930 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13931 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13932 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13933 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13934 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13935 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13936 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13937 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13938 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13939 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13940 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13941 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13942 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13943 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13947 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13948 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13949 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13950 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13951 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13952 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13953 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13954 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13955
13956 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13957
13958 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13959 with *%eax in call.
13960
13961 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13962
13963 * sysdeps/i386/ldsodefs.h: Removed.
13964 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13965 * sysdeps/x86/ldsodefs.h: This.
13966 (La_i86_regs): New.
13967 (La_i86_retval): Likewise.
13968 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13969 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13970
13971 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13972
13973 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13974 unnecessary testl.
13975
13976 2018-05-13 Alan Modra <amodra@gmail.com>
13977
13978 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13979 R_PARISC_TLS_DTPOFF32 reloc addend.
13980
13981 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13982
13983 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13984 * math/math.h: Restrict the prototype definition for the functions
13985 issignaling(_Float128) and iszero(_Float128); and template
13986 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13987 __HAVE_FLOAT128_UNLIKE_LDBL.
13988 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13989 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13990 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13991 __f128() constants; define the type _Float128 as long double;
13992 and reuse long double in __CFLOAT128.
13993
13994 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13995
13996 * sysdeps/generic/math_private.h: Do not include
13997 <math-barriers.h>.
13998 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13999 <math_private.h>.
14000 * math/fromfp.h: Include <math-barriers.h>.
14001 * math/math-narrow.h: Likewise.
14002 * math/s_nextafter.c: Likewise.
14003 * math/s_nexttowardf.c: Likewise.
14004 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14005 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14006 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14007 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14008 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14009 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14010 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14011 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14012 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14013 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14014 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14015 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14016 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14017 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14018 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14019 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14020 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14021 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14022 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14023 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14024 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14025 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14026 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14027 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14028 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14029 * sysdeps/ieee754/k_standardl.c: Likewise.
14030 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14031 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14032 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14033 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14034 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14035 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14036 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14037 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14038 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14039 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14040 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14041 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14042 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14043 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14044 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14045 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14046 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14047 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14048 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14049 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14050 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14051 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14052
14053 2018-05-11 Florian Weimer <fweimer@redhat.com>
14054
14055 Use 64-bit epoch values in the time zone file parser.
14056 * include/time.h (internal_time_t): Define.
14057 (__tzfile_compute): Use it.
14058 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14059 member.
14060 (transitions): Switch to internal_time_t.
14061 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14062 types.
14063 (__tzfile_compute): Use internal_time_t for timer argument. Check
14064 for truncation before calling __offtime.
14065
14066 2018-05-11 Florian Weimer <fweimer@redhat.com>
14067
14068 [BZ #23166]
14069 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14070 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14071 Likewise.
14072 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14073 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14074 export without --enable-obsolete-rpc.
14075 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14076 symbol. This should not have been exported, ever.
14077
14078 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14079
14080 [BZ #23152]
14081 * localedata/locales/gd_GB (abmon): Fix typo in May:
14082 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14083
14084 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14085
14086 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14087 Use multiple registers to copy data in loop tail.
14088
14089 * sysdeps/aarch64/multiarch/memmove_falkor.S
14090 (__memmove_falkor): Use multiple registers to move data in
14091 loop tail.
14092
14093 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14094
14095 * math/math-underflow.h: New file.
14096 * sysdeps/generic/math_private.h: Do not include <float.h>.
14097 (fabs_tg): Remove macro. Moved to math-underflow.h.
14098 (min_of_type_f): Likewise.
14099 (min_of_type_): Likewise.
14100 (min_of_type_l): Likewise.
14101 (min_of_type_f128): Likewise.
14102 (min_of_type): Likewise.
14103 (math_check_force_underflow): Likewise.
14104 (math_check_force_underflow_nonneg): Likewise.
14105 (math_check_force_underflow_complex): Likewise.
14106 * math/e_exp2_template.c: Include <math-underflow.h>.
14107 * math/k_casinh_template.c: Likewise.
14108 * math/s_catan_template.c: Likewise.
14109 * math/s_catanh_template.c: Likewise.
14110 * math/s_ccosh_template.c: Likewise.
14111 * math/s_cexp_template.c: Likewise.
14112 * math/s_clog10_template.c: Likewise.
14113 * math/s_clog_template.c: Likewise.
14114 * math/s_csin_template.c: Likewise.
14115 * math/s_csinh_template.c: Likewise.
14116 * math/s_csqrt_template.c: Likewise.
14117 * math/s_ctan_template.c: Likewise.
14118 * math/s_ctanh_template.c: Likewise.
14119 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14120 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14121 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14122 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14123 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14124 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14125 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14126 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14127 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14128 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14129 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14130 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14131 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14132 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14133 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14134 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14135 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14136 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14137 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14138 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14139 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14140 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14141 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14142 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14143 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14144 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14145 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14146 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14147 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14148 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14149 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14150 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14151 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14152 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14153 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14154 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14155 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14156 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14157 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14158 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14159 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14160 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14161 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14162 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14163 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14164 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14165 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14166 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14167 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14168 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14169 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14170 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14171 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14172 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14173 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14174 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14175 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14176 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14177 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14178 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14179 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14180 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14181 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14182 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14183 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14184 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14185 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14186 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14187 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14188 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14189 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14190 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14191 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14192 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14193 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14194 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14195 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14196 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14197 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14198 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14199 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14200 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14201 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14202 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14203
14204 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14205
14206 * sysdeps/generic/math-barriers.h: New file.
14207 * sysdeps/generic/math_private.h [!math_opt_barrier]
14208 (math_opt_barrier): Move to math-barriers.h.
14209 [!math_opt_barrier] (math_force_eval): Likewise.
14210 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14211 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14212 math-barriers.h.
14213 (math_force_eval): Likewise.
14214 * sysdeps/alpha/fpu/math-barriers.h: New file.
14215 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14216 math-barriers.h.
14217 (math_force_eval): Likewise.
14218 * sysdeps/x86/fpu/math-barriers.h: New file.
14219 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14220 math-barriers.h.
14221 (math_force_eval): Likewise.
14222 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14223 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14224 multiple-include guard for rename.
14225 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14226 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14227 math-barriers.h.
14228 (math_force_eval): Likewise.
14229
14230 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14231
14232 [BZ #22786]
14233 CVE-2018-11236
14234 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14235 computation.
14236 * stdlib/Makefile (test-bz22786): New test.
14237 * stdlib/test-bz22786.c: New test.
14238
14239 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14240
14241 * include/math-narrow-eval.h: New file. Contents moved from ....
14242 * sysdeps/generic/math_private.h: ... here.
14243 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14244 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14245 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14246 * stdlib/strtod_l.c: Likewise.
14247 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14248 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14249 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14250 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14251 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14252 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14253 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14254 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14255 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14256 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14257 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14258 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14259 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14260 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14261 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14262 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14263 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14264 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14265 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14266 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14267 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14268 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14269 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14270 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14271 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14272 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14273 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14274 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14275 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14276
14277 2018-05-08 Andreas Schwab <schwab@suse.de>
14278
14279 * sysdeps/nptl/internaltypes.h: Fix comment.
14280
14281 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14282
14283 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14284 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14285 hidden.
14286
14287 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14288
14289 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14290 of I into loop header.
14291 * benchtests/bench-memmove-walk.c
14292 (test_main): Likewise.
14293
14294 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14295
14296 Revert:
14297 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14298 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14299
14300 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14301
14302 [BZ #20419]
14303 * elf/dl-load.c (open_verify): Fix stack overflow.
14304 * elf/Makefile (tst-big-note): New test.
14305 * elf/tst-big-note-lib.S: New.
14306 * elf/tst-big-note.c: New.
14307
14308 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14309
14310 * scripts/abilist.awk: Ignore absolute symbols.
14311 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14312 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14313 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14314 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14315 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14316 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14317 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14318 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14319 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14320 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14321 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14322 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14323 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14324 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14325 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14326 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14341 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14342 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14343 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14397 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14403 Likewise.
14404 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14417 Likewise.
14418 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14421 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14422 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14423 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14424 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14425 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14445 Likewise.
14446 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14466 Likewise.
14467 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14481 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14482 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14483 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14484 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14485 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14486 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14487 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14488 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14489 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14490 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14491 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14492 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14493 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14494 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14499 Likewise.
14500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14505 Likewise.
14506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14507 Likewise.
14508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14510 Likewise.
14511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14513 Likewise.
14514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14515 Likewise.
14516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14519 Likewise.
14520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14521 Likewise.
14522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14523 Likewise.
14524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14528 Likewise.
14529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14535 Likewise.
14536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14538 Likewise.
14539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14540 Likewise.
14541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14542 Likewise.
14543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14544 Likewise.
14545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14548 Likewise.
14549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14550 Likewise.
14551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14552 Likewise.
14553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14554 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14555 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14556 Likewise.
14557 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14559 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14560 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14561 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14562 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14563 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14564 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14569 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14571 Likewise.
14572 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14573 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14581 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14582 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14583 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14584 Likewise.
14585 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14587 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14588 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14589 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14592 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14593 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14601 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14602 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14603 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14604 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14605 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14606 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14610 Likewise.
14611 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14624 Likewise.
14625 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14663
14664 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14665
14666 [BZ #23137]
14667 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14668 Use atomic_load_acquire to load __tid.
14669
14670 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14671
14672 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14673 Restore the pointer into %rdx, after syscall and use %rdx,
14674 instead of %rsi, to restore context.
14675
14676 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14677
14678 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14679 Pop the pointer into %rdx after syscall and use %rdx, instead
14680 of %rsi, to restore context.
14681
14682 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14683
14684 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14685 handlers after setjmp.
14686 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14687 defined.
14688 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14689 <libc-pointer-arith.h>.
14690 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14691 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14692 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14693 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14694 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14695 * sysdeps/x86/__longjmp_cancel.S: New file.
14696 * sysdeps/x86/longjmp.c: Likewise.
14697 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14698
14699 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14700
14701 * NEWS: Add ustat.h deprecation entry.
14702 * bits/ustat.h: Remove file.
14703 * misc/sys/ustat.h: Likewise.
14704 * misc/ustat.h: Likewise.
14705 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14706 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14707 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14708 compatibility mode.
14709 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14710 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14711 generic Linux implementation.
14712
14713 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14714
14715 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14716 * math/w_expl_compat.c: Likewise.
14717 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14718
14719 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14720
14721 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14722
14723 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14724
14725 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14726 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14727 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14728 Remove.
14729 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14731 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14732 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14733 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14734 and SYSCALL_LL64.
14735
14736 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14737
14738 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14739
14740 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14741 * math/w_asin_template.c: Likewise.
14742 * math/w_atanh_template.c: Likewise.
14743
14744 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14745
14746 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14747 to powerpc/powerpc64/be for big-endian.
14748 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14749 little-endian.
14750
14751 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14752 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14753 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14754 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14755 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14756 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14757 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14758 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14759 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14760 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14761 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14762 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14763 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14764 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14765 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14766 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14767 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14768 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14769 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14770 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14771 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14772 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14773 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14774 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14775 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14776 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14777 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14778 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14779 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14780 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14781 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14782 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14783
14784 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14785 adjusted to imply powerpc64 and older processors on powerpc64/be.
14786 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14787 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14788 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14789 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14790 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14791 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14792 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14793 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14794 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14795 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14796 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14797 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14798 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14799 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14800 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14801 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14802 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14803 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14804 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14805 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14806 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14807 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14808 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14809 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14810 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14811 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14812 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14813 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14814 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14815 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14816 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14817
14818 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14819 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14820 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14821 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14822
14823 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14824 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14825 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14826 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14827
14828 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14829 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14830 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14831 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14832 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14833 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14834 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14835 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14836 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14837 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14838 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14839
14840 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14841 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14842 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14843 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14844 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14845 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14846 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14847 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14848 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14849 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14850 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14851
14852 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14853 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14854 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14855 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14856 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14857 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14858 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14859 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14860 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14861 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14862 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14863 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14864
14865 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14866 and adjusted to imply olders processors.
14867 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14868 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14869 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14870 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14871 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14872 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14873 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14874 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14875 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14876 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14877 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14878
14879 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14880 powerpc64/le.
14881 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14882 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14883
14884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14885 powerpc64le.
14886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14888
14889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14890 powerpc64/be.
14891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14894
14895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14896 powerpc64 and adjusted.
14897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14900 Likewise.
14901
14902 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14903
14904 * sysdeps/tile: Remove.
14905 * sysdeps/unix/sysv/linux/tile: Likewise.
14906 * README (tilegx-*-linux-gnu): Remove from list of supported
14907 configurations.
14908 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14909 contribution of support for generic Linux kernel syscall
14910 interface.
14911 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14912 tilegx configurations.
14913 (Config.install_linux_headers): Do not handle tile.
14914 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14915 in comment.
14916 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14917 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14918 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14919 conditional undefine and redefine.
14920 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14921 in comment.
14922 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14923 conditional undefine and redefine.
14924
14925 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14926
14927 * signal/tst-sigaction.c: New file to test BZ #23069.
14928 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14929
14930 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14931
14932 [BZ #22766]
14933 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14934 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14935 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14936 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14937
14938 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14939
14940 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14941 _DIRENT_MATCHES_DIRENT64 is not defined.
14942 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14943 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14944 is defined.
14945 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14946 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14947
14948 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14949
14950 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14951 version to GCC 8 branch.
14952
14953 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14954
14955 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14956 (check_no_hidden): Use type of original function when declaring
14957 alias.
14958
14959 * sysdeps/unix/sysv/linux/sys/ptrace.h
14960 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14961 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14962 (struct __ptrace_seccomp_metadata): New type.
14963 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14964 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14965 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14966 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14967 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14968 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14969 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14970 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14971 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14972 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14973 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14974 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14975 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14976 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14977 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14978 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14979
14980 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14981
14982 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14983 defined.
14984 * dirent/versionsort.c (versionsort): Likewise.
14985 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14986 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14987 * dirent/versionsort64.c (versionsort64): Likewise.
14988 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14989 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14990 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14991 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14992 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14993 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14994 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14995 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14996 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14997 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15000 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15001 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15002
15003 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15004
15005 * elf/elf.h (NT_PPC_PKEY): New macro.
15006
15007 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15008
15009 [BZ #23094]
15010 * localedata/locales/hr_HR: fix thousands_sep and
15011 mon_thousands_sep
15012
15013 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15014
15015 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15016 (XTABS): Define to TAB3.
15017
15018 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15019
15020 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15021
15022 * dirent/scandir-tail-common.c: New file.
15023 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15024 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15025 * dirent/scandir.c: Use scandir-tail-common.c.
15026 * dirent/scandirat.c: Likewise.
15027 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15028 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15029 if _DIRENT_MATCHES_DIRENT64 is defined.
15030 * dirent/scandirat64.c (scandirat64): Likewise.
15031 * include/dirent.h (__scandir_tail): Only define iff
15032 _DIRENT_MATCHES_DIRENT64 is not defined.
15033 (__scandir64_tail): Define regardless.
15034 (__scandirat, scandirat64): Remove libc_hidden_proto.
15035 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15036 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15038 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15039 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15040 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15041 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15042
15043 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15044
15045 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15046 New macro.
15047 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15048 Increase to 24.
15049 (_dl_aarch64_cap_flags): Add asimdfhm.
15050
15051 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15052
15053 * sysdeps/nios2/libm-test-ulps: Update.
15054
15055 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15056
15057 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15058 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15059
15060 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15061 requirements.
15062 (_DIRENT_MATCHES_DIRENT64): Undef
15063 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15064 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15065 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15066 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15067 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15068 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15069 use getdents64 syscalls as base.
15070 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15071 symbol if required.
15072 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15073 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15074 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15075 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15076 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15077 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15078 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15079 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15080 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15081 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15082 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15083
15084 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15085
15086 * scripts/test_printers_common.py (init_test): Disable lock elision.
15087
15088 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15089
15090 * math/test-tgmath.c (count_double, count_float,
15091 count_ldouble, count_cdouble, count_cfloat,
15092 count_cldouble): Use volatile int.
15093
15094 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15095
15096 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15097 (conformtest-xfail-conds): Add i386-gnu.
15098 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15099 i386-gnu.
15100 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15101 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15102 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15103 msqid_ds.msg_lrpid): Likewise.
15104 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15105 Likewise.
15106 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15107 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15108 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15109 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15110 unsigned int.
15111 (struct statvfs64): Likewise.
15112 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15113 Likewise.
15114 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15115 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15116 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15117 instead of wait_queue.
15118 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15119 instead of vm_area_struct.
15120 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15121 struct sched_param definition to it.
15122 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15123 * bits/types/struct_sched_param.h: New file.
15124 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15125 <bits/types/struct_sched_param.h> instead of <sched.h>.
15126 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15127 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15128 generic version but include <bits/pthreadtypes.h> to make struct
15129 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15130 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15131 non-compliant.
15132 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15133 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15134 [__USE_XOPEN] (OFDEL): New macro.
15135 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15136 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15137 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15138 prototypes.
15139 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15140 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15141 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15142 non-compliant.
15143 * sysdeps/i386/sys/ucontext.h: Likewise.
15144 * sysdeps/m68k/sys/ucontext.h: Likewise.
15145 * sysdeps/mips/sys/ucontext.h: Likewise.
15146 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15147 * sysdeps/mach/hurd/i386/Makefile
15148 (test-xfail-POSIX/fcntl.h/conform): Add.
15149 (test-xfail-POSIX/signal.h/conform): Add.
15150 (test-xfail-POSIX/semaphore.h/conform): Add.
15151 (test-xfail-POSIX/regex.h/conform): Add.
15152 (test-xfail-POSIX/aio.h/conform): Add.
15153 (test-xfail-POSIX/mqueue.h/conform): Add.
15154 (test-xfail-POSIX/sys/types.h/conform): Add.
15155 (test-xfail-UNIX98/fcntl.h/conform): Add.
15156 (test-xfail-UNIX98/netdb.h/conform): Add.
15157 (test-xfail-UNIX98/signal.h/conform): Add.
15158 (test-xfail-UNIX98/semaphore.h/conform): Add.
15159 (test-xfail-UNIX98/regex.h/conform): Add.
15160 (test-xfail-UNIX98/aio.h/conform): Add.
15161 (test-xfail-UNIX98/ftw.h/conform): Add.
15162 (test-xfail-UNIX98/mqueue.h/conform): Add.
15163 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15164 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15165 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15166 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15167 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15168 (test-xfail-UNIX98/sys/types.h/conform): Add.
15169 (test-xfail-UNIX98/stdlib.h/conform): Add.
15170 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15171 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15172 (test-xfail-POSIX2008/netdb.h/conform): Add.
15173 (test-xfail-POSIX2008/signal.h/conform): Add.
15174 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15175 (test-xfail-POSIX2008/regex.h/conform): Add.
15176 (test-xfail-POSIX2008/aio.h/conform): Add.
15177 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15178 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15179 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15180 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15181 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15182 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15183 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15184 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15185 (test-xfail-XOPEN2K/signal.h/conform): Add.
15186 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15187 (test-xfail-XOPEN2K/regex.h/conform): Add.
15188 (test-xfail-XOPEN2K/aio.h/conform): Add.
15189 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15190 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15191 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15192 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15193 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15194 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15195 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15196 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15197 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15198 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15199 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15200 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15201 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15202 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15203 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15204 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15205 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15206 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15207 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15208 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15209 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15210 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15211 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15212 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15213 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15214 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15215 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15216 i386-gnu.
15217 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15218 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15219
15220 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15221
15222 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15223 --enable-obsolete for powerpc-linux-gnuspe.
15224
15225 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15226
15227 * conform/data/sys/un.h-data: Allow sun_ prefix.
15228 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15229 prototypes.
15230 * sysdeps/mach/include/mach.h: Likewise.
15231 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15232 * sysdeps/mach/include/mach_error.h: Likewise.
15233
15234 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15235
15236 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15237 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15238 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15239 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15240
15241 2018-04-16 Andreas Schwab <schwab@suse.de>
15242
15243 [BZ #19527]
15244 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15245
15246 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15247
15248 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15249 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15250
15251 2018-04-12 DJ Delorie <dj@redhat.com>
15252
15253 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15254 version to 4.16.
15255
15256 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15257
15258 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15259 (struct kernel_sigaction): Use the same definition on 31bit as is used
15260 on 64bit.
15261
15262 2018-04-09 Florian Weimer <fweimer@redhat.com>
15263
15264 [BZ #23037]
15265 * resolv/res_send.c (send_dg): Use designated initializers instead
15266 of assignment to zero-initialize other fields of struct mmsghdr.
15267
15268 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15269
15270 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15271 __READDIR_ALIAS): Undefine after usage.
15272 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15273 __READDIR_R_ALIAS): Likewise.
15274 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15275 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15276 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15277 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15278 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15279 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15280 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15281 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15282 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15283 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15284 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15285 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15286 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15287 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15288 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15289 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15290 * sysdeps/unix/sysv/linux/readdir.c: New file.
15291 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15292 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15293 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15294
15295 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15296
15297 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15298
15299 * manual/charset.texi (Converting a Character): Fix typo.
15300
15301 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15302
15303 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15304
15305 * sysdeps/arm/libm-test-ulps: Update.
15306
15307 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15308 as base implementation.
15309 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15310 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15311 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15312 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15313 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15314 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15315 remove unrequired definitions and update comments.
15316 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15317 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15318 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15319 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15320 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15321 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15322 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15323 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15324 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15325 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15326 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15327 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15328 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15329 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15330 and RESET_SA_RESTORER hooks.
15331
15332 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15333
15334 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15335
15336 2018-04-05 Florian Weimer <fweimer@redhat.com>
15337
15338 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15339 integer overflow, memory leak on error, and indeterminate errno
15340 value. Add a null wide character to terminate the result string.
15341 * manual/charset.texi (Converting a Character): Mention embedded
15342 null bytes in the mbrtowc input string. Explain what happens in
15343 the -2 result case. Do not claim that mbrtowc is simple or
15344 obvious to use. Adjust the description of the code example. Use
15345 @code, not @var, for concrete variables.
15346
15347 2018-04-05 Florian Weimer <fweimer@redhat.com>
15348
15349 * manual/examples/mbstouwcs.c: New file.
15350 * manual/charset.texi (Converting a Character): Include it.
15351
15352 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15353
15354 * include/dirent.h (dirfd): Add hidden proto.
15355 * dirent/dirfd.c (dirfd): Add hidden def.
15356 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15357 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15358
15359 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15360
15361 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15362 sin, cos and sincos to 1 ULP.
15363
15364 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15365
15366 [BZ #19818]
15367 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15368 symbols.
15369 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15370 * elf/tst-absolute-sym.c: New file.
15371 * elf/tst-absolute-sym-lib.c: New file.
15372 * elf/tst-absolute-sym-lib.lds: New file.
15373 * elf/Makefile (tests): Add `tst-absolute-sym'.
15374 (modules-names): Add `tst-absolute-sym-lib'.
15375 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15376 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15377 ($(objpfx)tst-absolute-sym): New dependency.
15378
15379 [BZ #19818]
15380 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15381 parameter.
15382 (SYMBOL_ADDRESS): New macro.
15383 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15384 SYMBOL_ADDRESS for symbol address calculation.
15385 * elf/dl-runtime.c (_dl_fixup): Likewise.
15386 (_dl_profile_fixup): Likewise.
15387 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15388 * elf/rtld.c (dl_main): Likewise.
15389 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15390 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15391 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15392 (elf_machine_rela): Likewise.
15393 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15394 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15395 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15396 (elf_machine_rela): Likewise.
15397 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15398 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15399 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15400 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15401 Likewise.
15402 (elf_machine_reloc): Likewise.
15403 (elf_machine_got_rel): Likewise.
15404 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15405 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15406 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15407 Likewise.
15408 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15409 Likewise.
15410 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15411 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15412 Likewise.
15413 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15414 Likewise.
15415 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15416 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15417 Likewise.
15418 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15419 Likewise.
15420 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15421 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15422
15423 2018-04-04 Zack Weinberg <zackw@panix.com>
15424
15425 * sysdeps/generic/internal-signals.h: Include signal.h,
15426 sigsetops.h, and stdbool.h.
15427 (__libc_signal_block_all): Actually block all signals.
15428 (__libc_signal_block_app): Likewise.
15429 (__libc_signal_restore_set): Actually restore the signal mask.
15430
15431 2018-04-04 Florian Weimer <fweimer@redhat.com>
15432
15433 inet: Actually build and run tst-deadline.
15434 * inet/Makefile (tests-internal): Add tst-deadline and do not
15435 overwrite the variable.
15436 (tests-static-internal): Remove variable.
15437
15438 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15439
15440 [BZ #22947]
15441 * bits/uio-ext.h (RWF_APPEND): New.
15442 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15443 * manual/llio.texi: Document RWF_APPEND.
15444 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15445 (RWF_SUPPORTED): Add RWF_APPEND.
15446
15447 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15448
15449 [BZ #22391]
15450 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15451 check for internal nptl signals.
15452 * nptl/sigaction.c (__sigaction): Likewise.
15453 * signal/sigaddset.c (sigaddset): Likewise.
15454 * signal/sigdelset.c (sigdelset): Likewise.
15455 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15456 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15457 value.
15458 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15459 to filter out internal nptl signals.
15460 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15461 also check realtime signals using standard macros.
15462 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15463 __is_internal_signal, __libc_signal_block_all,
15464 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15465 * sysdeps/nptl/sigfillset.c: Remove file.
15466 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15467 Change return to bool.
15468 (__clear_internal_signals): Remove SIGTIMER clean since it is
15469 equal to SIGCANEL on Linux.
15470 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15471 signal set was constructed using standard functions.
15472
15473 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15474
15475 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15476 ifname is too long.
15477 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15478 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15479 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15480 hidden def.
15481 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15482 * signal/sigaddset.c: Include <sigsetopts.h>.
15483 * signal/sigdelset.c: Likewise.
15484
15485 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15486
15487 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15488 (__cos): Likewise.
15489 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15490 logic as sin and cos.
15491
15492 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15493
15494 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15495 inputs. Return correct sign.
15496 (do_sincos): Remove small input check before do_sin, let do_sin set
15497 the sign.
15498 (__sin): Likewise.
15499 (__cos): Likewise.
15500
15501 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15502
15503 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15504 (do_cos_slow): Likewise.
15505 (do_sin_slow): Likewise.
15506 (reduce_and_compute): Likewise.
15507 (slow): Likewise.
15508 (slow1): Likewise.
15509 (slow2): Likewise.
15510 (sloww): Likewise.
15511 (sloww1): Likewise.
15512 (sloww2): Likewise.
15513 (bslow): Likewise.
15514 (bslow1): Likewise.
15515 (bslow2): Likewise.
15516 (cslow2): Likewise.
15517
15518 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15519
15520 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15521 (do_cos): Remove corp parameter and calculations.
15522 (do_sin): Likewise.
15523 (do_sincos): Remove cor variable.
15524 (__sin): Use do_sincos for huge inputs.
15525 (__cos): Likewise.
15526 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15527 (reduce_and_compute_sincos): Remove unused function.
15528
15529 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15530
15531 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15532 reduce_sincos, improve accuracy to 136 bits.
15533 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15534 (__sin): Use improved reduction and simplified do_sincos calculation.
15535 (__cos): Likewise.
15536 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15537
15538 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15539
15540 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15541 (do_sincos_2): Likewise.
15542 (__sin): Remove middle range reduction case.
15543 (__cos): Likewise.
15544 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15545 reduction case.
15546
15547 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15548
15549 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15550 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15551 inputs.
15552 (__cos): Likewise.
15553 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15554
15555 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15556
15557 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15558 version to 4.16
15559
15560 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15561
15562 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15563 Remove definitions.
15564 (opendir_oflags): Use O_DIRECTORY regardless.
15565 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15566 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15567
15568 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15569
15570 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15571 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15572 macros.
15573 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15574 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15575 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15576 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15577 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15578 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15579
15580 * htl/Makefile: Bump licence to LGPL 2.1+.
15581 * htl/alloca_cutoff.c: Likewise.
15582 * htl/cthreads-compat.c: Likewise.
15583 * htl/lockfile.c: Likewise.
15584 * htl/pt-alloc.c: Likewise.
15585 * htl/pt-cancel.c: Likewise.
15586 * htl/pt-cleanup.c: Likewise.
15587 * htl/pt-create.c: Likewise.
15588 * htl/pt-dealloc.c: Likewise.
15589 * htl/pt-detach.c: Likewise.
15590 * htl/pt-exit.c: Likewise.
15591 * htl/pt-getattr.c: Likewise.
15592 * htl/pt-initialize.c: Likewise.
15593 * htl/pt-internal.h: Likewise.
15594 * htl/pt-join.c: Likewise.
15595 * htl/pt-self.c: Likewise.
15596 * htl/pt-setcancelstate.c: Likewise.
15597 * htl/pt-setcanceltype.c: Likewise.
15598 * htl/pt-sigmask.c: Likewise.
15599 * htl/pt-spin-inlines.c: Likewise.
15600 * htl/pt-testcancel.c: Likewise.
15601 * htl/pt-yield.c: Likewise.
15602 * htl/tests/test-1.c: Likewise.
15603 * htl/tests/test-10.c: Likewise.
15604 * htl/tests/test-11.c: Likewise.
15605 * htl/tests/test-12.c: Likewise.
15606 * htl/tests/test-13.c: Likewise.
15607 * htl/tests/test-14.c: Likewise.
15608 * htl/tests/test-15.c: Likewise.
15609 * htl/tests/test-16.c: Likewise.
15610 * htl/tests/test-17.c: Likewise.
15611 * htl/tests/test-2.c: Likewise.
15612 * htl/tests/test-3.c: Likewise.
15613 * htl/tests/test-4.c: Likewise.
15614 * htl/tests/test-5.c: Likewise.
15615 * htl/tests/test-6.c: Likewise.
15616 * htl/tests/test-7.c: Likewise.
15617 * htl/tests/test-8.c: Likewise.
15618 * htl/tests/test-9.c: Likewise.
15619 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15620 * sysdeps/htl/bits/cancelation.h: Likewise.
15621 * sysdeps/htl/bits/pthread-np.h: Likewise.
15622 * sysdeps/htl/bits/pthread.h: Likewise.
15623 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15624 * sysdeps/htl/bits/semaphore.h: Likewise.
15625 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15626 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15627 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15628 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15629 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15630 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15631 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15632 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15633 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15634 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15635 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15636 * sysdeps/htl/old_pt-atfork.c: Likewise.
15637 * sysdeps/htl/pt-atfork.c: Likewise.
15638 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15639 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15640 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15641 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15642 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15643 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15644 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15645 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15646 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15647 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15648 * sysdeps/htl/pt-attr-init.c: Likewise.
15649 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15650 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15651 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15652 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15653 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15654 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15655 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15656 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15657 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15658 * sysdeps/htl/pt-attr.c: Likewise.
15659 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15660 * sysdeps/htl/pt-barrier-init.c: Likewise.
15661 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15662 * sysdeps/htl/pt-barrier.c: Likewise.
15663 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15664 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15665 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15666 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15667 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15668 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15669 * sysdeps/htl/pt-cond-init.c: Likewise.
15670 * sysdeps/htl/pt-cond-signal.c: Likewise.
15671 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15672 * sysdeps/htl/pt-cond-wait.c: Likewise.
15673 * sysdeps/htl/pt-cond.c: Likewise.
15674 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15675 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15676 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15677 * sysdeps/htl/pt-condattr-init.c: Likewise.
15678 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15679 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15680 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15681 * sysdeps/htl/pt-equal.c: Likewise.
15682 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15683 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15684 * sysdeps/htl/pt-getschedparam.c: Likewise.
15685 * sysdeps/htl/pt-getspecific.c: Likewise.
15686 * sysdeps/htl/pt-init-specific.c: Likewise.
15687 * sysdeps/htl/pt-key-create.c: Likewise.
15688 * sysdeps/htl/pt-key-delete.c: Likewise.
15689 * sysdeps/htl/pt-key.h: Likewise.
15690 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15691 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15692 * sysdeps/htl/pt-mutex-init.c: Likewise.
15693 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15694 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15695 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15696 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15697 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15698 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15699 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15700 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15701 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15702 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15703 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15704 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15705 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15706 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15707 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15708 * sysdeps/htl/pt-mutexattr.c: Likewise.
15709 * sysdeps/htl/pt-once.c: Likewise.
15710 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15711 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15712 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15713 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15714 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15715 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15716 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15717 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15718 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15719 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15720 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15721 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15722 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15723 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15724 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15725 * sysdeps/htl/pt-setschedparam.c: Likewise.
15726 * sysdeps/htl/pt-setschedprio.c: Likewise.
15727 * sysdeps/htl/pt-setspecific.c: Likewise.
15728 * sysdeps/htl/pt-spin.c: Likewise.
15729 * sysdeps/htl/pt-startup.c: Likewise.
15730 * sysdeps/htl/pthread.h: Likewise.
15731 * sysdeps/htl/sem-close.c: Likewise.
15732 * sysdeps/htl/sem-destroy.c: Likewise.
15733 * sysdeps/htl/sem-getvalue.c: Likewise.
15734 * sysdeps/htl/sem-init.c: Likewise.
15735 * sysdeps/htl/sem-open.c: Likewise.
15736 * sysdeps/htl/sem-post.c: Likewise.
15737 * sysdeps/htl/sem-timedwait.c: Likewise.
15738 * sysdeps/htl/sem-trywait.c: Likewise.
15739 * sysdeps/htl/sem-unlink.c: Likewise.
15740 * sysdeps/htl/sem-wait.c: Likewise.
15741 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15742 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15743 * sysdeps/mach/htl/pt-block.c: Likewise.
15744 * sysdeps/mach/htl/pt-spin.c: Likewise.
15745 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15746 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15747 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15748 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15749 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15750 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15751 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15752 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15753 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15754 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15755 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15756 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15757 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15758 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15759 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15760 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15761 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15762 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15763 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15764 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15765 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15766 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15767 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15768 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15769 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15770 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15771 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15772 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15773 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15774 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15775 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15776 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15777 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15778 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15779 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15780 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15781 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15782 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15783 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15784 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15785 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15786 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15787 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15788
15789 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15790 * README: Remove the mention of out-of-tree patches needed for
15791 GNU/Hurd.
15792
15793 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15794 (UTIME_NOW, UTIME_OMIT): Define macros.
15795
15796 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15797 instead of pthread_detach.
15798 (__cthread_fork): Call __pthread_create instead of pthread_create.
15799 (__cthread_keycreate): Call __pthread_key_create instead of
15800 pthread_key_create.
15801 (__cthread_getspecific): Call __pthread_getspecific instead of
15802 pthread_getspecific.
15803 (__cthread_setspecific): Call __pthread_setspecific instead of
15804 pthread_setspecific.
15805 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15806 __pthread_mutex_unlock instead of pthread_mutex_lock and
15807 pthread_mutex_unlock.
15808 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15809 ___pthread_get_cleanup_stack.
15810 (__pthread_get_cleanup_stack): New strong alias.
15811 * htl/pt-create.c: Include <pthreadP.h>.
15812 (entry_point): Call __pthread_exit instead of pthread_exit.
15813 (pthread_create): Rename to __pthread_create.
15814 (pthread_create): New strong alias.
15815 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15816 (pthread_detach): New strong alias.
15817 (__pthread_detach): Call __pthread_cond_broadcast instead of
15818 pthread_cond_broadcast.
15819 * htl/pt-exit.c: Include <pthreadP.h>.
15820 (__pthread_exit): Call __pthread_setcancelstate and
15821 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15822 __pthread_get_cleanup_stack.
15823 * htl/pt-testcancel.c: Include <pthreadP.h>.
15824 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15825 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15826 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15827 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15828 pthread_attr_getstacksize.
15829 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15830 Rename to __pthread_attr_getstackaddr.
15831 (pthread_attr_getstackaddr): New strong alias.
15832 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15833 Rename to __pthread_attr_getstacksize.
15834 (pthread_attr_getstacksize): New strong alias.
15835 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15836 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15837 (pthread_attr_setstack): New strong alias.
15838 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15839 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15840 pthread_attr_getstacksize, pthread_attr_setstacksize and
15841 pthread_attr_setstackaddr.
15842 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15843 Rename to __pthread_attr_setstackaddr.
15844 (pthread_attr_setstackaddr): New strong alias.
15845 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15846 Rename to __pthread_attr_setstacksize.
15847 (pthread_attr_setstacksize): New strong alias.
15848 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15849 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15850 pthread_exit.
15851 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15852 (__pthread_key_create): New hidden def.
15853 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15854 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15855 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15856 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15857 __pthread_setspecific, __pthread_setcancelstate,
15858 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15859 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15860 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15861 declarations.
15862 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15863 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15864 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15865 (pthread_attr_setstackaddr): New strong alias.
15866 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15867 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15868 (pthread_attr_setstacksize): New strong alias.
15869 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15870 (call_exit): Call __pthread_exit instead of pthread_exit.
15871 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15872 (_pthread_mutex_init): New hidden definition.
15873 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15874 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15875 instead of pthread_attr_init and pthread_attr_setstack.
15876
15877 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15878 __vm_deallocate instead of vm_allocate and vm_deallocate.
15879 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15880 setenv.
15881 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15882 of geteuid.
15883 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15884 strdup.
15885 * hurd/siginfo.c: Include <libioP.h>.
15886 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15887 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15888 munmap.
15889 * mach/devstream.c: Include <libioP.h>.
15890 (dealloc_ref): Call __mach_port_deallocate instead of
15891 mach_port_deallocate.
15892 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15893 Call __mach_port_deallocate instead of mach_port_deallocate.
15894 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15895 pathconf.
15896 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15897 munmap.
15898 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15899 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15900 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15901 of munmap.
15902 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15903 of close.
15904 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15905 instead of sysconf.
15906 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15907 __clock_gettime instead of clock_gettime.
15908 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15909 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15910 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15911 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15912 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15913 tcgetattr.
15914 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15915 __clock_gettime and __nanosleep instead of clock_gettime and
15916 nanosleep.
15917 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15918 __hurd_catch_signal.
15919 (hurd_catch_signal): New strong alias.
15920 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15921 __hurd_catch_signal instead of hurd_catch_signal.
15922 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15923 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15924 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15925 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15926 (_hurd_thread_sigstate): Add hidden def.
15927 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15928 mutex_unlock.
15929 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15930 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15931 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15932 __hurd_file_name_path_lookup.
15933 (hurd_file_name_path_lookup): New strong alias.
15934 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15935 hurd_file_name_path_lookup.
15936 * mach/errstring.c (mach_error_type): Add hidden def.
15937 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15938 * mach/mutex-init.c (__mutex_init): Add hidden def.
15939 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15940 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15941 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15942 * sysdeps/mach/hurd/getcwd.c
15943 (_hurd_canonicalize_directory_name_internal): Rename to
15944 __hurd_canonicalize_directory_name_internal.
15945 (_hurd_canonicalize_directory_name_internal): New strong alias.
15946 (__canonicalize_directory_name_internal, __getcwd): Call
15947 __hurd_canonicalize_directory_name_internal instead of
15948 _hurd_canonicalize_directory_name_internal.
15949 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15950 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15951 hidden defs.
15952 * sysdeps/hurd/include/hurd.h: New file.
15953 * sysdeps/hurd/include/hurd/fd.h: New file.
15954 * sysdeps/hurd/include/hurd/signal.h: New file.
15955 * sysdeps/mach/include/lock-intern.h: New file.
15956 * sysdeps/mach/include/mach.h: New file.
15957 * sysdeps/mach/include/mach/mig_support.h: New file.
15958 * sysdeps/mach/include/mach_error.h: New file.
15959 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15960 prototype.
15961 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15962 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15963 _HEADER_H_HIDDEN_DEF macro.
15964 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15965 _hurd_fd_error_signal): Add hidden prototype.
15966 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15967 hidden def.
15968 * libio/iolibio.h (_IO_puts): New hidden prototype.
15969 * libio/ioputs.c (_IO_puts): New hidden def.
15970 * sysdeps/mach/hurd/localplt.data: New file.
15971
15972 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15973 Amos Jeffries <squid3@treenet.co.nz>
15974 David Michael <fedora.dm0@gmail.com>
15975 Marco Gerards <marco@gnu.org>
15976 Marcus Brinkmann <marcus@gnu.org>
15977 Neal H. Walfield <neal@gnu.org>
15978 Pino Toscano <toscano.pino@tiscali.it>
15979 Richard Braun <rbraun@sceen.net>
15980 Roland McGrath <roland@gnu.org>
15981 Samuel Thibault <samuel.thibault@ens-lyon.org>
15982 Thomas DiModica <ricinwich@yahoo.com>
15983 Thomas Schwinge <tschwinge@gnu.org>
15984
15985 * htl: New directory.
15986 * sysdeps/htl: New directory.
15987 * sysdeps/hurd/htl: New directory.
15988 * sysdeps/i386/htl: New directory.
15989 * sysdeps/mach/htl: New directory.
15990 * sysdeps/mach/hurd/htl: New directory.
15991 * sysdeps/mach/hurd/i386/htl: New directory.
15992 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15993 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15994 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15995
15996 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15997
15998 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15999 signals in thread created for runing timers.
16000
16001 2018-04-01 Florian Weimer <fweimer@redhat.com>
16002
16003 * support/support_format_addrinfo.c (support_format_addrinfo):
16004 Include unknown error number in formatted result.
16005
16006 2018-03-29 Florian Weimer <fweimer@redhat.com>
16007
16008 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16009 capture SIGBUS.
16010
16011 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16012
16013 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16014 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16015 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16016 (__ASSUME_CLONE_BACKWARDS): Define.
16017
16018 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16019
16020 [BZ #23024]
16021 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16022 early when linux sentinel value is set.
16023
16024 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16025
16026 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16027
16028 2018-03-27 Andreas Schwab <schwab@suse.de>
16029
16030 [BZ #23005]
16031 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16032 allocation of private copy of nsaddr_list fails.
16033
16034 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16035
16036 [BZ #16552]
16037 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16038 * sysdeps/unix/sysv/linux/umount.c: ... here.
16039 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16040 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16041 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16042 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16044 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16045 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16046
16047 2018-03-26 Andreas Schwab <schwab@suse.de>
16048
16049 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16050 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16051 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16052 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16053 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16054 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16055 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16056 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16057 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16058 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16059 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16060 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16061 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16062 (R_RISCV_NUM): Define.
16063
16064 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16065
16066 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16067 TLS declaration of errno.
16068 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16069 __libc_setup_tls.
16070 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16071 (ARCH_SETUP_TLS): Likewise.
16072 * sysdeps/mach/hurd/libc-start.h: New file copied from
16073 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16074 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16075 instead of __libc_setup_tls.
16076 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16077 __libc_setup_tls before initializing libpthread and running _hurd_init
16078 which starts the signal thread.
16079 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16080 Declare function.
16081 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16082
16083 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16084
16085 [BZ #22998]
16086 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16087 after it is defined.
16088
16089 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16090 Max Horn <max@quendi.de>
16091
16092 [BZ #22644]
16093 CVE-2017-18269
16094 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16095 branch conditions.
16096 * string/test-memmove.c (do_test2): New testcase.
16097
16098 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16099
16100 * sysdeps/generic/frame.h: Remove file.
16101 * sysdeps/arm/frame.h: Likewise.
16102 * sysdeps/hppa/frame.h: Likewise.
16103 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16104 macro.
16105 (GET_FRAME): Likewise.
16106 (GET_STACK): Likewise.
16107 (CALL_SIGHANDLER): Likewise.
16108 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16109 Likewise.
16110 (GET_FRAME): Likewise.
16111 (GET_STACK): Likewise.
16112 (CALL_SIGHANDLER): Likewise.
16113 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16114 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16115 (GET_FRAME): Likewise.
16116 (GET_STACK): Likewise.
16117 (CALL_SIGHANDLER): Likewise.
16118 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16119 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16120 (GET_FRAME): Likewise.
16121 (GET_STACK): Likewise.
16122 (ADVANCE_STACK_FRAME): Likewise.
16123 (CALL_SIGHANDLER): Likewise.
16124 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16125 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16126 (GET_FRAME): Likewise.
16127 (GET_STACK): Likewise.
16128 (CALL_SIGHANDLER): Likewise.
16129 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16130 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16131 (GET_FRAME): Likewise.
16132 (GET_STACK): Likewise.
16133 (CALL_SIGHANDLER): Likewise.
16134 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16135 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16136 (GET_FRAME): Likewise.
16137 (GET_STACK): Likewise.
16138 (CALL_SIGHANDLER): Likewise.
16139 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16140 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16141 (GET_FRAME): Likewise.
16142 (GET_STACK): Likewise.
16143 (CALL_SIGHANDLER): Likewise.
16144 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16145 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16146 (GET_FRAME): Likewise.
16147 (GET_STACK): Likewise.
16148 (CALL_SIGHANDLER): Likewise.
16149 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16150 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16151 (GET_FRAME): Likewise.
16152 (GET_STACK): Likewise.
16153 (CALL_SIGHANDLER): Likewise.
16154 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16155 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16156 (GET_FRAME): Likewise.
16157 (GET_STACK): Likewise.
16158 (CALL_SIGHANDLER): Likewise.
16159 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16160 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16161 (GET_FRAME): Likewise.
16162 (GET_STACK): Likewise.
16163 (CALL_SIGHANDLER): Likewise.
16164 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16165 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16166 (GET_FRAME): Likewise.
16167 (GET_STACK): Likewise.
16168 (CALL_SIGHANDLER): Likewise.
16169 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16170 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16171 (FIRST_FRAME_POINTER): Likewise.
16172 (ADVANCE_STACK_FRAME): Likewise.
16173 (GET_STACK): Likewise.
16174 (GET_FRAME): Likewise.
16175 (CALL_SIGHANDLER): Likewise.
16176 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16177 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16178 (ADVANCE_STACK_FRAME): Likewise.
16179 (GET_STACK): Likewise.
16180 (GET_FRAME): Likewise.
16181 (CALL_SIGHANDLER): Likewise.
16182 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16183 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16184 (GET_FRAME): Likewise.
16185 (GET_STACK): Likewise.
16186 (CALL_SIGHANDLER): Likewise.
16187 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16188 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16189 (GET_FRAME): Likewise.
16190 (GET_STACK): Likewise.
16191 (CALL_SIGHANDLER): Likewise.
16192
16193 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16194
16195 * sysdeps/x86_64/backtrace.c: Move to ....
16196 * debug/backtrace.c: ... here.
16197 * sysdeps/aarch64/backtrace.c: Remove file.
16198 * sysdeps/alpha/backtrace.c: Likewise.
16199 * sysdeps/hppa/backtrace.c: Likewise.
16200 * sysdeps/ia64/backtrace.c: Likewise.
16201 * sysdeps/mips/backtrace.c: Likewise.
16202 * sysdeps/nios2/backtrace.c: Likewise.
16203 * sysdeps/riscv/backtrace.c: Likewise.
16204 * sysdeps/sh/backtrace.c: Likewise.
16205 * sysdeps/tile/backtrace.c: Likewise.
16206
16207 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16208
16209 [BZ #22987]
16210 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16211 function.
16212 (fdimf): Likewise.
16213 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16214
16215 [BZ #17343]
16216 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16217 possibly overflowing computations.
16218
16219 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16220
16221 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16222 values from Linux-specific section now that it is in the GNU section.
16223 * sysdeps/gnu/errlist.c: Regenerate.
16224
16225 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16226
16227 * math/Makefile (libm-narrow-fns): Add sub.
16228 (libm-test-funcs-narrow): Likewise.
16229 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16230 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16231 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16232 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16233 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16234 (NARROW_SUB_TRIVIAL): Likewise.
16235 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16236 macro.
16237 (__dsubl): Likewise.
16238 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16239 dsub.
16240 (CFLAGS-nldbl-dsub.c): New variable.
16241 (CFLAGS-nldbl-fsub.c): Likewise.
16242 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16243 __nldbl_dsubl.
16244 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16245 prototype.
16246 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16247 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16248 * math/auto-libm-test-in: Add tests of sub.
16249 * math/auto-libm-test-out-narrow-sub: New generated file.
16250 * math/libm-test-narrow-sub.inc: New file.
16251 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16252 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16253 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16254 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16255 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16256 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16257 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16258 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16259 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16260 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16261 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16262 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16263 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16264 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16265 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16266 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16267 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16268 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16269 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16270 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16271 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16272 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16273 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16274 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16275 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16276 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16277 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16278 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16279 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16280 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16281 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16282 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16284 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16287 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16288 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16289 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16290 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16291 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16292 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16293 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16294 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16295 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16296 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16297
16298 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16299
16300 [BZ #20079]
16301 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16302
16303 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16304
16305 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16306
16307 2018-03-18 Richard Braun <rbraun@sceen.net>
16308
16309 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16310 thread reference.
16311
16312 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16313
16314 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16315 (__libc_cleanup_fct): Define function.
16316 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16317 __libc_cleanup_end): Rewrite implementation using
16318 __attribute__ ((__cleanup__)).
16319 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16320 * hurd/Makefile (routines): Add hurdlock.
16321 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16322 interface.
16323 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16324 * hurd/hurdpid.c: Include <lowlevellock.h>
16325 (_S_msg_proc_newids): Use lll_wait to synchronize.
16326 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16327 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16328 * mach/Makefile (lock-headers): Remove machine-lock.h.
16329 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16330 <machine-lock.h>.
16331 (__spin_lock_t): New type.
16332 (__SPIN_LOCK_INITIALIZER): New macro.
16333 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16334 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16335 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16336 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16337 (__mutex_init): Initialize with lll.
16338 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16339 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16340 needing lll.
16341 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16342 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16343 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16344 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16345 (__setpgid): Use lll for synchronization.
16346 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16347 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16348 instead of <cthreads.h>.
16349 (_IO_lock_inexpensive): New macro
16350 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16351 (__libc_lock_self0): New declaration.
16352 (__libc_lock_owner_self): New macro.
16353 (__libc_key_t): Remove type.
16354 (_LIBC_LOCK_INITIALIZER): New macro.
16355 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16356 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16357 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16358 __libc_lock_define_initialized_recursive,
16359 __rtld_lock_define_initialized_recursive,
16360 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16361 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16362 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16363 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16364 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16365 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16366 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16367 New macros.
16368 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16369 * hurd/hurdlock.c: New file.
16370 * hurd/hurdlock.h: New file.
16371 * mach/lowlevellock.h: New file
16372
16373 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16374
16375 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16376 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16377 when opening a symlink with O_NOFOLLOW.
16378 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16379 path when flags contains O_NOFOLLOW.
16380 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16381 if flags contains O_DIRECTORY and the result is a directory.
16382 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16383 oneself when the pointer given in D is nul (as set by ext2fs).
16384 * sysdeps/mach/hurd/mlockall.c: New file.
16385 * sysdeps/mach/hurd/munlockall.c: New file.
16386
16387 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16388
16389 * hurd/hurdsig.c: Include <pthread.h>.
16390 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16391 get the signal thread stack layout.
16392 * hurd/Makefile (headers): Remove threadvar.h.
16393 (inline-headers): Remove threadvar.h.
16394 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16395 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16396 __hurd_threadvar_max, __hurd_errno_location.
16397 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16398 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16399 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16400 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16401 unless TLS is not initialized yet, in which case we do not need a
16402 critical section yet anyway.
16403 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16404 <machine-sp.h>.
16405 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16406 declarations.
16407 (__hurd_threadvar_index): Remove enum.
16408 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16409 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16410 inlines.
16411 (__hurd_reply_port0): New variable declaration.
16412 (__hurd_local_reply_port): New macro.
16413 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16414 (interrupted_reply_port_location): Add thread_t parameter. Use it
16415 with THREAD_TCB to access thread-local variables.
16416 (_hurdsig_abort_rpcs): Pass ss->thread to
16417 interrupted_reply_port_location.
16418 (_hurd_internal_post_signal): Likewise.
16419 (_hurdsig_init): Use presence of cthread_fork instead of
16420 __hurd_threadvar_stack_mask to start signal thread by hand.
16421 Remove signal thread threadvar initialization.
16422 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16423 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16424 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16425 of threadvar.
16426 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16427 __libc_lock_self0.
16428 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16429 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16430 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16431 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16432 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16433 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16434 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16435 define variables.
16436 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16437 <hurd/threadvar.h>.
16438 [IS_IN(rtld)] (rtld_errno): New variable.
16439 [IS_IN(rtld)] (__errno_location): New weak function.
16440 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16441 * sysdeps/mach/hurd/errno.c: Remove file.
16442 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16443 (__fork): Remove THREADVAR_SPACE macro and its use.
16444 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16445 variable.
16446 (init): Do not initialize threadvar.
16447 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16448 symbol.
16449 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16450 __hurd_local_reply_port instead of threadvar.
16451 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16452 _hurd_sigstate fields.
16453 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16454 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16455 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16456 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16457 instead of threadvar.
16458 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16459 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16460 (use_threadvar, global_reply_port): Remove variables.
16461 (__hurd_reply_port0): New variable.
16462 (__mig_get_reply_port): Use __hurd_local_reply_port and
16463 __hurd_reply_port0 instead of threadvar.
16464 (__mig_dealloc_reply_port): Likewise.
16465 (__mig_init): Do not initialize threadvar.
16466 * sysdeps/mach/hurd/profil.c: Fix comment.
16467 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16468 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16469 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16470 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16471 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16472 __cthread_setspecific.
16473 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16474 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16475 __cthread_t instead of cthread_fork, cthread_detach,
16476 pthread_getattr_np, pthread_attr_getstack.
16477 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16478 __cthread_keycreate.
16479 (cthread_getspecific): Rename to __cthread_getspecific.
16480 (cthread_setspecific): Rename to __cthread_setspecific.
16481 (__libc_getspecific): Use __cthread_getspecific instead of
16482 cthread_getspecific.
16483 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16484 __cthread_keycreate instead of cthread_keycreate.
16485 (__libc_setspecific): Use __cthread_setspecific instead of
16486 cthread_setspecific.
16487 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16488 Likewise.
16489 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16490 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16491 testing whether it is defined.
16492
16493 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16494
16495 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16496 Define macro.
16497 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16498 * sysdeps/mach/i386/thread_state.h
16499 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16500 i386_THREAD_STATE.
16501 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16502 i386_THREAD_STATE.
16503 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16504
16505 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16506 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16507
16508 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16509 macros.
16510 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16511 descriptor instead of creating a new one.
16512 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16513
16514 * mach/setup-thread.c: Include <ldsodefs.h>.
16515 (__mach_setup_thread): Call _dl_allocate_tls, pass
16516 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16517 MACHINE_THREAD_STATE_FLAVOR, before getting
16518 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16519 MACHINE_THREAD_STATE_FLAVOR with the result.
16520 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16521 MACHINE_THREAD_STATE_FIX_NEW.
16522 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16523 too. Add original thread parameter.
16524
16525 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16526
16527 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16528 Remove inline function.
16529
16530 * sysdeps/i386/fpu/libm-test-ulps: Update.
16531 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16532
16533 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16534
16535 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16536 commit.
16537
16538 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16539
16540 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16541 (__sincos_code): Remove define and undefine.
16542 [__FAST_MATH__] (__sincos): Remove inline function.
16543 [__FAST_MATH__] (__sincosf): Remove inline function.
16544 [__FAST_MATH__] (__sincosl): Remove inline function.
16545 (__atan2l): Remove inline functions.
16546 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16547 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16548 function.
16549 (floor): Remove inline function.
16550 (ceil): Likewise.
16551 [__FAST_MATH__] (__ldexp_code): Remove macro.
16552 [__FAST_MATH__] (ldexp): Remove inline function.
16553 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16554 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16555 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16556 [__USE_ISOC99] (__lrint_code): Remove macro.
16557 [__USE_ISOC99] (__llrint_code): Likewise.
16558 [__USE_ISOC99] (lrintf): Remove inline function.
16559 [__USE_ISOC99] (lrint): Likewise.
16560 [__USE_ISOC99] (lrintl): Likewise.
16561 [__USE_ISOC99] (llrint): Likewise.
16562 [__USE_ISOC99] (llrintf): Likewise.
16563 [__USE_ISOC99] (llrintl): Likewise.
16564
16565 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16566
16567 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16568 (__ieee754_sqrtf): Remove.
16569 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16570 (__ieee754_sqrtf): Remove.
16571 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16572 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16573 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16574 (__ieee754_sqrtf): Remove.
16575 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16576 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16577 (sqrtf): Remove.
16578 (sqrtl): Remove.
16579 (__ieee754_sqrt): Remove.
16580 (__ieee754_sqrtf): Remove.
16581 (__ieee754_sqrtl): Remove.
16582 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16583 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16584 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16585 (__ieee754_sqrtf): Remove.
16586 (__ieee754_sqrtl): Remove.
16587
16588 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16589
16590 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16591 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16592 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16593 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16594 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16595 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16596 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16597 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16598 Likewise.
16599 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16600 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16601 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16602 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16603 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16604 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16605 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16606 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16607 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16608 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16609 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16610 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16611 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16612 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16613 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16614 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16615 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16616 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16617 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16618 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16619 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16620 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16621 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16622 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16623 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16624 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16625 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16626 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16627 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16628 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16629 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16630 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16631 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16632 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16633 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16634 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16635 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16636 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16637 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16638 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16639
16640 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16641
16642 * include/math.h (sqrt): Declare with asm redirect.
16643 (sqrtf): Likewise.
16644 (sqrtl): Likewise.
16645 (sqrtf128): Likewise.
16646 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16647 nonlib and libnldbl with -fmath-errno.
16648 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16649 * math/w_sqrt_template.c: Likewise.
16650 * math/w_sqrtf_compat.c: Likewise.
16651 * math/w_sqrtl_compat.c: Likewise.
16652 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16653 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16654 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16655 complex.h.
16656
16657 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16658
16659 * benchtests/Makefile: Define _ISOMAC.
16660 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16661 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16662 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16663 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16664 * benchtests/bench-timing.h: Define attribute_hidden.
16665
16666 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16667
16668 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16669 mov + lsr.
16670
16671 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16672
16673 [BZ #22963]
16674 * localedata/locales/cs_CZ (mon): Rename to...
16675 (alt_mon): This.
16676 (mon): Import from CLDR (genitive case).
16677
16678 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16679
16680 [BZ #22937]
16681 * localedata/locales/el_CY (abmon): Rename to...
16682 (ab_alt_mon): This.
16683 (abmon): Import from CLDR (abbreviated genitive case).
16684 * localedata/locales/el_GR (abmon): Rename to...
16685 (ab_alt_mon): This.
16686 (abmon): Import from CLDR (abbreviated genitive case).
16687
16688 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16689
16690 [BZ #22932]
16691 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16692
16693 2018-03-15 Robert Buj <robert.buj@gmail.com>
16694
16695 [BZ #22848]
16696 * localedata/locales/ca_ES (abmon): Rename to...
16697 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16698 (mon): Rename to...
16699 (alt_mon): This.
16700 (abmon): Import from CLDR (genitive case, month names preceded by
16701 "de" or "d’").
16702 (mon): Likewise.
16703 (abday): Synchronize with CLDR.
16704 (d_t_fmt): Likewise.
16705 (d_fmt): Likewise.
16706 (am_pm): Likewise.
16707
16708 (LC_TIME): Improve indentation.
16709 (LC_TELEPHONE): Likewise.
16710 (LC_NAME): Likewise.
16711 (LC_ADDRESS): Likewise.
16712
16713 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16714
16715 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16716 (lrintf): Remove definitions used only with old GCC.
16717 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16718 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16719 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16720 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16721 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16722 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16723 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16724 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16725 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16726 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16727 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16728 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16729 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16730 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16731 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16732 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16733 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16734 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16735 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16736 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16737 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16738 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16739 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16740 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16741 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16742 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16743 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16744 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16745
16746 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16747
16748 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16749 instruction to unbreak builds with binutils 2.26 and older.
16750
16751 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16752
16753 * sysdeps/aarch64/strncmp.S (count): New macro.
16754 (strncmp): Store misaligned length in SRC1 in COUNT.
16755 (mutual_align): Adjust.
16756 (misaligned8): Load dword at a time when it is safe.
16757
16758 2018-03-12 Zack Weinberg <zackw@panix.com>
16759
16760 [BZ #1190]
16761 [BZ #19476]
16762 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16763 if the _IO_EOF_SEEN bit is already set; update commentary.
16764 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16765 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16766
16767 * support/support_openpty.c, support/tty.h: New files.
16768 * support/Makefile (libsupport-routines): Add support_openpty.
16769
16770 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16771 New test cases.
16772 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16773 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16774
16775 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16776
16777 * po/pt_BR.po: Update translations.
16778
16779 2018-03-12 David Michael <fedora.dm0@gmail.com>
16780
16781 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16782 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16783 get a port to the startup server.
16784
16785 2018-03-11 Zack Weinberg <zackw@panix.com>
16786
16787 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16788 before nldbl-compat.h.
16789
16790 2018-03-10 Zack Weinberg <zackw@panix.com>
16791
16792 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16793 math.h or math_private.h.
16794
16795 * sysdeps/alpha/fpu/s_isnan.c
16796 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16797 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16798 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16799 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16800 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16801 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16802 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16803 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16804 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16806 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16807 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16808 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16809 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16810 Include math_private.h.
16811
16812 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16813 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16814 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16815 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16816 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16817 * sysdeps/powerpc/power7/fpu/s_logb.c:
16818 Include math.h and math_private.h.
16819
16820 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16821 uses of $at in .set noat / .set at.
16822
16823 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16824
16825 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16826 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16827 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16828 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16829 Likewise.
16830
16831 2018-03-09 Florian Weimer <fweimer@redhat.com>
16832
16833 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16834 in comment.
16835
16836 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16837
16838 [BZ #22919]
16839 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16840 Add nop before __startcontext, add explaining comments.
16841
16842 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16843
16844 [BZ #22926]
16845 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16846 empty for __SPE__.
16847 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16848 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16849 Do not build hardware transactional code for __SPE__.
16850 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16851 (__lll_trylock_elision): Likewise.
16852 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16853 (__lll_unlock_elision): Likewise.
16854
16855 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16856 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16857 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16858 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16859 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16860 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16861 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16862 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16863 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16864 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16865 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16866 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16867 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16868 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16869 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16870 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16871 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16872 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16873 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16874 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16875 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16876 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16877 (__ASSUME_CLONE_BACKWARDS): Define.
16878 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16879 __clone2 if __NR_clone2 is defined.
16880 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16881 (__ASSUME_CLONE_BACKWARDS): Likewise.
16882 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16883 (__ASSUME_CLONE_BACKWARDS): Likewise.
16884 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16885 (__ASSUME_CLONE2): Likewise.
16886 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16887 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16888 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16889 variants and the define architecture can use.
16890 (__ASSUME_CLONE_DEFAULT): Define as default.
16891 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16892 (__ASSUME_CLONE_BACKWARDS): Likewise.
16893 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16894 (__ASSUME_CLONE_BACKWARDS): Likewise.
16895 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16896 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16897
16898 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16899
16900 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16901
16902 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16903 time.
16904
16905 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16906 (do_test_limit): Likewise.
16907
16908 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16909 for every implementation.
16910 (do_test): Likewise.
16911
16912 * benchtests/bench-strncmp.c: Convert output to json.
16913
16914 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16915
16916 * io/futimens.c: Add missing start-of-file descriptive comment.
16917 * io/utime.c: Likewise.
16918 * misc/futimesat.c: Likewise.
16919 * misc/utimes.c: Likewise.
16920 * sysdeps/mach/hurd/futimesat.c: Likewise.
16921 * sysdeps/mach/hurd/utimes.c: Likewise.
16922 * sysdeps/posix/utime.c: Likewise.
16923 * sysdeps/posix/utimes.c: Likewise.
16924 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16925 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16926 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16927 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16928
16929 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16930
16931 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16932 hurd_futimes.
16933 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16934 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16935 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16936 (__futimens): Move implementation to...
16937 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16938 utime_tvalue_from_tspec): ... new helper functions.
16939 (hurd_futimens): New function.
16940 * sysdeps/mach/hurd/futimesat.c: New file.
16941 * sysdeps/mach/hurd/utimensat.c: New file.
16942
16943 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16944
16945 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16946 UTIME_OMIT): New macros.
16947 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16948 before reverting to converting time spec to time value and calling
16949 __file_utimes.
16950 * sysdeps/mach/hurd/utime-helper.c: New file.
16951 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16952 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16953 reverting to utime_tvalue_from_tval and __file_utimes.
16954 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16955 (__lutimes): Just call hurd_futimens after lookup.
16956 * sysdeps/mach/hurd/utimes.c: Likewise.
16957
16958 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16959
16960 * bits/sigaction.h: Add include guard.
16961 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16962 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16963 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16964 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16965 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16966 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16967 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16968 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16969 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16970
16971 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16972
16973 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16974 -Wmaybe-uninitialized for -Os.
16975 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16976 this disabling.
16977
16978 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16979
16980 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16981 __INO_T_MATCHES_INO64_T is defined.
16982 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16983 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16984 of definition.
16985 * dirent/alphasort64.c: Likewise.
16986 * dirent/scandir.c: Likewise.
16987 * dirent/scandir64-tail.c: Likewise.
16988 * dirent/scandir64.c: Likewise.
16989 * dirent/scandirat.c: Likewise.
16990 * dirent/scandirat64.c: Likewise.
16991 * dirent/versionsort.c: Likewise.
16992 * dirent/versionsort64.c: Likewise.
16993 * include/dirent.h: Likewise.
16994
16995 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16996 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16997 for socketpair endpoint.
16998 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16999 WRITE_BUFFER_SIZE as buffer size for sending socket.
17000 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17001 issue on system where send is implemented with sendto syscall.
17002 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17003 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17004 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17005 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17006
17007 [BZ #21269]
17008 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17009 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17010 sa_restorer for vDSO case.
17011 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17012
17013 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17014
17015 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17016 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17017 * hurd/hurd/ioctl.h: Include <mach/port.h>
17018 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17019 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17020 <mach/mach_types.h> and <mach/message.h>.
17021 (headers): Move mach/param.h to bits/mach/param.h.
17022 * sysdeps/mach/i386/mach/param.h: Move file to ...
17023 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17024 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17025 of <mach/param.h>.
17026 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17027 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17028 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17029 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17030 trivial, for C++ conformity.
17031 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17032 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17033 Process mig output through $(migheadersed).
17034 * hurd/Makefile (migheadersed): Define variable.
17035 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17036 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17037 headers.
17038 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17039 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17040 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17041 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17042 <bits/types/sigset_t.h>.
17043 [!defined __USE_GNU]: Do not #error out.
17044 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17045 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17046 Include <stddef.h> and <bits/types/sigset_t.h>
17047 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17048 instead of sighandler_t.
17049 * stdlib/errno.h (error_t): Move definition to...
17050 * bits/types/error_t.h: ... new header.
17051 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17052 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17053 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17054 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17055 * hurd/hurd.h: Include <bits/types/error_t.h>
17056 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17057 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17058 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17059 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17060 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17061 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17062 * sysdeps/mach/hurd/futimens.c: New file.
17063
17064 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17065
17066 [BZ #22918]
17067 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17068 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17069 * nscd/gai.c (__nss_hosts_database): Readd definition.
17070 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17071 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17072 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17073
17074 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17075
17076 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17077 (ifunc_one): Likewise.
17078
17079 2018-03-01 DJ Delorie <dj@delorie.com>
17080
17081 [BZ #22342]
17082 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17083 key value.
17084
17085 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17086
17087 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17088 `match_pid' parameter.
17089 (td_ta_thr_iter): Update accordingly.
17090
17091 2018-03-01 Florian Weimer <fweimer@redhat.com>
17092
17093 * nptl/Makefile (install-lib-ldscripts): Remove.
17094 (install): Remove rule.
17095 ($(inst_libdir)/libpthread.so): Likewise.
17096
17097 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17098
17099 [BZ #22896]
17100 * localedata/locales/an_ES: update month and day names,
17101 improve d_fmt, improve postal_fmt, add country_post,
17102 add country_isbn
17103
17104 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17105
17106 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17107 Ukrainian instead of Bulgarian.
17108
17109 2018-03-01 Florian Weimer <fweimer@redhat.com>
17110
17111 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17112 reference.
17113
17114 2018-03-01 Florian Weimer <fweimer@redhat.com>
17115
17116 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17117 * nptl/Makefile (routines): Add pthread_atfork.
17118 (static-only-routines): Set to pthread_atfork.
17119 (libpthread-routines): Remove pthread_atfork.
17120 (libpthread-static-only-routines): Remove.
17121 (install): Update comment.
17122 (libpthread.so): Do not install libpthread_nonshared.a.
17123 (tests): Do not link with libpthread_nonshared.a.
17124 (generated): Remove libpthread_nonshared.a.
17125 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17126 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17127 with libpthread_nonshared.a.
17128
17129 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17130
17131 [BZ #22902]
17132 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17133 (libc_feholdexcept_setroundf128): New macro.
17134 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17135
17136 [BZ #15105]
17137 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17138 libc_hidden_def.
17139 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17140 * include/inttypes.h: New file.
17141
17142 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17143
17144 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17145 -Os in two more places.
17146
17147 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17148
17149 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17150 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17151 be sorted correctly at the moment because of a bug.
17152
17153 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17154
17155 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17156 treat ñ as a primary different character, sync the collation
17157 for Spanish with CLDR.
17158 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17159 * localedata/Makefile: Add new test files.
17160 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17161 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17162 collation order.
17163 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17164 * localedata/am_ET.UTF-8.in: New test file.
17165 * localedata/az_AZ.UTF-8.in: Likewise.
17166 * localedata/be_BY.UTF-8.in: Likewise.
17167 * localedata/ber_DZ.UTF-8.in: Likewise.
17168 * localedata/ber_MA.UTF-8.in: Likewise.
17169 * localedata/bg_BG.UTF-8.in: Likewise.
17170 * localedata/br_FR.UTF-8.in: Likewise.
17171 * localedata/cmn_TW.UTF-8.in: Likewise.
17172 * localedata/crh_UA.UTF-8.in: Likewise.
17173 * localedata/csb_PL.UTF-8.in: Likewise.
17174 * localedata/cv_RU.UTF-8.in: Likewise.
17175 * localedata/cy_GB.UTF-8.in: Likewise.
17176 * localedata/dz_BT.UTF-8.in: Likewise.
17177 * localedata/eo.UTF-8.in: Likewise.
17178 * localedata/es_ES.UTF-8.in: Likewise.
17179 * localedata/fa_IR.UTF-8.in: Likewise.
17180 * localedata/fi_FI.UTF-8.in: Likewise.
17181 * localedata/fil_PH.UTF-8.in: Likewise.
17182 * localedata/fur_IT.UTF-8.in: Likewise.
17183 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17184 * localedata/ha_NG.UTF-8.in: Likewise.
17185 * localedata/ig_NG.UTF-8.in: Likewise.
17186 * localedata/ik_CA.UTF-8.in: Likewise.
17187 * localedata/kk_KZ.UTF-8.in: Likewise.
17188 * localedata/ku_TR.UTF-8.in: Likewise.
17189 * localedata/ky_KG.UTF-8.in: Likewise.
17190 * localedata/ln_CD.UTF-8.in: Likewise.
17191 * localedata/mi_NZ.UTF-8.in: Likewise.
17192 * localedata/ml_IN.UTF-8.in: Likewise.
17193 * localedata/mn_MN.UTF-8.in: Likewise.
17194 * localedata/mr_IN.UTF-8.in: Likewise.
17195 * localedata/mt_MT.UTF-8.in: Likewise.
17196 * localedata/nb_NO.UTF-8.in: Likewise.
17197 * localedata/om_KE.UTF-8.in: Likewise.
17198 * localedata/os_RU.UTF-8.in: Likewise.
17199 * localedata/ps_AF.UTF-8.in: Likewise.
17200 * localedata/ro_RO.UTF-8.in: Likewise.
17201 * localedata/ru_RU.UTF-8.in: Likewise.
17202 * localedata/sc_IT.UTF-8.in: Likewise.
17203 * localedata/se_NO.UTF-8.in: Likewise.
17204 * localedata/sq_AL.UTF-8.in: Likewise.
17205 * localedata/sv_SE.UTF-8.in: Likewise.
17206 * localedata/szl_PL.UTF-8.in: Likewise.
17207 * localedata/tg_TJ.UTF-8.in: Likewise.
17208 * localedata/tk_TM.UTF-8.in: Likewise.
17209 * localedata/tt_RU.UTF-8.in: Likewise.
17210 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17211 * localedata/ug_CN.UTF-8.in: Likewise.
17212 * localedata/uz_UZ.UTF-8.in: Likewise.
17213 * localedata/vi_VN.UTF-8.in: Likewise.
17214 * localedata/yi_US.UTF-8.in: Likewise.
17215 * localedata/yo_NG.UTF-8.in: Likewise.
17216 * localedata/zh_CN.UTF-8.in: Likewise.
17217 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17218 file and fix bugs in the collation.
17219 * localedata/locales/az_AZ: Likewise.
17220 * localedata/locales/be_BY: Likewise.
17221 * localedata/locales/ber_DZ: Likewise.
17222 * localedata/locales/ber_MA: Likewise.
17223 * localedata/locales/bg_BG: Likewise.
17224 * localedata/locales/br_FR: Likewise.
17225 * localedata/locales/br_FR@euro: Likewise.
17226 * localedata/locales/ca_ES: Likewise.
17227 * localedata/locales/cns11643_stroke: Likewise.
17228 * localedata/locales/crh_UA: Likewise.
17229 * localedata/locales/cs_CZ: Likewise.
17230 * localedata/locales/csb_PL: Likewise.
17231 * localedata/locales/cv_RU: Likewise.
17232 * localedata/locales/cy_GB: Likewise.
17233 * localedata/locales/da_DK: Likewise.
17234 * localedata/locales/dz_BT: Likewise.
17235 * localedata/locales/en_CA: Likewise.
17236 * localedata/locales/eo: Likewise.
17237 * localedata/locales/es_CU: Likewise.
17238 * localedata/locales/es_EC: Likewise.
17239 * localedata/locales/es_ES: Likewise.
17240 * localedata/locales/es_US: Likewise.
17241 * localedata/locales/et_EE: Likewise.
17242 * localedata/locales/fa_IR: Likewise.
17243 * localedata/locales/fi_FI: Likewise.
17244 * localedata/locales/fil_PH: Likewise.
17245 * localedata/locales/fur_IT: Likewise.
17246 * localedata/locales/gez_ER@abegede: Likewise.
17247 * localedata/locales/ha_NG: Likewise.
17248 * localedata/locales/hr_HR: Likewise.
17249 * localedata/locales/hsb_DE: Likewise.
17250 * localedata/locales/hu_HU: Likewise.
17251 * localedata/locales/ig_NG: Likewise.
17252 * localedata/locales/ik_CA: Likewise.
17253 * localedata/locales/is_IS: Likewise.
17254 * localedata/locales/iso14651_t1_pinyin: Likewise.
17255 * localedata/locales/kk_KZ: Likewise.
17256 * localedata/locales/ku_TR: Likewise.
17257 * localedata/locales/ky_KG: Likewise.
17258 * localedata/locales/ln_CD: Likewise.
17259 * localedata/locales/lt_LT: Likewise.
17260 * localedata/locales/lv_LV: Likewise.
17261 * localedata/locales/mi_NZ: Likewise.
17262 * localedata/locales/ml_IN: Likewise.
17263 * localedata/locales/mn_MN: Likewise.
17264 * localedata/locales/mr_IN: Likewise.
17265 * localedata/locales/mt_MT: Likewise.
17266 * localedata/locales/nb_NO: Likewise.
17267 * localedata/locales/om_KE: Likewise.
17268 * localedata/locales/os_RU: Likewise.
17269 * localedata/locales/pl_PL: Likewise.
17270 * localedata/locales/ps_AF: Likewise.
17271 * localedata/locales/ro_RO: Likewise.
17272 * localedata/locales/ru_RU: Likewise.
17273 * localedata/locales/ru_UA: Likewise.
17274 * localedata/locales/sc_IT: Likewise.
17275 * localedata/locales/se_NO: Likewise.
17276 * localedata/locales/si_LK: Likewise.
17277 * localedata/locales/sq_AL: Likewise.
17278 * localedata/locales/sv_FI: Likewise.
17279 * localedata/locales/sv_FI@euro: Likewise.
17280 * localedata/locales/sv_SE: Likewise.
17281 * localedata/locales/szl_PL: Likewise.
17282 * localedata/locales/tg_TJ: Likewise.
17283 * localedata/locales/ti_ER: Likewise.
17284 * localedata/locales/tk_TM: Likewise.
17285 * localedata/locales/tl_PH: Likewise.
17286 * localedata/locales/tr_TR: Likewise.
17287 * localedata/locales/tt_RU: Likewise.
17288 * localedata/locales/tt_RU@iqtelif: Likewise.
17289 * localedata/locales/ug_CN: Likewise.
17290 * localedata/locales/uk_UA: Likewise.
17291 * localedata/locales/uz_UZ: Likewise.
17292 * localedata/locales/uz_UZ@cyrillic: Likewise.
17293 * localedata/locales/vi_VN: Likewise.
17294 * localedata/locales/yi_US: Likewise.
17295 * localedata/locales/yo_NG: Likewise.
17296
17297 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17298
17299 * gen-locales.mk: Make test files which contain @ modifiers in their
17300 name work.
17301 * localedata/gen-locale.sh: Likewise.
17302
17303 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17304
17305 * posix/tst-fnmatch.input: Fix results for range expressions
17306 for non C locales.
17307 * posix/tst-regexloc.c: Do not use a range expression for
17308 de_DE.ISO-8859-1 locale.
17309
17310 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17311
17312 * posix/bug-regex5.c: Fix test case because with the new
17313 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17314 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17315 file.
17316
17317 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17318
17319 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17320 downloaded from ISO, the collation order of @-. and space has changed.
17321 Therefore, this test file needed to be adapted.
17322 * localedata/fr_CA.UTF-8.in: Likewise.
17323 * localedata/fr_FR.UTF-8.in: Likewise.
17324 * localedata/uk_UA.UTF-8.in: Likewise.
17325
17326 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17327
17328 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17329 order of ȥ in the new iso14651_t1_common file.
17330 * localedata/pl_PL.UTF-8.in: Likewise.
17331
17332 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17333
17334 * localedata/locales/iso14651_t1_common: Add sections for various
17335 scripts to the iso14651_t1_common file.
17336
17337 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17338
17339 * localedata/locales/iso14651_t1_common: Use the code point of a
17340 character in the fourth collation level instead of IGNORE for all
17341 entries which have IGNORE on all 4 levels.
17342
17343 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17344
17345 * localedata/locales/iso14651_t1_common: Add some convenient collation
17346 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17347 rules similar to those in CLDR.
17348
17349 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17350
17351 * localedata/locales/iso14651_t1_common: The new version of this
17352 file downloaded from ISO contained several syntax errors which
17353 are fixed by this patch.
17354
17355 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17356
17357 * localedata/locales/iso14651_t1_common: replace all <U.....>
17358 with <U000.....> because glibc understands only 4 digit or 8 digit
17359
17360 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17361
17362 * localedata/locales/iso14651_t1_common: Necessary changes
17363 to make the file downloaded from ISO usable by glibc.
17364
17365 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17366
17367 [BZ #14095]
17368 * localedata/locales/iso14651_t1_common: Update file to
17369 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17370
17371 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17372
17373 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17374 of <nptl/pthreadP.h>
17375 (thread_attr_compare): Move function to...
17376 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17377 * sysdeps/nptl/timer_routines.h: ... new header.
17378 * sysdeps/mach/hurd/gai_misc.h: New file.
17379
17380 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17381
17382 * string/strcoll_l.c: Include <libc-diag.h>.
17383 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17384 declarations of seq1 and seq2.
17385
17386 [BZ #15105]
17387 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17388 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17389
17390 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17391
17392 [BZ #22433]
17393 [BZ #22807]
17394 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17395 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17396 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17397 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17398 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17399 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17400
17401 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17402
17403 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17404 macros used in __ptrace_request.
17405
17406 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17407
17408 [BZ #22792]
17409 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17410 to $(CC).
17411 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17412 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17413 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17414 <tcb-offsets.h>.
17415
17416 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17417
17418 [BZ #15105]
17419 * ctype/ctype.c (tolower): Use libc_hidden_def.
17420 (toupper): Likewise.
17421 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17422 [!_ISOMAC] (toupper): Likewise.
17423
17424 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17425
17426 * localedata/Makefile: Remove --quiet argument when
17427 installing locales
17428
17429 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17430
17431 [BZ #17438]
17432 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17433 in d_fmt.
17434 * localedata/locales/pt_PT (LC_TIME): likewise
17435
17436 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17437
17438 [BZ #22646]
17439 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17440 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17441 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17442
17443 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17444
17445 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17446
17447 * nptl/Makefile (routines): Remove unregister-atfork.
17448 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17449 (fork_handler_alloc): Remove function.
17450 (fork_handlers, fork_handler_init): New variables.
17451 (__fork_lock): Rename to atfork_lock.
17452 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17453 to use a dynamic array to add/remove atfork handlers.
17454 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17455 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17456 Remove declaration.
17457 (fork_handler): Remove next, refcntr, and need_signal member.
17458 (__run_fork_handler_type): New enum.
17459 (__run_fork_handlers): New prototype.
17460 * nptl/register-atfork.c: Remove file.
17461 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17462
17463 * sysdeps/nptl/nptl-signals.h: Move to ...
17464 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17465 comments.
17466 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17467 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17468 unnecessary check for SIGTIMER.
17469 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17470 remove unnecessary removal of SIGTIMER.
17471 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17472 include-signals.h rename.
17473 * nptl/pthreadP.h: Likewise.
17474 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17475 __is_internal_signal instead of __nptl_is_internal_signal.
17476
17477 2018-02-22 Andrew Waterman <andrew@sifive.com>
17478
17479 [BZ # 22884]
17480 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17481 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17482 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17483 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17484
17485 2018-02-22 DJ Delorie <dj@delorie.com>
17486
17487 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17488
17489 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17490
17491 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17492 do_misaligned, not misaligned8.
17493
17494 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17495
17496 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17497 Add memcpy_thunderx2.
17498 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17499 Increment to 4.
17500 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17501 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17502 and IS_THUNDERX2PA checks.
17503 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17504 Use macro to set name appropriately.
17505 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17506 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17507 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17508 New macro.
17509 (IS_THUNDERX2): New macro.
17510
17511 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17512
17513 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17514
17515 2018-02-21 Zack Weinberg <zackw@panix.com>
17516
17517 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17518 Define here, unconditionally.
17519 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17520 * libio/libioP.h: Remove #if 0 blocks.
17521 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17522 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17523 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17524
17525 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17526 Assume weak_alias is always defined.
17527
17528 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17529 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17530 Remove #if 0 and #ifdef TODO blocks.
17531 Assume text_set_element is always defined.
17532
17533 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17534 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17535 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17536
17537 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17538 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17539 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17540 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17541 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17542 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17543 Reformat bit flags for _flags field to make occupancy clearer.
17544 Update commentary.
17545 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17546 Keep definitions consistent with those in libio/libio.h.
17547
17548 * libio/libio.h (_IO_file_flags): Remove macro.
17549 All uses changed to _flags.
17550
17551 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17552 (__HAVE_COLUMN, _IO_BE): Don't define.
17553 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17554 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17555 * libio/libioP.h (EOF): Don't define.
17556 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17557 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17558 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17559 testing _IO_UNIFIED_JUMPTABLES.
17560
17561 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17562 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17563 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17564 (_IO_size_t): Delete; all uses changed to size_t.
17565 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17566 (_IO_off_t): Delete; all uses changed to off_t.
17567 (_IO_off64_t): Delete; all uses changed to off64_t.
17568 (_IO_pid_t): Delete; all uses changed to pid_t.
17569 (_IO_uid_t): Delete; all uses changed to uid_t.
17570 (_IO_wint_t): Delete; all uses changed to wint_t.
17571 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17572 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17573 (_IO_cookie_io_functions_t): Delete; all uses changed to
17574 cookie_io_functions_t.
17575 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17576 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17577 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17578 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17579
17580 * libio/iofopncook.c: Remove unnecessary forward declarations.
17581 * libio/iolibio.h: Correct outdated commentary.
17582 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17583 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17584 Remove unnecessary casts.
17585 * stdio-common/getline.c: Use _IO_getdelim directly.
17586 Don't redefine ssize_t.
17587 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17588 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17589 Remove outdated comments.
17590 * stdio-common/vfscanf.c: Don't redefine va_list.
17591
17592 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17593 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17594 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17595 which are always true, and __cplusplus, which is always false.
17596
17597 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17598
17599 [BZ #15105]
17600 [BZ #19463]
17601 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17602 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17603 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17604 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17605 libc_hidden_proto.
17606 [!_ISOMAC] (putc_unlocked): Likewise.
17607 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17608 define inline if [__USE_EXTERN_INLINES].
17609 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17610 putc_unlocked.
17611
17612 [BZ #15105]
17613 [BZ #19463]
17614 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17615 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17616 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17617 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17618 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17619 getc_unlocked.
17620 * time/tzfile.c (__tzfile_read): Likewise.
17621
17622 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17623
17624 [BZ #22517]
17625 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17626
17627 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17628
17629 * io/fcntl.h: Fix a typo in a comment.
17630
17631 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17632
17633 [BZ #22862]
17634 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17635 define _DEFAULT_SOURCE.
17636 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17637
17638 2018-02-21 Florian Weimer <fweimer@redhat.com>
17639
17640 [BZ #20890]
17641 * elf/cache.c (save_cache): Call fsync on temporary file before
17642 renaming it.
17643 (save_aux_cache): Call fdatasync on temporary file before renaming
17644 it.
17645
17646 2018-02-21 Florian Weimer <fweimer@redhat.com>
17647
17648 [BZ #22787]
17649 * include/caller.h: Remove file.
17650 * elf/dl-caller.c: Likewise.
17651 * elf/Makefile (dl-routines): Remove dl-caller.
17652 (shared-only-routines): Do not add dl-caller.
17653 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17654 __check_caller.
17655 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17656 member.
17657 (dl_open_worker): Do not call __check_caller.
17658 (_dl_open): Do not set caller_dl_open member.
17659 * elf/rtld.c (_rtld_global_ro): Do not initialize
17660 _dl_check_caller member.
17661 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17662 _dl_check_caller member.
17663 (_dl_check_caller): Remove declaration.
17664 * sysdeps/unix/sysv/linux/dl-execstack.c
17665 (_dl_make_stack_executable): Do not call __check_caller.
17666
17667 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17668
17669 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17670 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17671
17672 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17673
17674 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17675 description.
17676
17677 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17678
17679 [BZ #16335]
17680 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17681 of 199606L, 200112L, and 200809L.
17682 (_XOPEN_SOURCE): Document special values of 600 and 700.
17683 (_ISOC11_SOURCE): Document macro.
17684 (_ATFILE_SOURCE): Likewise.
17685 (_FORTIFY_SOURCE): Likewise.
17686
17687 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17688
17689 [BZ #15105]
17690 [BZ #19463]
17691 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17692 and define as weak alias of __ferror_unlocked. Use
17693 libc_hidden_weak.
17694 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17695 libc_hidden_proto.
17696 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17697 function if [__USE_EXTERN_INLINES].
17698 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17699 ferror_unlocked.
17700
17701 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17702
17703 [BZ #6889]
17704 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17705
17706 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17707
17708 [BZ #22818]
17709 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17710 the GLIBC_2.1 version.
17711
17712 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17713
17714 [BZ #21508]
17715 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17716 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17717 intl/tst-gettext-de.po from po/de.po by removing the
17718 POT-Creation-Date line.
17719 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17720 ../po/de.po.
17721 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17722 ../po/de.po.
17723
17724 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17725
17726 * mach/Makefile (headers): Add mach/param.h.
17727 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17728 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17729 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17730 (__ptsname_r): Move implementation to...
17731 (__ptsname_internal): ... new function. Add filling the STP
17732 structure.
17733
17734 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17735
17736 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17737 idouble to 1 ULP.
17738
17739 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17740
17741 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17742 syntax.
17743
17744 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17745
17746 * nptl/Makefile (tst-mutex8-ENV): Delete.
17747 * nptl/tst-mutex8.c (check_type):
17748 Add runtime check if mutex will be elided.
17749
17750 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17751
17752 [BZ #20980]
17753 [BZ #21234]
17754 * manual/install.texi (Configuring and compiling): Describe
17755 passing CC and CFLAGS on configure command line, not as
17756 environment variables. Use @code markup on those variables.
17757 Specify what options go in CC and what go in CFLAGS. Note the
17758 requirement to compile with optimization.
17759 * INSTALL: Regenerated.
17760
17761 [BZ #18124]
17762 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17763 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17764 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17765 __sigprocmask instead of sigprocmask.
17766 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17767 Likewise.
17768 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17769 __sigsetjmp and sigprocmask.
17770
17771 [BZ #15105]
17772 * include/argz.h (argz_next): Use libc_hidden_proto.
17773 (__argz_next): Likewise.
17774 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17775 (argz_next): Use libc_hidden_weak.
17776
17777 [BZ #15105]
17778 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17779 libc_hidden_proto.
17780 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17781 libc_hidden_def.
17782
17783 [BZ #15105]
17784 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17785 libc_hidden_proto.
17786 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17787
17788 [BZ #15105]
17789 [BZ #19463]
17790 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17791 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17792 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17793 (__feof_unlocked): New declaration, and inline function if
17794 [__USE_EXTERN_INLINES].
17795 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17796 instead of feof_unlocked.
17797 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17798 * nss/nsswitch.c (nss_parse_file): Likewise.
17799 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17800 Likewise.
17801 * time/getdate.c (__getdate_r): Likewise.
17802 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17803 Define as macro to call __feof_unlocked.
17804
17805 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17806
17807 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17808
17809 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17810
17811 * math/Makefile: Remove mpexp.c and mplog.c
17812 * sysdeps/i386/fpu/mpexp.c: Delete file.
17813 * sysdeps/i386/fpu/mplog.c: Likewise.
17814 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17815 * sysdeps/ia64/fpu/mplog.c: Likewise.
17816 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17817 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17818 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17819 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17820 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17821 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17822 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17823 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17824 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17825 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17826 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17827 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17828 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17829 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17830 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17831 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17832
17833 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17834
17835 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17836
17837 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17838
17839 * sysdeps/sh/libm-test-ulps: Update.
17840
17841 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17842
17843 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17844 idouble to 1 ULP.
17845
17846 2018-02-12 Zack Weinberg <zackw@panix.com>
17847
17848 [BZ #19239]
17849 * posix/sys/types.h: Don't include sys/sysmacros.h.
17850 * misc/sys/sysmacros.h: Remove the conditional deprecation
17851 warnings for the macros defined by this header.
17852
17853 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17854
17855 * manual/probes.texi: Remove slowexp probes.
17856 * math/Makefile: Remove slowexp.
17857 * sysdeps/generic/math_private.h (__slowexp): Remove.
17858 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17859 document error bounds.
17860 * sysdeps/i386/fpu/slowexp.c: Remove.
17861 * sysdeps/ia64/fpu/slowexp.c: Remove.
17862 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17863 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17864 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17865 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17866 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17867 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17868 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17869 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17870 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17871 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17872 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17873
17874 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17875
17876 [BZ #13932]
17877 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17878 * benchtests/pow-inputs: Update comment for slow path cases.
17879 * manual/probes.texi (slowpow_p10): Delete removed probe.
17880 (slowpow_p10): Likewise.
17881 * math/Makefile: Remove halfulp.c and slowpow.c.
17882 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17883 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17884 (__halfulp): Remove.
17885 (__slowpow): Remove.
17886 * sysdeps/i386/fpu/halfulp.c: Delete file.
17887 * sysdeps/i386/fpu/slowpow.c: Likewise.
17888 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17889 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17890 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17891 improve comments and add error analysis.
17892 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17893 (power1): Remove function:
17894 (log1): Remove error argument, add error analysis.
17895 (my_log2): Remove function.
17896 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17897 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17898 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17899 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17900 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17901 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17902 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17903 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17904 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17905 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17906 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17907 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17908 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17909 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17910
17911 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17912
17913 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17914 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17915
17916 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17917
17918 [BZ #22433]
17919 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17920 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17921 and PTRACE_SETHBPREGS.
17922
17923 2018-02-10 Zack Weinberg <zackw@panix.com>
17924
17925 [BZ #22830]
17926 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17927 correctly.
17928 * malloc/tst-malloc-stats-cancellation.c: New test case.
17929 * malloc/Makefile: Add new test case.
17930
17931 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17932
17933 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17934
17935 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17936
17937 * math/Makefile (libm-narrow-fns): Add add.
17938 (libm-test-funcs-narrow): Likewise.
17939 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17940 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17941 * math/gen-auto-libm-tests.c (test_functions): Add add.
17942 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17943 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17944 (NARROW_ADD_TRIVIAL): Likewise.
17945 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17946 macro.
17947 (__daddl): Likewise.
17948 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17949 dadd.
17950 (CFLAGS-nldbl-dadd.c): New variable.
17951 (CFLAGS-nldbl-fadd.c): Likewise.
17952 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17953 __nldbl_daddl.
17954 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17955 prototype.
17956 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17957 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17958 * math/auto-libm-test-in: Add tests of add.
17959 * math/auto-libm-test-out-narrow-add: New generated file.
17960 * math/libm-test-narrow-add.inc: New file.
17961 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17962 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17963 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17964 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17965 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17966 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17967 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17968 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17969 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17970 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17971 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17972 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17973 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17974 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17975 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17976 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17977 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17978 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17979 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17980 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17983 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17997 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17998 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17999 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18000 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18001 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18005 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18006 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18007
18008 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18009 (f128-pairs): New variable.
18010 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18011 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18012 to CFLAGS.
18013 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18014 Also make tests add $(f128-loader-link) to gnulib-tests.
18015
18016 2018-02-09 DJ Delorie <dj@redhat.com>
18017
18018 [BZ #22827]
18019 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18020 64-bit ELF type for 64-bit ELF objects.
18021
18022 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18023
18024 * math/libm-test-driver.c (snan_tests_arg): New variable.
18025 * math/libm-test-support.h (snan_tests_arg): New declaration.
18026 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18027
18028 * math/Makefile (test-type-pairs): New variable.
18029 (test-type-pairs-f64xf128-yes): Likewise.
18030 (tests): Add test-narrow-macros.
18031 (libm-test-funcs-narrow): New variable.
18032 (libm-test-c-narrow): Likewise.
18033 (generated): Add $(libm-test-c-narrow).
18034 (libm-tests-base-narrow): New variable.
18035 (libm-tests-narrow): Likewise.
18036 (libm-tests): Add $(libm-tests-narrow).
18037 (libm-tests-for-type): Handle $(libm-tests-narrow).
18038 (libm-test-c-narrow-obj): New variable.
18039 ($(libm-test-c-narrow-obj)): New rule.
18040 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18041 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18042 $(o-iterator) to set dependencies and CFLAGS.
18043 * math/gen-auto-libm-tests.c: Document use for narrowing
18044 functions.
18045 (output_for_one_input_case): Take argument NARROW.
18046 (generate_output): Likewise. Update call to
18047 output_for_one_input_case.
18048 (main): Take --narrow option. Update call to generate_output.
18049 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18050 (apply_lit): Update call to _apply_lit.
18051 (apply_arglit): New function.
18052 (parse_args): Handle "a" arguments.
18053 (parse_auto_input): Handle format names using ":".
18054 * math/README.libm-test: Document "a" parameter type.
18055 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18056 (ARG_TYPE_TRUE_MIN): Likewise.
18057 (ARG_TYPE_MAX): Likwise.
18058 (ARG_MIN_EXP): Likewise.
18059 (ARG_MAX_EXP): Likewise.
18060 (ARG_MANT_DIG): Likewise.
18061 (TEST_COND_arg_ibm128): Likewise.
18062 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18063 (TEST_COND_arg_fmt): New macro.
18064 (init_max_error): Update prototype.
18065 * math/libm-test-support.c (test_ibm128): New variable.
18066 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18067 instead of using [TEST_COND_ibm128] conditional.
18068 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18069 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18070 [TEST_NARROW] (TEST_MSG): New definition.
18071 (arg_plus_zero): New macro.
18072 (arg_minus_zero): Likewise.
18073 (arg_plus_infty): Likewise.
18074 (arg_minus_infty): Likewise.
18075 (arg_qnan_value_pl): Likewise.
18076 (arg_qnan_value): Likewise.
18077 (arg_snan_value_pl): Likewise.
18078 (arg_snan_value): Likewise.
18079 (arg_max_value): Likewise.
18080 (arg_min_value): Likewise.
18081 (arg_min_subnorm_value): Likewise.
18082 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18083 (RUN_TEST_LOOP_aa_f): New macro.
18084 (TEST_SUFF): New macro.
18085 (TEST_SUFF_STR): Likewise.
18086 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18087 (TEST_COND_any_ibm128): New macro.
18088 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18089 this_func. Update call to init_max_error.
18090 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18091 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18092 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18093 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18094 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18095 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18096 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18097 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18098 * math/test-math-vector.h (TEST_NARROW): Likewise.
18099 * math/test-arg-double.h: New file.
18100 * math/test-arg-float128.h: Likewise.
18101 * math/test-arg-float32x.h: Likewise.
18102 * math/test-arg-float64.h: Likewise.
18103 * math/test-arg-float64x.h: Likewise.
18104 * math/test-arg-ldouble.h: Likewise.
18105 * math/test-math-narrow.h: Likewise.
18106 * math/test-narrow-macros.c: Likewise.
18107 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18108 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18109 test-narrow-macros-ldbl-64.
18110 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18111
18112 * math/bits/mathcalls-narrow.h: New file.
18113 * include/bits/mathcalls-narrow.h: Likewise.
18114 * math/math-narrow.h: Likewise.
18115 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18116 (__MATHCALL_NARROW_ARGS_2): Likewise.
18117 (__MATHCALL_NARROW_ARGS_3): Likewise.
18118 (__MATHCALL_NARROW_NORMAL): Likewise.
18119 (__MATHCALL_NARROW_REDIR): Likewise.
18120 (__MATHCALL_NARROW): Likewise.
18121 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18122 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18123 defined.
18124 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18125 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18126 (libm-narrow-fns): New variable.
18127 (libm-narrow-types-basic): Likewise.
18128 (libm-narrow-types-ldouble-yes): Likewise.
18129 (libm-narrow-types-float128-yes): Likewise.
18130 (libm-narrow-types-float128-alias-yes): Likewise.
18131 (libm-narrow-types): Likewise.
18132 (libm-routines): Add narrowing functions.
18133 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18134 (libc_feholdexcept_setroundf128): New macro.
18135 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18136 * sysdeps/ieee754/float128/float128_private.h: Include
18137 <math/math-narrow.h>.
18138 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18139 Undefine and redefine.
18140 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18141 (libm_alias_float_ldouble): Undefine and redefine.
18142 (libm_alias_double_ldouble): Likewise.
18143
18144 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18145
18146 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18147
18148 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18149 FPCR/FPSR.
18150
18151 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18152
18153 * manual/creature.texi: Convert references to gcc.info to gcc.
18154 * manual/stdio.texi: Likewise.
18155 * manual/string.texi: Likewise.
18156
18157 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18158
18159 [BZ #17979]
18160 * posix/bits/types.h (__int_least8_t): New typedef.
18161 (__uint_least8_t): Likewise.
18162 (__int_least16_t): Likewise.
18163 (__uint_least16_t): Likewise.
18164 (__int_least32_t): Likewise.
18165 (__uint_least32_t): Likewise.
18166 (__int_least64_t): Likewise.
18167 (__uint_least64_t): Likewise.
18168 * sysdeps/generic/stdint.h (int_least8_t): Define using
18169 __int_least8_t.
18170 (int_least16_t): Define using __int_least16_t.
18171 (int_least32_t): Define using __int_least32_t.
18172 (int_least64_t): Define using __int_least64_t.
18173 (uint_least8_t): Define using __uint_least8_t.
18174 (uint_least16_t): Define using __uint_least16_t.
18175 (uint_least32_t): Define using __uint_least32_t.
18176 (uint_least64_t): Define using __uint_least64_t.
18177 * wcsmbs/uchar.h: Include <bits/types.h>.
18178 (char16_t): Define using __uint_least16_t conditional only on
18179 [!__USE_ISOCXX11].
18180 (char32_t): Define using __uint_least32_t conditional only on
18181 [!__USE_ISOCXX11].
18182 * wcsmbs/test-char-types.c: New file.
18183 * wcsmbs/Makefile (tests): Add test-char-types.
18184
18185 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18186 version to 4.0.1.
18187
18188 2018-02-07 Zack Weinberg <zackw@panix.com>
18189
18190 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18191 Delete all contents except for definitions of _G_HAVE_MMAP and
18192 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18193 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18194 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18195 change as above.
18196
18197 * libio/libio.h: Don't include bits/_G_config.h here.
18198 Include stddef.h with __need_wchar_t defined. Include
18199 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18200 Define _IO_iconv_t here, directly.
18201 Don't define _IO_HAVE_ST_BLKSIZE.
18202 * libio/libioP.h: Include _G_config.h here. Move include of
18203 shlib-compat.h up with rest of includes. Simplify conditionals
18204 controlling definition of _IO_JUMPS_OFFSET.
18205
18206 * csu/init.c: Remove always-true #if around entire file.
18207 Don't include stdio.h. Set _IO_stdin_used to hardwired
18208 constant 0x20001, and update commentary.
18209 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18210 Replace all uses of _G_va_list with __gnuc_va_list.
18211 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18212 instead of #if _IO_HAVE_ST_BLKSIZE.
18213 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18214 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18215 not #ifdef.
18216
18217 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18218 multiple-include guard to match.
18219 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18220 into this file.
18221 Remove preprocessor conditionals that are always true and/or
18222 redundant to other preprocessor conditionals in the same nest.
18223 Include shlib-compat.h unconditionally.
18224 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18225 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18226 defined after including stdio.h.
18227 Use __BEGIN_DECLS/__END_DECLS.
18228
18229 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18230 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18231 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18232
18233 2018-02-07 Zack Weinberg <zackw@panix.com>
18234
18235 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18236 New single-type headers split from _G_config.h.
18237 * libio/bits/types/cookie_io_functions_t.h
18238 * libio/bits/types/struct_FILE.h
18239 New single-type headers split from libio.h.
18240
18241 * libio/Makefile: Install the above new headers. Don't install
18242 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18243 bits/libio-ldbl.h.
18244 * libio/_G_config.h, libio/libio.h: Delete file.
18245
18246 * libio/bits/libio.h: Remove improper-inclusion guard.
18247 Include stdio.h and don't repeat anything that it does.
18248 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18249 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18250 __io_read_fn as cookie_read_function_t,
18251 __io_write_fn as cookie_write_function_t,
18252 __io_seek_fn as cookie_seek_function_t,
18253 __io_close_fn as cookie_close_function_t,
18254 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18255 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18256 here, in the "compatibility defines" section. Remove an #if 0
18257 block. Use the "body" macros from bits/types/struct_FILE.h to
18258 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18259 and _IO_ferror_unlocked.
18260 Move prototypes of __uflow and __overflow...
18261
18262 * libio/stdio.h: ...here. Don't include bits/libio.h.
18263 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18264 directly from stdarg.h. Include bits/types/__fpos_t.h,
18265 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18266 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18267 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18268 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18269 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18270 __ssize_t, not _IO_ssize_t. Unconditionally define
18271 BUFSIZ as 8192 and EOF as (-1).
18272
18273 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18274 macros from bits/types/struct_FILE.h instead of _IO_* macros
18275 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18276 instead of _IO_ssize_t.
18277 * libio/bits/stdio2.h: Similarly.
18278
18279 * libio/iolibio.h: Add multiple-include guard.
18280 Include bits/libio.h after stdio.h.
18281 * libio/libioP.h: Add multiple-include guard.
18282 Include stdio.h and bits/libio.h before iolibio.h.
18283
18284 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18285 * include/bits/types/cookie_io_functions_t.h
18286 * include/bits/types/struct_FILE.h: New wrappers.
18287
18288 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18289 Get definitions of _G_fpos_t and _G_fpos64_t from
18290 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18291 respectively. Remove improper-inclusion guards.
18292
18293 * conform/data/stdio.h-data: Update expectations of va_list.
18294 * scripts/check-installed-headers.sh: Remove special case for
18295 libio.h and _G_config.h.
18296
18297 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18298
18299 [BZ #15105]
18300 [BZ #19463]
18301 * include/sys/sysmacros.h [!_ISOMAC]
18302 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18303 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18304 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18305 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18306 libc_hidden_proto.
18307 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18308 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18309 Likewise.
18310 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18311 Undefine and redefine to add use __gnu_dev_ prefix.
18312 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18313 Likewise.
18314 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18315 and define as hidden inline function.
18316 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18317 Likewise.
18318 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18319 Likewise.
18320 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18321 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18322 (gnu_dev_minor): Likewise.
18323 (gnu_dev_makedev): Likewise.
18324 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18325 makedev.
18326 * posix/wordexp.c (exec_comm_child): Likewise.
18327 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18328 instead of minor and __gnu_dev_major instead of major.
18329 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18330 __gnu_dev_major instead of major.
18331 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18332 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18333 instead of gnu_dev_minor.
18334 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18335 (SLAVE_P): Likewise.
18336 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18337 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18338 instead of major.
18339
18340 [BZ #21313]
18341 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18342 in another place.
18343 * locale/weightwc.h (findidx): Likewise.
18344
18345 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18346
18347 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18348 (slowlog_inexact): Likewise
18349 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18350 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18351
18352 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18353
18354 [BZ #22797]
18355 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18356 missing second underscore to parameter name.
18357
18358 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18359
18360 [BZ #14508]
18361 [BZ #15512]
18362 [BZ #17082]
18363 [BZ #20530]
18364 * bits/byteswap.h: Update file comment. Do not include
18365 <bits/byteswap-16.h>.
18366 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18367 constant.
18368 (__bswap_16): Define as inline function.
18369 (__bswap_constant_32): Reformat definition.
18370 (__bswap_32): Always define as inline function, not macro, using
18371 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18372 otherwise __bswap_constant_32.
18373 (__bswap_constant_64): Reformat definition. Do not use
18374 __extension__ here.
18375 (__bswap_64): Always define as inline function, not macro. Use
18376 __extension__ on function definition. Use __builtin_bswap64 if
18377 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18378 * string/test-endian-file-scope.c: New file.
18379 * string/test-endian-sign-conversion.c: Likewise.
18380 * string/Makefile (headers): Remove bits/byteswap-16.h.
18381 (tests): Add test-endian-file-scope and
18382 test-endian-sign-conversion.
18383 (CFLAGS-test-endian-sign-conversion.c): New variable.
18384 * bits/byteswap-16.h: Remove file.
18385 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18386 * sysdeps/ia64/bits/byteswap.h: Likewise.
18387 * sysdeps/m68k/bits/byteswap.h: Likewise.
18388 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18389 * sysdeps/s390/bits/byteswap.h: Likewise.
18390 * sysdeps/tile/bits/byteswap.h: Likewise.
18391 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18392 * sysdeps/x86/bits/byteswap.h: Likewise.
18393
18394 [BZ #17721]
18395 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18396 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18397 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18398 199901L] (__restrict): Define to restrict.
18399
18400 [BZ #19667]
18401 * string/testcopy.c: Include <support/support.h>. Do not include
18402 <malloc.h>. Use <support/test-driver.c>.
18403 (main): Rename to do_test. Make static. Use xmalloc instead of
18404 malloc.
18405
18406 [BZ #13575]
18407 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18408 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18409 (SSIZE_MAX): Define to INT_MAX.
18410 * posix/test-ssize-max.c: New file.
18411 * posix/Makefile (tests): Add test-ssize-max.
18412
18413 [BZ #19668]
18414 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18415 <support/support.h>. Do not include <malloc.h>.
18416 (query_auxv): Use xmalloc instead of malloc.
18417
18418 [BZ #14553]
18419 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18420 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18421 instead of loff_t.
18422
18423 2018-02-06 Florian Weimer <fweimer@redhat.com>
18424
18425 [BZ #18023]
18426 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18427 Use scratch_buffer instead of extend_alloca.
18428
18429 2018-02-06 Zack Weinberg <zackw@panix.com>
18430
18431 * libio/stdio.h: Don't define getc or putc as macros.
18432 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18433 not _IO_getc and _IO_putc.
18434
18435 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18436 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18437
18438 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18439
18440 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18441 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18442
18443 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18444
18445 [BZ #14890]
18446 * elf/elf.h (NT_PRFPREG): New macro.
18447 (NT_S390_VXRS_LOW): Likewise.
18448 (NT_S390_VXRS_HIGH): Likewise.
18449 (NT_S390_GS_CB): Likewise.
18450 (NT_S390_GS_BC): Likewise.
18451 (NT_S390_RI_CB): Likewise.
18452
18453 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18454 (MAP_SYNC): New macro.
18455 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18456 Likewise.
18457 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18458 (MAP_SYNC): Likewise.
18459 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18460 (MAP_SYNC): Likewise.
18461 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18462 (MAP_SYNC): Likewise.
18463 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18464 (MAP_SYNC): Likewise.
18465 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18466 (MAP_SYNC): Likewise.
18467 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18468 (MAP_SYNC): Likewise.
18469 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18470 Likewise.
18471 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18472 Likewise.
18473
18474 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18475 (MAP_SHARED_VALIDATE): New macro.
18476 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18477 (MAP_SHARED_VALIDATE): Likewise.
18478
18479 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18480
18481 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18482 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18483 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18484
18485 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18486
18487 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18488 (DT_NUM): Updated to 35.
18489
18490 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18491
18492 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18493 __builtin_expect with __glibc_likely and __glibc_unlikely.
18494 (elf_machine_rela): Likewise.
18495 (elf_machine_lazy_rel): Likewise.
18496
18497 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18498
18499 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18500 __builtin_expect with __glibc_likely and __glibc_unlikely.
18501 (elf_machine_lazy_rel): Likewise.
18502
18503 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18504
18505 [BZ #22638]
18506 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18507 SHARED.
18508 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18509
18510 2018-02-05 Andreas Schwab <schwab@suse.de>
18511
18512 [BZ #22761]
18513 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18514 string.
18515
18516 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18517
18518 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18519 not check against PTHREAD_STACK_MIN.
18520
18521 2018-02-02 Sean McKean <smckean83@gmail.com>
18522
18523 [BZ #22735]
18524 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18525
18526 2018-02-02 Florian Weimer <fweimer@redhat.com>
18527
18528 [BZ #22753]
18529 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18530 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18531 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18532 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18533 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18534 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18535 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18536 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18537 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18538 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18539 * misc/tst-preadvwritev2.c (do_test): Call it.
18540 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18541
18542 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18543
18544 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18545
18546 * benchtests/bench-memcmp.c: Print json instead of plain text.
18547
18548 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18549 every test run.
18550
18551 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18552
18553 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18554 version to 4.15.
18555 (s390_sthyi): New syscall.
18556
18557 * sysdeps/generic/ldbl-classify-compat.h: New file.
18558 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18559 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18560 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18561 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18562 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18563 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18564 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18565 <ldbl-classify-compat.h>.
18566 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18567 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18568 <ldbl-classify-compat.h>.
18569 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18570 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18571 <ldbl-classify-compat.h>.
18572 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18573 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18574 <ldbl-classify-compat.h>.
18575 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18576 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18577 <ldbl-classify-compat.h>.
18578 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18579 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18580 <ldbl-classify-compat.h>.
18581 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18582 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18583 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18584 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18585 * sysdeps/microblaze/math_private.h: Likewise.
18586 * sysdeps/nios2/math_private.h: Likewise.
18587 * sysdeps/sh/math_private.h: Likewise.
18588
18589 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18590 * sysdeps/m68k/coldfire/math_private.h: ... here.
18591 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18592 * sysdeps/tile/math_private.h: Likewise.
18593 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18594 Remove macro.
18595 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18596 Likewise.
18597
18598 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18599 Remove macro.
18600 (libc_fetestexcept): Likewise.
18601 (libc_feupdateenv_test): Likewise.
18602 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18603 (libc_fetestexcept): Likewise.
18604 (libc_feupdateenv_test): Likewise.
18605 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18606 (libc_fetestexcept): Likewise.
18607 (libc_feupdateenv_test): Likewise.
18608 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18609 (libc_fetestexcept): Likewise.
18610 (libc_feupdateenv_test): Likewise.
18611
18612 * sysdeps/generic/math_private.h
18613 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18614 New inline function.
18615 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18616 Likewise.
18617
18618 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18619 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18620 * sysdeps/generic/math_private.h
18621 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18622 inline function.
18623 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18624 Likewise.
18625 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18626 Likewise.
18627 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18628 Likewise.
18629 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18630 Likewise.
18631 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18632 Likewise.
18633 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18634 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18635 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18636 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18637 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18638 (__fegetenv): Likewise.
18639 (fesetenv): Likewise.
18640 (__fesetenv): Likewise.
18641 (feupdateenv): Likewise.
18642 (__feupdateenv): Likewise.
18643 (fegetround): Likewise.
18644 (__fegetround): Likewise.
18645 (fesetround): Likewise.
18646 (__fesetround): Likewise.
18647
18648 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18649 (feraiseexcept): New macro.
18650 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18651 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18652 Remove macro.
18653 (__feraiseexcept): Likewise.
18654 (feclearexcept): Likewise.
18655 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18656 (__feraiseexcept): Likewise.
18657 (feclearexcept): Likewise.
18658 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18659 (__feraiseexcept): Likewise.
18660 (feclearexcept): Likewise.
18661 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18662 (__feraiseexcept): Likewise.
18663 (feclearexcept): Likewise.
18664 (fetestexcept): Likewise.
18665
18666 * sysdeps/m68k/coldfire/math-tests.h: New file.
18667
18668 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18669 * sysdeps/m68k/bits/fenv.h: ... here.
18670 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18671 not define.
18672 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18673 Likewise.
18674 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18675 Likewise.
18676 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18677 Likewise.
18678 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18679 Likewise.
18680 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18681 Define to 0.
18682 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18683 (__FE_UNDEFINED): New enum constant.
18684 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18685 Do not define.
18686 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18687 Likewise.
18688 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18689 Likewise.
18690 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18691 to match generic bits/fenv.h.
18692 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18693 Do not define.
18694
18695 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18696 packed on bits.
18697 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18698 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18699 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18700 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18701
18702 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18703 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18704 Joseph Myers <joseph@codesourcery.com>
18705
18706 [BZ #21314]
18707 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18708 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18709 computation using c.
18710 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18711 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18712 computation using c.
18713
18714 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18715
18716 * version.h (RELEASE): Set to "development".
18717 (VERSION): Set to "2.27.9000".
18718 * NEWS (2.28): New section.
18719
18720 * version.h (RELEASE): Set to "stable".
18721 (VERSION): Set to "2.27".
18722 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18723
18724 * NEWS: Add the list of bugs fixed in 2.27.
18725
18726 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18727
18728 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18729 against PTHREAD_STACK_MIN.
18730
18731 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18732
18733 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18734 New entries.
18735 (Rafal Luzynski, Andreas Schwab): Update.
18736
18737 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18738
18739 [BZ #10871]
18740 * NEWS: List the languages which actually use the alternative
18741 months feature in this release. Also explain that "alt_mon" and
18742 "ab_alt_mon" are optional.
18743
18744 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18745
18746 [BZ #22765]
18747 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18748
18749 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18750
18751 * manual/install.texi (Tools for Compilation): Update the newest
18752 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18753 * INSTALL: Regenerated.
18754
18755 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18756
18757 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18758 instead of __builtin_expect.
18759
18760 2018-01-30 Florian Weimer <fweimer@redhat.com>
18761
18762 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18763 data.
18764 * nss/tst-nss-getpwent.c (do_test): Likewise.
18765
18766 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18767
18768 [BZ #10871]
18769 * localedata/locales/hr_HR (mon): Rename to...
18770 (alt_mon): This.
18771 (mon): Import from CLDR (genitive case).
18772 (d_t_fmt): Update the comment.
18773
18774 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18775
18776 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18777 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18778 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18779
18780 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18781
18782 * mach/Versions: Fix version when __mach_host_self_ was added.
18783 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18784 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18785 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18786 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18787 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18788 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18789 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18790 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18791 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18792 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18793 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18794 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18795 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18796 || to respect codestyle.
18797 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18798 (do_test_bz20181): Rename accordingly.
18799 * malloc/malloc.c: Include <assert.h>.
18800 (assert): Do not define.
18801 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18802 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18803 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18804 * sysdeps/mach/hurd/hp-timing.h: New file.
18805 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18806
18807 2018-01-29 Darius Rad <darius@bluespec.com>
18808
18809 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18810
18811 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18812
18813 * sysdeps/init_array/crti.S (.section .init_array): Add
18814 PREINIT_FUNCTION when defined.
18815 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18816 * config.h.in: Regenerate.
18817 * manual/platform.texi: Add RISC-V documenation for
18818 __riscv_flush_icache.
18819 * sysdeps/riscv/__longjmp.S: New file.
18820 * sysdeps/riscv/backtrace.c: Likewise.
18821 * sysdeps/riscv/bits/endian.h: Likewise.
18822 * sysdeps/riscv/bits/setjmp.h: Likewise.
18823 * sysdeps/riscv/bits/wordsize.h: Likewise.
18824 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18825 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18826 * sysdeps/riscv/dl-trampoline.S: Likewise.
18827 * sysdeps/riscv/gccframe.h: Likewise.
18828 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18829 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18830 * sysdeps/riscv/machine-gmon.h: Likewise.
18831 * sysdeps/riscv/memusage.h: Likewise.
18832 * sysdeps/riscv/setjmp.S: Likewise.
18833 * sysdeps/riscv/sys/asm.h: Likewise.
18834 * sysdeps/riscv/tls-macros.h: Likewise.
18835 * sysdeps/riscv/dl-tls.h: New file.
18836 * sysdeps/riscv/libc-tls.c: Likewise.
18837 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18838 * sysdeps/riscv/nptl/tls.h: Likewise.
18839 * sysdeps/riscv/stackinfo.h: Likewise.
18840 * sysdeps/riscv/bits/fenv.h: New file.
18841 * sysdeps/riscv/e_sqrtl.c: Likewise.
18842 * sysdeps/riscv/fpu_control.h: Likewise.
18843 * sysdeps/riscv/math-tests.h: Likewise.
18844 * sysdeps/riscv/nofpu/Implies: Likewise.
18845 * sysdeps/riscv/sfp-machine.h: Likewise.
18846 * sysdeps/riscv/tininess.h: Likewise.
18847 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18848 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18849 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18850 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18851 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18852 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18853 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18854 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18855 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18856 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18857 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18858 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18859 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18860 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18861 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18862 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18863 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18864 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18865 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18866 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18867 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18868 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18869 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18870 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18871 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18872 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18873 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18874 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18875 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18876 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18877 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18878 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18879 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18880 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18881 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18882 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18883 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18884 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18885 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18886 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18887 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18888 * sysdeps/riscv/rvf/math_private.h: Likewise.
18889 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18890 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18891 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18892 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18893 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18894 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18895 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18896 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18897 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18898 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18899 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18900 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18901 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18902 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18903 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18904 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18905 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18906 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18907 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18908 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18909 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18910 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18911 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18912 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18913 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18914 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18915 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18916 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18917 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18918 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18919 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18920 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18921 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18922 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18923 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18924 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18925 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18926 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18927 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18928 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18929 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18930 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18931 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18932 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18933 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18934 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18935 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18936 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18937 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18938 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18939 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18940 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18941 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18942 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18943 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18944 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18945 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18946 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18947 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18948 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18949 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18950 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18951 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18952 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18953 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18956 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18957 * sysdeps/riscv/Implies: New file.
18958 * sysdeps/riscv/Makefile: Likewise.
18959 * sysdeps/riscv/configure: Likewise.
18960 * sysdeps/riscv/configure.ac: Likewise.
18961 * sysdeps/riscv/nptl/Makefile: Likewise.
18962 * sysdeps/riscv/preconfigure: Likewise.
18963 * sysdeps/riscv/rv64/Implies-after: Likewise.
18964 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18965 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18966 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18967 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18968 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18969 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18970 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18971 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18972 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18973 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18974 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18975 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18976 (Config): Likewise.
18977
18978 2018-01-29 Florian Weimer <fweimer@redhat.com>
18979
18980 [BZ #22701]
18981 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18982 libnsl_hidden_proto.
18983 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18984 libnsl_hidden_proto.
18985 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18986 * nis/Makefile (libnsl-routines): Add nss-default only for
18987 build-obsolete-nsl.
18988 * nis/nis_defaults.c (__nis_default_ttl): Add
18989 libnsl_hidden_nolink_def.
18990 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18991 declaration.
18992 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18993 * nis/ypclnt.c (yp_maplist): Likewise.
18994
18995 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18996
18997 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18998 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18999
19000 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19001
19002 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19003 clean -dxfq for git updates when replacing sources.
19004
19005 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19006 --disable-libcilkrts unconditionally, not just for the final GCC
19007 build for Hurd.
19008
19009 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19010 version to 4.15.
19011
19012 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19013
19014 [BZ #10871]
19015 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19016 case).
19017
19018 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19019
19020 [BZ #10871]
19021 * localedata/locales/be_BY (mon): Rename to...
19022 (alt_mon): This, then synchronize with CLDR (nominative case).
19023 (abmon): Rename to...
19024 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19025 (mon): Import from CLDR (genitive case).
19026 (abmon): Likewise.
19027 * localedata/locales/be_BY@latin (mon): Rename to...
19028 (alt_mon): This.
19029 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19030
19031 * localedata/locales/be_BY@latin (lang_name): Reworded to
19032 "biełaruskaja mova".
19033
19034 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19035
19036 [BZ #10871]
19037 * localedata/locales/el_CY (mon): Renamed to...
19038 (alt_mon): This.
19039 (mon): Import from CLDR (genitive case).
19040 * localedata/locales/el_GR: Likewise.
19041
19042 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19043
19044 [BZ #10871]
19045 * localedata/locales/ru_RU (mon): Rename to...
19046 (alt_mon): This.
19047 (abmon): Rename to...
19048 (ab_alt_mon): This.
19049 (mon): Import from CLDR (genitive case).
19050 (abmon): Copy from the old content except the 5th month which is
19051 now in the genitive case, even when abbreviated.
19052 * localedata/locales/ru_UA: Likewise.
19053 * time/tst-strptime.c (day_tests): Add an actual example of
19054 a difference between %b and %Ob in Russian.
19055
19056 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19057
19058 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19059 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19060 a `c' variable.
19061 * resolv/res-close.c: Include <stdlib.h>.
19062 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19063 <sys/wait.h>, <time.h>, <sys/uio.h>.
19064 (NOT_CANCEL_H): Add inclusion guard.
19065 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19066 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19067 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19068 return 0.
19069 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19070 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19071 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19072 instead of void *.
19073 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19074 timer_ptr2id to cast struct timer_node * to void *.
19075 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19076 --disable-libcilkrts to gcc configure.
19077 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19078 and make them the default for now.
19079 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19080 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19081 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19082 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19083 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19084 MACH_IPC_COMPAT.
19085 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19086 __task_terminate would ever return successfully.
19087 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19088 to global scope.
19089 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19090 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19091 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19092 critical section to make code simpler and avoid warning.
19093 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19094 critical section to make code simpler and avoid warning.
19095 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19096 const char * instead of char *.
19097 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19098 __hurd_file_name_split, hurd_file_name_split,
19099 __hurd_directory_name_split, hurd_directory_name_split,
19100 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19101 hurd_file_name_path_lookup): Make lookup function parameter take a
19102 const char *name instead of char *name.
19103 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19104 __hurd_directory_name_split): Likewise.
19105 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19106 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19107 * sysdeps/mach/hurd/check_native.c: New file.
19108 * sysdeps/mach/hurd/check_pf.c: New file.
19109 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19110 (__freeifaddrs): Define macro to freeifaddrs.
19111 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19112 * sysdeps/mach/libmachuser.abilist: New file.
19113 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19114 (do_test_bz20181): Rename accordingly.
19115 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19116 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19117 <sys/mount.h>.
19118 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19119 version only if __USE_EXTERN_INLINES is defined.
19120 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19121 __hurd_sockfail): Likewise.
19122 (_hurd_fd_get): Always declare functions, and provide inline versions
19123 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19124 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19125 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19126 _hurd_port_set): Always declare functions, and provide inline versions
19127 only if __USE_EXTERN_INLINES and _LIBC are defined and
19128 IS_IN(libc).
19129 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19130 _hurd_critical_section_unlock): Likewise.
19131 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19132 * __hurd_threadvar_location): Likewise.
19133 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19134 _hurd_userlink_clear): Likewise.
19135 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19136 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19137 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19138 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19139 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19140 __spin_lock_locked): Likewise.
19141 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19142 __spin_lock_locked): Likewise.
19143 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19144 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19145 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19146 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19147 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19148 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19149 _POSIX_NO_TRUNC): Define to 0.
19150 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19151 check size against PTHREAD_STACK_MIN.
19152 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19153 IS_IN(libpthread)]: Include <sigsetops.h>.
19154 * mach/Makefile (user-interfaces): Add mach/gnumach.
19155 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19156 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19157 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19158 instead of invalid -1.
19159 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19160 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19161 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19162 <net/ppp_defs.h>.
19163
19164 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19165
19166 * hurd/fcntl-internal.h: New file.
19167
19168 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19169
19170 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19171
19172 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19173
19174 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19175
19176 [BZ #22701]
19177 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19178 Build only shared objects.
19179
19180 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19181
19182 * README: Update for hppa.
19183
19184 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19185
19186 * sysdeps/sparc/fpu/libm-test-ulps: Update
19187 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19188
19189 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19190
19191 Revert:
19192
19193 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19194
19195 [BZ #22563]
19196 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19197 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19198 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19199 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19200 to feature_1.
19201
19202 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19203
19204 [BZ #22563]
19205 * bits/types/__cancel_jmp_buf_tag.h: New file.
19206 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19207 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19208 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19209 * nptl/Makefile (headers): Add
19210 bits/types/__cancel_jmp_buf_tag.h.
19211 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19212 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19213 * sysdeps/nptl/pthread.h: Include
19214 <bits/types/__cancel_jmp_buf_tag.h>.
19215 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19216 __cancel_jmp_buf.
19217 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19218
19219 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19220
19221 [BZ #10871]
19222 * localedata/locales/uk_UA (mon): Renamed to...
19223 (alt_mon): This.
19224 (alt_digits): "0" removed and then renamed to...
19225 (mon): This.
19226 (date_fmt): Definition changed not to use the alternative
19227 digits hack.
19228
19229 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19230
19231 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19232 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19233 * elf/elf.h (EF_RISCV_RVC): New define.
19234 (EF_RISCV_FLOAT_ABI): Likewise.
19235 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19236 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19237 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19238 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19239 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19240 define.
19241 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19242
19243 2018-01-25 Andreas Schwab <schwab@suse.de>
19244
19245 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19246 single quotes.
19247 * sysdeps/gnu/configure: Regenerate.
19248 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19249 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19251 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19252 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19253 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19254 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19255 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19256
19257 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19258
19259 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19260 URL, and run autoconf, make it the default for now.
19261
19262 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19263
19264 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19265 soft-float ColdFire configuration.
19266
19267 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19268 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19269 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19270
19271 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19272 MicroBlaze file.
19273
19274 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19275 ....
19276 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19277 ... here.
19278 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19279 New file.
19280
19281 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19282 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19283 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19284 file.
19285
19286 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19287
19288 [BZ #22742]
19289 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19290 Rename to __reserved and add comment.
19291 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19292 Rename to __reserved.
19293
19294 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19295
19296 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19297 i686-gnu configurations.
19298 (Context.run_builds): Include mig, gnumach and hurd in components
19299 considered.
19300 (Context.checkout): Add mig, gnumach and hurd to components.
19301 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19302 hurd.
19303 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19304 (Config.build): Install gnumach headers, build mig and install
19305 hurd headers for 'gnu' OS.
19306 (Config.install_gnumach_headers): New function.
19307 (Config.install_hurd_headers): Likewise.
19308 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19309 when building for 'gnu' OS.
19310
19311 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19312
19313 * manual/tunables.texi (Hardware Capability Tunables): Fix
19314 spelling.
19315
19316 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19317
19318 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19319 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19320 (ALTMON_11, ALTMON_12): Improve documentation.
19321 * manual/time.texi (strftime): Likewise.
19322
19323 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19324
19325 [BZ #10871]
19326 * localedata/locales/pl_PL: Alternative month names added,
19327 primary month names are genitive now.
19328 * time/tst-strptime.c (day_tests): Actually use a genitive case
19329 of a month name in Polish language.
19330
19331 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19332
19333 [BZ #10871]
19334 * manual/locale.texi: Document ALTMON_1..12 constants for
19335 nl_langinfo. Specify when to use ALTMON instead of MON.
19336 * manual/time.texi (strftime, strptime): Document GNU extension
19337 permitting O modifier with %B and %b. Specify when to use
19338 %OB instead of %B.
19339
19340 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19341
19342 [BZ #10871]
19343 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19344 names, define them as the same as abbreviated month names explicitly.
19345 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19346 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19347 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19348 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19349 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19350 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19351 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19352 _NL_WABALTMON_12): New enum constants.
19353 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19354 wab_alt_mon, and ab_alt_mon_defined members.
19355 (time_output): Output ab_alt_mon and wab_alt_mon members.
19356 (time_read): Read them, initialize them as copies of abmon and wabmon
19357 respectively if they are missing, initialize ab_alt_mon_defined.
19358 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19359 * locale/programs/locfile-kw.h: Regenerate.
19360 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19361 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19362 and ru_RU.UTF-8.
19363 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19364 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19365 (__strftime_internal): Handle %Ob and %Oh formats.
19366 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19367 (__strptime_internal): Handle %Ob and %Oh formats.
19368 * time/tst-strptime.c (day_tests): Add more tests to parse different
19369 forms of month names including the new %Ob format specifier.
19370
19371 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19372
19373 [BZ #10871]
19374 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19375 define them as the same as primary full month names explicitly.
19376 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19377 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19378 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19379 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19380 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19381 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19382 _NL_WALTMON_12): New enum constants.
19383 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19384 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19385 macros.
19386 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19387 walt_mon, and alt_mon_defined members.
19388 (time_output): Output alt_mon and walt_mon members.
19389 (time_read): Read them, initialize them as copies of mon and wmon
19390 respectively if they are missing, initialize alt_mon_defined.
19391 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19392 * locale/programs/locfile-kw.h: Regenerate.
19393 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19394 * localedata/tst-langinfo.c (map): Add tests for the new constants
19395 ALTMON_1 .. ALTMON_12.
19396 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19397 and pl_PL.UTF-8.
19398 * time/strftime_l.c (f_altmonth): New macro.
19399 (__strftime_internal): Handle %OB format.
19400 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19401 (__strptime_internal): Handle %OB format.
19402 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19403 of month names including the new %OB format specifier.
19404
19405 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19406
19407 [BZ #22685]
19408 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19409 from ABORT_TRANSACTION.
19410 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19411 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19412 ABORT_TRANSACTION_IMPL): Likewise.
19413 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19414 Linux code, but remove the code that aborts transactions.
19415
19416 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19417
19418 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19419
19420 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19421
19422 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19423 in date: "2004-14-09" should be "2004-09-14".
19424 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19425 "2003-15-09" should be "2003-09-15".
19426
19427 2018-01-18 Arjun Shankar <arjun@redhat.com>
19428
19429 [BZ #22343]
19430 [BZ #22774]
19431 CVE-2018-6485
19432 CVE-2018-6551
19433 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19434 after padding.
19435 (_int_memalign): check for integer overflow before calling
19436 _int_malloc.
19437 * malloc/tst-malloc-too-large.c: New test.
19438 * malloc/Makefile: Add tst-malloc-too-large.
19439
19440 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19441
19442 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19443 in date: "2017-24-07" should be "2017-07-24".
19444 * localedata/locales/mai_IN: Likewise.
19445 * localedata/locales/mai_NP: Likewise.
19446
19447 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19448
19449 * po/ru.po: Update translations.
19450
19451 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19452
19453 [BZ #22719]
19454 * sysdeps/hppa/backtrace.c: New file.
19455
19456 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19457
19458 [BZ #22715]
19459 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19460 align La_x86_64_retval to VEC_SIZE.
19461
19462 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19463
19464 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19465 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19466
19467 2018-01-16 Florian Weimer <fweimer@redhat.com>
19468
19469 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19470 Move tst-thread-exit-clobber ...
19471 [$(CXX)] (tests-unsupported): ... to here.
19472
19473 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19474
19475 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19476 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19477 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19478 (_dl_aarch64_cap_flags): Update.
19479 (_DL_HWCAP_COUNT): Update.
19480
19481 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19482
19483 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19484 (_DL_HWCAP_LAST): Remove.
19485 (_DL_HWCAP_COUNT): Move to ...
19486 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19487 (_DL_HWCAP_COUNT): ... here.
19488
19489 2018-01-16 Florian Weimer <fweimer@redhat.com>
19490
19491 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19492 mode with GNU extensions.
19493
19494 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19495
19496 * elf/elf.h (NT_ARM_SVE): Define.
19497
19498 2018-01-15 Florian Weimer <fweimer@redhat.com>
19499
19500 [BZ #22636]
19501 * nptl/tst-minstack-throw.cc: New file.
19502 * nptl/Makefile (tests): Add tst-minstack-throw.
19503 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19504 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19505
19506 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19507
19508 * scripts/build-many-glibcs.py (Context.checkout): Default
19509 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19510 version to 1.1.0.
19511
19512 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19513
19514 [BZ #22707]
19515 * elf/elf.h (DF_1_STUB): Define.
19516 (DF_1_PIE): Define.
19517
19518 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19519
19520 [BZ #22697]
19521 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19522 Do not add 0.5 to integer or out-of-range arguments.
19523
19524 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19525
19526 * po/bg.po: Update translations.
19527 * po/cs.po: Likewise.
19528 * po/de.po: Likewise.
19529 * po/ko.po: Likewise.
19530 * po/pl.po: Likewise.
19531 * po/sv.po: Likewise.
19532 * po/uk.po: Likewise.
19533 * po/vi.po: Likewise.
19534
19535 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19536
19537 * aarch64/start.S (_start): Use __wrap_main.
19538 (__wrap_main): New local symbol.
19539
19540 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19541
19542 [BZ #22679]
19543 CVE-2018-1000001
19544 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19545 generic_getcwd if the path returned by getcwd syscall is not absolute.
19546 * io/tst-getcwd-abspath.c: New test.
19547 * io/Makefile (tests): Add tst-getcwd-abspath.
19548
19549 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19550
19551 * malloc/malloc.c (malloc_consolidate): Add size check.
19552
19553 2018-01-12 Florian Weimer <fweimer@redhat.com>
19554
19555 * support/write_message.c (write_message): Preserve errno.
19556 * support/check.c (print_failure): Likewise.
19557 * support/support_test_verify_impl.c (support_test_verify_impl):
19558 Likewise.
19559 * support/support_test_compare_failure.c
19560 (support_test_compare_failure): Likewise.
19561
19562 2018-01-12 Florian Weimer <fweimer@redhat.com>
19563
19564 [BZ #22701]
19565 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19566 Prevent installation of libnsl.so.
19567 (libnsl-inhibit-o): Do not build (or install) static libraries.
19568
19569 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19570
19571 [BZ #22657]
19572 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19573 before the day number which may produce a double space.
19574 (date_fmt): Likewise.
19575
19576 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19577
19578 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19579 instead of fegetenv.
19580
19581 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19582
19583 [BZ #22702]
19584 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19585 comment to say exceptions are discarded.
19586 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19587 __fegetenv.
19588 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19589 be enabled.
19590
19591 2018-01-11 Florian Weimer <fweimer@redhat.com>
19592
19593 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19594 and error message.
19595
19596 2018-01-11 Florian Weimer <fweimer@redhat.com>
19597
19598 [BZ #22636]
19599 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19600 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19601
19602 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19603
19604 [BZ #22693]
19605 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19606 negative arguments in test for NaN or infinity argument.
19607
19608 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19609
19610 * po/libc.pot: Regenerate.
19611
19612 2018-01-10 Florian Weimer <fweimer@redhat.com>
19613
19614 [BZ #22636]
19615 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19616 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19617
19618 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19619
19620 * hurd/hurd/fd.h: Include <fcntl.h>
19621 (__hurd_at_flags): New function.
19622 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19623 with call to __hurd_at_flags.
19624 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19625 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19626 __faccessat
19627 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19628 (__access_noerrno): Use __faccessat_common instead of access_common.
19629 (__access): Likewise.
19630 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19631 with a call to __faccessat.
19632 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19633 (__faccessat_common): ... this. Move implementation of __access into it when
19634 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19635 reauthenticate_cwdir_at helper to implement AT mechanism.
19636 (__faccessat_noerrno): New function, just calls __faccessat_common.
19637 (__faccessat): New function, just calls __faccessat_common.
19638 (faccessat): Define weak alias.
19639
19640 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19641
19642 [BZ #22691]
19643 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19644 (CFLAGS-s_fmaxmagl.c): New variable.
19645 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19646
19647 [BZ #22690]
19648 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19649 long int for arguments of possibly overflowing addition or
19650 subtraction.
19651 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19652
19653 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19654
19655 [BZ #22688]
19656 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19657 (CFLAGS-e_remainderl.c): New variable.
19658
19659 [BZ #22687]
19660 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19661 variable.
19662 (CFLAGS-s_cacoshl.c): Likewise.
19663 (CFLAGS-s_casinhl.c): Likewise.
19664 (CFLAGS-s_catanl.c): Likewise.
19665 (CFLAGS-s_catanhl.c): Likewise.
19666 (CFLAGS-s_cexpl.c): Likewise.
19667 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19668 (CFLAGS-s_csinhl.c): Likewise.
19669 (CFLAGS-s_clogl.c): Likewise.
19670 (CFLAGS-s_clog10l.c): Likewise.
19671 (CFLAGS-s_csinl.c): Likewise.
19672 (CFLAGS-s_csqrtl.c): Likewise.
19673
19674 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19675 2017-01-09 Svante Signell <svante.signell@gmail.com>
19676
19677 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19678 (_hurd_exec_paths): New function.
19679 * hurd/hurd.h (_hurd_exec): Deprecate function.
19680 (_hurd_exec_paths): Declare function.
19681 * hurd/Versions: Export _hurd_exec_paths.
19682 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19683 (__execve): Use __getcwd to build absolute path, and use
19684 _hurd_exec_paths instead of _hurd_exec.
19685 * sysdeps/mach/hurd/spawni.c: Likewise.
19686 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19687 _hurd_exec.
19688
19689 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19690
19691 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19692 test instead of failing in case of ENOENT returned by posix_openpt.
19693
19694 2018-01-08 Florian Weimer <fweimer@redhat.com>
19695
19696 resolv: Support binary labels in test framework.
19697 * support/resolv_test.c (struct to_be_freed): Remove.
19698 (struct compressed_name): New.
19699 (allocate_compressed_name, ascii_tolower)
19700 (compare_compressed_name): New functions.
19701 (struct resolv_response_builder): Update type of
19702 compression_offsets for use with tsearch. Rempve to_be_freed.
19703 (response_push_pointer_to_free): Remove function.
19704 (resolv_response_add_name): Rewrite using struct compressed_name
19705 and tsearch instead of hsearch_r.
19706 (response_builder_allocate): Remove initialization of
19707 compression_offsets.
19708 (response_builder_free): Update for removal of to_be_freed. Use
19709 tdestroy instead of hdestroy_r.
19710 * resolv/Makefile (tests): Add tst-resolv-binary.
19711 (tst-resolv-binary): Link with -lresolv -lpthread.
19712
19713 2018-01-08 Florian Weimer <fweimer@redhat.com>
19714
19715 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19716 time. Pass positive flag instead of negative flag to
19717 support_test_compare_failure.
19718 (support_test_compare_failure): Change negative parameter to
19719 positive.
19720 * support/support_test_compare_failure.c (report)
19721 (support_test_compare_failure): Likewise.
19722 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19723 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19724
19725 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19726
19727 [BZ #22637]
19728 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19729 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19730 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19731 stacksize.
19732 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19733
19734 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19735
19736 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19737 Add s_sincosf-sse2 and s_sincosf-fma.
19738 (CFLAGS-s_sincosf-fma.c): New.
19739 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19740 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19741 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19742 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19743 __sincosf is defined.
19744
19745 2018-01-08 Florian Weimer <fweimer@redhat.com>
19746
19747 * nptl/tst-thread-exit-clobber.cc: New file.
19748 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19749 C++11 mode.
19750 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19751 (tests): Add tst-thread-exit-clobber.
19752 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19753
19754 2018-01-08 Florian Weimer <fweimer@redhat.com>
19755
19756 * support/check.h (support_static_assert): Define.
19757 (TEST_COMPARE): Use it.
19758
19759 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19760
19761 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19762 [!__RLIM_T_MATCHES_RLIM64_T]
19763 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19764 __getrlimit64. Add libc_hidden_weak.
19765
19766 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19767
19768 * elf/elf.h (R_RISCV_NONE): New define.
19769 (R_RISCV_32): Likewise.
19770 (R_RISCV_64): Likewise.
19771 (R_RISCV_RELATIVE): Likewise.
19772 (R_RISCV_COPY): Likewise.
19773 (R_RISCV_JUMP_SLOT): Likewise.
19774 (R_RISCV_TLS_DTPMOD32): Likewise.
19775 (R_RISCV_TLS_DTPMOD64): Likewise.
19776 (R_RISCV_TLS_DTPREL32): Likewise.
19777 (R_RISCV_TLS_DTPREL64): Likewise.
19778 (R_RISCV_TLS_TPREL32): Likewise.
19779 (R_RISCV_TLS_TPREL64): Likewise.
19780 * Makerules (make-link-multidir): Make directories before linking into
19781 them.
19782 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19783 define.
19784 (VDSO_HASH_LINUX_4_15): Likewise.
19785 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19786 in subdirectories of lib.
19787 * nptl/Makefile (/librt.so): Always depend on
19788 "$(shared-thread-library)".
19789
19790 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19791
19792 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19793 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19794 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19795 (___tls_get_addr).
19796 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19797 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19798 "-O2 -march=i686".
19799 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19800 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19801 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19802 * sysdeps/gnu/glob-lstat-compat.c: New file.
19803 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19804 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19805
19806 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19807
19808 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19809 Reserve 16 chars to reloc_addr before calling _itoa_word.
19810
19811 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19812
19813 [BZ #22678]
19814 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19815 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19816
19817 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19818 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19819
19820 * resource/tst-getrlimit.c: Add copyright header.
19821
19822 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19823 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19824
19825 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19826 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19827 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19828 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19829 instead.
19830 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19831 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19832 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19833 RLIM64_INFINITY): Fix values to match the kernel ones.
19834 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19835 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19836 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19837 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19838 getrlimit64@@GLIBC_2_27.
19839 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19840 and setrlimit64.
19841 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19842 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19843 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19844 setrlimit, getrlimit64 and setrlimit64.
19845
19846 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19847
19848 [BZ #22648]
19849 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19850 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19851
19852 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19853
19854 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19855 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19856 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19857
19858 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19859
19860 [BZ #15479]
19861 [BZ #22666]
19862 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19863 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19864
19865 [BZ #15479]
19866 [BZ #22665]
19867 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19868 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19869 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19870 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19871
19872 2018-01-04 Florian Weimer <fweimer@redhat.com>
19873
19874 [BZ #22667]
19875 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19876 Align the stack before calling exit.
19877 * stdlib/tst-makecontext-align.c: New file.
19878 * stdlib/Makefile (tests): Add tst-makecontext-align.
19879
19880 2018-01-04 Florian Weimer <fweimer@redhat.com>
19881
19882 Add support for calling dlvsym from libc.so.
19883 * include/dlfcn.h (__libc_dlvsym): Declare.
19884 * elf/Makefile (tests-static-internal): Add
19885 tst-libc_dlvsym-static.
19886 (tests-internal): Add tst-libc_dlvsym.
19887 (modules-names): Add tst-libc_dlvsym-dso.
19888 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19889 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19890 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19891 object tst-libc_dlvsym-dso.so needs to be built before running
19892 these tests.
19893 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19894 * elf/Versions: Export __libc_dlvsym.
19895 * elf/dl-libc.c (struct do_dlvsym_args): New.
19896 (do_dlvsym, __libc_dlvsym): New functions.
19897 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19898 (_dl_open_hook2): New variable.
19899 (__libc_register_dl_open_hook): Set it.
19900 * elf/tst-libc_dlvsym-dso.c: New file.
19901 * elf/tst-libc_dlvsym-static.c: Likewise.
19902 * elf/tst-libc_dlvsym.c: Likewise.
19903 * elf/tst-libc_dlvsym.h: Likewise.
19904
19905 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19906
19907 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19908 include <sys/mount.h>.
19909
19910 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19911
19912 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19913 Add __NO_MATH_ERRNO__ check.
19914
19915 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19916
19917 * sysdeps/mips/mips32/libm-test-ulps: Update.
19918 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19919
19920 2018-01-02 Florian Weimer <fweimer@redhat.com>
19921
19922 * misc/tst-pselect.c: Add copyright header.
19923
19924 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19925
19926 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19927 comment.
19928 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19929 comment.
19930 (settrlimit): Rename into setrlimit.
19931 (__sttrlimit): Rename into __setrlimit.
19932
19933 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19934 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19935 never defined in that case.
19936
19937 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19938
19939 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19940
19941 * sysdeps/arm/libm-test-ulps: Update.
19942
19943 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19944 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19945
19946 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19947
19948 * NEWS: Add cosf and sincosf to list of optimized functions.
19949
19950 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19951
19952 [BZ #22660]
19953 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19954 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19955 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19956 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19957
19958 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19959
19960 [BZ #22433]
19961 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19962
19963 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19964 making a copy of it.
19965
19966 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19967
19968 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19969 trailing whitespace removed.
19970 * scripts/config.guess: Update to version 2018-01-01.
19971 * scripts/config.sub: Update to version 2018-01-01.
19972 * scripts/move-if-change: Update from gnulib.
19973
19974 * NEWS: Update copyright dates.
19975 * catgets/gencat.c (print_version): Likewise.
19976 * csu/version.c (banner): Likewise.
19977 * debug/catchsegv.sh: Likewise.
19978 * debug/pcprofiledump.c (print_version): Likewise.
19979 * debug/xtrace.sh (do_version): Likewise.
19980 * elf/ldconfig.c (print_version): Likewise.
19981 * elf/ldd.bash.in: Likewise.
19982 * elf/pldd.c (print_version): Likewise.
19983 * elf/sotruss.sh: Likewise.
19984 * elf/sprof.c (print_version): Likewise.
19985 * iconv/iconv_prog.c (print_version): Likewise.
19986 * iconv/iconvconfig.c (print_version): Likewise.
19987 * locale/programs/locale.c (print_version): Likewise.
19988 * locale/programs/localedef.c (print_version): Likewise.
19989 * login/programs/pt_chown.c (print_version): Likewise.
19990 * malloc/memusage.sh (do_version): Likewise.
19991 * malloc/memusagestat.c (print_version): Likewise.
19992 * malloc/mtrace.pl: Likewise.
19993 * manual/libc.texinfo: Likewise.
19994 * nptl/version.c (banner): Likewise.
19995 * nscd/nscd.c (print_version): Likewise.
19996 * nss/getent.c (print_version): Likewise.
19997 * nss/makedb.c (print_version): Likewise.
19998 * posix/getconf.c (main): Likewise.
19999 * scripts/test-installation.pl: Likewise.
20000 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20001
20002 * All files with FSF copyright notices: Update copyright dates
20003 using scripts/update-copyrights.
20004 * locale/programs/charmap-kw.h: Regenerated.
20005 * locale/programs/locfile-kw.h: Likewise.
20006
20007 2017-12-31 Zack Weinberg <zackw@panix.com>
20008
20009 * libio/bits/libio-ldbl.h: Correct check for improper
20010 inclusion. Add own multiple include guard.
20011
20012 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20013 Dmitry V. Levin <ldv@altlinux.org>
20014
20015 [BZ #22625]
20016 CVE-2017-16997
20017 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20018 string token expansion. Check for NULL pointer or empty string possibly
20019 returned by expand_dynamic_string_token.
20020 (decompose_rpath): Check for empty path after dynamic string
20021 token expansion.
20022
20023 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20024
20025 [BZ #22433]
20026 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20027
20028 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20029 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20030 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20031 and PTRACE_SYSCALL.
20032 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20033 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20034 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20035 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20036 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20037 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20038
20039 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20040 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20041 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20042 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20043 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20044 bits/ptrace-shared.h.
20045 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20046 <bits/ptrace-shared.h>.
20047 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20048 __ptrace_peeksiginfo_flags, ptrace): Remove.
20049 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20050 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20051 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20052 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20053 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20054
20055 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20056
20057 [BZ #17804]
20058 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20059 end of the loop. Improve comments.
20060
20061 2017-12-29 Zack Weinberg <zackw@panix.com>
20062
20063 [BZ #22615]
20064 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20065 might be set on success.
20066
20067 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20068
20069 [BZ #22611]
20070 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20071 is unchanged on success.
20072
20073 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20074
20075 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20076 updated.
20077 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20078 expand_dynamic_string_token): Likewise.
20079 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20080 is_path argument.
20081
20082 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20083 contains ':'.
20084
20085 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20086 is set and name contains ':', and all code depending on these checks.
20087
20088 2017-12-24 Zack Weinberg <zackw@panix.com>
20089
20090 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20091 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20092 respectively.
20093 * libio/libio.h: Rename the original version of this file to
20094 libio/bits/libio.h. Error out if not included by stdio.h or the
20095 stub libio.h.
20096 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20097 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20098 if not included by bits/libio.h or the stub _G_config.h.
20099 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20100 sysdeps/unix/sysv/linux/bits. Error out if not included by
20101 bits/libio.h or the stub _G_config.h.
20102 * libio/stdio.h: Include bits/libio.h, not libio.h.
20103 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20104 well as libio.h and _G_config.h.
20105
20106 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20107 * libio/strfile.h, stdio-common/vfscanf.c
20108 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20109 Include stdio.h, not _G_config.h nor libio.h.
20110 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20111 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20112
20113 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20114
20115 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20116
20117 [BZ #22347]
20118 * stdlib/getrandom.c (getrandom): Fix comment.
20119 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20120
20121 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20122
20123 [BZ #21161]
20124 * manual/arith.texi (strtoul): Fix a typo.
20125
20126 [BZ #22596]
20127 * manual/arith.texi (finite): Fix the description of the return
20128 value.
20129
20130 2017-12-22 Eric Blake <ebb9@byu.net>
20131
20132 Avoid gcc warnings on cygwin
20133 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20134 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20135 Avoid unused variable.
20136
20137 2017-12-22 Florian Weimer <fweimer@redhat.com>
20138
20139 * io/Makefile (routines): Add copy_file_range.
20140 (tests): Add tst-copy_file_range.
20141 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20142 * io/Versions (GLIBC_2.27): Export copy_file_range.
20143 * io/copy_file_range-compat.c: New file.
20144 * io/copy_file_range.c: Likewise.
20145 * io/tst-copy_file_range-compat.c: Likewise.
20146 * io/tst-copy_file_range.c: Likewise.
20147 * manual/llio.texi (Copying File Data): New section.
20148 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20149 * support/Makefile (libsupport-routines): Add support-xfstat,
20150 xftruncate, xlseek.
20151 * support/support-xfstat.c: New file.
20152 * support/xftruncate.c: Likewise.
20153 * support/xlseek.c: Likewise.
20154 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20155 * sysdeps/unix/sysv/linux/**.abilist: Update.
20156 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20157
20158 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20159
20160 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20161 disable-multi-arch variant to aarch64-linux-gnu.
20162
20163 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20164
20165 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20166 trailing whitespace removed.
20167 * scripts/config.guess: Update to version 2017-12-17.
20168 * scripts/config.sub: Update to version 2017-11-23.
20169 * scripts/install-sh: Update to version 2017-09-23.17.
20170 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20171
20172 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20173
20174 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20175 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20176 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20177 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20178 * sysdeps/tile/crtn.S: Likewise.
20179 * sysdeps/tile/dl-start.S (_start): Likewise.
20180 * sysdeps/tile/dl-trampoline.S: Likewise.
20181 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20182 * sysdeps/tile/start.S (_start): Likewise.
20183 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20184 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20185 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20186 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20187 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20188 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20189 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20190
20191 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20192 comment.
20193 * sysdeps/tile/preconfigure: Remove tilegx folder.
20194 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20195 * sysdeps/tile/Implies: ... here.
20196 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20197 * sysdeps/tile/Makefile: ... here.
20198 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20199 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20200 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20201 * sysdeps/tile/bits/wordsize.h: ... here.
20202 * sysdeps/tile/tilegx/*: Move to ...
20203 * sysdeps/tile/*: ... here.
20204 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20205 * sysdeps/tile/tilegx32/Implies: ... here.
20206 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20207 * sysdeps/tile/tilegx64/Implies: ... here.
20208 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20209 to ...
20210 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20211 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20212 * sysdeps/unix/sysv/linux/tile/*: ... here.
20213 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20214 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20215 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20216 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20217
20218 * README: Remove tilepro-*-linux-gnu from supported architecture.
20219 * scripts/build-many-glibcs.py: Likewise.
20220 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20221 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20222 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20223 elf_machine_matches_host, elf_machine_dynamic,
20224 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20225 howto, elf_machine_rela): Likewise.
20226 * sysdeps/tile/dl-start.S (_start): Likewise.
20227 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20228 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20229 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20230 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20231 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20232 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20233 Likewise.
20234 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20235 * sysdeps/tile/preconfigure: Likewise.
20236 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20237 POINTER_CHK_GUARD): Likewise.
20238 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20239 * sysdeps/tile/start.S (_start): Likewise.
20240 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20241 Likewise.
20242 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20243 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20244 CMOVNEZ): Remove.
20245 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20246 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20247 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20248 Likewise.
20249 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20250 * sysdeps/tile/tilepro/Implies: Remove file.
20251 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20252 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20253 * sysdeps/tile/tilepro/memchr.c: Likewise.
20254 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20255 * sysdeps/tile/tilepro/memset.c: Likewise.
20256 * sysdeps/tile/tilepro/memusage.h: Likewise.
20257 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20258 * sysdeps/tile/tilepro/strchr.c: Likewise.
20259 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20260 * sysdeps/tile/tilepro/strlen.c: Likewise.
20261 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20262 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20263 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20264 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20265 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20266 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20267 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20268 Likewise.
20269 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20270 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20271 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20272 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20273 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20274 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20275 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20276 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20277 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20278 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20279 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20280 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20281 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20282 tilepro mention in comment.
20283
20284 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20285 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20286 * nptl/pthread_join_common.c: New file: common function used on
20287 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20288 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20289 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20290 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20291 (cleanup): Move definition to pthread_join_common.c.
20292 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20293 Remove superflous checks.
20294 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20295 Likewise.
20296
20297 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20298
20299 * sysdeps/aarch64/libm-test-ulps: Update.
20300
20301 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20302
20303 * sysdeps/aarch64/memset.S (MEMSET): Define.
20304
20305 2017-12-20 Florian Weimer <fweimer@redhat.com>
20306
20307 [BZ #22635]
20308 nptl: Provide full implementation of pthread_self in libc.so.
20309 * nptl/Makefile (routines): Add pthread_self.
20310 (libpthread-routines): Replace pthread_self with
20311 compat-pthread_self.
20312 * nptl/forward.c (pthread_self): Remove.
20313 * nptl/nptl-init.c (pthread_functions): Do not initialize
20314 ptr_pthread_self.
20315 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20316 * nptl/compat-pthread_self.c: New file.
20317 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20318 Remove ptr_pthread_self.
20319
20320 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20321
20322 * posix/regcomp.c: Fix spelling in comments.
20323 * posix/regex.h: Likewise.
20324 * posix/regex_internal.c: Likewise.
20325 * posix/regexec.c: Likewise.
20326
20327 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20328
20329 [BZ #22377]
20330 * math/Makefile [C++] (tests): Add test for iseqsig.
20331 * math/math.h [C++] (iseqsig): New implementation, which does
20332 not rely on __MATH_TG/__builtin_types_compatible_p.
20333 * math/test-math-iseqsig.cc: New file.
20334 * sysdeps/powerpc/powerpc64le/Makefile
20335 (CFLAGS-test-math-iseqsig.cc): New variable.
20336
20337 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20338
20339 * elf/dl-load.c (is_trusted_path): Remove.
20340 (fillin_rpath): Remove check_trusted argument and its use,
20341 all callers changed.
20342
20343 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20344
20345 [BZ #22630]
20346 * Makeconfig (link-pie-before-libc): Replace -pie with
20347 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20348 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20349 (tst-dlopen-aout-no-pie): New.
20350 (LDFLAGS-tst-prelink): Removed.
20351 (tst-prelink-no-pie): New.
20352 (LDFLAGS-tst-main1): Removed.
20353 (tst-main1-no-pie): New.
20354 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20355 (tst-gmon-no-pie): New.
20356
20357 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20358
20359 * manual/install.texi: Document that --enable-static-pie
20360 implies PIE.
20361 * INSTALL: Regenerated.
20362
20363 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20364
20365 [BZ #21309]
20366 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20367 unsigned.
20368
20369 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20370
20371 Revert:
20372
20373 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20374
20375 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20376
20377 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20378
20379 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20380 <errno.h>. Include "eexp.tbl".
20381 (half): New constant.
20382 (one): Likewise.
20383 (__ieee754_exp): Rewrite.
20384 (__slowexp): Remove prototype.
20385 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20386 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20387 * sysdeps/i386/fpu/slowexp.c: Likewise.
20388 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20389 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20390 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20391 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20392 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20393 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20394 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20395 comment.
20396 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20397 (CPPFLAGS-slowexp.c): Remove variable.
20398 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20399 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20400 (CFLAGS-slowexp-fma.c): Remove variable.
20401 (CFLAGS-slowexp-fma4.c): Likewise.
20402 (CFLAGS-slowexp-avx.c): Likewise.
20403 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20404 define as macro.
20405 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20406 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20407 * math/Makefile (type-double-routines): Remove slowexp.
20408 * manual/probes.texi (slowexp_p6): Remove.
20409 (slowexp_p32): Likewise.
20410
20411 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20412
20413 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20414 arithmetic.
20415
20416 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20417
20418 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20419
20420 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20421
20422 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20423
20424 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20425 <errno.h>. Include "eexp.tbl".
20426 (half): New constant.
20427 (one): Likewise.
20428 (__ieee754_exp): Rewrite.
20429 (__slowexp): Remove prototype.
20430 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20431 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20432 * sysdeps/i386/fpu/slowexp.c: Likewise.
20433 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20434 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20435 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20436 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20437 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20438 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20439 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20440 comment.
20441 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20442 (CPPFLAGS-slowexp.c): Remove variable.
20443 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20444 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20445 (CFLAGS-slowexp-fma.c): Remove variable.
20446 (CFLAGS-slowexp-fma4.c): Likewise.
20447 (CFLAGS-slowexp-avx.c): Likewise.
20448 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20449 define as macro.
20450 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20451 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20452 * math/Makefile (type-double-routines): Remove slowexp.
20453 * manual/probes.texi (slowexp_p6): Remove.
20454 (slowexp_p32): Likewise.
20455
20456 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20457 James Clarke <jrtc27@jrtc27.com>
20458
20459 [BZ #22603]
20460 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20461 addition.
20462
20463 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20464
20465 [BZ #22605]
20466 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20467 code.
20468
20469 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20470
20471 [BZ #22563]
20472 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20473 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20474 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20475 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20476 to feature_1.
20477
20478 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20479
20480 [BZ #22563]
20481 * bits/types/__cancel_jmp_buf_tag.h: New file.
20482 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20483 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20484 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20485 * nptl/Makefile (headers): Add
20486 bits/types/__cancel_jmp_buf_tag.h.
20487 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20488 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20489 * sysdeps/nptl/pthread.h: Include
20490 <bits/types/__cancel_jmp_buf_tag.h>.
20491 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20492 __cancel_jmp_buf.
20493 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20494
20495 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20496
20497 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20498 --enable-static-pie variants to x86_64, x32 and i686.
20499
20500 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20501
20502 [BZ #22631]
20503 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20504 argument for attrubutes. All callers changed.
20505 (__inline_mathop1): Likewise. All callers changed.
20506 (__inline_mathop): Likewise. All callers changed.
20507 [__USE_MISC] (scalbn): Use __inline_forward instead of
20508 __inline_forward_c.
20509 [__USE_ISOC99] (scalbln): Likewise.
20510 [__USE_ISOC99] (nearbyint): Likewise.
20511 [__USE_ISOC99] (lrint): Likewise.
20512 [__USE_MISC] (scalbnf): Likewise.
20513 [__USE_ISOC99] (scalblnf): Likewise.
20514 [__USE_ISOC99] (nearbyintf): Likewise.
20515 [__USE_ISOC99] (lrintf): Likewise.
20516 [__USE_MISC] (scalbnl): Likewise.
20517 [__USE_ISOC99] (scalblnl): Likewise.
20518 [__USE_ISOC99] (nearbyintl): Likewise.
20519 [__USE_ISOC99] (lrintl): Likewise.
20520 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20521 __inline_mathop and __m81_defun changed.
20522
20523 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20524 CPU or FPU for ARM hard-float configurations.
20525
20526 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20527
20528 * nptl/tst-attr3.c: Include <libc-diag.h>.
20529 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20530
20531 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20532
20533 * string/tester.c (test_strncat): Also disable -Warray-bounds
20534 warnings for two tests.
20535
20536 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20537
20538 [BZ #22614]
20539 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20540 $(cc-pie-default) == yes.
20541 * config.make.in (cc-pie-default): New.
20542 * configure.ac (libc_cv_pie_default): Renamed to ...
20543 (libc_cv_cc_pie_default): This.
20544 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20545 * configure: Regenerated.
20546
20547 2017-12-18 Florian Weimer <fweimer@redhat.com>
20548
20549 [BZ #20204]
20550 ld.so: Harden dl-libc/libdl hooks.
20551 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20552 (rtld_active): New function.
20553 * dlfcn/dladdr.c (__dladdr): Call it.
20554 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20555 * dlfcn/dlclose.c (__dlcose): Likewise.
20556 * dlfcn/dlerror.c (__dlerror): Likewise.
20557 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20558 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20559 * dlfcn/dlopen.c (__dlopen): Likewise.
20560 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20561 * dlfcn/dlsym.c (__dlsym): Likewise.
20562 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20563 * libio/vtables.c (_IO_vtable_check): Likewise.
20564 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20565 (__libc_dlclose): Likewise.
20566 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20567 assignment.
20568
20569 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20570
20571 [BZ #22446]
20572 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20573 buffers for readlink input and output.
20574
20575 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20576
20577 [BZ #22624]
20578 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20579 inhibit_stack_protector.
20580
20581 [BZ #22624]
20582 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20583 inhibit_stack_protector.
20584
20585 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20586
20587 [BZ #22627]
20588 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20589 code and invocation.
20590
20591 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20592
20593 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20594
20595 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20596
20597 [BZ #22505]
20598 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20599
20600 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20601
20602 * sysdeps/s390/fpu/libm-test-ulps: Update.
20603
20604 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20605
20606 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20607
20608 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20609
20610 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20611 constants to s_sincosf.h file.
20612 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20613 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20614 implementation.
20615 * sysdeps/ieee754/flt-32/s_sincosf.h:
20616 New file.
20617
20618 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20619
20620 [BZ #14681]
20621 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20622 before mtrace.
20623
20624 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20625
20626 [BZ #19574]
20627 * INSTALL: Regenerated.
20628 * Makeconfig (real-static-start-installed-name): New.
20629 (pic-default): Updated for --enable-static-pie.
20630 (pie-default): New for --enable-static-pie.
20631 (default-pie-ldflag): Likewise.
20632 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20633 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20634 Replace $(static-start-installed-name) with
20635 $(real-static-start-installed-name).
20636 (+prectorT): Updated for --enable-static-pie.
20637 (+postctorT): Likewise.
20638 (CFLAGS-.o): Add $(pie-default).
20639 (CFLAGS-.op): Likewise.
20640 * NEWS: Mention --enable-static-pie.
20641 * config.h.in (ENABLE_STATIC_PIE): New.
20642 * configure.ac (--enable-static-pie): New configure option.
20643 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20644 (have-static-pie): Likewise.
20645 Enable static PIE if linker supports --no-dynamic-linker.
20646 (ENABLE_STATIC_PIE): New AC_DEFINE.
20647 (enable-static-pie): New LIBC_CONFIG_VAR.
20648 * configure: Regenerated.
20649 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20650 gr$(start-installed-name) for --enable-static-pie.
20651 (extra-objs): Likewise.
20652 (install-lib): Likewise.
20653 (extra-objs): Add static-reloc.o and static-reloc.os
20654 ($(objpfx)$(start-installed-name)): Also depend on
20655 $(objpfx)static-reloc.o.
20656 ($(objpfx)r$(start-installed-name)): New.
20657 ($(objpfx)g$(start-installed-name)): Also depend on
20658 $(objpfx)static-reloc.os.
20659 ($(objpfx)gr$(start-installed-name)): New.
20660 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20661 in libc.a.
20662 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20663 initimage.
20664 * csu/static-reloc.c: New file.
20665 * elf/Makefile (routines): Add dl-reloc-static-pie.
20666 (elide-routines.os): Likewise.
20667 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20668 (tst-tls1-static-non-pie-no-pie): New.
20669 * elf/dl-reloc-static-pie.c: New file.
20670 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20671 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20672 STATIC_PIE_BOOTSTRAP.
20673 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20674 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20675 (tests-static): Likewise.
20676 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20677 (tst-gmon-static-no-pie): New.
20678 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20679 (CRT-tst-gmon-static-pie): Likewise.
20680 (tst-gmon-static-pie-ENV): Likewise.
20681 (tests-special): Likewise.
20682 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20683 (clean-tst-gmon-static-pie-data): Likewise.
20684 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20685 * gmon/tst-gmon-static-pie.c: New file.
20686 * manual/install.texi: Document --enable-static-pie.
20687 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20688 (_dl_get_dl_main_map): Likewise.
20689 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20690 * sysdeps/x86_64/configure.ac: Likewise.
20691 * sysdeps/i386/configure: Regenerated.
20692 * sysdeps/x86_64/configure: Likewise.
20693 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20694 (ASFLAGS-.op): Likewise.
20695
20696 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20697
20698 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20699 * posix/tst-mmap-offset.c (fname): Use /tmp.
20700 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20701
20702 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20703
20704 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20705
20706 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20707
20708 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20709 errno.
20710
20711 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20712
20713 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20714 --with-float=hard for arm-linux-gnueabihf configurations.
20715
20716 [BZ #14121]
20717 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20718 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20719 ($(mo-installed)): Use $(objpfx)%.mo.
20720 (realclean): Remove rule.
20721
20722 * po/Makefile (linguas): Remove rule and dependencies.
20723 (linguas.mo): Likewise.
20724 (.PHONY): Do not depend on linguas and linguas.mo.
20725 (podir): Remove variable.
20726 (pofiles): Likewise.
20727 [$(pofiles)] (%.po): Remove rule.
20728
20729 * sysdeps/sparc/sparc32/Makefile
20730 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20731 start-of-line whitespace in argument of echo.
20732 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20733 with whitespace. Generate __wrap_.udiv alias.
20734 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20735 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20736 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20737 * sysdeps/sparc/sparc32/urem.S: Likewise.
20738
20739 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20740
20741 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20742 for aligned inputs.
20743
20744 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20745
20746 * benchtests/bench-strcmp.c: Print output in JSON format.
20747
20748 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20749
20750 2017-12-14 Florian Weimer <fweimer@redhat.com>
20751
20752 [BZ #22607]
20753 CVE-2017-1000409
20754 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20755 the expanded path string.
20756
20757 2017-12-14 Florian Weimer <fweimer@redhat.com>
20758
20759 [BZ #22606]
20760 CVE-2017-1000408
20761 * elf/dl-load.c (system_dirs): Update comment.
20762 (nsystem_dirs_len): Use array_length.
20763 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20764
20765 2017-12-14 Florian Weimer <fweimer@redhat.com>
20766
20767 Simplify compiling most of support/ outside of glibc.
20768 * support/check_addrinfo.c: Include <string.h>.
20769 * support/check_dns_packet.c: Likewise.
20770 * support/check_hostent.c: Likewise.
20771 * support/support_can_chroot.c: Include <support/xunistd.h>.
20772 * support/support_format_addrinfo.c: Include <stdlib.h>
20773 * support/support_format_dns_packet.c: Include <stdbool.h>.
20774 * support/support_format_hostent.c: Include <stdlib.h>.
20775 * support/support_format_netent.c: Likewise.
20776 * support/support_write_string.c: Include <support/xunistd.h>.
20777 * support/xdlfcn.c: Include <stddef.h>.
20778
20779 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20780
20781 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20782
20783 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20784 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20785
20786 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20787 (sysdeps_routines): Add memset-niagara7.
20788 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20789 Likewise.
20790 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20791 file.
20792 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20793 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20794 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20795 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20796 Add niagara7 option.
20797 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20798 memset.
20799
20800 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20801 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20802 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20803 Likewise.
20804 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20805 New file.
20806 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20807 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20808 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20809 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20810 and __memmove_niagara7.
20811 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20812 Add niagara7 option.
20813 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20814 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20815 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20816 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20817 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20818
20819 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20820
20821 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20822 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20823 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20824 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20825
20826 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20827 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20828 _dl_sparc_cap_flags array.
20829 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20830
20831 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20832
20833 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20834 time whenever possible.
20835
20836 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20837
20838 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20839 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20840
20841 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20842
20843 * soft-fp/fmadf4.c: Move to ....
20844 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20845 * soft-fp/fmasf4.c: Move to ....
20846 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20847 * soft-fp/fmatf4.c: Move to ....
20848 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20849 * sysdeps/ieee754/soft-fp/Makefile: New file.
20850 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20851 * sysdeps/arm/preconfigure: Regenerated.
20852 * sysdeps/arm/nofpu/Implies: New file.
20853 * sysdeps/arm/s_fma.c: Remove file.
20854 * sysdeps/arm/s_fmaf.c: Likewise.
20855 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20856 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20857 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20858 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20859 * sysdeps/microblaze/s_fma.c: Remove file.
20860 * sysdeps/microblaze/s_fmaf.c: Likewise.
20861 * sysdeps/mips/mips32/nofpu/Implies: New file.
20862 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20863 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20864 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20865 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20866 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20867 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20868 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20869 implementation.
20870 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20871 * sysdeps/nios2/s_fma.c: Remove file.
20872 * sysdeps/nios2/s_fmaf.c: Likewise.
20873 * sysdeps/sh/nofpu/Implies: New file.
20874 * sysdeps/sh/s_fma.c: Remove file.
20875 * sysdeps/sh/s_fmaf.c: Likewise.
20876 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20877 * sysdeps/tile/s_fma.c: Remove file.
20878 * sysdeps/tile/s_fmaf.c: Likewise.
20879
20880 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20881
20882 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20883 Add s_cosf-sse2 and s_cosf-fma.
20884 (CFLAGS-s_cosf-fma.c): New.
20885 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20886 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20887 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20888
20889 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20890
20891 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20892
20893 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20894
20895 * libio/Makefile (tests): Add tst-bz22415.
20896 (tst-bz22415-ENV): New rule.
20897 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20898 (tests-special): Add tst-bz22415-mem.out.
20899 ($(objpfx)tst-bz22415-mem.out): New rule.
20900 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20901 in case of a successful seek operation.
20902 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20903 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20904 buffer is required.
20905 * libio/tst-bz22415.c: New test.
20906
20907 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20908
20909 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20910
20911 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20912 __IPC_64 to 0 to avoid IPC_64 being set.
20913
20914 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20915
20916 [BZ #22593]
20917 * math/bits/mathcalls.h (nextafter): Remove const.
20918 (nexttoward): Likewise.
20919
20920 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20921
20922 * configure.ac (--with-fp): Remove configure option.
20923 (with_fp_cond): New variable.
20924 (libc_cv_with_fp): New configure test. Use this variable instead
20925 of with_fp.
20926 * configure: Regenerated.
20927 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20928 * manual/install.texi (Configuring and compiling): Remove
20929 --without-fp.
20930 * INSTALL: Regenerated.
20931 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20932 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20933 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20934 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20935 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20936 use --without-fp to configure glibc.
20937
20938 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20939
20940 * manual/locale.texi (nl_langinfo): Fix a typo.
20941
20942 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20943
20944 [BZ #22588]
20945 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20946
20947 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20948
20949 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20950 (CFLAGS-argp-parse.c): Likewise.
20951 (CFLAGS-argp-fmtstream.c): Likewise.
20952 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20953 (CPPFLAGS-sha512-crypt.c): Likewise.
20954 (CPPFLAGS-md5-crypt.c): Likewise.
20955 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20956 (CFLAGS-stack_chk_fail_local.c): Likewise.
20957 (CFLAGS-backtrace.c): Likewise.
20958 (CFLAGS-sprintf_chk.c): Likewise.
20959 (CFLAGS-snprintf_chk.c): Likewise.
20960 (CFLAGS-vsprintf_chk.c): Likewise.
20961 (CFLAGS-vsnprintf_chk.c): Likewise.
20962 (CFLAGS-asprintf_chk.c): Likewise.
20963 (CFLAGS-vasprintf_chk.c): Likewise.
20964 (CFLAGS-obprintf_chk.c): Likewise.
20965 (CFLAGS-dprintf_chk.c): Likewise.
20966 (CFLAGS-vdprintf_chk.c): Likewise.
20967 (CFLAGS-printf_chk.c): Likewise.
20968 (CFLAGS-fprintf_chk.c): Likewise.
20969 (CFLAGS-vprintf_chk.c): Likewise.
20970 (CFLAGS-vfprintf_chk.c): Likewise.
20971 (CFLAGS-gets_chk.c): Likewise.
20972 (CFLAGS-fgets_chk.c): Likewise.
20973 (CFLAGS-fgets_u_chk.c): Likewise.
20974 (CFLAGS-fread_chk.c): Likewise.
20975 (CFLAGS-fread_u_chk.c): Likewise.
20976 (CFLAGS-swprintf_chk.c): Likewise.
20977 (CFLAGS-vswprintf_chk.c): Likewise.
20978 (CFLAGS-wprintf_chk.c): Likewise.
20979 (CFLAGS-fwprintf_chk.c): Likewise.
20980 (CFLAGS-vwprintf_chk.c): Likewise.
20981 (CFLAGS-vfwprintf_chk.c): Likewise.
20982 (CFLAGS-fgetws_chk.c): Likewise.
20983 (CFLAGS-fgetws_u_chk.c): Likewise.
20984 (CFLAGS-read_chk.c): Likewise.
20985 (CFLAGS-pread_chk.c): Likewise.
20986 (CFLAGS-pread64_chk.c): Likewise.
20987 (CFLAGS-recv_chk.c): Likewise.
20988 (CFLAGS-recvfrom_chk.c): Likewise.
20989 (CFLAGS-tst-longjmp_chk.c): Likewise.
20990 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20991 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20992 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20993 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20994 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20995 (CFLAGS-tst-chk1.c): Likewise.
20996 (CFLAGS-tst-chk2.c): Likewise.
20997 (CFLAGS-tst-chk3.c): Likewise.
20998 (CFLAGS-tst-chk4.cc): Likewise.
20999 (CFLAGS-tst-chk5.cc): Likewise.
21000 (CFLAGS-tst-chk6.cc): Likewise.
21001 (CFLAGS-tst-lfschk1.c): Likewise.
21002 (CFLAGS-tst-lfschk2.c): Likewise.
21003 (CFLAGS-tst-lfschk3.c): Likewise.
21004 (CFLAGS-tst-lfschk4.cc): Likewise.
21005 (CFLAGS-tst-lfschk5.cc): Likewise.
21006 (CFLAGS-tst-lfschk6.cc): Likewise.
21007 (CFLAGS-tst-ssp-1.c): Likewise.
21008 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21009 (CFLAGS-scandir64.c): Likewise.
21010 (CFLAGS-scandir-tail.c): Likewise.
21011 (CFLAGS-scandir64-tail.c): Likewise.
21012 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21013 (CFLAGS-dl-tunables.c): Likewise.
21014 (CFLAGS-dl-runtime.c): Likewise.
21015 (CFLAGS-dl-lookup.c): Likewise.
21016 (CFLAGS-dl-iterate-phdr.c): Likewise.
21017 (CFLAGS-vismain.c): Likewise.
21018 (CFLAGS-tst-linkall-static.c): Likewise.
21019 (CFLAGS-tst-linkall-static.c): Likewise.
21020 (CPPFLAGS-dl-load.c): Likewise.
21021 (CFLAGS-ldconfig.c): Likewise.
21022 (CFLAGS-dl-cache.c): Likewise.
21023 (CFLAGS-cache.c): Likewise.
21024 (CFLAGS-rtld.c): Likewise.
21025 (CFLAGS-multiload.c): Likewise.
21026 (CFLAGS-filtmod1.c): Likewise.
21027 (CFLAGS-tst-align.c): Likewise.
21028 (CFLAGS-tst-align2.c): Likewise.
21029 (CFLAGS-tst-alignmod.c): Likewise.
21030 (CFLAGS-tst-alignmod2.c): Likewise.
21031 (CPPFLAGS-tst-execstack.c): Likewise.
21032 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21033 (CFLAGS-tst-latepthreadmod.c): Likewise.
21034 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21035 (CFLAGS-getgrnam_r.c): Likewise.
21036 (CFLAGS-getgrent_r.c): Likewise.
21037 (CFLAGS-getgrent.c): Likewise.
21038 (CFLAGS-fgetgrent.c): Likewise.
21039 (CFLAGS-fgetgrent_r.c): Likewise.
21040 (CFLAGS-putgrent.c): Likewise.
21041 (CFLAGS-initgroups.c): Likewise.
21042 (CFLAGS-getgrgid.c): Likewise.
21043 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21044 (CFLAGS-getsgent.c): Likewise.
21045 (CFLAGS-fgetsgent.c): Likewise.
21046 (CFLAGS-fgetsgent_r.c): Likewise.
21047 (CFLAGS-putsgent.c): Likewise.
21048 (CFLAGS-getsgnam.c): Likewise.
21049 (CFLAGS-getsgnam_r.c): Likewise.
21050 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21051 (CFLAGS-iconv_charmap.c): Likewise.
21052 (CFLAGS-dummy-repertoire.c): Likewise.
21053 (CFLAGS-charmap.c): Likewise.
21054 (CFLAGS-linereader.c): Likewise.
21055 (CFLAGS-simple-hash.c): Likewise.
21056 (CFLAGS-gconv_conf.c): Likewise.
21057 (CFLAGS-iconvconfig.c): Likewise.
21058 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21059 (CFLAGS-gethstbyad.c): Likewise.
21060 (CFLAGS-gethstbynm_r.c): Likewise.
21061 (CFLAGS-gethstbynm.c): Likewise.
21062 (CFLAGS-gethstbynm2_r.c): Likewise.
21063 (CFLAGS-gethstbynm2.c): Likewise.
21064 (CFLAGS-gethstent_r.c): Likewise.
21065 (CFLAGS-gethstent.c): Likewise.
21066 (CFLAGS-rcmd.c): Likewise.
21067 (CFLAGS-getnetbynm_r.c): Likewise.
21068 (CFLAGS-getnetbynm.c): Likewise.
21069 (CFLAGS-getnetbyad_r.c): Likewise.
21070 (CFLAGS-getnetbyad.c): Likewise.
21071 (CFLAGS-getnetent_r.c): Likewise.
21072 (CFLAGS-getnetent.c): Likewise.
21073 (CFLAGS-getaliasent_r.c): Likewise.
21074 (CFLAGS-getaliasent.c): Likewise.
21075 (CFLAGS-getrpcent_r.c): Likewise.
21076 (CFLAGS-getrpcent.c): Likewise.
21077 (CFLAGS-getservent_r.c): Likewise.
21078 (CFLAGS-getservent.c): Likewise.
21079 (CFLAGS-getprtent_r.c): Likewise.
21080 (CFLAGS-getprtent.c): Likewise.
21081 (CFLAGS-either_ntoh.c): Likewise.
21082 (CFLAGS-either_hton.c): Likewise.
21083 (CFLAGS-getnetgrent.c): Likewise.
21084 (CFLAGS-getnetgrent_r.c): Likewise.
21085 (CFLAGS-tst-checks-posix.c): Likewise.
21086 (CFLAGS-tst-sockaddr.c): Likewise.
21087 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21088 (CFLAGS-tst-translit.c): Likewise.
21089 (CFLAGS-tst-gettext2.c): Likewise.
21090 (CFLAGS-tst-codeset.c): Likewise.
21091 (CFLAGS-tst-gettext3.c): Likewise.
21092 (CFLAGS-tst-gettext4.c): Likewise.
21093 (CFLAGS-tst-gettext5.c): Likewise.
21094 (CFLAGS-tst-gettext6.c): Likewise.
21095 * io/Makefile (CFLAGS-open.c): Likewise.
21096 (CFLAGS-open64.c): Likewise.
21097 (CFLAGS-creat.c): Likewise.
21098 (CFLAGS-creat64.c): Likewise.
21099 (CFLAGS-fcntl.c): Likewise.
21100 (CFLAGS-poll.c): Likewise.
21101 (CFLAGS-ppoll.c): Likewise.
21102 (CFLAGS-lockf.c): Likewise.
21103 (CFLAGS-statfs.c): Likewise.
21104 (CFLAGS-fstatfs.c): Likewise.
21105 (CFLAGS-statvfs.c): Likewise.
21106 (CFLAGS-fstatvfs.c): Likewise.
21107 (CFLAGS-fts.c): Likewise.
21108 (CFLAGS-fts64.c): Likewise.
21109 (CFLAGS-ftw.c): Likewise.
21110 (CFLAGS-ftw64.c): Likewise.
21111 (CFLAGS-lockf.c): Likewise.
21112 (CFLAGS-posix_fallocate.c): Likewise.
21113 (CFLAGS-posix_fallocate64.c): Likewise.
21114 (CFLAGS-fallocate.c): Likewise.
21115 (CFLAGS-fallocate64.c): Likewise.
21116 (CFLAGS-read.c): Likewise.
21117 (CFLAGS-write.c): Likewise.
21118 (CFLAGS-test-stat.c): Likewise.
21119 (CFLAGS-test-lfs.c): Likewise.
21120 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21121 (CFLAGS-fputc.c): Likewise.
21122 (CFLAGS-fputwc.c): Likewise.
21123 (CFLAGS-freopen64.c): Likewise.
21124 (CFLAGS-freopen.c): Likewise.
21125 (CFLAGS-fseek.c): Likewise.
21126 (CFLAGS-fseeko64.c): Likewise.
21127 (CFLAGS-fseeko.c): Likewise.
21128 (CFLAGS-ftello64.c): Likewise.
21129 (CFLAGS-ftello.c): Likewise.
21130 (CFLAGS-fwide.c): Likewise.
21131 (CFLAGS-genops.c): Likewise.
21132 (CFLAGS-getc.c): Likewise.
21133 (CFLAGS-getchar.c): Likewise.
21134 (CFLAGS-getwc.c): Likewise.
21135 (CFLAGS-getwchar.c): Likewise.
21136 (CFLAGS-iofclose.c): Likewise.
21137 (CFLAGS-iofflush.c): Likewise.
21138 (CFLAGS-iofgetpos64.c): Likewise.
21139 (CFLAGS-iofgetpos.c): Likewise.
21140 (CFLAGS-iofgets.c): Likewise.
21141 (CFLAGS-iofgetws.c): Likewise.
21142 (CFLAGS-iofputs.c): Likewise.
21143 (CFLAGS-iofputws.c): Likewise.
21144 (CFLAGS-iofread.c): Likewise.
21145 (CFLAGS-iofsetpos64.c): Likewise.
21146 (CFLAGS-iofsetpos.c): Likewise.
21147 (CFLAGS-ioftell.c): Likewise.
21148 (CFLAGS-iofwrite.c): Likewise.
21149 (CFLAGS-iogetdelim.c): Likewise.
21150 (CFLAGS-iogetline.c): Likewise.
21151 (CFLAGS-iogets.c): Likewise.
21152 (CFLAGS-iogetwline.c): Likewise.
21153 (CFLAGS-ioputs.c): Likewise.
21154 (CFLAGS-ioseekoff.c): Likewise.
21155 (CFLAGS-ioseekpos.c): Likewise.
21156 (CFLAGS-iosetbuffer.c): Likewise.
21157 (CFLAGS-iosetvbuf.c): Likewise.
21158 (CFLAGS-ioungetc.c): Likewise.
21159 (CFLAGS-ioungetwc.c): Likewise.
21160 (CFLAGS-oldfileops.c): Likewise.
21161 (CFLAGS-oldiofclose.c): Likewise.
21162 (CFLAGS-oldiofgetpos64.c): Likewise.
21163 (CFLAGS-oldiofgetpos.c): Likewise.
21164 (CFLAGS-oldiofsetpos64.c): Likewise.
21165 (CFLAGS-oldiofsetpos.c): Likewise.
21166 (CFLAGS-peekc.c): Likewise.
21167 (CFLAGS-putc.c): Likewise.
21168 (CFLAGS-putchar.c): Likewise.
21169 (CFLAGS-putwc.c): Likewise.
21170 (CFLAGS-putwchar.c): Likewise.
21171 (CFLAGS-rewind.c): Likewise.
21172 (CFLAGS-wfileops.c): Likewise.
21173 (CFLAGS-wgenops.c): Likewise.
21174 (CFLAGS-oldiofopen.c): Likewise.
21175 (CFLAGS-iofopen.c): Likewise.
21176 (CFLAGS-iofopen64.c): Likewise.
21177 (CFLAGS-oldtmpfile.c): Likewise.
21178 (CFLAGS-tst_putwc.c): Likewise.
21179 * locale/Makefile (CFLAGS-md5.c): Likewise.
21180 (CFLAGS-charmap.c): Likewise.
21181 (CFLAGS-locfile.c): Likewise.
21182 (CFLAGS-charmap-dir.c): Likewise.
21183 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21184 (CFLAGS-getpt.c): Likewise.
21185 (CFLAGS-pt_chown.c): Likewise.
21186 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21187 (CFLAGS-obstack.c): Likewise.
21188 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21189 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21190 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21191 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21192 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21193 (CFLAGS-test-tgmath.c): Likewise.
21194 (CFLAGS-test-tgmath2.c): Likewise.
21195 (CFLAGS-test-tgmath-ret.c): Likewise.
21196 (CFLAGS-test-powl.c): Likewise.
21197 (CFLAGS-test-snan.c): Likewise.
21198 (CFLAGS-test-signgam-finite.c): Likewise.
21199 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21200 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21201 (CFLAGS-test-signgam-uchar.c): Likewise.
21202 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21203 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21204 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21205 (CFLAGS-test-signgam-uint.c): Likewise.
21206 (CFLAGS-test-signgam-uint-init.c): Likewise.
21207 (CFLAGS-test-signgam-uint-static.c): Likewise.
21208 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21209 (CFLAGS-test-signgam-ullong.c): Likewise.
21210 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21211 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21212 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21213 (CFLAGS-test-math-cxx11.cc): Likewise.
21214 (CFLAGS-test-math-isinff.cc): Likewise.
21215 (CFLAGS-test-math-iszero.cc): Likewise.
21216 (CFLAGS-test-math-issignaling.cc): Likewise.
21217 (CFLAGS-test-math-iscanonical.cc): Likewise.
21218 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21219 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21220 (CFLAGS-test-flt-eval-method.c): Likewise.
21221 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21222 (CFLAGS-test-finite-macros.c): Likewise.
21223 * misc/Makefile (CFLAGS-select.c): Likewise.
21224 (CFLAGS-tsearch.c): Likewise.
21225 (CFLAGS-lsearch.c): Likewise.
21226 (CFLAGS-pselect.c): Likewise.
21227 (CFLAGS-readv.c): Likewise.
21228 (CFLAGS-writev.c): Likewise.
21229 (CFLAGS-preadv.c): Likewise.
21230 (CFLAGS-preadv64.c): Likewise.
21231 (CFLAGS-pwritev.c): Likewise.
21232 (CFLAGS-pwritev64.c): Likewise.
21233 (CFLAGS-preadv2.c): Likewise.
21234 (CFLAGS-preadv64v2.c): Likewise.
21235 (CFLAGS-pwritev2.c): Likewise.
21236 (CFLAGS-pwritev64v2.c): Likewise.
21237 (CFLAGS-usleep.c): Likewise.
21238 (CFLAGS-syslog.c): Likewise.
21239 (CFLAGS-error.c): Likewise.
21240 (CFLAGS-getpass.c): Likewise.
21241 (CFLAGS-mkstemp.c): Likewise.
21242 (CFLAGS-mkstemp64.c): Likewise.
21243 (CFLAGS-getsysstats.c): Likewise.
21244 (CFLAGS-getusershell.c): Likewise.
21245 (CFLAGS-err.c): Likewise.
21246 (CFLAGS-tst-tsearch.c): Likewise.
21247 (CFLAGS-msync.c): Likewise.
21248 (CFLAGS-fdatasync.c): Likewise.
21249 (CFLAGS-fsync.c): Likewise.
21250 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21251 (CFLAGS-unwind.c): Likewise.
21252 (CFLAGS-unwind-forcedunwind.c): Likewise.
21253 (CFLAGS-pthread_cancel.c): Likewise.
21254 (CFLAGS-pthread_setcancelstate.c): Likewise.
21255 (CFLAGS-pthread_setcanceltype.c): Likewise.
21256 (CFLAGS-cancellation.c): Likewise.
21257 (CFLAGS-libc-cancellation.c): Likewise.
21258 (CFLAGS-pthread_exit.c): Likewise.
21259 (CFLAGS-forward.c): Likewise.
21260 (CFLAGS-pthread_testcancel.c): Likewise.
21261 (CFLAGS-pthread_join.c): Likewise.
21262 (CFLAGS-pthread_timedjoin.c): Likewise.
21263 (CFLAGS-pthread_once.c): Likewise.
21264 (CFLAGS-pthread_cond_wait.c): Likewise.
21265 (CFLAGS-sem_wait.c): Likewise.
21266 (CFLAGS-sem_timedwait.c): Likewise.
21267 (CFLAGS-fcntl.c): Likewise.
21268 (CFLAGS-lockf.c): Likewise.
21269 (CFLAGS-pread.c): Likewise.
21270 (CFLAGS-pread64.c): Likewise.
21271 (CFLAGS-pwrite.c): Likewise.
21272 (CFLAGS-pwrite64.c): Likewise.
21273 (CFLAGS-wait.c): Likewise.
21274 (CFLAGS-waitpid.c): Likewise.
21275 (CFLAGS-sigwait.c): Likewise.
21276 (CFLAGS-msgrcv.c): Likewise.
21277 (CFLAGS-msgsnd.c): Likewise.
21278 (CFLAGS-tcdrain.c): Likewise.
21279 (CFLAGS-open.c): Likewise.
21280 (CFLAGS-open64.c): Likewise.
21281 (CFLAGS-pause.c): Likewise.
21282 (CFLAGS-recv.c): Likewise.
21283 (CFLAGS-send.c): Likewise.
21284 (CFLAGS-accept.c): Likewise.
21285 (CFLAGS-sendto.c): Likewise.
21286 (CFLAGS-connect.c): Likewise.
21287 (CFLAGS-recvfrom.c): Likewise.
21288 (CFLAGS-recvmsg.c): Likewise.
21289 (CFLAGS-sendmsg.c): Likewise.
21290 (CFLAGS-close.c): Likewise.
21291 (CFLAGS-read.c): Likewise.
21292 (CFLAGS-write.c): Likewise.
21293 (CFLAGS-nanosleep.c): Likewise.
21294 (CFLAGS-sigsuspend.c): Likewise.
21295 (CFLAGS-msync.c): Likewise.
21296 (CFLAGS-fdatasync.c): Likewise.
21297 (CFLAGS-fsync.c): Likewise.
21298 (CFLAGS-pt-system.c): Likewise.
21299 (CFLAGS-tst-cleanup2.c): Likewise.
21300 (CFLAGS-tst-cleanupx2.c): Likewise.
21301 (CFLAGS-flockfile.c): Likewise.
21302 (CFLAGS-ftrylockfile.c): Likewise.
21303 (CFLAGS-funlockfile.c): Likewise.
21304 (CFLAGS-tst-initializers1.c): Likewise.
21305 (CFLAGS-tst-initializers1-c89.c): Likewise.
21306 (CFLAGS-tst-initializers1-c99.c): Likewise.
21307 (CFLAGS-tst-initializers1-c11.c): Likewise.
21308 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21309 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21310 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21311 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21312 (CFLAGS-nscd_getgr_r.c): Likewise.
21313 (CFLAGS-nscd_gethst_r.c): Likewise.
21314 (CFLAGS-nscd_getai.c): Likewise.
21315 (CFLAGS-nscd_initgroups.c): Likewise.
21316 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21317 (CFLAGS-pause.c): Likewise.
21318 (CFLAGS-pread.c): Likewise.
21319 (CFLAGS-pread64.c): Likewise.
21320 (CFLAGS-pwrite.c): Likewise.
21321 (CFLAGS-pwrite64.c): Likewise.
21322 (CFLAGS-sleep.c): Likewise.
21323 (CFLAGS-wait.c): Likewise.
21324 (CFLAGS-waitid.c): Likewise.
21325 (CFLAGS-waitpid.c): Likewise.
21326 (CFLAGS-getopt.c): Likewise.
21327 (CFLAGS-wordexp.c): Likewise.
21328 (CFLAGS-sysconf.c): Likewise.
21329 (CFLAGS-pathconf.c): Likewise.
21330 (CFLAGS-fpathconf.c): Likewise.
21331 (CFLAGS-spawn.c): Likewise.
21332 (CFLAGS-spawnp.c): Likewise.
21333 (CFLAGS-spawni.c): Likewise.
21334 (CFLAGS-glob.c): Likewise.
21335 (CFLAGS-glob64.c): Likewise.
21336 (CFLAGS-getconf.c): Likewise.
21337 (CFLAGS-nanosleep.c): Likewise.
21338 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21339 (CFLAGS-getpwent.c): Likewise.
21340 (CFLAGS-getpw.c): Likewise.
21341 (CFLAGS-fgetpwent_r.c): Likewise.
21342 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21343 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21344 (CFLAGS-mq_timedreceive.c): Likewise.
21345 (CFLAGS-mq_timedsend.c): Likewise.
21346 (CFLAGS-clock_nanosleep.c): Likewise.
21347 (CFLAGS-librt-cancellation.c): Likewise.
21348 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21349 (CFLAGS-getspent.c): Likewise.
21350 (CFLAGS-fgetspent.c): Likewise.
21351 (CFLAGS-fgetspent_r.c): Likewise.
21352 (CFLAGS-putspent.c): Likewise.
21353 (CFLAGS-getspnam.c): Likewise.
21354 (CFLAGS-getspnam_r.c): Likewise.
21355 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21356 (CFLAGS-sigsuspend.c): Likewise.
21357 (CFLAGS-sigtimedwait.c): Likewise.
21358 (CFLAGS-sigwait.c): Likewise.
21359 (CFLAGS-sigwaitinfo.c): Likewise.
21360 (CFLAGS-sigreturn.c): Likewise.
21361 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21362 (CFLAGS-vfwprintf.c): Likewise.
21363 (CFLAGS-tmpfile.c): Likewise.
21364 (CFLAGS-tmpfile64.c): Likewise.
21365 (CFLAGS-tempname.c): Likewise.
21366 (CFLAGS-psignal.c): Likewise.
21367 (CFLAGS-vprintf.c): Likewise.
21368 (CFLAGS-cuserid.c): Likewise.
21369 (CFLAGS-errlist.c): Likewise.
21370 (CFLAGS-siglist.c): Likewise.
21371 (CFLAGS-scanf15.c): Likewise.
21372 (CFLAGS-scanf17.c): Likewise.
21373 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21374 (CFLAGS-msort.c): Likewise.
21375 (CFLAGS-qsort.c): Likewise.
21376 (CFLAGS-system.c): Likewise.
21377 (CFLAGS-fmtmsg.c): Likewise.
21378 (CFLAGS-strfmon.c): Likewise.
21379 (CFLAGS-strfmon_l.c): Likewise.
21380 (CFLAGS-strfromd.c): Likewise.
21381 (CFLAGS-strfromf.c): Likewise.
21382 (CFLAGS-strfroml.c): Likewise.
21383 (CFLAGS-tst-bsearch.c): Likewise.
21384 (CFLAGS-tst-qsort.c): Likewise.
21385 (CFLAGS-tst-makecontext2.c): Likewise.
21386 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21387 (CFLAGS-xnlm_prot.c): Likewise.
21388 (CFLAGS-xrstat.c): Likewise.
21389 (CFLAGS-xyppasswd.c): Likewise.
21390 (CFLAGS-xklm_prot.c): Likewise.
21391 (CFLAGS-xrex.c): Likewise.
21392 (CFLAGS-xsm_inter.c): Likewise.
21393 (CFLAGS-xmount.c): Likewise.
21394 (CFLAGS-xrusers.c): Likewise.
21395 (CFLAGS-xspray.c): Likewise.
21396 (CFLAGS-xnfs_prot.c): Likewise.
21397 (CFLAGS-xrquota.c): Likewise.
21398 (CFLAGS-xkey_prot.c): Likewise.
21399 (CFLAGS-auth_unix.c): Likewise.
21400 (CFLAGS-key_call.c): Likewise.
21401 (CFLAGS-pmap_rmt.c): Likewise.
21402 (CFLAGS-clnt_perr.c): Likewise.
21403 (CFLAGS-openchild.c): Likewise.
21404 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21405 (CFLAGS-msgsnd.c): Likewise.
21406 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21407 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21408 (CFLAGS-tzset.c): Likewise.
21409 (CFLAGS-getdate.c): Likewise.
21410 (CFLAGS-test_time.c): Likewise.
21411 (CPPFLAGS-tst-tzname.c): Likewise.
21412 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21413 (CFLAGS-zic.c): Likewise.
21414 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21415 (CFLAGS-wcswidth.c): Likewise.
21416 (CFLAGS-wcstol.c): Likewise.
21417 (CFLAGS-wcstoul.c): Likewise.
21418 (CFLAGS-wcstoll.c): Likewise.
21419 (CFLAGS-wcstoull.c): Likewise.
21420 (CFLAGS-wcstod.c): Likewise.
21421 (CFLAGS-wcstold.c): Likewise.
21422 (CFLAGS-wcstof128.c): Likewise.
21423 (CFLAGS-wcstof.c): Likewise.
21424 (CFLAGS-wcstol_l.c): Likewise.
21425 (CFLAGS-wcstoul_l.c): Likewise.
21426 (CFLAGS-wcstoll_l.c): Likewise.
21427 (CFLAGS-wcstoull_l.c): Likewise.
21428 (CFLAGS-wcstod_l.c): Likewise.
21429 (CFLAGS-wcstold_l.c): Likewise.
21430 (CFLAGS-wcstof128_l.c): Likewise.
21431 (CFLAGS-wcstof_l.c): Likewise.
21432 (CPPFLAGS-tst-wchar-h.c): Likewise.
21433 (CPPFLAGS-wcstold_l.c): Likewise.
21434
21435 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21436
21437 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21438
21439 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21440 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21441
21442 * manual/tunables.texi (Hardware Capability Tunables): Document
21443 glibc.tune.cached_memopt.
21444 * sysdeps/powerpc/cpu-features.c: New file.
21445 * sysdeps/powerpc/cpu-features.h: New file.
21446 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21447 _dl_powerpc_cpu_features.
21448 * sysdeps/powerpc/dl-tunables.list: New file.
21449 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21450 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21451 (INIT_ARCH): Initialize use_aligned_memopt.
21452 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21453 IS_IN(rtld))]: Restrict dl_platform_init availability and
21454 initialize CPU features used by tunables.
21455 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21456 Add memcpy-power8-cached.
21457 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21458 __memcpy_power8_cached.
21459 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21460 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21461 New file.
21462
21463 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21464
21465 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21466 (CFLAGS-noinl-tester.c): Likewise.
21467 (CFLAGS-tst-strlen.c): Likewise.
21468 (CFLAGS-stratcliff.c): Likewise.
21469 (CFLAGS-test-ffs.c): Likewise.
21470 (CFLAGS-tst-inlcall.c): Likewise.
21471 (CFLAGS-tst-xbzero-opt.c): Likewise.
21472 (CFLAGS-memcpy.c): Likewise.
21473 (CFLAGS-wordcopy.c): Likewise.
21474
21475 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21476
21477 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21478 Store r15 on stack and add cfi rule.
21479 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21480 Likewise.
21481
21482 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21483
21484 [BZ #22577]
21485 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21486 call.
21487
21488 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21489
21490 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21491 Add s_sinf-sse2 and s_sinf-fma.
21492 (CFLAGS-s_sinf-fma.c): New.
21493 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21494 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21495 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21496
21497 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21498
21499 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21500
21501 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21502
21503 [BZ #22568]
21504 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21505 part of result to imaginary part of argument if it is zero and the
21506 real part of the argument is not finite.
21507 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21508 of result to real part of argument if it is zero and the imaginary
21509 part of the argument is not finite.
21510
21511 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21512
21513 [BZ #22524]
21514 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21515 and to the list of locales to be built for testing.
21516 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21517 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21518 and build the collation rules upon that.
21519
21520 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21521
21522 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21523 * manual/math.texi (Mathematics): Document support for _Float32.
21524 * math/Makefile (test-types): Add float32.
21525 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21526 * stdlib/Versions (GLIBC_2.27): Likewise.
21527 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21528 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21529 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21530 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21531 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21532 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21533 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21534 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21535 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21536 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21537 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21538 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21539 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21540 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21541 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21542 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21543 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21544 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21545 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21546 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21547 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21548 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21549 Likewise.
21550 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21551 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21552 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21553 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21554 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21556 Likewise.
21557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21558 Likewise.
21559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21560 Likewise.
21561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21562 Likewise.
21563
21564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21565 Likewise.
21566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21567 Likewise.
21568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21569 Likewise.
21570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21571 Likewise.
21572 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21573 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21574 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21575 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21576 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21577 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21578 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21579 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21580 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21581 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21582 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21583 Likewise.
21584 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21585 Likewise.
21586 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21587 Likewise.
21588 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21589 Likewise.
21590 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21591 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21592 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21593 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21594 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21595 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21596 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21597 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21598
21599 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21600
21601 * stdlib/strtof.c: Include <bits/floatn.h>
21602 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21603 and later undefine as macro. Define as weak alias if
21604 [!USE_WIDE_CHAR].
21605 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21606 and later undefine as macro. Define as weak alias if
21607 [USE_WIDE_CHAR].
21608 * stdlib/strtof_l.c: Include <bits/floatn.h>
21609 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21610 and later undefine as macro. Define as weak alias if
21611 [!USE_WIDE_CHAR].
21612 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21613 and later undefine as macro. Define as weak alias if
21614 [USE_WIDE_CHAR].
21615
21616 * stdlib/strfromf.c: Include <bits/floatn.h>.
21617 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21618 and later undefine as macro and define as weak alias.
21619
21620 * math/test-float32.h: New file.
21621
21622 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21623 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21624 (libm_alias_float_other_r): Create f32 alias.
21625 (libm_alias_float_r): Use semicolon before call to
21626 libm_alias_float_other_r.
21627
21628 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21629 second argument to libm_alias_float_other.
21630 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21631 second argument to libm_alias_float_other.
21632 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21633 argument to libm_alias_float_other.
21634
21635 [BZ #22561]
21636 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21637 real part of result for argument 0 + i * NaN.
21638 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21639 results for tests of 0 + i * NaN.
21640
21641 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21642
21643 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21644
21645 2017-12-06 David S. Miller <davem@davemloft.net>
21646
21647 * sysdeps/sparc/fpu/libm-test-ulps: Update
21648 exp_{downward,towardzero,upward} ulps.
21649
21650 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21651
21652 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21653 variables static.
21654
21655 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21656 (Y0_2D): Likewise.
21657 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21658 (Y0_2D): Likewise.
21659 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21660 (Y0_2D): Likewise.
21661 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21662 (Y0_2D): Likewise.
21663
21664 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21665
21666 [BZ #22515]
21667 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21668 and to the list of locales to be built for testing.
21669 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21670 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21671 and build the collation rules upon that.
21672
21673 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21674
21675 * NEWS: Add sinf to list of optimized functions.
21676
21677 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21678
21679 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21680 (__HAVE_FLOAT32X): Likewise.
21681 * manual/math.texi (Mathematics): Document support for _Float64
21682 and _Float32x.
21683 * math/Makefile (test-types): Add float64 and float32x.
21684 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21685 functions.
21686 * stdlib/Versions (GLIBC_2.27): Likewise.
21687 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21688 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21689 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21690 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21691 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21692 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21693 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21694 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21695 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21696 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21697 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21698 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21699 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21700 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21701 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21702 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21703 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21704 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21705 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21706 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21707 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21708 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21709 Likewise.
21710 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21711 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21712 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21713 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21714 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21716 Likewise.
21717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21718 Likewise.
21719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21720 Likewise.
21721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21722 Likewise.
21723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21724 Likewise.
21725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21726 Likewise.
21727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21728 Likewise.
21729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21730 Likewise.
21731 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21732 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21733 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21734 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21735 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21736 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21737 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21738 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21739 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21740 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21741 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21742 Likewise.
21743 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21744 Likewise.
21745 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21746 Likewise.
21747 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21748 Likewise.
21749 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21750 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21751 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21752 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21753 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21754 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21755 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21756 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21757
21758 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21759
21760 * bits/floatn-common.h: Include <bits/long-double.h>.
21761 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21762 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21763 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21764 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21765 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21766 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21767 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21768 (__builtin_huge_valf64): Use __builtin_huge_vall.
21769 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21770 (__builtin_inff64): Use __builtin_infl.
21771 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21772 (__builtin_nanf64): Use __builtin_nanl.
21773 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21774 (__builtin_nansf64): Use __builtin_nansl.
21775
21776 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21777 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21778 Carlos O'Donnell <carlos@redhat.com>
21779
21780 * elf/dl-tunables.list: Add elision parameters.
21781 * manual/tunables.texi: Add entries about elision tunable.
21782 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21783 Add callback functions to dynamically enable/disable elision.
21784 Add multiple callbacks functions to set elision parameters.
21785 Deleted __libc_enable_secure check.
21786 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21787 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21788 * configure: Regenerated.
21789 * configure.ac: Option enable_lock_elision was deleted.
21790 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21791 * config.make.in: Remove references to enable_lock_elision.
21792 * manual/install.texi: Elision configure option was removed.
21793 * INSTALL: Regenerated to remove enable_lock_elision.
21794 * nptl/Makefile:
21795 Disable elision so it can verify error case for destroying a mutex.
21796 * sysdeps/powerpc/nptl/elide.h:
21797 Cleanup ENABLE_LOCK_ELISION check.
21798 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21799 * sysdeps/s390/configure: Regenerated.
21800 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21801 * nptl/tst-mutex8.c:
21802 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21803 * sysdeps/powerpc/powerpc32/sysdep.h:
21804 Deleted all ENABLE_LOCK_ELISION checks.
21805 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21806 * sysdeps/powerpc/sysdep.h: Likewise.
21807 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21808 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21809 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21810 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21811 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21812 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21813 enable-lock-elision.
21814
21815 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21816
21817 * stdlib/strtod.c: Include <bits/floatn.h>.
21818 (BUILD_DOUBLE): New macro.
21819 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21820 (strtof64): Define and later undefine as macro. Define as weak
21821 alias if [!USE_WIDE_CHAR].
21822 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21823 (wcstof64): Define and later undefine as macro. Define as weak
21824 alias if [USE_WIDE_CHAR].
21825 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21826 (strtof32x): Define and later undefine as macro. Define as weak
21827 alias if [!USE_WIDE_CHAR].
21828 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21829 (wcstof32x): Define and later undefine as macro. Define as weak
21830 alias if [USE_WIDE_CHAR].
21831 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21832 (BUILD_DOUBLE): New macro.
21833 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21834 (strtof64_l): Define and later undefine as macro. Define as weak
21835 alias if [!USE_WIDE_CHAR].
21836 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21837 (wcstof64_l): Define and later undefine as macro. Define as weak
21838 alias if [USE_WIDE_CHAR].
21839 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21840 (strtof32x_l): Define and later undefine as macro. Define as weak
21841 alias if [!USE_WIDE_CHAR].
21842 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21843 (wcstof32x_l): Define and later undefine as macro. Define as weak
21844 alias if [USE_WIDE_CHAR].
21845
21846 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21847
21848 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21849 (reduced): Use ones as double instead of integer.
21850
21851 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21852
21853 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21854
21855 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21856
21857 * stdlib/strfromd.c: Include <bits/floatn.h>.
21858 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21859 and later undefine as macro and define as weak alias.
21860 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21861 Likewise.
21862
21863 * math/test-float32x.h: New file.
21864 * math/test-float64.h: Likewise.
21865
21866 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21867 (libm_alias_double_other_r_f64): New macro.
21868 (libm_alias_double_other_r_f32x): Likewise.
21869 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21870 libm_alias_double_other_r_f32x.
21871 (libm_alias_double_r): Use semicolon before call to
21872 libm_alias_double_other_r.
21873 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21874 <bits/floatn.h>.
21875 (libm_alias_double_other_r_f64): New macro.
21876 (libm_alias_double_other_r_f32x): Likewise.
21877 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21878 libm_alias_double_other_r_f32x.
21879
21880 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21881
21882 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21883 int.
21884 (SINF_FUNC): Likewise. Replace floor with simple casts.
21885
21886 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21887
21888 [BZ #22517]
21889 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21890 and to the list of locales to be built for testing.
21891 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21892 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21893 and build the collation rules upon that.
21894
21895 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21896
21897 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21898 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21899 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21900 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21901 instead of __insn__xxx.
21902 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21903 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21904 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21905 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21906 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21907 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21908
21909 2017-12-05 Florian Weimer <fweimer@redhat.com>
21910
21911 Linux: Implement interfaces for memory protection keys
21912 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21913 xsignal, xsysconf.
21914 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21915 * support/xunistd.h (xsysconf): Declare.
21916 * support/xraise.c: New file.
21917 * support/xsigaction.c: Likewise.
21918 * support/xsignal.c: Likewise.
21919 * support/xsysconf.c: Likewise.
21920 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21921 pkey_set, pkey_get, pkey_mprotect.
21922 [misc] (tests): Add tst-pkey.
21923 (tst-pkey): Link with -lpthread.
21924 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21925 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21926 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21927 (PKEY_DISABLE_WRITE): Define.
21928 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21929 Declare.
21930 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21931 (SEGV_PKUERR): Add.
21932 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21933 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21934 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21935 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21936 Add.
21937 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21938 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21939 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21940 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21941 * sysdeps/unix/sysv/linux/**.abilist: Update.
21942
21943 2017-12-05 Florian Weimer <fweimer@redhat.com>
21944
21945 * support/tst-test_compare.c (subprocess): Use long long instead
21946 of long argument for consistent type width across 32-bit and
21947 64-bit architectures.
21948 (do_test): Adjust expected output.
21949
21950 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21951
21952 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21953 (cosf): Define using libm_alias_float.
21954 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21955 (fabsf): Define using libm_alias_float.
21956 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21957 (fmaf): Define using libm_alias_float.
21958 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21959 (rintf): Define using libm_alias_float.
21960 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21961 (sinf): Define using libm_alias_float.
21962 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21963 <libm-alias-float.h>.
21964 (modff): Define using libm_alias_float.
21965 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21966 <libm-alias-float.h>.
21967 (logbf): Define using libm_alias_float.
21968 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21969 <libm-alias-float.h>.
21970 (ceilf): Define using libm_alias_float.
21971 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21972 <libm-alias-float.h>.
21973 (copysignf): Define using libm_alias_float.
21974 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21975 <libm-alias-float.h>.
21976 (floorf): Define using libm_alias_float.
21977 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21978 <libm-alias-float.h>.
21979 (llrintf): Define using libm_alias_float.
21980 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21981 <libm-alias-float.h>.
21982 (llroundf): Define using libm_alias_float.
21983 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21984 <libm-alias-float.h>.
21985 (lrintf): Define using libm_alias_float.
21986 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21987 <libm-alias-float.h>.
21988 (lroundf): Define using libm_alias_float.
21989 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21990 <libm-alias-float.h>.
21991 (nearbyintf): Define using libm_alias_float.
21992 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21993 <libm-alias-float.h>.
21994 (rintf): Define using libm_alias_float.
21995 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21996 <libm-alias-float.h>.
21997 (roundf): Define using libm_alias_float.
21998 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21999 <libm-alias-float.h>.
22000 (truncf): Define using libm_alias_float.
22001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22002 Include <libm-alias-float.h>.
22003 (ceilf): Define using libm_alias_float.
22004 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22005 Include <libm-alias-float.h>.
22006 (copysignf): Define using libm_alias_float.
22007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22008 Include <libm-alias-float.h>.
22009 (floorf): Define using libm_alias_float.
22010 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22011 Include <libm-alias-float.h>.
22012 (llrintf): Define using libm_alias_float.
22013 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22014 Include <libm-alias-float.h>.
22015 (llroundf): Define using libm_alias_float.
22016 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22017 Include <libm-alias-float.h>.
22018 (logbf): Define using libm_alias_float.
22019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22020 Include <libm-alias-float.h>.
22021 (lrintf): Define using libm_alias_float.
22022 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22023 Include <libm-alias-float.h>.
22024 (lroundf): Define using libm_alias_float.
22025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22026 Include <libm-alias-float.h>.
22027 (modff): Define using libm_alias_float.
22028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22029 Include <libm-alias-float.h>.
22030 (roundf): Define using libm_alias_float.
22031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22032 Include <libm-alias-float.h>.
22033 (truncf): Define using libm_alias_float.
22034 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22035 <libm-alias-float.h>.
22036 (llrintf): Define using libm_alias_float.
22037 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22038 <libm-alias-float.h>.
22039 (llroundf): Define using libm_alias_float.
22040 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22041 <libm-alias-float.h>.
22042 (ceilf): Define using libm_alias_float.
22043 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22044 <libm-alias-float.h>.
22045 (floorf): Define using libm_alias_float.
22046 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22047 <libm-alias-float.h>.
22048 (llroundf): Define using libm_alias_float.
22049 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22050 <libm-alias-float.h>.
22051 (lroundf): Define using libm_alias_float.
22052 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22053 <libm-alias-float.h>.
22054 (roundf): Define using libm_alias_float.
22055 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22056 <libm-alias-float.h>.
22057 (truncf): Define using libm_alias_float.
22058 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22059 <libm-alias-float.h>.
22060 (copysignf): Define using libm_alias_float.
22061 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22062 <libm-alias-float.h>.
22063 (llrintf): Define using libm_alias_float.
22064 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22065 <libm-alias-float.h>.
22066 (llroundf): Define using libm_alias_float.
22067 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22068 <libm-alias-float.h>.
22069 (lrintf): Define using libm_alias_float.
22070 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22071 <libm-alias-float.h>.
22072 (lroundf): Define using libm_alias_float.
22073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22074 <libm-alias-float.h>.
22075 (ceilf): Define using libm_alias_float.
22076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22077 <libm-alias-float.h>.
22078 (copysignf): Define using libm_alias_float.
22079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22080 <libm-alias-float.h>.
22081 (cosf): Define using libm_alias_float.
22082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22083 <libm-alias-float.h>.
22084 (floorf): Define using libm_alias_float.
22085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22086 <libm-alias-float.h>.
22087 (llrintf): Define using libm_alias_float.
22088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22089 <libm-alias-float.h>.
22090 (llroundf): Define using libm_alias_float.
22091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22092 <libm-alias-float.h>.
22093 (logbf): Define using libm_alias_float.
22094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22095 <libm-alias-float.h>.
22096 (modff): Define using libm_alias_float.
22097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22098 <libm-alias-float.h>.
22099 (roundf): Define using libm_alias_float.
22100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22101 <libm-alias-float.h>.
22102 (sinf): Define using libm_alias_float.
22103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22104 <libm-alias-float.h>.
22105 (truncf): Define using libm_alias_float.
22106 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22107 <libm-alias-float.h>.
22108 (ceilf): Define using libm_alias_float.
22109 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22110 <libm-alias-float.h>.
22111 (copysignf): Define using libm_alias_float.
22112 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22113 <libm-alias-float.h>.
22114 (floorf): Define using libm_alias_float.
22115 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22116 <libm-alias-float.h>.
22117 (llrintf): Define using libm_alias_float.
22118 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22119 <libm-alias-float.h>.
22120 (llroundf): Define using libm_alias_float.
22121 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22122 <libm-alias-float.h>.
22123 (nearbyintf): Define using libm_alias_float.
22124 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22125 <libm-alias-float.h>.
22126 (rintf): Define using libm_alias_float.
22127 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22128 <libm-alias-float.h>.
22129 (roundf): Define using libm_alias_float.
22130 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22131 <libm-alias-float.h>.
22132 (truncf): Define using libm_alias_float.
22133 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22134 <libm-alias-float.h>.
22135 (ceilf): Define using libm_alias_float.
22136 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22137 <libm-alias-float.h>.
22138 (floorf): Define using libm_alias_float.
22139 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22140 <libm-alias-float.h>.
22141 (llroundf): Define using libm_alias_float.
22142 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22143 <libm-alias-float.h>.
22144 (roundf): Define using libm_alias_float.
22145 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22146 <libm-alias-float.h>.
22147 (truncf): Define using libm_alias_float.
22148 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22149 <libm-alias-float.h>.
22150 (copysignf): Define using libm_alias_float.
22151 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22152 <libm-alias-float.h>.
22153 (llrintf): Define using libm_alias_float.
22154 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22155 <libm-alias-float.h>.
22156 (llroundf): Define using libm_alias_float.
22157 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22158 <libm-alias-float.h>.
22159 (cosf): Define using libm_alias_float.
22160 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22161 <libm-alias-float.h>.
22162 (llrintf): Define using libm_alias_float.
22163 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22164 <libm-alias-float.h>.
22165 (llroundf): Define using libm_alias_float.
22166 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22167 <libm-alias-float.h>.
22168 (sinf): Define using libm_alias_float.
22169
22170 2017-12-04 Florian Weimer <fweimer@redhat.com>
22171
22172 * support/check.h (TEST_COMPARE): Define.
22173 (support_test_compare_failure): Declare.
22174 * support/Makefile (libsupport-routines): Add
22175 support_test_compare_failure.
22176 (tests): Add tst-test_compare.
22177 * support /support_test_compare_failure.c: New file.
22178 * support/tst-test_compare.c: Likewise.
22179
22180 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22181
22182 [BZ #22527]
22183 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22184 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22185 available, this rewrite of the collation rules does reproduce
22186 the test file in the same order.
22187
22188 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22189
22190 [BZ #10580]
22191 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22192 digraphs in the month and day names. Using single code points for
22193 digraphs is deprecated. While there are dedicated Unicode
22194 codepoints, for the digraphs, these are included for backwards
22195 compatibility and modern texts use a sequence of Basic Latin
22196 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22197 This makes the month and day names agree exactly with CLDR now,
22198 CLDR does not use the single code points for the digraphs either.
22199
22200 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22201
22202 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22203
22204 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22205
22206 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22207 of floor.
22208
22209 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22210
22211 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22212 Define only for libc.so.
22213
22214 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22215
22216 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22217 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22218 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22219 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22220 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22221
22222 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22223
22224 [BZ #5997]
22225 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22226
22227 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22228
22229 [BZ libc/19170]
22230 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22231 PREINIT_FUNCTION_WEAK is nonzero.
22232 (gmon_initializer): New function. Put procedure label for it in
22233 .init_array section.
22234 (_init): Don't call PREINIT_FUNCTION.
22235 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22236 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22237 value when map argument is null.
22238
22239 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22240 depi instruction from PIC pc-relative sequence.
22241 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22242 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22243 (elf_machine_load_address): Likewise.
22244 (elf_machine_runtime_setup): Likewise.
22245
22246 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22247
22248 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22249 <libm-alias-double.h>.
22250 (logb): Define using libm_alias_double.
22251 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22252 <libm-alias-double.h>.
22253 (copysign): Define using libm_alias_double.
22254 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22255 <libm-alias-double.h>.
22256 (llrint): Define using libm_alias_double.
22257 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22258 <libm-alias-double.h>.
22259 (llround): Define using libm_alias_double.
22260 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22261 <libm-alias-double.h>.
22262 (lrint): Define using libm_alias_double.
22263 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22264 <libm-alias-double.h>.
22265 (lround): Define using libm_alias_double.
22266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22267 Include <libm-alias-double.h>.
22268 (copysign): Define using libm_alias_double.
22269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22270 Include <libm-alias-double.h>.
22271 (llrint): Define using libm_alias_double.
22272 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22273 Include <libm-alias-double.h>.
22274 (llround): Define using libm_alias_double.
22275 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22276 <libm-alias-double.h>.
22277 (logb): Define using libm_alias_double.
22278 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22279 Include <libm-alias-double.h>.
22280 (lrint): Define using libm_alias_double.
22281 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22282 Include <libm-alias-double.h>.
22283 (lround): Define using libm_alias_double.
22284 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22285 <libm-alias-double.h>.
22286 (llrint): Define using libm_alias_double.
22287 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22288 <libm-alias-double.h>.
22289 (llround): Define using libm_alias_double.
22290 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22291 <libm-alias-double.h>.
22292 (llround): Define using libm_alias_double.
22293 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22294 <libm-alias-double.h>.
22295 (lround): Define using libm_alias_double.
22296 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22297 <libm-alias-double.h>.
22298 (copysign): Define using libm_alias_double.
22299 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22300 <libm-alias-double.h>.
22301 (llrint): Define using libm_alias_double.
22302 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22303 <libm-alias-double.h>.
22304 (llround): Define using libm_alias_double.
22305 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22306 <libm-alias-double.h>.
22307 (lrint): Define using libm_alias_double.
22308 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22309 <libm-alias-double.h>.
22310 (lround): Define using libm_alias_double.
22311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22312 <libm-alias-double.h>.
22313 (copysign): Define using libm_alias_double.
22314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22315 <libm-alias-double.h>.
22316 (llrint): Define using libm_alias_double.
22317 (lrint): Likewise.
22318 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22319 <libm-alias-double.h>.
22320 (llround): Define using libm_alias_double.
22321 (lround): Likewise.
22322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22323 <libm-alias-double.h>.
22324 (logb): Define using libm_alias_double.
22325 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22326 <libm-alias-double.h>.
22327 (copysign): Define using libm_alias_double.
22328 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22329 <libm-alias-double.h>.
22330 (llrint): Define using libm_alias_double.
22331 (lrint): Likewise.
22332 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22333 <libm-alias-double.h>.
22334 (llround): Define using libm_alias_double.
22335 (lround): Likewise.
22336 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22337 <libm-alias-double.h>.
22338 (llround): Define using libm_alias_double.
22339 (lround): Likewise.
22340 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22341 <libm-alias-double.h>.
22342 (copysign): Define using libm_alias_double.
22343 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22344 <libm-alias-double.h>.
22345 (llrint): Define using libm_alias_double.
22346 (lrint): Likewise.
22347 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22348 <libm-alias-double.h>.
22349 (llround): Define using libm_alias_double.
22350 (lround): Likewise.
22351 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22352 <libm-alias-double.h>.
22353 (llrint): Define using libm_alias_double.
22354 (lrint): Likewise.
22355 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22356 <libm-alias-double.h>.
22357 (llround): Define using libm_alias_double.
22358 (lround): Likewise.
22359
22360 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22361
22362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22363 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22364 compat symbol based on llround.
22365
22366 * sysdeps/powerpc/power7/fpu/s_logb.c
22367 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22368 symbol based on __logb, not on logb.
22369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22370 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22372 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22373
22374 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22375 (rint): Define using libm_alias_double.
22376 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22377 <libm-alias-double.h>.
22378 (modf): Define using libm_alias_double.
22379 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22380 <libm-alias-double.h>.
22381 (ceil): Define using libm_alias_double.
22382 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22383 <libm-alias-double.h>.
22384 (floor): Define using libm_alias_double.
22385 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22386 <libm-alias-double.h>.
22387 (nearbyint): Define using libm_alias_double.
22388 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22389 <libm-alias-double.h>.
22390 (rint): Define using libm_alias_double.
22391 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22392 <libm-alias-double.h>.
22393 (round): Define using libm_alias_double.
22394 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22395 <libm-alias-double.h>.
22396 (trunc): Define using libm_alias_double.
22397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22398 <libm-alias-double.h>.
22399 (ceil): Define using libm_alias_double.
22400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22401 Include <libm-alias-double.h>.
22402 (floor): Define using libm_alias_double.
22403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22404 <libm-alias-double.h>.
22405 (modf): Define using libm_alias_double.
22406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22407 Include <libm-alias-double.h>.
22408 (round): Define using libm_alias_double.
22409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22410 Include <libm-alias-double.h>.
22411 (trunc): Define using libm_alias_double.
22412 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22413 <libm-alias-double.h>.
22414 (ceil): Define using libm_alias_double.
22415 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22416 <libm-alias-double.h>.
22417 (floor): Define using libm_alias_double.
22418 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22419 <libm-alias-double.h>.
22420 (round): Define using libm_alias_double.
22421 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22422 <libm-alias-double.h>.
22423 (trunc): Define using libm_alias_double.
22424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22425 <libm-alias-double.h>.
22426 (ceil): Define using libm_alias_double.
22427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22428 <libm-alias-double.h>.
22429 (floor): Define using libm_alias_double.
22430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22431 <libm-alias-double.h>.
22432 (modf): Define using libm_alias_double.
22433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22434 <libm-alias-double.h>.
22435 (round): Define using libm_alias_double.
22436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22437 <libm-alias-double.h>.
22438 (trunc): Define using libm_alias_double.
22439 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22440 <libm-alias-double.h>.
22441 (ceil): Define using libm_alias_double.
22442 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22443 <libm-alias-double.h>.
22444 (floor): Define using libm_alias_double.
22445 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22446 <libm-alias-double.h>.
22447 (nearbyint): Define using libm_alias_double.
22448 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22449 <libm-alias-double.h>.
22450 (rint): Define using libm_alias_double.
22451 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22452 <libm-alias-double.h>.
22453 (round): Define using libm_alias_double.
22454 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22455 <libm-alias-double.h>.
22456 (trunc): Define using libm_alias_double.
22457 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22458 <libm-alias-double.h>.
22459 (ceil): Define using libm_alias_double.
22460 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22461 <libm-alias-double.h>.
22462 (floor): Define using libm_alias_double.
22463 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22464 <libm-alias-double.h>.
22465 (round): Define using libm_alias_double.
22466 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22467 <libm-alias-double.h>.
22468 (trunc): Define using libm_alias_double.
22469
22470 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22471 (fabs): Define using libm_alias_double.
22472 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22473 (fma): Define using libm_alias_double.
22474 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22475 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22476 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22477 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22478
22479 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22480
22481 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22482
22483 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22484 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22485 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22486
22487 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22488 due redirect macro.
22489
22490 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22491
22492 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22493
22494 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22495
22496 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22497 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22498 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22499 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22500
22501 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22502 (libm-sysdep_routines): Add s_nearbyintf-generic and
22503 s_nearbyint-generic.
22504 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22505 New file.
22506 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22507 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22508 Likewise.
22509 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22510 Likewise.
22511 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22512 file.
22513 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22514 Likewise.
22515
22516 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22517 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22518 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22519 file.
22520 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22521 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22522 Likewise.
22523 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22524 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22526
22527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22528 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22529 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22530 file.
22531 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22532 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22533 Likewise.
22534 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22535 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22537
22538 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22539 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22541 file.
22542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22543 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22544 Likewise.
22545 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22548
22549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22550 (sysdep_calls): New rule.
22551 (sysdep_routines): Use sysdep_calls as base.
22552 (libm-sysdep_routines): Add generic rule for symbols shared with
22553 libc. Add s_copysign-generic and s_copysign-generic objects.
22554 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22555 New file.
22556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22558 Likewise.
22559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22562
22563 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22564
22565 [BZ #22519]
22566 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22567 the list of locales to be built for testing.
22568 * localedata/is_IS.UTF-8.in: New file.
22569 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22570 on iso14651_t1.
22571
22572 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22573
22574 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22575 <libm-alias-float.h>.
22576 (fabsf): Define using libm_alias_float.
22577
22578 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22579
22580 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22581
22582 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22583
22584 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22585 <libm-alias-float.h>.
22586 (fabsf): Define using libm_alias_float.
22587 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22588 <libm-alias-float.h>.
22589 (lrintf): Define using libm_alias_float.
22590 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22591 <libm-alias-float.h>.
22592 (rintf): Define using libm_alias_float.
22593
22594 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22595 <libm-alias-double.h>.
22596 (fabs): Define using libm_alias_double.
22597 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22598 <libm-alias-double.h>.
22599 (lrint): Define using libm_alias_double.
22600 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22601 <libm-alias-double.h>.
22602 (rint): Define using libm_alias_double.
22603
22604 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22605 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22606 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22607 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22608 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22609 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22610 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22611 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22612 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22613 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22614 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22615 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22616 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22617 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22618 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22619 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22620 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22621 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22622 s_atan_template.c.
22623 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22624 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22625 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22626 s_ceil_template.c.
22627 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22628 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22629 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22630 s_cos_template.c.
22631 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22632 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22633 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22634 s_expm1_template.c.
22635 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22636 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22637 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22638 s_fabs_template.c.
22639 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22640 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22641 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22642 s_floor_template.c.
22643 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22644 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22645 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22646 s_frexp_template.c.
22647 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22648 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22649 s_lrint_template.c.
22650 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22651 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22652 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22653 s_modf_template.c.
22654 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22655 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22656 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22657 s_nearbyint_template.c.
22658 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22659 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22660 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22661 s_remquo_template.c.
22662 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22663 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22664 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22665 s_rint_template.c.
22666 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22667 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22668 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22669 s_sin_template.c.
22670 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22671 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22672 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22673 s_sincos_template.c.
22674 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22675 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22676 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22677 s_tan_template.c.
22678 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22679 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22680 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22681 s_tanh_template.c.
22682 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22683 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22684 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22685 s_trunc_template.c.
22686 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22687 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22688 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22689 s_atan.c instead of including s_atan.c.
22690 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22691 s_atanf.c instead of including s_atanf.c.
22692 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22693 s_atanl.c instead of including s_atanl.c.
22694 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22695 instead of s_atan.c.
22696 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22697 instead of s_atanf.c.
22698 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22699 instead of s_atanl.c.
22700
22701 * scripts/update-copyrights: Do not handle intl/plural.c
22702 specially.
22703
22704 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22705
22706 [BZ #22432]
22707 * configure.ac (BISON): Require to be present.
22708 * configure: Regenerated.
22709 * intl/Makefile (generated): Add plural.c.
22710 [$(BISON) != no]: Make code unconditional.
22711 (plural.c): Change rule to $(objpfx)plural.c.
22712 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22713 * intl/plural.c: Remove.
22714 * manual/install.texi (Tools for Compilation): Document bison as
22715 required.
22716 * INSTALL: Regenerated.
22717
22718 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22719
22720 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22721 <libm-alias-double.h>.
22722 (llrint): Define using libm_alias_double.
22723 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22724 <libm-alias-float.h>.
22725 (llrintf): Define using libm_alias_float.
22726 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22727 <libm-alias-ldouble.h>.
22728 (llrintl): Define using libm_alias_ldouble.
22729
22730 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22731 declare_mgen_alias instead of weak_alias.
22732 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22733 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22734 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22735
22736 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22737
22738 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22739 Add add_n-generic.
22740 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22741 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22742 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22743
22744 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22745 Add submul_1-generic.
22746 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22747 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22748 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22749
22750 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22751 Add addmul_1-generic.
22752 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22753 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22754 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22755
22756 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22757 Add sub_n-generic.
22758 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22759 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22760 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22761
22762 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22763 Add mul_1-generic.
22764 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22765 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22766 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22767
22768 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22769
22770 According to CLDR, collation rules for Serbian and Bosnian
22771 should be the same as for Croatian.
22772
22773 [BZ #22534]
22774 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22775 and to the list of locales to be built for testing.
22776 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22777 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22778 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22779 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22780
22781 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22782
22783 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22784 to make test case pass.
22785 * localedata/hr_HR.UTF-8.in: Add more test strings.
22786
22787 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22788
22789 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22790
22791 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22792
22793 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22794 the list of locales to built for testing.
22795 * localedata/hr_HR.UTF-8.in: New file.
22796
22797 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22798
22799 [BZ #10580]
22800 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22801 iso14651_t1.
22802 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22803 CLDR (except use ligatures for the digraphs, CLDR does not use
22804 the ligatures), add first_workday, some fixes in the date and time
22805 formats.
22806 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22807 for Đ and đ.
22808 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22809 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22810 Add int_p_cs_precedes and int_n_cs_precedes.
22811 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22812 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22813 LC_MONETARY now).
22814 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22815 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22816 name_miss.
22817 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22818 and lang_lib. Change postal_fmt.
22819
22820 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22821
22822 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22823 <setjmp.h>.
22824 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22825 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22826 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22827 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22828 * sysdeps/generic/setjmpP.h: New file.
22829 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22830 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22831 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22832 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22833 Add jmp_buf-ssp.sym.
22834 (tests): Add tst-saved_mask-1.
22835
22836 2017-11-30 Arjun Shankar <arjun@redhat.com>
22837
22838 [BZ #22375]
22839 CVE-2017-17426
22840 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22841 instead of request2size.
22842
22843 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22844
22845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22846 (__lllrint): Remove alias.
22847 (lllrint): Likewise.
22848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22849 (__lllrintf): Likewise.
22850 (lllrintf): Likewise.
22851
22852 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22853 <libm-alias-float.h>.
22854 (copysignf): Define using libm_alias_float.
22855 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22856 <libm-alias-float.h>.
22857 (fabsf): Define using libm_alias_float.
22858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22859 Include <libm-alias-float.h>.
22860 (copysignf): Define using libm_alias_float.
22861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22862 <libm-alias-float.h>.
22863 (fabsf): Define using libm_alias_float.
22864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22865 <libm-alias-float.h>.
22866 (fdimf): Define using libm_alias_float.
22867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22868 <libm-alias-float.h>.
22869 (fmaf): Define using libm_alias_float.
22870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22871 <libm-alias-float.h>.
22872 (llrintf): Define using libm_alias_float.
22873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22874 Include <libm-alias-float.h>.
22875 (nearbyintf): Define using libm_alias_float.
22876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22877 <libm-alias-float.h>.
22878 (rintf): Define using libm_alias_float.
22879 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22880 <libm-alias-float.h>.
22881 (llrintf): Define using libm_alias_float.
22882 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22883 <libm-alias-float.h>.
22884 (lrintf): Define using libm_alias_float.
22885 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22886 <libm-alias-float.h>.
22887 (nearbyintf): Define using libm_alias_float.
22888 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22889 <libm-alias-float.h>.
22890 (rintf): Define using libm_alias_float.
22891 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22892 <libm-alias-float.h>.
22893 (ceilf): Define using libm_alias_float.
22894 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22895 <libm-alias-float.h>.
22896 (floorf): Define using libm_alias_float.
22897 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22898 <libm-alias-float.h>.
22899 (fmaf): Define using libm_alias_float.
22900 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22901 <libm-alias-float.h>.
22902 (lrintf): Define using libm_alias_float.
22903 (llrintf): Likewise.
22904 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22905 <libm-alias-float.h>.
22906 (nearbyintf): Define using libm_alias_float.
22907 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22908 <libm-alias-float.h>.
22909 (rintf): Define using libm_alias_float.
22910 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22911 <libm-alias-float.h>.
22912 (truncf): Define using libm_alias_float.
22913 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22914 <libm-alias-float.h>.
22915 (copysignf): Define using libm_alias_float.
22916 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22917 <libm-alias-float.h>.
22918 (fabsf): Define using libm_alias_float.
22919 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22920 <libm-alias-float.h>.
22921 (lrintf): Define using libm_alias_float.
22922 (llrintf): Likewise.
22923 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22924 <libm-alias-float.h>.
22925 (nearbyintf): Define using libm_alias_float.
22926 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22927 <libm-alias-float.h>.
22928 (rintf): Define using libm_alias_float.
22929
22930 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22931
22932 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22933 <libm-alias-double.h>.
22934 (copysign): Define using libm_alias_double.
22935 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22936 <libm-alias-double.h>.
22937 (fabs): Define using libm_alias_double.
22938 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22939 Include <libm-alias-double.h>.
22940 (copysign): Define using libm_alias_double.
22941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22942 <libm-alias-double.h>.
22943 (fabs): Define using libm_alias_double.
22944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22945 <libm-alias-double.h>.
22946 (fdim): Define using libm_alias_double.
22947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22948 <libm-alias-double.h>.
22949 (fma): Define using libm_alias_double.
22950 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22951 <libm-alias-double.h>.
22952 (llrint): Define using libm_alias_double.
22953 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22954 Include <libm-alias-double.h>.
22955 (nearbyint): Define using libm_alias_double.
22956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22957 <libm-alias-double.h>.
22958 (rint): Define using libm_alias_double.
22959 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22960 <libm-alias-double.h>.
22961 (fabs): Define using libm_alias_double.
22962 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22963 <libm-alias-double.h>.
22964 (llrint): Define using libm_alias_double.
22965 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22966 <libm-alias-double.h>.
22967 (nearbyint): Define using libm_alias_double.
22968 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22969 <libm-alias-double.h>.
22970 (rint): Define using libm_alias_double.
22971 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22972 <libm-alias-double.h>.
22973 (ceil): Define using libm_alias_double.
22974 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22975 <libm-alias-double.h>.
22976 (floor): Define using libm_alias_double.
22977 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22978 <libm-alias-double.h>.
22979 (fma): Define using libm_alias_double.
22980 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22981 <libm-alias-double.h>.
22982 (lrint): Define using libm_alias_double.
22983 (llrint): Likewise.
22984 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22985 <libm-alias-double.h>.
22986 (nearbyint): Define using libm_alias_double.
22987 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22988 <libm-alias-double.h>.
22989 (rint): Define using libm_alias_double.
22990 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22991 <libm-alias-double.h>.
22992 (trunc): Define using libm_alias_double.
22993 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22994 <libm-alias-double.h>.
22995 (copysign): Define using libm_alias_double.
22996 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22997 <libm-alias-double.h>.
22998 (fabs): Define using libm_alias_double.
22999 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23000 <libm-alias-double.h>.
23001 (lrint): Define using libm_alias_double.
23002 (llrint): Likewise.
23003 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23004 <libm-alias-double.h>.
23005 (nearbyint): Define using libm_alias_double.
23006 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23007 <libm-alias-double.h>.
23008 (rint): Define using libm_alias_double.
23009
23010 [BZ #22229]
23011 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23012 <math_ldbl_opt.h>.
23013 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23014
23015 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23016 SPARC --disable-multi-arch glibc variants.
23017
23018 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23019 <libm-alias-float.h>.
23020 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23021 if [SHARED].
23022 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23023 <libm-alias-float.h>.
23024 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23025 if [SHARED].
23026 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23027 <libm-alias-float.h>.
23028 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23029 if [SHARED].
23030 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23031 <libm-alias-float.h>.
23032 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23033 if [SHARED].
23034 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23035 <libm-alias-float.h>.
23036 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23037 if [SHARED].
23038 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23039 <libm-alias-float.h>.
23040 (ceilf): Define using libm_alias_float.
23041 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23042 <libm-alias-float.h>.
23043 (floorf): Define using libm_alias_float.
23044 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23045 <libm-alias-float.h>.
23046 (fmaf): Define using libm_alias_float.
23047 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23048 <libm-alias-float.h>.
23049 (nearbyintf): Define using libm_alias_float.
23050 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23051 <libm-alias-float.h>.
23052 (rintf): Define using libm_alias_float.
23053 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23054 <libm-alias-float.h>.
23055 (truncf): Define using libm_alias_float.
23056 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23057 (copysignf): Define using libm_alias_float.
23058 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23059 (cosf): Define using libm_alias_float.
23060 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23061 (fabsf): Define using libm_alias_float.
23062 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23063 (fmaxf): Define using libm_alias_float.
23064 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23065 (fminf): Define using libm_alias_float.
23066 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23067 (llrintf): Define using libm_alias_float.
23068 [!__ILP32__] (lrintf): Likewise.
23069 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23070 (sincosf): Define using libm_alias_float.
23071 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23072 (sinf): Define using libm_alias_float.
23073 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23074 (lrintf): Define using libm_alias_float.
23075
23076 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23077 <libm-alias-double.h>.
23078 (atan): Define using libm_alias_double.
23079 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23080 <libm-alias-double.h>.
23081 (ceil): Define using libm_alias_double.
23082 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23083 <libm-alias-double.h>.
23084 (floor): Define using libm_alias_double.
23085 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23086 <libm-alias-double.h>.
23087 (fma): Define using libm_alias_double.
23088 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23089 <libm-alias-double.h>.
23090 (nearbyint): Define using libm_alias_double.
23091 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23092 <libm-alias-double.h>.
23093 (rint): Define using libm_alias_double.
23094 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23095 <libm-alias-double.h>.
23096 (sin): Define using libm_alias_double.
23097 (cos): Likewise.
23098 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23099 <libm-alias-double.h>.
23100 (tan): Define using libm_alias_double.
23101 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23102 <libm-alias-double.h>.
23103 (trunc): Define using libm_alias_double.
23104 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23105 (copysign): Define using libm_alias_double.
23106 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23107 (fabs): Define using libm_alias_double.
23108 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23109 (fmax): Define using libm_alias_double.
23110 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23111 (fmin): Define using libm_alias_double.
23112 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23113 (llrint): Define using libm_alias_double.
23114 [!__ILP32__] (lrint): Likewise.
23115 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23116 (lrint): Define using libm_alias_double.
23117
23118 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23119
23120 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23121 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23122 objects.
23123 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23124 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23125 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23126 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23127 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23128 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23129
23130 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23131 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23132 objects.
23133 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23134 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23135 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23136 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23137 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23138 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23139
23140 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23141 (libm-sysdep_routines): Add s_nearbyint-generic and
23142 s_nearbyintf-generic objects.
23143 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23144 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23145 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23146 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23147 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23148 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23149
23150 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23151 Add s_finitef-generic and s_finite-generic objects.
23152 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23153 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23154 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23155 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23156 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23157 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23158
23159 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23160 Add s_isinff-generic and s_isinf-generic objects.
23161 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23162 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23163 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23164 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23165 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23166 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23167
23168 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23169 Add s_isnanf-generic and s_isnan-generic objects.
23170 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23171 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23172 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23173 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23174 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23175 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23176
23177 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23178 macro.
23179 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23180 rule.
23181 (sysdep_routines): Use sysdep_calls as base.
23182 (libm-sysdep_routines): Add generic rule for symbols shared with
23183 libc. Add s_signbit-generic and s_signbitf-generic objects.
23184 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23185 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23186 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23187 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23188 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23189 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23190
23191 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23192
23193 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23194 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23195 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23196 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23197 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23198 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23199 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23200 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23201 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23202 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23203 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23204 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23205 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23206 libm_alias_float_r.
23207 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23208 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23209 (logf): Likewise.
23210 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23211 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23212 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23213 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23214 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23215 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23216 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23217 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23218 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23219 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23220 libm_alias_float.
23221 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23222 (cosf): Likewise.
23223 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23224 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23225 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23226 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23227 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23228 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23229 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23230 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23231 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23232 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23233 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23234 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23235 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23236 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23237 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23238 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23239 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23240 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23241 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23242 libm_alias_float.
23243 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23244 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23245 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23246 * sysdeps/ia64/fpu/w_lgammaf_main.c
23247 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23248 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23249
23250 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23251 Alexandre Oliva <aoliva@redhat.com>
23252
23253 [BZ #17750]
23254 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23255 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23256 accents sorting.
23257 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23258 sorting.
23259 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23260 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23261 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23262 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23263 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23264 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23265 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23266 instead of “ifdef DIACRIT_BACKWARD”.
23267
23268 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23269
23270 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23271 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23272 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23273 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23274 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23275 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23276 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23277 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23278 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23279 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23280 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23281 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23282 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23283 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23284 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23285 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23286 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23287 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23289 ($(have-as-vis3) == yes): Remove conditional.
23290 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23291 Likewise.
23292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23293 file.
23294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23295 file.
23296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23297 file.
23298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23299 file.
23300 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23301 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23302 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23303 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23304 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23305 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23306 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23307 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23308
23309 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23310
23311 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23312 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23313 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23314 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23315 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23316 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23317 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23318 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23319 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23320 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23321 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23322 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23323 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23324 libm_alias_double_r.
23325 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23326 (log): Likewise.
23327 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23328 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23329 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23330 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23331 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23332 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23333 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23334 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23335 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23336 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23337 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23338 libm_alias_double.
23339 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23340 (cos): Likewise.
23341 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23342 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23343 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23344 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23345 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23346 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23347 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23348 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23349 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23350 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23351 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23352 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23353 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23354 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23355 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23356 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23357 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23358 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23359 libm_alias_double.
23360 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23361 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23362 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23363 * sysdeps/ia64/fpu/w_lgamma_main.c
23364 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23365 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23366
23367 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23368
23369 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23370 address of $global$ into %dp register earlier. Use pc-relative
23371 instruction sequence for PIC case.
23372
23373 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23374
23375 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23376 (asinhf): Define using libm_alias_float.
23377 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23378 (atanf): Define using libm_alias_float.
23379 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23380 (cbrtf): Define using libm_alias_float.
23381 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23382 (ceilf): Define using libm_alias_float.
23383 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23384 (copysignf): Define using libm_alias_float.
23385 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23386 (expm1f): Define using libm_alias_float.
23387 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23388 (fabsf): Define using libm_alias_float.
23389 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23390 (floorf): Define using libm_alias_float.
23391 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23392 (fmaxf): Define using libm_alias_float.
23393 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23394 (fminf): Define using libm_alias_float.
23395 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23396 (frexpf): Define using libm_alias_float.
23397 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23398 (llrintf): Define using libm_alias_float.
23399 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23400 (logbf): Define using libm_alias_float.
23401 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23402 (lrintf): Define using libm_alias_float.
23403 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23404 (nearbyintf): Define using libm_alias_float.
23405 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23406 (remquof): Define using libm_alias_float.
23407 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23408 (rintf): Define using libm_alias_float.
23409 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23410 (truncf): Define using libm_alias_float.
23411 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23412 <libm-alias-float.h>.
23413 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23414 if [SHARED].
23415 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23416 <libm-alias-float.h>.
23417 (expf): Define using libm_alias_float, or libm_alias_float_other
23418 if [SHARED].
23419 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23420 <libm-alias-float.h>.
23421 (log2f): Define using libm_alias_float, or libm_alias_float_other
23422 if [SHARED].
23423 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23424 <libm-alias-float.h>.
23425 (logf): Define using libm_alias_float, or libm_alias_float_other
23426 if [SHARED].
23427 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23428 <libm-alias-float.h>.
23429 (powf): Define using libm_alias_float, or libm_alias_float_other
23430 if [SHARED].
23431 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23432 <libm-alias-float.h>.
23433 (cosf): Define using libm_alias_float.
23434 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23435 <libm-alias-float.h>.
23436 (sincosf): Define using libm_alias_float.
23437 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23438 <libm-alias-float.h>.
23439 (sinf): Define using libm_alias_float.
23440 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23441 (fmaxf): Define using libm_alias_float.
23442 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23443 (fminf): Define using libm_alias_float.
23444 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23445 <libm-alias-float.h>.
23446 (fmaf): Define using libm_alias_float.
23447
23448 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23449 (asinh): Define using libm_alias_double.
23450 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23451 (atan): Define using libm_alias_double.
23452 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23453 (cbrt): Define using libm_alias_double.
23454 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23455 (ceil): Define using libm_alias_double.
23456 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23457 (copysign): Define using libm_alias_double.
23458 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23459 (expm1): Define using libm_alias_double.
23460 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23461 (fabs): Define using libm_alias_double.
23462 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23463 (fdim): Define using libm_alias_double.
23464 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23465 (floor): Define using libm_alias_double.
23466 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23467 (fmax): Define using libm_alias_double.
23468 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23469 (fmin): Define using libm_alias_double.
23470 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23471 (frexp): Define using libm_alias_double.
23472 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23473 (llrint): Define using libm_alias_double.
23474 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23475 (logb): Define using libm_alias_double.
23476 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23477 (lrint): Define using libm_alias_double.
23478 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23479 (nearbyint): Define using libm_alias_double.
23480 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23481 (remquo): Define using libm_alias_double.
23482 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23483 (rint): Define using libm_alias_double.
23484 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23485 (trunc): Define using libm_alias_double.
23486 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23487 (fmax): Define using libm_alias_double.
23488 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23489 (fmin): Define using libm_alias_double.
23490 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23491 (fma): Define using libm_alias_double.
23492
23493 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23494
23495 [BZ #22370]
23496 * elf/dl-hwcaps.c (ROUND): Removed.
23497 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23498 and ELF_NOTE_NEXT_OFFSET.
23499 * elf/dl-load.c (ROUND): Removed.
23500 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23501 * elf/readelflib.c (ROUND): Removed.
23502 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23503 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23504 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23505 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23506
23507 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23508
23509 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23510 [!__fmaf] (fmaf): Define using libm_alias_float.
23511
23512 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23513 [!__fma] (fma): Define using libm_alias_double.
23514 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23515
23516 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23517
23518 [BZ #22336]
23519 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23520 and implement the collation rules for cs from CLDR on top of that.
23521 * Makefile: Add cs_CZ.UTF-8 to test-input.
23522 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23523
23524 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23525
23526 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23527
23528 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23529 Icarus Sparry <icarus.w.sparry@intel.com>
23530
23531 * benchtests/Makefile:Add BENCHSET to allow subsets of
23532 benchmarks to be run.
23533 * benchtests/README: Add documentation for: Running subsets of
23534 benchmarks.
23535
23536 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23537
23538 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23539 range of tests names.
23540
23541 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23542 result from property and remove "max", min" and "mean" from
23543 required properties based on benchtests/bench-skeleton.c.
23544
23545 2017-11-28 Florian Weimer <fweimer@redhat.com>
23546
23547 [BZ #20826]
23548 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23549 due to Internet requirement.
23550 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23551 tst-getaddrinfo5.
23552 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23553
23554 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23555
23556 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23557 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23558 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23559 (sysdep_routines): Add memset-ultra1.
23560 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23561 file.
23562 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23563 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23564 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23565 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23566 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23567 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23568 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23569 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23570
23571 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23572 file.
23573 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23574 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23575 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23576 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23577 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23578 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23579 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23580 macro.
23581 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23582 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23583 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23584 (sysdep_routines): Add memcpy-ultra1.
23585 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23586 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23587
23588 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23589
23590 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23591 (cfloat_versions): Take function argument without trailing 'f'.
23592 Call libm_alias_float_other.
23593 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23594 * sysdeps/alpha/fpu/cargf.c: Likewise.
23595 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23596 * sysdeps/alpha/fpu/conjf.c: Likewise.
23597 * sysdeps/alpha/fpu/crealf.c: Likewise.
23598 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23599 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23600 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23601 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23602 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23603 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23604 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23605 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23606 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23607 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23608 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23609 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23610 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23611 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23612 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23613 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23614 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23615 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23616 (clog10f): Use libm_alias_float_other.
23617 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23618 (ceilf): Define using libm_alias_float.
23619 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23620 (copysignf): Define using libm_alias_float.
23621 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23622 (fabsf): Define using libm_alias_float.
23623 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23624 (floorf): Define using libm_alias_float.
23625 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23626 (fmaxf): Define using libm_alias_float.
23627 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23628 (fminf): Define using libm_alias_float.
23629 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23630 (lrintf): Define using libm_alias_float.
23631 (llrintf): Likewise.
23632 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23633 (lroundf): Define using libm_alias_float.
23634 (llroundf): Likewise.
23635 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23636 (rintf): Define using libm_alias_float.
23637 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23638 (truncf): Define using libm_alias_float.
23639
23640 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23641 (ceilf): Define using libm_alias_float.
23642 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23643 (floorf): Define using libm_alias_float.
23644 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23645 (fmaf): Define using libm_alias_float.
23646 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23647 (fmaxf): Define using libm_alias_float.
23648 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23649 (fminf): Define using libm_alias_float.
23650 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23651 (llrintf): Define using libm_alias_float.
23652 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23653 (llroundf): Define using libm_alias_float.
23654 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23655 (lrintf): Define using libm_alias_float.
23656 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23657 (lroundf): Define using libm_alias_float.
23658 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23659 <libm-alias-float.h>.
23660 (nearbyintf): Define using libm_alias_float.
23661 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23662 (rintf): Define using libm_alias_float.
23663 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23664 (roundf): Define using libm_alias_float.
23665 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23666 (truncf): Define using libm_alias_float.
23667
23668 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23669 (ceil): Define using libm_alias_double.
23670 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23671 (copysign): Define using libm_alias_double.
23672 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23673 (fabs): Define using libm_alias_double.
23674 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23675 (floor): Define using libm_alias_double.
23676 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23677 (fmax): Define using libm_alias_double.
23678 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23679 (fmin): Define using libm_alias_double.
23680 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23681 (lrint): Define using libm_alias_double.
23682 (llrint): Likewise.
23683 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23684 (lround): Define using libm_alias_double.
23685 (llround): Likewise.
23686 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23687 (rint): Define using libm_alias_double.
23688 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23689 (trunc): Define using libm_alias_double.
23690
23691 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23692 (libm_alias_double_r): Add semicolon after weak_alias call.
23693
23694 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23695
23696 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23697 (ceil): Define using libm_alias_double.
23698 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23699 (floor): Define using libm_alias_double.
23700 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23701 (fma): Define using libm_alias_double.
23702 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23703 (fmax): Define using libm_alias_double.
23704 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23705 (fmin): Define using libm_alias_double.
23706 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23707 (llrint): Define using libm_alias_double.
23708 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23709 (llround): Define using libm_alias_double.
23710 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23711 (lrint): Define using libm_alias_double.
23712 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23713 (lround): Define using libm_alias_double.
23714 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23715 (nearbyint): Define using libm_alias_double.
23716 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23717 (rint): Define using libm_alias_double.
23718 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23719 (round): Define using libm_alias_double.
23720 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23721 (trunc): Define using libm_alias_double.
23722
23723 2017-11-27 Florian Weimer <fweimer@redhat.com>
23724
23725 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23726 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23727 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23728 (tests): Add tst-mlock2.
23729 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23730 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23731 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23732 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23733 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23734 for mlock. Document mlock2.
23735
23736 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23737
23738 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23739 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23740 Likewise.
23741 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23742 Likewise.
23743 * sysdeps/x86/Makeconfig: New file.
23744 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23745 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23746 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23747 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23748 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23749 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23750 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23751 Likewise.
23752 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23753 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23754 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23755 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23756 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23757 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23758 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23759 * manual/math.texi (Mathematics): Document support for _Float64x.
23760 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23761 * stdlib/Versions (GLIBC_2.27): Likewise.
23762 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23763 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23764 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23765 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23766 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23767 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23768 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23769 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23770 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23771 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23772 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23773 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23775 Likewise.
23776 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23777 Likewise.
23778 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23779 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23780 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23781 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23782 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23783 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23784 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23785 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23786 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23787 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23788 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23789 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23790 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23791 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23792
23793 2017-11-27 Andreas Schwab <schwab@suse.de>
23794
23795 * elf/Makefile (dl-routines): Add dl-sort-maps.
23796 * elf/dl-sort-maps.c: New file.
23797 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23798 (_dl_sort_maps): Declare.
23799 * elf/dl-fini.c (_dl_sort_fini): Remove.
23800 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23801 * elf/dl-close.c (_dl_close_worker): Likewise.
23802 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23803 open-coding it.
23804 * elf/dl-open.c (dl_open_worker): Likewise.
23805
23806 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23807
23808 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23809 using libm_alias_float128.
23810 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23811 Likewise.
23812 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23813 Likewise.
23814 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23815 (setpayloadsigf128): Likewise.
23816 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23817 Likewise.
23818 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23819 Likewise.
23820
23821 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23822 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23823 -mfloat128 to CFLAGS.
23824 ($(foreach
23825 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23826 Likewise.
23827 (CFLAGS-libm-test-support-float64x.c): New variable.
23828 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23829 $(f128-loader-link) to gnulib-tests.
23830
23831 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23832 (libm_alias_float128_other_r): If
23833 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23834 alias.
23835 (libm_alias_float128_r): Add semicolon after weak_alias call.
23836 * sysdeps/generic/libm-alias-ldouble.h
23837 (libm_alias_ldouble_other_r_f128): New macro.
23838 (libm_alias_ldouble_other_r_f64x): Likewise.
23839 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23840 and libm_alias_ldouble_other_r_f64x.
23841 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23842 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23843 (libm_alias_ldouble_other_r_f128): New macro.
23844 (libm_alias_ldouble_other_r_f64x): Likewise.
23845 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23846 and libm_alias_ldouble_other_r_f64x.
23847
23848 * stdlib/strfroml.c: Always include <stdlib.h>.
23849 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23850 undefine as macro and define as weak alias.
23851 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23852 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23853 <stdlib.h>.
23854 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23855 Define and later undefine as macro and define as weak alias.
23856
23857 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23858 Define and later undefine as macro. Define as weak alias if
23859 [!USE_WIDE_CHAR].
23860 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23861 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23862 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23863 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23864 Define and later undefine as macro. Define as weak alias if
23865 [!USE_WIDE_CHAR].
23866 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23867 Define and later undefine as macro. Define as weak alias if
23868 [USE_WIDE_CHAR].
23869 * sysdeps/ieee754/float128/strtof128_l.c
23870 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23871 Define and later undefine as macro. Define as weak alias if
23872 [!USE_WIDE_CHAR].
23873 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23874 Define and later undefine as macro. Define as weak alias if
23875 [USE_WIDE_CHAR].
23876 * sysdeps/ieee754/ldbl-128/strtold_l.c
23877 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23878 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23879 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23880 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23881 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23882 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23883 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23884 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23885 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23886 * sysdeps/ieee754/ldbl-96/strtold_l.c
23887 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23888 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23889 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23890 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23891
23892 * math/test-float64x.h: New file.
23893 * math/Makefile (type-float64x-yes): New variable.
23894 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23895
23896 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23897 function-like macro.
23898 (min_of_type_): Likewise.
23899 (min_of_type_l): Likewise.
23900 (min_of_type_f128): Likewise.
23901 (min_of_type): Pass () as last argument of __MATH_TG.
23902
23903 * stdlib/tst-strtod-round-skeleton.c
23904 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23905 headers.
23906
23907 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23908 for combinations of long double with _Float64 and _Float64x.
23909
23910 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23911 (__DECL_SIMD_cosf32): Likewise.
23912 (__DECL_SIMD_cosf64): Likewise.
23913 (__DECL_SIMD_cosf32x): Likewise.
23914 (__DECL_SIMD_cosf64x): Likewise.
23915 (__DECL_SIMD_cosf128x): Likewise.
23916 (__DECL_SIMD_sinf16): Likewise.
23917 (__DECL_SIMD_sinf32): Likewise.
23918 (__DECL_SIMD_sinf64): Likewise.
23919 (__DECL_SIMD_sinf32x): Likewise.
23920 (__DECL_SIMD_sinf64x): Likewise.
23921 (__DECL_SIMD_sinf128x): Likewise.
23922 (__DECL_SIMD_sincosf16): Likewise.
23923 (__DECL_SIMD_sincosf32): Likewise.
23924 (__DECL_SIMD_sincosf64): Likewise.
23925 (__DECL_SIMD_sincosf32x): Likewise.
23926 (__DECL_SIMD_sincosf64x): Likewise.
23927 (__DECL_SIMD_sincosf128x): Likewise.
23928 (__DECL_SIMD_logf16): Likewise.
23929 (__DECL_SIMD_logf32): Likewise.
23930 (__DECL_SIMD_logf64): Likewise.
23931 (__DECL_SIMD_logf32x): Likewise.
23932 (__DECL_SIMD_logf64x): Likewise.
23933 (__DECL_SIMD_logf128x): Likewise.
23934 (__DECL_SIMD_expf16): Likewise.
23935 (__DECL_SIMD_expf32): Likewise.
23936 (__DECL_SIMD_expf64): Likewise.
23937 (__DECL_SIMD_expf32x): Likewise.
23938 (__DECL_SIMD_expf64x): Likewise.
23939 (__DECL_SIMD_expf128x): Likewise.
23940 (__DECL_SIMD_powf16): Likewise.
23941 (__DECL_SIMD_powf32): Likewise.
23942 (__DECL_SIMD_powf64): Likewise.
23943 (__DECL_SIMD_powf32x): Likewise.
23944 (__DECL_SIMD_powf64x): Likewise.
23945 (__DECL_SIMD_powf128x): Likewise.
23946
23947 * stdlib/Versions (libc): Move entries for wcstof128 and
23948 wcstof128_l to ....
23949 * wcsmbs/Versions (libc): ... here.
23950 Include <float128-abi.h>.
23951
23952 2017-11-24 Florian Weimer <fweimer@redhat.com>
23953
23954 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23955 bits/mman-shared.h.
23956 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23957 <bits/mman-shared.h>.
23958 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23959 to ...
23960 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23961 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23962 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23963 <bits/mman-shared.h>.
23964
23965 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23966
23967 [BZ #22457]
23968 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23969 posix_memalign/free.
23970 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23971
23972 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23973
23974 [BZ #22469]
23975 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23976 and implement the collation rules for pl from CLDR on top of that.
23977 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23978 of locales to be built for testing.
23979 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23980
23981 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23982
23983 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23984 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23985 libm_alias_ldouble_other.
23986 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23987 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23988 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23989 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23990 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23991 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23992 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23993 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23994 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23995 libm_alias_ldouble_r.
23996 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23997 libm_alias_ldouble_other.
23998 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23999 (log10l): Likewise.
24000 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24001 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24002 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24003 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24004 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24005 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24006 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24007 (atan2l): Likewise.
24008 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24009 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24010 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24011 libm_alias_ldouble.
24012 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24013 (cosl): Likewise.
24014 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24015 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24016 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24017 (expl): Likewise.
24018 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24019 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24020 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24021 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24022 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24023 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24024 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24025 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24026 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24027 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24028 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24029 libm_alias_ldouble.
24030 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24031 libm_alias_ldouble_other.
24032 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24033 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24034 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24035 libm_alias_ldouble.
24036 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24037 libm_alias_ldouble_other.
24038 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24039 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24040 * sysdeps/ia64/fpu/w_lgammal_main.c
24041 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24042 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24043
24044 2017-11-23 Florian Weimer <fweimer@redhat.com>
24045
24046 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24047 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24048 alike. Remove freeres marker.
24049 * malloc/arena.c (arena_thread_freeres): Call
24050 tcache_thread_shutdown.
24051
24052 2017-11-23 Florian Weimer <fweimer@redhat.com>
24053
24054 [BZ #22459]
24055 Export nscd hash function as __nss_hash.
24056 * include/nss.h (__nss_hash): Declare.
24057 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24058 symbol.
24059 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24060 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24061 of __nscd_hash.
24062 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24063 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24064 * nss/Makefiles (routines): Add nss_hash.
24065 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24066 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24067 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24068 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24069
24070 2017-11-23 Florian Weimer <fweimer@redhat.com>
24071
24072 [BZ #22478]
24073 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24074 Return error code, not -1.
24075 * signal/tst-sigwait-eintr.c: New file.
24076 * signal/Makefile (tests): Add tst-sigwait-eintr.
24077
24078 2017-11-23 Florian Weimer <fweimer@redhat.com>
24079
24080 Linux: Add memfd_create system call wrapper
24081 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24082 tst-memfd_create.
24083 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24084 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24085 [__USE_GNU] (memfd_create): Declare.
24086 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24087 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24088 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24089 * sysdeps/unix/sysv/linux/**.abilist: Update.
24090 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24091
24092 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24093
24094 * localedata/gen-locale.sh: Fix typo in variable name.
24095
24096 * resolv/res_debug.c (p_secstodate): Condition definition on
24097 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24098 directly as __p_secstodate, and as a compat symbol. Do not use
24099 libresolv_hidden_def.
24100 * resolv/resolv.h (p_secstodate): Remove macro and function
24101 declaration.
24102 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24103 using p_secstodate.
24104 * include/resolv.h (__p_secstodate): Do not use
24105 libresolv_hidden_proto.
24106 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24107 (tests-internal): ... here.
24108 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24109 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24110 and declare and use __p_secstodate and use compat_symbol_reference
24111 in that case.
24112 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24113 implementation returning 77.
24114
24115 [BZ #22463]
24116 * resolv/res_debug.c: Include <libc-diag.h>.
24117 (p_secstodate): Assert time_t at least as wide as u_long. On
24118 overflow, use integer seconds since the epoch as output, or use
24119 "<overflow>" as output and set errno to EOVERFLOW if integer
24120 seconds since the epoch would be 14 or more characters.
24121 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24122 for sprintf call.
24123 * resolv/tst-p_secstodate.c: New file.
24124 * resolv/Makefile (tests): Add tst-p_secstodate.
24125 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24126
24127 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24128 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24129 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24130
24131 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24132
24133 * posix/regcomp.c (init_word_char): Add comments.
24134
24135 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24136
24137 [BZ #22447]
24138 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24139 strlen to compute length of ut_user and set trailing NUL byte of
24140 result explicitly.
24141
24142 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24143
24144 [BZ #15537]
24145 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24146 using “copy "iso14651_t1"” and then implementing the
24147 collation rules for lv from CLDR on top of that.
24148 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24149 of locales to be built for testing.
24150 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24151 sorting.
24152
24153 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24154
24155 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24156 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24157 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24158 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24159 [__USE_MISC] (MADV_HWPOISON): New macro.
24160 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24161
24162 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24163
24164 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24165 -Wmissing-braces on GCC 4.9.
24166
24167 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24168
24169 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24170 * sysdeps/s390/s390-32/start.S (_start): Likewise
24171 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24172 (thread_start): Likewise.
24173 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24174 (thread_start): Likewise.
24175 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24176 (__makecontext_ret): Likewise.
24177 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24178 (__makecontext_ret): Likewise.
24179
24180 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24181
24182 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24183 __wcschrnul): Remove attribute_hidden.
24184
24185 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24186
24187 regex: don't assume uint64_t or uint32_t
24188 This avoids -Werror=overflow errors for 32-bit systems in
24189 the 64-bit case. Problem reported by Joseph Myers in:
24190 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24191 Also, when this code is used in Gnulib it ports to platforms
24192 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24193 them, and on some 32-bit compilers there is no uint64_t.
24194 Problem reported by Gianluigi Tiesi in:
24195 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24196 * posix/regcomp.c (init_word_char): Don't assume that the types
24197 uint64_t and uint32_t exist. Adapted from Gnulib patch
24198 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24199 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24200
24201 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24202
24203 * sysdeps/aarch64/memset-reg.h: New file.
24204 * sysdeps/aarch64/memset.S: Use it.
24205 (__memset): Rename to MEMSET macro.
24206 [ZVA_MACRO]: Use zva_macro.
24207 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24208 Add memset_generic and memset_falkor.
24209 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24210 (__libc_ifunc_impl_list): Add memset ifuncs.
24211 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24212 local variable zva_size.
24213 * sysdeps/aarch64/multiarch/memset.c: New file.
24214 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24215 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24216 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24217 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24218 (DCZID_DZP_MASK): New macro.
24219 (DCZID_BS_MASK): Likewise.
24220 (init_cpu_features): Read and set zva_size.
24221 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24222 (struct cpu_features): New member zva_size.
24223
24224 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24225 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24226 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24227
24228 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24229 backwards. Fix timing computation.
24230 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24231 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24232 on memset by N at a time. Fix timing computation.
24233
24234 2017-11-20 Florian Weimer <fweimer@redhat.com>
24235
24236 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24237 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24238
24239 2017-11-19 Florian Weimer <fweimer@redhat.com>
24240
24241 manual: Document mprotect
24242 * manual/memory.texi (Memory Protection): New section.
24243 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24244 documentation of PROT_* flags and reference the Memory Protection
24245 section instead.
24246
24247 2017-11-19 Florian Weimer <fweimer@redhat.com>
24248
24249 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24250 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24251 (Scatter-Gather): ... to here. Remove misleading comment.
24252
24253 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24254
24255 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24256 style.
24257
24258 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24259 when /proc/<pid>/setgroups does not exist.
24260
24261 2017-11-18 Florian Weimer <fweimer@redhat.com>
24262
24263 * sysdeps/unix/sysv/linux/tst-ttyname.c
24264 (become_root_in_mount_ns): Remove.
24265 (do_in_chroot_1): Call support_enter_mount_namespace.
24266 (do_in_chroot_2): Likewise.
24267 (do_test): Call support_become_root early.
24268
24269 2017-11-18 Florian Weimer <fweimer@redhat.com>
24270
24271 * support/namespace.h (support_enter_mount_namespace): Declare.
24272 * support/support_enter_mount_namespace.c: New file.
24273 * support/Makefile (libsupport-routines): Add
24274 support_enter_mount_namespace.
24275
24276 2017-11-18 Florian Weimer <fweimer@redhat.com>
24277
24278 * support/temp_file.c (support_create_temp_directory): Use
24279 test_dir and do not rely on the presence of the XXXXXX suffix.
24280 * support/temp_file.h (support_create_temp_directory): Update
24281 comment.
24282 * support/tst-xreadlink.c (do_test): Adjust.
24283 * support/support_chroot.c (support_chroot_create): Likewise.
24284
24285 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24286
24287 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24288 macro.
24289 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24290 htm-no-suspend.
24291
24292 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24293
24294 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24295 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24296 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24297 (ceill): Define using libm_alias_ldouble.
24298 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24299 <libm-alias-ldouble.h>.
24300 (copysignl): Define using libm_alias_ldouble.
24301 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24302 (fabsl): Define using libm_alias_ldouble.
24303 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24304 (floorl): Define using libm_alias_ldouble.
24305 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24306 (fmaxl): Define using libm_alias_ldouble.
24307 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24308 (fminl): Define using libm_alias_ldouble.
24309 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24310 (llrintl): Define using libm_alias_ldouble.
24311 (lrintl): Likewise.
24312 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24313 <libm-alias-ldouble.h>.
24314 (nearbyintl): Define using libm_alias_ldouble.
24315 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24316 (truncl): Define using libm_alias_ldouble.
24317 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24318 <libm-alias-ldouble.h>.
24319 (lrintl): Define using libm_alias_ldouble.
24320
24321 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24322 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24323 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24324 (asinhl): Define using libm_alias_ldouble.
24325 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24326 (atanl): Define using libm_alias_ldouble.
24327 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24328 (cbrtl): Define using libm_alias_ldouble.
24329 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24330 (ceill): Define using libm_alias_ldouble.
24331 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24332 (copysignl): Define using libm_alias_ldouble.
24333 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24334 (fabsl): Define using libm_alias_ldouble.
24335 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24336 (floorl): Define using libm_alias_ldouble.
24337 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24338 (fmaxl): Define using libm_alias_ldouble.
24339 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24340 (fminl): Define using libm_alias_ldouble.
24341 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24342 (frexpl): Define using libm_alias_ldouble.
24343 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24344 (llrintl): Define using libm_alias_ldouble.
24345 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24346 (logbl): Define using libm_alias_ldouble.
24347 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24348 (lrintl): Define using libm_alias_ldouble.
24349 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24350 (nearbyintl): Define using libm_alias_ldouble.
24351 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24352 (nextafterl): Define using libm_alias_ldouble.
24353 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24354 (remquol): Define using libm_alias_ldouble.
24355 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24356 (rintl): Define using libm_alias_ldouble.
24357 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24358 (truncl): Define using libm_alias_ldouble.
24359 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24360 (fmaxl): Define using libm_alias_ldouble.
24361 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24362 (fminl): Define using libm_alias_ldouble.
24363
24364 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24365 to C syntax instead of availability and properties of types.
24366 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24367 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24368 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24369 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24370 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24371 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24372
24373 2017-11-17 Florian Weimer <fweimer@redhat.com>
24374
24375 support_become_root: Enable file creation in namespaces.
24376 * support/support_become_root.c (setup_mapping): New function.
24377 (support_become_root): Call it.
24378
24379 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24380
24381 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24382 macro.
24383
24384 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24385
24386 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24387 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24388
24389 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24390
24391 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24392
24393 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24394 version to 4.14.
24395
24396 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24397
24398 * INSTALL: Fix botched up regeneration.
24399
24400 * NEWS: Update sourceare link to https.
24401 * configure.ac: Likewise.
24402 * crypt/md5test-giant.c: Likewise.
24403 * dlfcn/bug-atexit1.c: Likewise.
24404 * dlfcn/bug-atexit2.c: Likewise.
24405 * localedata/README: Likewise.
24406 * malloc/tst-mallocfork.c: Likewise.
24407 * manual/install.texi: Likewise.
24408 * nptl/tst-pthread-getattr.c: Likewise.
24409 * stdio-common/tst-fgets.c: Likewise.
24410 * stdio-common/tst-fwrite.c: Likewise.
24411 * sunrpc/Makefile: Likewise.
24412 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24413 * wcsmbs/tst-mbrtowc2.c: Likewise.
24414 * configure: Regenerate.
24415 * INSTALL: Regenerate.
24416
24417 2017-11-15 Martin Sebor <msebor@redhat.com>
24418
24419 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24420 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24421 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24422
24423 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24424
24425 [BZ #22145]
24426 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24427 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24428
24429 [BZ #22145]
24430 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24431 Defer is_pty check until end of the function.
24432 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24433
24434 [BZ #22145]
24435 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24436 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24437 (ttyname): Likewise.
24438 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24439 (__ttyname_r): Likewise.
24440
24441 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24442 int to bool.
24443
24444 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24445
24446 * manual/terminal.texi (Is It a Terminal):
24447 Mention ENODEV for ttyname and ttyname_r.
24448
24449 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24450
24451 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24452 constant and macro.
24453
24454 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24455 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24456 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24457 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24458 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24459 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24460
24461 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24462
24463 * signal/sigrelse.c (sigrelse): Optimize implementation.
24464
24465 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24466 (__sigpause): Rely on __sigsuspend to implement single thread
24467 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24468
24469 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24470
24471 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24472 kernel version to 4.14.
24473
24474 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24475
24476 [BZ #22442]
24477 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24478 Check if ifname is too long.
24479
24480 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24481
24482 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24483
24484 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24485
24486 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24487 was accidentally lost.
24488
24489 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24490
24491 * localedata/locales/az_IR: Add standard copyright header.
24492
24493 2017-11-15 Florian Weimer <fweimer@redhat.com>
24494
24495 [BZ #22439]
24496 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24497 not just the top one. Output a new "subheaps" statistic.
24498
24499 2017-11-15 Florian Weimer <fweimer@redhat.com>
24500
24501 [BZ #22408]
24502 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24503 under the per-arena lock.
24504 * malloc/Makefile (tests): Add tst-malloc_info.
24505 (tst-malloc_info): Link with libpthread.
24506 * malloc/tst-malloc_info.c: New file.
24507
24508 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24509
24510 [BZ #21660]
24511 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24512 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24513 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24514 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24515 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24516 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24517 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24518 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24519 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24520 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24521 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24522 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24523 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24524 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24525 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24526 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24527 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24528 (__floating_type): Likewise.
24529 (__real_integer_type): Likewise.
24530 (__complex_integer_type): Likewise.
24531 (__expr_is_real): Likewise.
24532 (__tgmath_real_type_sub): Likewise.
24533 (__tgmath_real_type): Likewise.
24534 (__tgmath_complex_type_sub): Likewise.
24535 (__tgmath_complex_type): Likewise.
24536 (__TGMATH_F128): Likewise.
24537 (__TGMATH_CF128): Likewise.
24538 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24539 new macros.
24540 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24541 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24542 Likewise.
24543 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24544 Likewise.
24545 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24546 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24547 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24548 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24549 Likewise.
24550 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24551 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24552 Likewise.
24553 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24554 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24555 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24556 Likewise.
24557 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24558 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24559 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24560 (cimag): Likewise.
24561 (creal): Likewise.
24562
24563 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24564
24565 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24566 for stpncpy calls for GCC 8.
24567 (test_strncat): Disable -Wstringop-truncation warning for strncat
24568 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24569 strncat call for GCC 7.
24570 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24571 calls for GCC 8.
24572 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24573 trailing NUL.
24574
24575 * string/bug-strncat1.c: Include <libc-diag.h>.
24576 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24577
24578 2017-11-13 Claude Paroz <claude@2xlibre.net>
24579
24580 [BZ #22387]
24581 * localedata/locales/aa_DJ: Improved readibility by replacing
24582 <Uxxxx> sequences in the ASCII printable range by their ASCII
24583 character equivalents.
24584 * localedata/locales/aa_ER: Likewise.
24585 * localedata/locales/aa_ER@saaho: Likewise.
24586 * localedata/locales/aa_ET: Likewise.
24587 * localedata/locales/af_ZA: Likewise.
24588 * localedata/locales/agr_PE: Likewise.
24589 * localedata/locales/ak_GH: Likewise.
24590 * localedata/locales/am_ET: Likewise.
24591 * localedata/locales/anp_IN: Likewise.
24592 * localedata/locales/ar_AE: Likewise.
24593 * localedata/locales/ar_BH: Likewise.
24594 * localedata/locales/ar_DZ: Likewise.
24595 * localedata/locales/ar_EG: Likewise.
24596 * localedata/locales/ar_IN: Likewise.
24597 * localedata/locales/ar_IQ: Likewise.
24598 * localedata/locales/ar_JO: Likewise.
24599 * localedata/locales/ar_KW: Likewise.
24600 * localedata/locales/ar_LB: Likewise.
24601 * localedata/locales/ar_LY: Likewise.
24602 * localedata/locales/ar_MA: Likewise.
24603 * localedata/locales/ar_OM: Likewise.
24604 * localedata/locales/ar_QA: Likewise.
24605 * localedata/locales/ar_SA: Likewise.
24606 * localedata/locales/ar_SD: Likewise.
24607 * localedata/locales/ar_SS: Likewise.
24608 * localedata/locales/ar_SY: Likewise.
24609 * localedata/locales/ar_TN: Likewise.
24610 * localedata/locales/ar_YE: Likewise.
24611 * localedata/locales/as_IN: Likewise.
24612 * localedata/locales/ast_ES: Likewise.
24613 * localedata/locales/ayc_PE: Likewise.
24614 * localedata/locales/az_AZ: Likewise.
24615 * localedata/locales/az_IR: Likewise.
24616 * localedata/locales/be_BY: Likewise.
24617 * localedata/locales/be_BY@latin: Likewise.
24618 * localedata/locales/bem_ZM: Likewise.
24619 * localedata/locales/ber_DZ: Likewise.
24620 * localedata/locales/ber_MA: Likewise.
24621 * localedata/locales/bg_BG: Likewise.
24622 * localedata/locales/bhb_IN: Likewise.
24623 * localedata/locales/bho_IN: Likewise.
24624 * localedata/locales/bi_VU: Likewise.
24625 * localedata/locales/bn_BD: Likewise.
24626 * localedata/locales/bn_IN: Likewise.
24627 * localedata/locales/bo_CN: Likewise.
24628 * localedata/locales/bo_IN: Likewise.
24629 * localedata/locales/br_FR: Likewise.
24630 * localedata/locales/brx_IN: Likewise.
24631 * localedata/locales/bs_BA: Likewise.
24632 * localedata/locales/byn_ER: Likewise.
24633 * localedata/locales/ca_AD: Likewise.
24634 * localedata/locales/ca_ES: Likewise.
24635 * localedata/locales/ca_FR: Likewise.
24636 * localedata/locales/ca_IT: Likewise.
24637 * localedata/locales/ce_RU: Likewise.
24638 * localedata/locales/chr_US: Likewise.
24639 * localedata/locales/cmn_TW: Likewise.
24640 * localedata/locales/crh_UA: Likewise.
24641 * localedata/locales/cs_CZ: Likewise.
24642 * localedata/locales/csb_PL: Likewise.
24643 * localedata/locales/cv_RU: Likewise.
24644 * localedata/locales/cy_GB: Likewise.
24645 * localedata/locales/da_DK: Likewise.
24646 * localedata/locales/de_AT: Likewise.
24647 * localedata/locales/de_BE: Likewise.
24648 * localedata/locales/de_CH: Likewise.
24649 * localedata/locales/de_DE: Likewise.
24650 * localedata/locales/de_IT: Likewise.
24651 * localedata/locales/de_LI: Likewise.
24652 * localedata/locales/de_LU: Likewise.
24653 * localedata/locales/doi_IN: Likewise.
24654 * localedata/locales/dv_MV: Likewise.
24655 * localedata/locales/dz_BT: Likewise.
24656 * localedata/locales/el_CY: Likewise.
24657 * localedata/locales/el_GR: Likewise.
24658 * localedata/locales/en_AG: Likewise.
24659 * localedata/locales/en_AU: Likewise.
24660 * localedata/locales/en_BW: Likewise.
24661 * localedata/locales/en_CA: Likewise.
24662 * localedata/locales/en_DK: Likewise.
24663 * localedata/locales/en_GB: Likewise.
24664 * localedata/locales/en_HK: Likewise.
24665 * localedata/locales/en_IE: Likewise.
24666 * localedata/locales/en_IL: Likewise.
24667 * localedata/locales/en_IN: Likewise.
24668 * localedata/locales/en_NG: Likewise.
24669 * localedata/locales/en_NZ: Likewise.
24670 * localedata/locales/en_PH: Likewise.
24671 * localedata/locales/en_SG: Likewise.
24672 * localedata/locales/en_US: Likewise.
24673 * localedata/locales/en_ZA: Likewise.
24674 * localedata/locales/en_ZM: Likewise.
24675 * localedata/locales/en_ZW: Likewise.
24676 * localedata/locales/eo: Likewise.
24677 * localedata/locales/es_AR: Likewise.
24678 * localedata/locales/es_BO: Likewise.
24679 * localedata/locales/es_CL: Likewise.
24680 * localedata/locales/es_CO: Likewise.
24681 * localedata/locales/es_CR: Likewise.
24682 * localedata/locales/es_CU: Likewise.
24683 * localedata/locales/es_DO: Likewise.
24684 * localedata/locales/es_EC: Likewise.
24685 * localedata/locales/es_ES: Likewise.
24686 * localedata/locales/es_GT: Likewise.
24687 * localedata/locales/es_HN: Likewise.
24688 * localedata/locales/es_MX: Likewise.
24689 * localedata/locales/es_NI: Likewise.
24690 * localedata/locales/es_PA: Likewise.
24691 * localedata/locales/es_PE: Likewise.
24692 * localedata/locales/es_PR: Likewise.
24693 * localedata/locales/es_PY: Likewise.
24694 * localedata/locales/es_SV: Likewise.
24695 * localedata/locales/es_US: Likewise.
24696 * localedata/locales/es_UY: Likewise.
24697 * localedata/locales/es_VE: Likewise.
24698 * localedata/locales/et_EE: Likewise.
24699 * localedata/locales/eu_ES: Likewise.
24700 * localedata/locales/eu_ES@euro: Likewise.
24701 * localedata/locales/fa_IR: Likewise.
24702 * localedata/locales/ff_SN: Likewise.
24703 * localedata/locales/fi_FI: Likewise.
24704 * localedata/locales/fil_PH: Likewise.
24705 * localedata/locales/fo_FO: Likewise.
24706 * localedata/locales/fr_BE: Likewise.
24707 * localedata/locales/fr_CA: Likewise.
24708 * localedata/locales/fr_CH: Likewise.
24709 * localedata/locales/fr_FR: Likewise.
24710 * localedata/locales/fr_LU: Likewise.
24711 * localedata/locales/fur_IT: Likewise.
24712 * localedata/locales/fy_DE: Likewise.
24713 * localedata/locales/fy_NL: Likewise.
24714 * localedata/locales/ga_IE: Likewise.
24715 * localedata/locales/gd_GB: Likewise.
24716 * localedata/locales/gez_ER: Likewise.
24717 * localedata/locales/gez_ET: Likewise.
24718 * localedata/locales/gl_ES: Likewise.
24719 * localedata/locales/gu_IN: Likewise.
24720 * localedata/locales/gv_GB: Likewise.
24721 * localedata/locales/ha_NG: Likewise.
24722 * localedata/locales/hak_TW: Likewise.
24723 * localedata/locales/he_IL: Likewise.
24724 * localedata/locales/hi_IN: Likewise.
24725 * localedata/locales/hif_FJ: Likewise.
24726 * localedata/locales/hne_IN: Likewise.
24727 * localedata/locales/hr_HR: Likewise.
24728 * localedata/locales/hsb_DE: Likewise.
24729 * localedata/locales/ht_HT: Likewise.
24730 * localedata/locales/hu_HU: Likewise.
24731 * localedata/locales/hy_AM: Likewise.
24732 * localedata/locales/i18n: Likewise.
24733 * localedata/locales/ia_FR: Likewise.
24734 * localedata/locales/id_ID: Likewise.
24735 * localedata/locales/ig_NG: Likewise.
24736 * localedata/locales/ik_CA: Likewise.
24737 * localedata/locales/is_IS: Likewise.
24738 * localedata/locales/it_CH: Likewise.
24739 * localedata/locales/it_IT: Likewise.
24740 * localedata/locales/iu_CA: Likewise.
24741 * localedata/locales/ja_JP: Likewise.
24742 * localedata/locales/ka_GE: Likewise.
24743 * localedata/locales/kk_KZ: Likewise.
24744 * localedata/locales/kl_GL: Likewise.
24745 * localedata/locales/kn_IN: Likewise.
24746 * localedata/locales/ko_KR: Likewise.
24747 * localedata/locales/kok_IN: Likewise.
24748 * localedata/locales/ks_IN: Likewise.
24749 * localedata/locales/ks_IN@devanagari: Likewise.
24750 * localedata/locales/ku_TR: Likewise.
24751 * localedata/locales/kw_GB: Likewise.
24752 * localedata/locales/ky_KG: Likewise.
24753 * localedata/locales/lb_LU: Likewise.
24754 * localedata/locales/lg_UG: Likewise.
24755 * localedata/locales/li_BE: Likewise.
24756 * localedata/locales/li_NL: Likewise.
24757 * localedata/locales/lij_IT: Likewise.
24758 * localedata/locales/ln_CD: Likewise.
24759 * localedata/locales/lo_LA: Likewise.
24760 * localedata/locales/lt_LT: Likewise.
24761 * localedata/locales/lv_LV: Likewise.
24762 * localedata/locales/lzh_TW: Likewise.
24763 * localedata/locales/mag_IN: Likewise.
24764 * localedata/locales/mai_IN: Likewise.
24765 * localedata/locales/mg_MG: Likewise.
24766 * localedata/locales/mhr_RU: Likewise.
24767 * localedata/locales/mi_NZ: Likewise.
24768 * localedata/locales/mk_MK: Likewise.
24769 * localedata/locales/ml_IN: Likewise.
24770 * localedata/locales/mn_MN: Likewise.
24771 * localedata/locales/mni_IN: Likewise.
24772 * localedata/locales/mr_IN: Likewise.
24773 * localedata/locales/ms_MY: Likewise.
24774 * localedata/locales/mt_MT: Likewise.
24775 * localedata/locales/my_MM: Likewise.
24776 * localedata/locales/nan_TW: Likewise.
24777 * localedata/locales/nan_TW@latin: Likewise.
24778 * localedata/locales/nb_NO: Likewise.
24779 * localedata/locales/nds_DE: Likewise.
24780 * localedata/locales/nds_NL: Likewise.
24781 * localedata/locales/ne_NP: Likewise.
24782 * localedata/locales/nhn_MX: Likewise.
24783 * localedata/locales/niu_NU: Likewise.
24784 * localedata/locales/niu_NZ: Likewise.
24785 * localedata/locales/nl_AW: Likewise.
24786 * localedata/locales/nl_BE: Likewise.
24787 * localedata/locales/nl_NL: Likewise.
24788 * localedata/locales/nn_NO: Likewise.
24789 * localedata/locales/nr_ZA: Likewise.
24790 * localedata/locales/nso_ZA: Likewise.
24791 * localedata/locales/oc_FR: Likewise.
24792 * localedata/locales/om_ET: Likewise.
24793 * localedata/locales/om_KE: Likewise.
24794 * localedata/locales/or_IN: Likewise.
24795 * localedata/locales/os_RU: Likewise.
24796 * localedata/locales/pa_IN: Likewise.
24797 * localedata/locales/pa_PK: Likewise.
24798 * localedata/locales/pap_AW: Likewise.
24799 * localedata/locales/pap_CW: Likewise.
24800 * localedata/locales/pl_PL: Likewise.
24801 * localedata/locales/ps_AF: Likewise.
24802 * localedata/locales/pt_BR: Likewise.
24803 * localedata/locales/pt_PT: Likewise.
24804 * localedata/locales/quz_PE: Likewise.
24805 * localedata/locales/raj_IN: Likewise.
24806 * localedata/locales/ro_RO: Likewise.
24807 * localedata/locales/ru_RU: Likewise.
24808 * localedata/locales/ru_UA: Likewise.
24809 * localedata/locales/rw_RW: Likewise.
24810 * localedata/locales/sa_IN: Likewise.
24811 * localedata/locales/sat_IN: Likewise.
24812 * localedata/locales/sc_IT: Likewise.
24813 * localedata/locales/sd_IN: Likewise.
24814 * localedata/locales/sd_IN@devanagari: Likewise.
24815 * localedata/locales/se_NO: Likewise.
24816 * localedata/locales/sgs_LT: Likewise.
24817 * localedata/locales/shs_CA: Likewise.
24818 * localedata/locales/si_LK: Likewise.
24819 * localedata/locales/sid_ET: Likewise.
24820 * localedata/locales/sk_SK: Likewise.
24821 * localedata/locales/sl_SI: Likewise.
24822 * localedata/locales/sm_WS: Likewise.
24823 * localedata/locales/so_DJ: Likewise.
24824 * localedata/locales/so_ET: Likewise.
24825 * localedata/locales/so_KE: Likewise.
24826 * localedata/locales/so_SO: Likewise.
24827 * localedata/locales/sq_AL: Likewise.
24828 * localedata/locales/sq_MK: Likewise.
24829 * localedata/locales/sr_ME: Likewise.
24830 * localedata/locales/sr_RS: Likewise.
24831 * localedata/locales/sr_RS@latin: Likewise.
24832 * localedata/locales/ss_ZA: Likewise.
24833 * localedata/locales/st_ZA: Likewise.
24834 * localedata/locales/sv_FI: Likewise.
24835 * localedata/locales/sv_SE: Likewise.
24836 * localedata/locales/sw_KE: Likewise.
24837 * localedata/locales/sw_TZ: Likewise.
24838 * localedata/locales/szl_PL: Likewise.
24839 * localedata/locales/ta_IN: Likewise.
24840 * localedata/locales/ta_LK: Likewise.
24841 * localedata/locales/tcy_IN: Likewise.
24842 * localedata/locales/te_IN: Likewise.
24843 * localedata/locales/tg_TJ: Likewise.
24844 * localedata/locales/th_TH: Likewise.
24845 * localedata/locales/the_NP: Likewise.
24846 * localedata/locales/ti_ER: Likewise.
24847 * localedata/locales/ti_ET: Likewise.
24848 * localedata/locales/tig_ER: Likewise.
24849 * localedata/locales/tk_TM: Likewise.
24850 * localedata/locales/tl_PH: Likewise.
24851 * localedata/locales/tn_ZA: Likewise.
24852 * localedata/locales/to_TO: Likewise.
24853 * localedata/locales/tpi_PG: Likewise.
24854 * localedata/locales/tr_CY: Likewise.
24855 * localedata/locales/tr_TR: Likewise.
24856 * localedata/locales/ts_ZA: Likewise.
24857 * localedata/locales/tt_RU: Likewise.
24858 * localedata/locales/tt_RU@iqtelif: Likewise.
24859 * localedata/locales/ug_CN: Likewise.
24860 * localedata/locales/uk_UA: Likewise.
24861 * localedata/locales/unm_US: Likewise.
24862 * localedata/locales/ur_IN: Likewise.
24863 * localedata/locales/ur_PK: Likewise.
24864 * localedata/locales/uz_UZ: Likewise.
24865 * localedata/locales/uz_UZ@cyrillic: Likewise.
24866 * localedata/locales/ve_ZA: Likewise.
24867 * localedata/locales/vi_VN: Likewise.
24868 * localedata/locales/wa_BE: Likewise.
24869 * localedata/locales/wae_CH: Likewise.
24870 * localedata/locales/wal_ET: Likewise.
24871 * localedata/locales/wo_SN: Likewise.
24872 * localedata/locales/xh_ZA: Likewise.
24873 * localedata/locales/yi_US: Likewise.
24874 * localedata/locales/yo_NG: Likewise.
24875 * localedata/locales/yue_HK: Likewise.
24876 * localedata/locales/yuw_PG: Likewise.
24877 * localedata/locales/zh_CN: Likewise.
24878 * localedata/locales/zh_HK: Likewise.
24879 * localedata/locales/zh_SG: Likewise.
24880 * localedata/locales/zh_TW: Likewise.
24881 * localedata/locales/zu_ZA: Likewise.
24882
24883 2017-11-13 Florian Weimer <fweimer@redhat.com>
24884
24885 * support/next_to_fault.h, support/next_to_fault.c: New files.
24886 * support/Makefile (libsupport-routines): Add next_to_fault.
24887 * resolv/tst-inet_pton.c (struct next_to_fault)
24888 (next_to_fault_allocate, next_to_fault_free): Remove.
24889 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24890
24891 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24892
24893 * elf/dl-support.c: Include <dl-procruntime.c>.
24894 * include/link.h: Include <link_map.h>.
24895 * sysdeps/generic/dl-procruntime.c: New file.
24896 * sysdeps/generic/link_map.h: Likewise.
24897 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24898 the writable ld.so namespace.
24899
24900 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24901
24902 timezone: pacify GCC -Wstringop-truncation
24903 Problem reported by Martin Sebor in:
24904 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24905 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24906
24907 2017-11-12 Florian Weimer <fweimer@redhat.com>
24908
24909 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24910 tst-xreadlink.
24911 (tests): Add tst-xreadlink.
24912 * support/support.h (xstrndup): Declare.
24913 * support/xunistd.h (xunlink, xreadlink): Declare.
24914 * support/temp_file.h (support_create_temp_directory): Declare.
24915 * support/temp_file.c (support_create_temp_directory): New function.
24916 * support/support_chroot.c (support_chroot_create): Use it.
24917 * support/xreadlink.c: New file.
24918 * support/xstrndup.c: Likewise.
24919 * support/xunlink.c: Likewise.
24920 * support/tst-xreadlink.c: Likewise.
24921
24922 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24923
24924 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24925
24926 2017-11-11 Florian Weimer <fweimer@redhat.com>
24927
24928 [BZ #22409]
24929 [BZ #22412]
24930 * resolv/res_comp.c (printable_string, binary_hnok)
24931 (binary_leading_dash): New functions.
24932 (res_hnok): Reimplement using these functions and ns_name_pton.
24933 (res_ownok): Likewise.
24934 (res_mailok): Reimplement using printable_string, ns_name_pton and
24935 binary_hnok.
24936 (res_dnok): Reimplement using printable_string and ns_name_pton.
24937 * resolv/tst-res_hnok.c (tests): Add additional tests.
24938 (LETTERDIGITS, PRINTABLE): Define.
24939 (do_test): Adjust one_char results.
24940
24941 2017-11-11 Florian Weimer <fweimer@redhat.com>
24942
24943 [BZ #22413]
24944 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24945 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24946
24947 2017-11-11 Florian Weimer <fweimer@redhat.com>
24948
24949 * resolv/tst-ns_name_pton.c: New file.
24950 * resolv/Makefile (tests): Add tst-ns_name_pton.
24951 (tst-ns_name_pton): Link against libresolv.
24952
24953 2017-11-11 Florian Weimer <fweimer@redhat.com>
24954
24955 * resolv/tst-res_hnok.c: New file.
24956 * resolv/Makefile (tests): Add tst-res_hnok.
24957 (tst-res_hnok): Link against libresolv.
24958
24959 2017-11-11 Florian Weimer <fweimer@redhat.com>
24960
24961 * resolv/tst-resolv-network.c: Use test framework instead explicit
24962 main function.
24963
24964 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24965
24966 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24967 <jmp_buf-macros.h>.
24968 [!_ISOMAC] (STR_HELPER): New.
24969 [!_ISOMAC] (STR): Likewise.
24970 [!_ISOMAC] (TEST_SIZE): Likewise.
24971 [!_ISOMAC] (TEST_ALIGN): Likewise.
24972 [!_ISOMAC] (TEST_OFFSET): Likewise.
24973 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24974 field offsets of jmp_buf as well as sigjmp_buf.
24975 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24976 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24977 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24978 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24979 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24980 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24981 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24982 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24983 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24984 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24985 Likewise.
24986 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24987 Likewise.
24988 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24990 Likewise.
24991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24992 Likewise.
24993 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24994 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24995 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24996 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24997 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24998 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24999 Likewise.
25000 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25001 Likewise.
25002 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25003 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25004 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25005
25006 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25007
25008 * include/float.h
25009 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25010 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25011 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25012 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25013 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25014 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25015 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25016 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25017 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25018 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25019 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25020 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25021 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25022 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25023 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25024 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25025 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25026 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25027 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25028 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25029 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25030 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25031 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25032 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25033 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25034 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25035 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25036 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25037 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25038 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25039 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25040 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25041 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25042 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25043 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25044 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25045 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25046 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25047 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25048 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25049 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25050 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25051 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25052 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25053 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25054 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25055 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25056 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25057 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25058 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25059 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25060 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25061 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25062 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25063 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25064 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25065 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25066 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25067 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25068 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25069 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25070 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25071 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25072 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25073 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25074 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25075 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25076 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25077 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25078 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25079 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25080 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25081 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25082 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25083 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25084 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25086 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25088 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25090 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25092 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25094 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25096 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25097
25098 * stdlib/tst-strtod.h (F16): New macro.
25099 (F32): Likewise.
25100 (F64): Likewise.
25101 (F32X): Likewise.
25102 (F64X): Likewise.
25103 (F128X): Likewise.
25104 (IF_FLOAT16): Likewise.
25105 (IF_FLOAT32): Likewise.
25106 (IF_FLOAT64): Likewise.
25107 (IF_FLOAT32X): Likewise.
25108 (IF_FLOAT64X): Likewise.
25109 (IF_FLOAT128X): Likewise.
25110 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25111 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25112 (STRTOD_TEST_FOREACH): Likewise.
25113 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25114 (CHOOSE_f64): Likewise.
25115 (CHOOSE_f32x): Likewise.
25116 (CHOOSE_f64x): Likewise.
25117
25118 2017-11-07 Andreas Schwab <schwab@suse.de>
25119
25120 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25121
25122 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25123
25124 [BZ #22403]
25125 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25126 to be escaped.
25127 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25128 to be escaped.
25129
25130 2017-11-07 Claude Paroz <claude@2xlibre.net>
25131
25132 [BZ #22403]
25133 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25134 to be escaped.
25135 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25136 to be escaped.
25137 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25138 to be escaped.
25139
25140 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25141
25142 [BZ #22298]
25143 * nptl/allocatestack.c (allocate_stack): Check if
25144 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25145 __PTHREAD_MUTEX_HAVE_PREV is defined.
25146 * nptl/descr.h (pthread): Likewise.
25147 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25148 Likewise.
25149 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25150 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25151 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25152 * sysdeps/nptl/bits/thread-shared-types.h
25153 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25154 defines.
25155 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25156 of __WORDSIZE for internal layout.
25157 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25158 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25159 instead of __WORDSIZE whether to use an union for __spins and __list
25160 fields.
25161 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25162 case.
25163 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25164 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25165 defines.
25166 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25167 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25168 Likewise.
25169 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25170 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25171 Likewise.
25172 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25173 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25174 Likewise.
25175 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25176 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25177 Likewise.
25178 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25179 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25180 Likewise.
25181 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25182 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25183 Likewise.
25184 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25185 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25186 Likewise.
25187 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25188 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25189 Likewise.
25190 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25191 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25192 Likewise.
25193 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25194 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25195 Likewise.
25196 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25197 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25198 Likewise.
25199 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25200 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25201 Likewise.
25202 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25203 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25204 Likewise.
25205 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25206 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25207 Likewise.
25208
25209 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25210 New macros.
25211 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25212 checks for expected input type size.
25213 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25214 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25215 Likewise.
25216 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25217 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25218 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25219 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25220 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25221 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25222 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25223 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25224 superflous runtime assert check.
25225 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25226 Likewise.
25227 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25228 Likewise.
25229 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25230 Likewise.
25231 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25232 Likewise.
25233 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25234 Likewise.
25235 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25236 Likewise.
25237 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25238 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25239 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25240 Likewise.
25241 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25242 Likewise.
25243 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25244 Likewise.
25245 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25246 Likewise.
25247 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25248 Likewise.
25249 * nptl/pthread_attr_setinheritsched.c
25250 (__pthread_attr_setinheritsched): Likewise.
25251 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25252 Likewise.
25253 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25254 Likewise.
25255 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25256 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25257 __old_pthread_attr_setstack): Likewise.
25258 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25259 Likewise.
25260 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25261 Likewise.
25262 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25263 Likewise.
25264 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25265 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25266 Likewise.
25267 * nptl/tst-typesizes.c: Remove file.
25268
25269 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25270 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25271 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25272 checks for internal pthread_mutex_t offsets.
25273 * sysdeps/aarch64/nptl/pthread-offsets.h
25274 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25275 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25276 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25277 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25278 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25279 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25280 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25281 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25282 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25283 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25284 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25285 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25286 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25287 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25288 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25289 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25290 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25291 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25292
25293 2017-11-07 Florian Weimer <fweimer@redhat.com>
25294
25295 * bits/mman-linux.h: Move ...
25296 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25297 comment.
25298 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25299 outdated comment.
25300
25301 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25302
25303 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25304 Redefine STRNLEN as __strnlen_power8.
25305
25306 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25307
25308 * signal/sighold.c (sighold): Optimize implementation.
25309
25310 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25311 __NR_rt_sigqueueinfo.
25312
25313 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25314 __sigtimedwait.
25315 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25316 assume __NR_rt_sigtimedwait.
25317 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25318 and add LIBC_CANCEL_HANDLED for cancellation marking.
25319 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25320
25321 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25322 (sysdeps_routines): Add memchr_noneon.
25323 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25324 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25325 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25326 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25327 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25328 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25329 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25330
25331 * sysdeps/arm/arm-ifunc.h: New file.
25332 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25333 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25334 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25335 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25336 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25337 (__memcpy_neon): Avoid create hidden alias.
25338 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25339 (__memcpy_vfp): Likewise.
25340 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25341 (sysdep_routines): Add memcpy_arm.
25342 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25343
25344 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25345
25346 [BZ #22362]
25347 * Makerules (make-link-multidir): New.
25348 * config.make.in (multidir): New.
25349 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25350 * configure: Regenerated.
25351 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25352 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25353 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25354 New target.
25355
25356 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25357
25358 [BZ #22402]
25359 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25360 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25361
25362 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25363
25364 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25365 to be escaped.
25366
25367 2017-11-04 Florian Weimer <fweimer@redhat.com>
25368
25369 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25370
25371 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25372
25373 * math/math.h [__HAVE_DISTINCT_FLOAT16
25374 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25375 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25376 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25377 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25378 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25379 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25380 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25381 (__MATH_TG_F32): New macro.
25382 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25383 (__MATH_TG_F64X): Likewise.
25384 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25385 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25386
25387 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25388
25389 * po/de.po: Update translations.
25390 * po/ru.po: Likewise.
25391
25392 2017-11-03 Florian Weimer <fweimer@redhat.com>
25393
25394 * manual/filesys.texi (Hard Links): Document linkat.
25395
25396 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25397
25398 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25399 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25400 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25401 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25402 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25403 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25404 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25405 the same as _Float128.
25406 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25407 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25408 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25409
25410 * stdlib/stdlib.h
25411 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25412 Declare.
25413 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25414 Likewise.
25415 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25416 Likewise.
25417 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25418 (strtof32x): Likewise.
25419 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25420 (strtof64x): Likewise.
25421 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25422 (strtof128x): Likewise.
25423 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25424 (strfromf16): Likewise.
25425 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25426 (strfromf32): Likewise.
25427 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25428 (strfromf64): Likewise.
25429 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25430 (strfromf32x): Likewise.
25431 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25432 (strfromf64x): Likewise.
25433 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25434 (strfromf128x): Likewise.
25435 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25436 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25437 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25438 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25439 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25440 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25441
25442 2017-11-03 Richard Henderson <rth@twiddle.net>
25443
25444 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25445
25446 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25447
25448 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25449
25450 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25451
25452 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25453 DT_TLSDESC_GOT initialization.
25454 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25455 (_dl_tlsdesc_resolve_hold): Likewise.
25456 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25457 (_dl_tlsdesc_resolve_hold): Likewise.
25458 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25459 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25460
25461 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25462
25463 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25464
25465 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25466
25467 [BZ #18572]
25468 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25469 non-lazily for R_ARM_TLS_DESC.
25470
25471 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25472
25473 [BZ #17078]
25474 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25475 R_ARM_TLS_DESC case.
25476 (elf_machine_lazy_rel): Remove the prelink check.
25477
25478 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25479
25480 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25481 DT_TLSDESC_GOT initialization.
25482 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25483 (_dl_tlsdesc_resolve_rela): Likewise.
25484 (_dl_tlsdesc_resolve_hold): Likewise.
25485 (_dl_tlsdesc_undefweak): Remove ldar.
25486 (_dl_tlsdesc_dynamic): Likewise.
25487 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25488 (_dl_tlsdesc_resolve_rela): Likewise.
25489 (_dl_tlsdesc_resolve_hold): Likewise.
25490 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25491 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25492 (_dl_tlsdesc_resolve_rela): Likewise.
25493 (_dl_tlsdesc_resolve_hold): Likewise.
25494
25495 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25496
25497 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25498 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25499
25500 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25501
25502 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25503 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25504
25505 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25506
25507 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25508 Declare.
25509 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25510 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25511 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25512 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25513 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25514 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25515 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25516 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25517 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25518 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25519 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25520
25521 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25522
25523 [BZ #22382]
25524 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25525 * localedata/locales/tpi_PG: Add standard header.
25526
25527 2017-11-02 Florian Weimer <fweimer@redhat.com>
25528
25529 test-errno-linux: quotactl can fail with EPERM in containers.
25530 * sysdeps/unix/sysv/linux/test-errno-linux.c
25531 (LIST, LIST_FORWARD): New macros.
25532 (check_error_in_list): New function.
25533 (test_wrp_rv): Accept list of permitted error codes.
25534 (test_wrp_rv2): Remove.
25535 (test_wrp): Call test_wrp_rv with list of error codes.
25536 (test_wrp2): Accept list of error codes.
25537 (do_test): Adjust. Allow EPERM for quotactl.
25538
25539 2017-11-02 Florian Weimer <fweimer@redhat.com>
25540
25541 * stdio-common/bug16.c (do_test): Use array_length.
25542 * stdio-common/errlist.c (_sys_nerr): Likewise.
25543 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25544 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25545 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25546 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25547 (do_test): Use array_length.
25548 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25549 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25550 * stdio-common/tst-printf-round.c (do_test): Likewise.
25551 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25552 (CHECK): Use array_length.
25553 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25554 * stdio-common/tstscanf.c (main): Likewise.
25555 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25556
25557 2017-11-02 Florian Weimer <fweimer@redhat.com>
25558
25559 Add array_length and array_end macros.
25560 * include/array_length.h: New file.
25561
25562 2017-11-02 Florian Weimer <fweimer@redhat.com>
25563
25564 [BZ #22332]
25565 * posix/tst-glob-tilde.c (do_noescape): New variable.
25566 (one_test): Process it.
25567 (do_test): Set do_noescape. Add unescaping test case.
25568
25569 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25570
25571 * math/complex.h
25572 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25573 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25574 with appropriate macros defined and undefined.
25575 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25576 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25577 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25578 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25579 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25580 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25581 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25582 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25583 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25584 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25585
25586 * math/complex.h
25587 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25588 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25589 that for long double. Do not condition define and undefine of
25590 _Mdouble_complex_ on [__CFLOAT128].
25591
25592 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25593
25594 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25595 of <sysdeps/generic/sysdep.h>.
25596 (ALIGNARG): Removed.
25597 (ASM_SIZE_DIRECTIVE): Likewise.
25598 (ENTRY): Likewise.
25599 (END): Likewise.
25600 (ENTRY_CHK): Likewise.
25601 (END_CHK): Likewise.
25602 (syscall_error): Likewise.
25603 (mcount): Likewise.
25604 (PSEUDO_END): Likewise.
25605 (L): Likewise.
25606 (atom_text_section): Likewise.
25607 * sysdeps/x86/sysdep.h: New file.
25608 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25609 of <sysdeps/generic/sysdep.h>.
25610 (ALIGNARG): Removed.
25611 (ASM_SIZE_DIRECTIVE): Likewise.
25612 (ENTRY): Likewise.
25613 (END): Likewise.
25614 (ENTRY_CHK): Likewise.
25615 (END_CHK): Likewise.
25616 (syscall_error): Likewise.
25617 (mcount): Likewise.
25618 (PSEUDO_END): Likewise.
25619 (L): Likewise.
25620 (atom_text_section): Likewise.
25621
25622 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25623
25624 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25625 category of LC_CTYPE set to "i18n:2012".
25626 * localedata/locales/i18n_ctype: Regenerate.
25627
25628 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25629
25630 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25631 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25632 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25633 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25634
25635 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25636 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25637 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25638 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25639
25640 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25641
25642 * math/complex.h
25643 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25644 New macro.
25645 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25646 Likewise.
25647 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25648 Likewise.
25649 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25650 (CMPLXF32X): Likewise.
25651 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25652 (CMPLXF64X): Likewise.
25653 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25654 (CMPLXF128X): Likewise.
25655
25656 * math/math.h
25657 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25658 (__MATH_EVAL_FMT2): Define to add 0.0f.
25659
25660 2017-10-31 Alan Modra <amodra@gmail.com>
25661
25662 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25663 include sysdep.h.
25664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25678 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25679 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25680 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25681 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25682 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25683 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25684 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25685 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25686 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25687 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25688 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25689 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25690 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25691 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25692 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25693 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25694 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25695 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25696 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25697 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25698 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25699 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25700 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25701 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25702 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25703 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25704 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25705 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25706 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25707 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25708 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25709 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25710 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25711 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25712 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25713 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25714 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25715 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25716 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25717 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25718 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25719 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25720 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25721 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25722 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25723 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25724 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25725 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25726 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25727 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25728 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25729 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25730 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25731 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25732 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25733
25734 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25735 include sysdep.h and math_ldbl_opt.h.
25736
25737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25738 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25739 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25763
25764 2017-10-31 Alan Modra <amodra@gmail.com>
25765
25766 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25767 string/strncase_l.c, not string/strncase.c.
25768 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25769 (libc_hidden_def): Redefine.
25770
25771 2017-10-31 Alan Modra <amodra@gmail.com>
25772
25773 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25774 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25775 (__strcasecmp): Don't define.
25776
25777 2017-10-31 Alan Modra <amodra@gmail.com>
25778
25779 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25780 IS_IN (libc).
25781 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25782 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25783 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25784
25785 2017-10-31 Alan Modra <amodra@gmail.com>
25786
25787 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25788 USE_AS_STPNCPY.
25789
25790 2017-10-31 Alan Modra <amodra@gmail.com>
25791
25792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25793 Redefine only when SHARED.
25794
25795 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25796
25797 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25798 Include <bits/math-finite.h> with appropriate macros defined and
25799 undefined.
25800 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25801 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25802 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25803 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25804 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25805
25806 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25807 [!_Mlong_double_] (_Mlong_double_): Likewise.
25808 [!_Mfloat16_] (_Mfloat16_): Likewise.
25809 [!_Mfloat32_] (_Mfloat32_): Likewise.
25810 [!_Mfloat64_] (_Mfloat64_): Likewise.
25811 [!_Mfloat128_] (_Mfloat128_): Likewise.
25812 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25813 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25814 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25815 (_Mdouble_): Define without indirection through those macros.
25816 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25817 [!_Mfloat128_] (_Mfloat128_): Likewise.
25818 [_Mlong_double_] (_Mlong_double_): Likewise.
25819 (_Mdouble_): Define without indirection through those macros.
25820 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25821 not add -D_Mlong_double_=double.
25822 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25823 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25824
25825 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25826
25827 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25828
25829 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25830
25831 * sysdeps/x86/libc-start.c: Reformat.
25832
25833 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25834
25835 [BZ #22353]
25836 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25837 (1): Renamed to ...
25838 (L(Src0)): This.
25839 (L(Src1)): New.
25840 (L(Src2)): Likewise.
25841 (L(1)): Renamed to ...
25842 (L(Src3)): This.
25843
25844 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25845
25846 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25847 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25848 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25849 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25850 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25851 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25852 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25853 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25854 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25855 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25856 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25857 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25858 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25859 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25860 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25861 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25862 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25863 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25864 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25865 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25866 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25867 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25868 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25869 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25870 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25871 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25872 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25873 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25874 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25875 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25876 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25877 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25878 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25879 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25880 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25881 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25882 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25883 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25884 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25885 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25886 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25887 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25888 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25889 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25890 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25891 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25892 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25893 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25894 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25895 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25896 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25897 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25898 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25899 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25900 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25901 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25902 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25903 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25904 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25905 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25906 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25907 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25908 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25909 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25910 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25911 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25912
25913 2017-10-30 Florian Weimer <fweimer@redhat.com>
25914
25915 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25916 always defined.
25917 * io/tst-mkdirat.c (do_test): Likewise.
25918 * io/tst-mkfifoat.c (do_test): Likewise.
25919 * io/tst-mknodat.c (do_test): Likewise.
25920 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25921 * locale/programs/locale.c (select_dirs): Likewise.
25922 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25923 * posix/bug-glob2.c (my_readdir): Likewise.
25924 * posix/tst-dir.c (main): Likewise.
25925 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25926 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25927
25928 2017-10-30 Florian Weimer <fweimer@redhat.com>
25929
25930 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25931 just __USE_GNU.
25932
25933 2017-10-30 Florian Weimer <fweimer@redhat.com>
25934
25935 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25936 Convert to support/test-driver.c.
25937 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25938 New macro parameters.
25939 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25940 * posix/tst-gnuglob.c: New file.
25941 * posix/tst-gnuglob64.c: Likewise.
25942 * posix/Makefile (tests): Add tst-gnuglob64.
25943
25944 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25945
25946 [BZ #19485]
25947 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25948 and use a better translation for March in “mon”.
25949 * localedata/locales/csb_PL: Use more ASCII to improve the
25950 readability of the source.
25951
25952 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25953
25954 [BZ #13953]
25955 * localedata/locales/km_KH: Use ASCII as much
25956 as possible for better readability of the source and
25957 remove useless comments.
25958 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25959 was commented out and apparently wrong anyway because it was
25960 using Lao characters. If Buddhist era should be used
25961 for km_KH, a native speaker should write the correct formaat
25962 for Khmer.
25963 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25964 (According to CLDR, the first weekday for Cambodia is Sunday).
25965 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25966 (These were using Lao characters which must be wrong. If we get
25967 the correct data from a native speaker, we could add it back, until
25968 then it is better not to have name_mr and name_mrs at all than
25969 having it wrong).
25970
25971 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25972
25973 * locale/loadlocale.c: Correct size of
25974 _nl_value_type_LC_<category> arrays.
25975
25976 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25977
25978 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25979 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25980 with appropriate macros defined and undefined.
25981 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25982 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25983 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25984 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25985 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25986
25987 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25988
25989 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25990 "-O2 -march=i586".
25991
25992 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25993
25994 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25995 with lowercase letters to make it agree with CLDR.
25996
25997 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25998
25999 [BZ #15260]
26000 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26001 first letters of yesstr and nostr in yesexpr and noexpr,
26002 not for the full words.
26003 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26004 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26005 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26006 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26007 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26008 first letters of yesstr and nostr in yesexpr and noexpr,
26009 until now only English was matched in yesexpr and noexpr.
26010 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26011 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26012 fil but not for tl. As tl and fil are very similar, using fil
26013 is probably better than using English.
26014
26015 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26016
26017 [BZ #21706]
26018 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26019 in yesstr and nostr.
26020
26021 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26022
26023 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26024 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26025 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26026 Likewise.
26027 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26028 Likewise.
26029 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26030 Likewise.
26031 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26032 Likewise.
26033 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26034 (SNANF128X): Likewise.
26035
26036 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26037 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26038 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26039 (HUGE_VAL_F32): Likewise.
26040 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26041 (HUGE_VAL_F64): Likewise.
26042 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26043 (HUGE_VAL_F32X): Likewise.
26044 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26045 (HUGE_VAL_F64X): Likewise.
26046 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26047 (HUGE_VAL_F128X): Likewise.
26048
26049 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26050
26051 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26052 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26053 for the br_FR locale.
26054
26055 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26056
26057 [BZ #21706]
26058 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26059
26060 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26061
26062 * locale/programs/record-status.h: Define globals, and function
26063 prototypes. Move function bodies...
26064 * locale/programs/record-status.c: ... to here. New file.
26065 * iconv/Makefile (iconv_prog-modules): Add record-status.
26066 * locale/Makefile (lib-modules): Likewise.
26067 * iconv/iconv_prog.c: Remove verbose.
26068 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26069 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26070 record a warning about ASCII compatibility.
26071 * locale/programs/ld-monetary.c (monetary_finish): If
26072 warn_int_curr_symbol is true then record a warning about the symbol
26073 not being in our ISO 4217 list.
26074 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26075 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26076 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26077 (OPT_NO_WARN): Define.
26078 (OPT_WARN): Define.
26079 (options): Add entry for --no-warnings, and --warnings.
26080 (set_warnings): New function to enable/disable warnings.
26081 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26082 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26083 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26084 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26085 Pass flags to generate_locale.
26086 (generate_locale): Accept new flag argument and pass it to localedef
26087 invocation.
26088 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26089 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26090
26091 * localedata/Makefile (test-input-data): Use full file name.
26092 * localedata/da_DK.in: Rename to...
26093 * localedata/da_DK.ISO-8859-1.in: ...this.
26094 * localedata/de_DE.in: Rename to...
26095 * localedata/de_DE.ISO-8859-1.in: ...this.
26096 * localedata/en_US.in: Rename to...
26097 * localedata/en_US.ISO-8859-1.in: ...this.
26098 * localedata/fr_FR.in: Rename to...
26099 * localedata/fr_FR.UTF-8.in: ... this.
26100 * localedata/hr_HR.in: Rename to...
26101 * localedata/hr_HR.ISO-8859-2.in: ...this.
26102 * localedata/hu_HU.in: Rename to...
26103 * localedata/hu_HU.UTF-8.in: ...this.
26104 * localedata/si_LK.in: Rename to...
26105 * localedata/si_LK.UTF-8.in: ...this.
26106 * localedata/sv_SE.in: Rename to...
26107 * localedata/sv_SE.ISO-8859-1.in: ...this.
26108 * localedata/tr_TR.in: Rename to...
26109 * localedata/tr_TR.UTF-8.in: ...this.
26110 * localedata/uk_UA.in: Rename to...
26111 * localedata/uk_UA.UTF-8.in: ...this.
26112 * localedata/sort-test.sh: Test file is locale name with the
26113 suffix.
26114
26115 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26116 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26117 file.
26118 * localedata/locales/i18n_ctype: Regenerate.
26119 * localedata/locales/tr_TR: Likewise.
26120 * localedata/locales/translit_circle: Likewise.
26121 * localedata/locales/translit_cjk_compat: Likewise.
26122 * localedata/locales/translit_combining: Likewise.
26123 * localedata/locales/translit_compat: Likewise.
26124 * localedata/locales/translit_font: Likewise.
26125 * localedata/locales/translit_fraction: Likewise.
26126
26127 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26128
26129 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26130 lxvd2x/stxvd2x with lvx/stvx.
26131 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26132
26133 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26134
26135 * include/alloc_buffer.h: Replace "if if " with "if " in
26136 comments.
26137 * sysdeps/mips/memcpy.S: Likkewise.
26138 * sysdeps/mips/memset.S: Likewise.
26139 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26140 Likewise.
26141 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26142 Likewise.
26143 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26144 Likewise.
26145
26146 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26147
26148 [BZ #15261]
26149 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26150 yesexpr and noexpr.
26151 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26152 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26153 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26154 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26155 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26156 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26157 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26158
26159 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26160
26161 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26162 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26163 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26164 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26165 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26166 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26167 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26168 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26169 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26170 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26171 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26172 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26173
26174 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26175
26176 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26177 as possible for better readability of the source.
26178 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26179 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26180 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26181 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26182 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26183 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26184 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26185 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26186 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26187 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26188 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26189 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26190 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26191 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26192 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26193 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26194 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26195 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26196 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26197 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26198 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26199 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26200 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26201 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26202 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26203 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26204 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26205 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26206 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26207 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26208 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26209 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26210 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26211 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26212 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26213 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26214 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26215 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26216 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26217 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26218 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26219 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26220 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26221 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26222 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26223 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26224 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26225 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26226 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26227 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26228 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26229 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26230 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26231 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26232 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26233 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26234 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26235 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26236 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26237 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26238 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26239 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26240 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26241 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26242 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26243 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26244 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26245 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26246 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26247 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26248 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26249 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26250 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26251 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26252 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26253 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26254 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26255 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26256 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26257 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26258 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26259 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26260 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26261 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26262 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26263 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26264 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26265 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26266 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26267 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26268 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26269 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26270 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26271 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26272 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26273 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26274 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26275 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26276 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26277 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26278 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26279 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26280 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26281 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26282 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26283 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26284 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26285 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26286 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26287 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26288 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26289 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26290 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26291 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26292 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26293 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26294 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26295 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26296 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26297 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26298 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26299 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26300 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26301 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26302 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26303 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26304 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26305 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26306 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26307 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26308 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26309 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26310 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26311 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26312 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26313 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26314 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26315 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26316 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26317 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26318 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26319 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26320 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26321 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26322 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26323 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26324 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26325 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26326 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26327 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26328 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26329 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26330 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26331 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26332 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26333 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26334 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26335 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26336 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26337 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26338 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26339 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26340 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26341 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26342 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26343 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26344 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26345 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26346 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26347 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26348 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26349 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26350 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26351 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26352
26353 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26354
26355 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26356 (Use first letters of yesstr and nostr correctly instead of using
26357 full words).
26358
26359 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26360
26361 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26362 (Use first letters of yesstr and nostr correctly).
26363
26364 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26365
26366 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26367 also check for the first characters of yesstr and nostr.
26368 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26369 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26370
26371 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26372
26373 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26374 also check for Chinese characters.
26375
26376 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26377
26378 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26379 match also for the contents of yesstr and nostr. As the first letter
26380 of yesstr and nostr is equal, checking only for the first letter
26381 is not enough.
26382
26383 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26384
26385 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26386 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26387
26388 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26389
26390 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26391 of main contributor.
26392
26393 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26394
26395 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26396 instead of using English.
26397
26398 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26399
26400 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26401 by including the first letters of nostr and yesexpr in the regexp.
26402 Also make it more readable by using ASCII where possible.
26403
26404 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26405
26406 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26407 the first letter of nostr in the regexp. It agrees with CLDR now.
26408 Also make it more readable by using ASCII where possible.
26409
26410 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26411
26412 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26413 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26414 these strings contain a U+17D6 (which somewhat looks like a colon)
26415 instead of a real colon to separate the full words for “yes”
26416 and “no” from the single letter responses.
26417
26418 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26419
26420 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26421 it agree with CLDR (include the first letter of yesstr).
26422 Also make it more readable by using ASCII where possible.
26423
26424 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26425
26426 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26427 and improve yesexpr and noexpr. The yesstr and nostr apparently
26428 came from CLDR. And CLDR has a bug there: these strings contain
26429 a U+0903 (which looks like a colon) instead of a real colon
26430 to separate the full words for “yes” and “no” from the single
26431 letter responses.
26432
26433 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26434
26435 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26436 letters of the full yesstr and nostr in yesexpr and noexpr.
26437
26438 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26439
26440 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26441 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26442 * localedata/locales/an_ES: Make source more readable by using ASCII
26443 where possible.
26444
26445 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26446
26447 [BZ #20952]
26448 * localedata/locales/yuw_PG: New file.
26449 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26450 * locale/iso-639.def: Add Yau (Uruwa).
26451
26452 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26453
26454 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26455
26456 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26457
26458 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26459 (__libc_realloc): Likewise.
26460 (_mid_memalign): Likewise.
26461 (__libc_calloc): Likewise.
26462
26463 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26464
26465 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26466 by adding the generic +1 and -0 as in all other locales.
26467 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26468 day names and make it more readable by using ASCII where possible.
26469
26470 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26471
26472 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26473 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26474
26475 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26476
26477 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26478 WNOHANG in waitpid call.
26479
26480 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26481
26482 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26483 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26484
26485 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26486 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26487 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26488 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26489 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26490 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26491 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26492 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26493 variables.
26494
26495 2017-10-23 Michael Collison <michael.collison@arm.com>
26496
26497 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26498 with __builtin_sqrt.
26499 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26500 with __builtin_sqrtf.
26501 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26502 with __builtin_ceil.
26503 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26504 with __builtin_ceilf.
26505 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26506 with __builtin_floor.
26507 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26508 with __builtin_floorf.
26509 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26510 with __builtin_fma.
26511 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26512 with __builtin_fmaf.
26513 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26514 with __builtin_fmax.
26515 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26516 with __builtin_fmaxf.
26517 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26518 with __builtin_fmin.
26519 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26520 with __builtin_fminf.
26521 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26522 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26523 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26524 with builtin_rint and conversion to int.
26525 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26526 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26527 with builtin_llround.
26528 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26529 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26530 with builtin_rint and conversion to long int.
26531 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26532 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26533 with builtin_lround.
26534 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26535 with builtin_lroundf.
26536 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26537 statements with __builtin_nearbyint.
26538 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26539 statements with __builtin_nearbyintf.
26540 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26541 with __builtin_rint.
26542 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26543 with __builtin_rintf.
26544 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26545 with __builtin_round.
26546 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26547 with __builtin_roundf.
26548 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26549 with __builtin_trunc.
26550 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26551 with __builtin_truncf.
26552 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26553 and s_l[l]round[f].c too.
26554
26555 2017-10-23 Alan Modra <amodra@gmail.com>
26556
26557 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26558 Adjust stack after restoring regs. Add missing LR cfi_restore.
26559
26560 2017-10-23 Alan Modra <amodra@gmail.com>
26561
26562 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26563 Move LR save and frame setup/teardown and LR restore to
26564 immediately around memset call. Provide cfi.
26565
26566 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26567
26568 * sysdeps/i386/fpu/e_powf.S: Removed.
26569 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26570 * sysdeps/i386/fpu/w_powf.c: Likewise.
26571 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26572 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26573 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26574 Add e_powf-sse2.
26575 (CFLAGS-e_powf-sse2.c): New.
26576 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26577 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26578
26579 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26580
26581 * sysdeps/i386/fpu/e_log2f.S: Removed.
26582 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26583 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26584 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26585 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26586 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26587 Add e_log2f-sse2.
26588 (CFLAGS-e_log2f-sse2.c): New.
26589 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26590 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26591
26592 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26593
26594 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26595 Add e_powf-fma.
26596 (CFLAGS-e_powf-fma.c): New.
26597 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26598 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26599
26600 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26601
26602 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26603 Add e_log2f-fma.
26604 (CFLAGS-e_log2f-fma.c): New.
26605 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26606 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26607
26608 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26609
26610 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26611 Add e_logf-fma.
26612 (CFLAGS-e_logf-fma.c): New.
26613 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26614 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26615
26616 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26617
26618 * sysdeps/i386/fpu/e_logf.S: Removed.
26619 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26620 * sysdeps/i386/fpu/w_logf.c: Likewise.
26621 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26622 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26623 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26624 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26625 Add e_logf-sse2.
26626 (CFLAGS-e_logf-sse2.c): New.
26627 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26628 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26629
26630 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26631
26632 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26633 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26634 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26635 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26636 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26637 Add e_exp2f-sse2.
26638 (CFLAGS-e_exp2f-sse2.c): New.
26639 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26640 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26641
26642 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26645 Add e_exp2f-fma.
26646 (CFLAGS-e_exp2f-fma.c): New.
26647 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26648 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26649
26650 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26651
26652 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26653 * sysdeps/i386/fpu/e_expf.S: Likewise.
26654 * sysdeps/i386/fpu/math_errf.c: Likewise.
26655 * sysdeps/i386/fpu/w_expf.c: Likewise.
26656 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26657 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26658 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26659 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26660 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26661 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26662 Remove e_expf-ia32.
26663 (CFLAGS-e_expf-sse2.c): New.
26664 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26665 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26666
26667 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26668
26669 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26670 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26671 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26672 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26673 e_expf.c.
26674 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26675 New.
26676 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26677 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26678 Renamed to ...
26679 (__redirect_expf): This.
26680 (SYMBOL_NAME): Changed to expf.
26681 (__ieee754_expf): Renamed to ...
26682 (__expf): This.
26683 (__GI___expf): This.
26684 (__ieee754_expf): Add strong_alias.
26685 (__expf_finite): Likewise.
26686 (__expf): New.
26687 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26688
26689 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26690
26691 [BZ #22332]
26692 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26693 unescaping.
26694
26695 2017-10-21 Florian Weimer <fweimer@redhat.com>
26696
26697 * posix/Makefile (tests): Add tst-glob-tilde.
26698 (tests-special): Add tst-glob-tilde-mem.out
26699 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26700 (tst-glob-tilde-mem.out): Add mtrace check.
26701 * posix/tst-glob-tilde.c: New file.
26702
26703 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26704
26705 * bits/floatn-common.h: New file.
26706 * math/Makefile (headers): Add bits/floatn-common.h.
26707 * bits/floatn.h: Include <bits/floatn-common.h>.
26708 * sysdeps/ia64/bits/floatn.h: Likewise.
26709 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26710 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26711 * sysdeps/powerpc/bits/floatn.h: Likewise.
26712 * sysdeps/x86/bits/floatn.h: Likewise.
26713
26714 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26715
26716 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26717 indicates whether compiler emits an warning for alias for
26718 functions with incompatible types.
26719
26720 [BZ #22273]
26721 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26722 the auxiliary process is terminated by a signal before calling _exit
26723 or execve.
26724
26725 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26726
26727 [BZ #21265]
26728 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26729 New.
26730 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26731 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26732 and bit_arch_XSAVEC_Usable if needed.
26733 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26734 and bit_arch_Use_dl_runtime_resolve_opt.
26735 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26736 Removed.
26737 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26738 (bit_arch_Prefer_No_AVX512): Updated.
26739 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26740 (bit_arch_XSAVEC_Usable): New.
26741 (STATE_SAVE_OFFSET): Likewise.
26742 (STATE_SAVE_MASK): Likewise.
26743 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26744 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26745 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26746 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26747 (index_arch_XSAVEC_Usable): New.
26748 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26749 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26750 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26751 is enabled.
26752 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26753 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26754 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26755 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26756 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26757 _dl_runtime_resolve_xsavec.
26758 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26759 Removed.
26760 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26761 instead of VEC_SIZE.
26762 (REGISTER_SAVE_BND0): Removed.
26763 (REGISTER_SAVE_BND1): Likewise.
26764 (REGISTER_SAVE_BND3): Likewise.
26765 (REGISTER_SAVE_RAX): Always defined to 0.
26766 (VMOV): Removed.
26767 (_dl_runtime_resolve_avx): Likewise.
26768 (_dl_runtime_resolve_avx_slow): Likewise.
26769 (_dl_runtime_resolve_avx_opt): Likewise.
26770 (_dl_runtime_resolve_avx512): Likewise.
26771 (_dl_runtime_resolve_avx512_opt): Likewise.
26772 (_dl_runtime_resolve_sse): Likewise.
26773 (_dl_runtime_resolve_sse_vex): Likewise.
26774 (USE_FXSAVE): New.
26775 (_dl_runtime_resolve_fxsave): Likewise.
26776 (USE_XSAVE): Likewise.
26777 (_dl_runtime_resolve_xsave): Likewise.
26778 (USE_XSAVEC): Likewise.
26779 (_dl_runtime_resolve_xsavec): Likewise.
26780 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26781 Removed.
26782 (_dl_runtime_resolve_avx512_opt): Likewise.
26783 (_dl_runtime_resolve_avx): Likewise.
26784 (_dl_runtime_resolve_avx_opt): Likewise.
26785 (_dl_runtime_resolve_sse): Likewise.
26786 (_dl_runtime_resolve_sse_vex): Likewise.
26787 (_dl_runtime_resolve_fxsave): New.
26788 (_dl_runtime_resolve_xsave): Likewise.
26789 (_dl_runtime_resolve_xsavec): Likewise.
26790
26791 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26792
26793 [BZ #22320]
26794 CVE-2017-15670
26795 * posix/glob.c (__glob): Fix one-byte overflow.
26796
26797 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26798
26799 * malloc/malloc.c (sysdep-cancel.h): Add include.
26800
26801 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26802
26803 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26804
26805 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26806
26807 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26808 (tests): Remove $(objpfx)ga_test depdendency.
26809 * resolv/ga_test.c: Remove file.
26810
26811 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26812
26813 [BZ #18812]
26814 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26815 * localedata/locales/kab_DZ: New file.
26816
26817 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26818
26819 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26820 _dl_relocate_static_pie instead of _dl_start to compute load
26821 address in static PIE.
26822
26823 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26824
26825 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26826
26827 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26828
26829 [BZ #13605]
26830 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26831 * localedata/locales/shn_MM: New file.
26832
26833 2017-10-20 Florian Weimer <fweimer@redhat.com>
26834
26835 [BZ #22321]
26836 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26837 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26838 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26839 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26840 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26841 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26842
26843 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26844
26845 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26846
26847 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26848
26849 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26850
26851 [BZ #22322]
26852 * sysdeps/mips/bits/long-double.h: Move to ....
26853 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26854
26855 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26856
26857 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26858
26859 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26860 H.J. Lu <hongjiu.lu@intel.com>
26861
26862 [BZ #22299]
26863 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26864 GLRO(dl_platform) to NULL.
26865 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26866 (modules-names): Add tst-platformmod-1 and
26867 x86_64/tst-platformmod-2.
26868 (CFLAGS-tst-platform-1.c): New.
26869 (CFLAGS-tst-platformmod-1.c): Likewise.
26870 (CFLAGS-tst-platformmod-2.c): Likewise.
26871 (LDFLAGS-tst-platformmod-2.so): Likewise.
26872 ($(objpfx)tst-platform-1): Likewise.
26873 ($(objpfx)tst-platform-1.out): Likewise.
26874 (tst-platform-1-ENV): Likewise.
26875 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26876 * sysdeps/x86_64/tst-platform-1.c: New file.
26877 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26878 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26879
26880 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26881
26882 [BZ #13994]
26883 * locale/iso-639.def: Add Karbi.
26884 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26885 * localedata/locales/mjw_IN: New file.
26886
26887 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26888
26889 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26890 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26891 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26892 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26893 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26894 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26895 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26896 <bits/floatn.h>.
26897 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26898 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26899 * manual/math.texi (Mathematics): Document additional architecture
26900 support for _Float128.
26901 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26902 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26903 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26904 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26905 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26906 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26907 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26908 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26909 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26910 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26911 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26912 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26913 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26914 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26915 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26916
26917 2017-10-18 Renlin Li <renlin.li@arm.com>
26918
26919 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26920 _DYNAMIC symbol to calculate load address.
26921
26922 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26923
26924 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26925 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26926 summary bits.
26927 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26928 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26929
26930 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26931
26932 [BZ #16777]
26933 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26934 and improve readability by using more ASCII.
26935 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26936 and improve readability by using more ASCII.
26937
26938 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26939
26940 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26941 not all targets support atomics on bool.
26942
26943 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26944
26945 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26946 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26947 __f128.
26948 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26949 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26950 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26951 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26952 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26953 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26954
26955 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26956
26957 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26958 defines.
26959
26960 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26961
26962 [BZ #22159]
26963 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26964 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26965 (do_check_remalloced_chunk): Fix build bug.
26966 (do_check_malloc_state): Add assert that checks arena->top.
26967 (malloc_consolidate): Remove initialization.
26968 (int_mallinfo): Remove call to malloc_consolidate.
26969 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26970
26971 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26972
26973 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26974 (have_fastchunks): Remove.
26975 (clear_fastchunks): Remove.
26976 (set_fastchunks): Remove.
26977 (malloc_state): Add have_fastchunks.
26978 (malloc_init_state): Use have_fastchunks.
26979 (do_check_malloc_state): Remove incorrect invariant checks.
26980 (_int_malloc): Use have_fastchunks.
26981 (_int_free): Likewise.
26982 (malloc_consolidate): Likewise.
26983
26984 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26985
26986 * malloc/malloc.c (tcache_put): Inline.
26987 (tcache_get): Inline.
26988
26989 2017-10-17 Jordi Mallach <jordi@gnu.org>
26990
26991 Aurelien Jarno <aurelien@aurel32.net>
26992 [BZ #2522]
26993 * localedata/locales/ca_ES@valencia: New file.
26994 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26995
26996 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26997
26998 [BZ #22296]
26999 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27000 < 6.x
27001
27002 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27003
27004 * scripts/build-many-glibcs.py (Context.add_all_configs):
27005 Add arm-linux-gnueabihf multiarch extra_glibcs.
27006
27007 * sysdeps/generic/ifunc-init.h: New file.
27008 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27009
27010 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27011
27012 [BZ #22019]
27013 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27014 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27015 * stdlib/tst-strfmon_l.c: adapt test case.
27016
27017 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27018
27019 * sysdeps/generic/float128-abi.h: New file.
27020 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27021 non-__prefixed symbols to ....
27022 * math/Versions: ... here. Include <float128-abi.h>.
27023 * stdlib/Versions ... and here. Include <float128-abi.h>
27024
27025 2017-10-16 Florian Weimer <fweimer@redhat.com>
27026
27027 * version.h (VERSION): Switch to ".9000" as the development
27028 version suffix.
27029
27030 2017-10-16 Florian Weimer <fweimer@redhat.com>
27031
27032 [BZ #22050]
27033 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27034 compat_symbol_reference to access non-default version.
27035
27036 2017-10-16 Florian Weimer <fweimer@redhat.com>
27037
27038 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27039
27040 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27041
27042 * include/shlib-compat.h (compat_symbol_reference): Update
27043 comment.
27044
27045 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27046
27047 * math/Makefile (test-types): Add
27048 $(type-float128-$(float128-alias-fcts)).
27049 * math/test-float128.h (TYPE_STR): Define conditional on
27050 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27051 (ULP_IDX): Likewise.
27052 (ULP_I_IDX): Likewise.
27053
27054 * stdlib/strtold.c: Include <bits/floatn.h>
27055 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27056 and later undefine as macro. Define as weak alias if
27057 [!USE_WIDE_CHAR].
27058 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27059 and later undefine as macro. Define as weak alias if
27060 [USE_WIDE_CHAR].
27061 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27062 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27063 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27064 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27065 Define and later undefine as macro. Define as weak alias if
27066 [USE_WIDE_CHAR].
27067 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27068 <bits/floatn.h>.
27069 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27070 Define and later undefine as macro. Define as weak alias if
27071 [!USE_WIDE_CHAR].
27072 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27073 Define and later undefine as macro. Define as weak alias if
27074 [USE_WIDE_CHAR].
27075
27076 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27077
27078 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27079 record_verbose messages.
27080
27081 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27082
27083 [BZ #22052]
27084 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27085 to silence -O3 -Wall warning with GCC 7.
27086
27087 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27088
27089 * Makeconfig (+link-static-before-libc): Use the first of
27090 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27091 * gmon/Makefile (tests): Add tst-gmon-static.
27092 (tests-static): Likewise.
27093 (CFLAGS-tst-gmon-static.c): New.
27094 (CRT-tst-gmon-static): Likewise.
27095 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27096 (tst-gmon-static-ENV): Likewise.
27097 (tests-special): Likewise.
27098 ($(objpfx)tst-gmon-static.out): Likewise.
27099 (clean-tst-gmon-static-data): Likewise.
27100 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27101 * gmon/tst-gmon-static-gprof.sh: New file.
27102 * gmon/tst-gmon-static.c: Likewise.
27103
27104 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27105
27106 [BZ #22295]
27107 * locale/programs/linereader.c (get_string): Don't warn on
27108 non-symbolic character.
27109
27110 [BZ #22294]
27111 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27112 int_curr_symbol.
27113
27114 [BZ #22292]
27115 * locale/programs/record-status.h: New file
27116 * locale/programs/locale.c: Add comment.
27117 * locale/programs/charmap-dir.c: Don't include error.h.
27118 (charmap_opendir): Use record_error.
27119 * locale/programs/charmap.c: Don't include error.h.
27120 (charmap_read): Use record_error, and record_warning.
27121 (parse_charmap): Likewise.
27122 * locale/programs/ld-address.c: Don't include error.h.
27123 (address_finish): Use record_error, and record_warning.
27124 * locale/programs/ld-collate.c: Don't include error.h.
27125 (collate_finish): Use record_error, and record_error_at_line.
27126 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27127 (ctype_class_new): Likewise.
27128 (ctype_map_new): Likewise.
27129 (set_one_default): Likewise.
27130 (set_class_defaults): Likewise.
27131 (translit_flatten): Likewise.
27132 (allocate_arrays): Use record_error, and record_verbose.
27133 * locale/programs/ld-identification.c: Don't include error.h.
27134 (indentation_finish): Use record_error and record_warning.
27135 * locale/programs/ld-measurement.c: Don't include error.h.
27136 (measurement_finish): Use record_error.
27137 * locale/programs/ld-messages.c
27138 (message_finish): Likewise.
27139 * locale/programs/ld-monetary.c
27140 (monetary_finish): Likewise.
27141 * locale/programs/ld-name.c (name_finish): Use record_error
27142 and record_warning.
27143 * locale/programs/ld-numeric.c
27144 (numeric_finish): Use record_error.
27145 * locale/programs/ld-paper.c: Don't include error.h.
27146 (paper_finish): Use record_error.
27147 * locale/programs/ld-telephone.c: Don't include error.h.
27148 (telephone_finish): Use record_error.
27149 * locale/programs/ld-time.c (time_finish): Likewise.
27150 * locale/programs/linereader.h (lr_error): Make inline func.
27151 * locale/programs/localedef.c: Define recorded_warning_count,
27152 and recorded_error_count.
27153 (main): Use record_error. Use recorded_error_count and
27154 recorded_warning_count to issue correct error returns.
27155 (add_to_readlist): Use record_error.
27156 (find_locale): Likewise.
27157 (load_locale): Likewise.
27158 * locale/programs/localedef.h: Remove be_quiet
27159 and WITH_CUR_LOCALE.
27160 * locale/programs/locarchive.c (compare_from_file): Use
27161 record_error.
27162 * locale/programs/locfile.c (write_locale_data): Use
27163 record_error.
27164 * locale/programs/repertoire.c: Dont include error.h.
27165 (repertoire_complain): Use record_error.
27166 * localedata/tst-fmon.sh: Expect failures from localedef.
27167 * localedata/tst-locale.sh: Likewise.
27168 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27169
27170 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27171 (REPORTS): Likewise.
27172 (check): Likewise.
27173 (i18n): Rename to...
27174 (i18n_ctype): ...this.
27175 (i18n-report): Rename to...
27176 (i18n_ctype-report): ...this.
27177 * localedata/locales/i18n_ctype: Regenerate.
27178 * localedata/locales/i18n: copy i18n_ctype.
27179
27180 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27181
27182 * stdlib/strfroml.c: Include <bits/floatn.h>.
27183 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27184 Define before include of <stdlib.h> and undefine afterwards, then
27185 define as weak alias.
27186
27187 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27188 Undefine and restore default definition. Use
27189 libm_alias_ldouble_other.
27190
27191 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27192
27193 [BZ #22153]
27194 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27195 in coredumps.
27196
27197 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27198
27199 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27200 Assign sym_map to be map for local symbols, as TLS relocations
27201 use sym_map to determine whether the symbol is defined and to
27202 extract the TLS information.
27203 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27204 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27205
27206 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27207
27208 [BZ #22189]
27209 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27210 (math_force_eval): Add powerpc version.
27211
27212 [BZ #22142]
27213 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27214 -DBL_MAX.
27215 (do_test): Likewise.
27216 * stdio-common/tst-printf.sh: Likewise.
27217 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27218 ifdef clause in order to set the carry bit right. Replace r0 by
27219 0 without changing the behavior.
27220
27221 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27222
27223 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27224 <libm-alias-ldouble.h>.
27225 (fabsl): Define using libm_alias_ldouble.
27226 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27227 <libm-alias-ldouble.h>.
27228 (fabsl): Define using libm_alias_ldouble.
27229
27230 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27231 Remove conditional code.
27232
27233 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27234 Rename to __clog10_internal_l.
27235 (__clog10_internal_l): Define aliases using
27236 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27237 with __clog10.
27238
27239 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27240
27241 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27242 * benchtests/sincosf-inputs: New file.
27243 * benchtests/cosf-inputs: New file.
27244 * benchtests/sinf-inputs: New file.
27245
27246 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27247
27248 * posix/tst-spawn.c (do_test): Wait for both children.
27249
27250 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27251
27252 [BZ #22284]
27253 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27254 tests-pie): Add tst-gmon-pie.
27255 (CFLAGS-tst-gmon-pie.c): New.
27256 (CRT-tst-gmon-pie): Likewise.
27257 (tst-gmon-pie-ENV): Likewise.
27258 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27259 ($(objpfx)tst-gmon-pie.out): Likewise.
27260 (clean-tst-gmon-pie-data): Likewise.
27261 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27262 * gmon/gmon.c [PIC]: Include <link.h>.
27263 [PIC] (callback): New function.
27264 (write_hist): Add an argument for load address. Subtract load
27265 address from PCs.
27266 (write_call_graph): Likewise.
27267 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27268 it to write_hist and write_call_graph.
27269 * gmon/tst-gmon-pie.c: New file.
27270
27271 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27272
27273 * math/Makefile (test-types-basic): New variable.
27274 (test-types): Likewise.
27275 (libm-test-support): Use $(test-types) instead of $(types).
27276 (libm-tests-base-normal): Likewise.
27277 (libm-tests-base-finite): Likewise.
27278 (libm-tests-base-inline): Likewise.
27279 (generated): Likewise.
27280 ($(objpfx)libm-test-support-$(t).c): Likewise.
27281 (libm-tests-for-type iterator): Likewise.
27282 (libm-test-support iterator): Likewise.
27283 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27284 (ulp_idx): Use ULP_IDX.
27285 * math/test-ldouble.h: Include <float.h>.
27286 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27287 (ULP_IDX): New macro.
27288 (ULP_I_IDX): Likewise.
27289 * math/test-double.h (ULP_IDX): Likewise.
27290 (ULP_I_IDX): Likewise.
27291 * math/test-float.h (ULP_IDX): Likewise.
27292 (ULP_I_IDX): Likewise.
27293 * math/test-float128.h (ULP_IDX): Likewise.
27294 (ULP_I_IDX): Likewise.
27295
27296 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27297
27298 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27299 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27300 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27301 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27302 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27303 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27304 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27305 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27306 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27307 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27308 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27309 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27310 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27311 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27312 (SINGLE_THREAD_BY_GLOBAL): Define.
27313 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27314 Likewise.
27315 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27316 Likewise.
27317 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27318 Likewise.
27319 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27320 Likewise.
27321 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27322 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27323 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27324 Likewise.
27325
27326 2017-10-11 Andreas Schwab <schwab@suse.de>
27327
27328 * nis/Makefile (aux): Remove.
27329 * nscd/Makefile (aux): Add nscd_hash.
27330 (nscd-modules): Likewise.
27331 ($(objpfx)nscd): Don't depend on libnsl.
27332 * nscd/nscd_hash.c: New file.
27333 * nscd/nscd_hash.h: Likewise.
27334 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27335 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27336 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27337 instead of <nis/rpcsvc/nis.h>.
27338 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27339
27340 2017-10-11 Florian Weimer <fweimer@redhat.com>
27341
27342 [BZ #22078]
27343 Avoid large NSS buffers with many addresses, aliases.
27344 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27345 using dynarrays and struct alloc_buffer.
27346 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27347 (tst-nss-files-hosts-multi): Link with -ldl.
27348 * nss/tst-nss-files-hosts-multi.c: New file.
27349
27350 2017-10-11 Florian Weimer <fweimer@redhat.com>
27351
27352 [BZ #18023]
27353 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27354 scratch_buffer. Eliminate gotos.
27355
27356 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27357
27358 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27359 libm_alias_ldouble_other.
27360 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27361 undefine and redefine.
27362 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27363 (exp10l): Do not define here.
27364 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27365 (weak_alias): Undefine and redefine.
27366 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27367 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27368 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27369 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27370
27371 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27372 [!__fma] (fma): Define using libm_alias_double.
27373 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27374 [!__fmaf] (fmaf): Define using libm_alias_float.
27375 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27376 (fmal): Define using libm_alias_ldouble.
27377
27378 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27379
27380 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27381 New macro.
27382 (libm_alias_double_other): Likewise.
27383 (libm_alias_double_r): Use libm_alias_double_other_r.
27384 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27385 New macro.
27386 (libm_alias_float_other): Likewise.
27387 (libm_alias_float_r): Use libm_alias_float_other_r.
27388 * sysdeps/generic/libm-alias-float128.h
27389 (libm_alias_float128_other_r): New macro.
27390 (libm_alias_float128_other): Likewise.
27391 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27392 * sysdeps/generic/libm-alias-ldouble.h
27393 (libm_alias_ldouble_other_r): New macro.
27394 (libm_alias_ldouble_other): Likewise.
27395 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27396 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27397 (libm_alias_double_other_r): New macro.
27398 (libm_alias_double_other): Likewise.
27399 (libm_alias_double_r): Use libm_alias_double_other_r.
27400 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27401 (libm_alias_ldouble_other_r): New macro.
27402 (libm_alias_ldouble_other): Likewise.
27403 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27404 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27405 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27406 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27407 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27408 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27409 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27410 * math/w_exp2f.c: Use libm_alias_float_other.
27411 * math/w_expf.c: Likewise.
27412 * math/w_log2f.c: Likewise.
27413 * math/w_logf.c: Likewise.
27414 * math/w_powf.c: Likewise.
27415 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27416 [!__exp2f]: Use libm_alias_float_other.
27417 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27418 [!__expf]: Use libm_alias_float_other.
27419 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27420 [!__log2f]: Use libm_alias_float_other.
27421 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27422 [!__logf]: Use libm_alias_float_other.
27423 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27424 [!__powf]: Use libm_alias_float_other.
27425
27426 2017-10-10 Florian Weimer <fweimer@redhat.com>
27427
27428 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27429 function.
27430 (_nss_files_gethostbyname3_r): Call it.
27431
27432 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27433
27434 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27435 error. Remove default definition of declare_mgen_alias.
27436 [!declare_mgen_alias_r]: Likewise.
27437 * sysdeps/generic/math-type-macros-double.h
27438 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27439 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27440 (declare_mgen_alias_r): Likewise.
27441 * sysdeps/generic/math-type-macros-float128.h
27442 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27443 * sysdeps/generic/math-type-macros-ldouble.h
27444 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27445 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27446 macro.
27447 (declare_mgen_alias_r_s): Likewise.
27448 (declare_mgen_alias_r): Likewise.
27449 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27450 (lgamma_r): Define using libm_alias_double_r.
27451 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27452 (lgammaf_r): Define using libm_alias_float_r.
27453 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27454 (lgammal_r): Define using libm_alias_ldouble_r.
27455 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27456 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27457
27458 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27459
27460 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27461 extern declaration.
27462
27463 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27464
27465 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27466
27467 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27468
27469 [BZ #21326]
27470 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27471 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27472 * math/Makefile (test-math-cxx11): New test.
27473 * math/test-math-cxx11.cc: New file.
27474
27475 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27476
27477 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27478
27479 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27480 call to allocate the slave pty file descriptor.
27481
27482 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27483
27484 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27485 [!__fma] (fma): Define using libm_alias_double.
27486 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27487 [!__fma] (fma): Define using libm_alias_double.
27488
27489 * sysdeps/ieee754/float128/float128_private.h: Include
27490 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27491 (libm_alias_ldouble_r): Undefine and redefine.
27492 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27493 <libm-alias-ldouble.h>.
27494 (asinhl): Define using libm_alias_ldouble.
27495 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27496 <libm-alias-ldouble.h>.
27497 (atanl): Define using libm_alias_ldouble.
27498 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27499 <libm-alias-ldouble.h>.
27500 (cbrtl): Define using libm_alias_ldouble.
27501 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27502 <libm-alias-ldouble.h>.
27503 (ceill): Define using libm_alias_ldouble.
27504 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27505 <libm-alias-ldouble.h>.
27506 (copysignl): Define using libm_alias_ldouble.
27507 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27508 <libm-alias-ldouble.h>.
27509 (cosl): Define using libm_alias_ldouble.
27510 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27511 <libm-alias-ldouble.h>.
27512 (erfl): Define using libm_alias_ldouble.
27513 (erfcl): Likewise.
27514 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27515 <libm-alias-ldouble.h>.
27516 (expm1l): Define using libm_alias_ldouble.
27517 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27518 <libm-alias-ldouble.h>.
27519 (fabsl): Define using libm_alias_ldouble.
27520 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27521 <libm-alias-ldouble.h>.
27522 (floorl): Define using libm_alias_ldouble.
27523 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27524 <libm-alias-ldouble.h>.
27525 (fmal): Define using libm_alias_ldouble.
27526 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27527 <libm-alias-ldouble.h>.
27528 (frexpl): Define using libm_alias_ldouble.
27529 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27530 libm_alias_ldouble.
27531 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27532 <libm-alias-ldouble.h>.
27533 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27534 libm_alias_ldouble.
27535 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27536 <libm-alias-ldouble.h>.
27537 (getpayloadl): Define using libm_alias_ldouble.
27538 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27539 <libm-alias-ldouble.h>.
27540 (llrintl): Define using libm_alias_ldouble.
27541 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27542 <libm-alias-ldouble.h>.
27543 (llroundl): Define using libm_alias_ldouble.
27544 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27545 <libm-alias-ldouble.h>.
27546 (logbl): Define using libm_alias_ldouble.
27547 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27548 <libm-alias-ldouble.h>.
27549 (lrintl): Define using libm_alias_ldouble.
27550 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27551 <libm-alias-ldouble.h>.
27552 (lroundl): Define using libm_alias_ldouble.
27553 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27554 <libm-alias-ldouble.h>.
27555 (modfl): Define using libm_alias_ldouble.
27556 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27557 <libm-alias-ldouble.h>.
27558 (nearbyintl): Define using libm_alias_ldouble.
27559 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27560 <libm-alias-ldouble.h>.
27561 (nextafterl): Define using libm_alias_ldouble.
27562 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27563 <libm-alias-ldouble.h>.
27564 (nextupl): Define using libm_alias_ldouble.
27565 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27566 <libm-alias-ldouble.h>.
27567 (remquol): Define using libm_alias_ldouble.
27568 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27569 <libm-alias-ldouble.h>.
27570 (rintl): Define using libm_alias_ldouble.
27571 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27572 <libm-alias-ldouble.h>.
27573 (roundevenl): Define using libm_alias_ldouble.
27574 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27575 <libm-alias-ldouble.h>.
27576 (roundl): Define using libm_alias_ldouble.
27577 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27578 using libm_alias_ldouble.
27579 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27580 <libm-alias-ldouble.h>.
27581 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27582 Define using libm_alias_ldouble.
27583 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27584 <libm-alias-ldouble.h>.
27585 (sincosl): Define using libm_alias_ldouble.
27586 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27587 <libm-alias-ldouble.h>.
27588 (sinl): Define using libm_alias_ldouble.
27589 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27590 <libm-alias-ldouble.h>.
27591 (tanhl): Define using libm_alias_ldouble.
27592 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27593 <libm-alias-ldouble.h>.
27594 (tanl): Define using libm_alias_ldouble.
27595 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27596 <libm-alias-ldouble.h>.
27597 (totalorderl): Define using libm_alias_ldouble.
27598 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27599 <libm-alias-ldouble.h>.
27600 (totalordermagl): Define using libm_alias_ldouble.
27601 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27602 <libm-alias-ldouble.h>.
27603 (truncl): Define using libm_alias_ldouble.
27604 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27605 libm_alias_ldouble.
27606 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27607 libm_alias_ldouble.
27608 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27609 <libm-alias-ldouble.h>.
27610 (weak_alias): Do not undefine and redefine.
27611 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27612 (copysignl): Define with long_double_symbol only if [IS_IN
27613 (libc)].
27614 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27615 <libm-alias-ldouble.h>.
27616 (weak_alias): Do not undefine and redefine.
27617 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27618 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27619 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27620 <libm-alias-ldouble.h>.
27621 (weak_alias): Do not undefine and redefine.
27622 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27623 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27624 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27625 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27626 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27627 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27628 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27629 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27630 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27631 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27632 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27633 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27634 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27635 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27636 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27637 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27638 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27639 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27640 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27641 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27642 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27643 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27644 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27645 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27646 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27647 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27648
27649 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27650
27651 [BZ #22111]
27652 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27653 (tcache_thread_freeres): Set tcache_shutting_down before
27654 freeing the tcache.
27655 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27656 * malloc/tst-malloc-tcache-leak.c: New file.
27657
27658 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27659
27660 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27661 back to powerpc32 file.
27662 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27663 (memrchr): Add __memrchr_power8 to ifunc list.
27664 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27665 extra bytes for unaligned inputs.
27666
27667 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27668
27669 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27670 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27671 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27672 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27673 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27674
27675 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27676
27677 * sysdeps/arm/libm-test-ulps: Update.
27678
27679 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27680 <libm-alias-ldouble.h>.
27681 (asinhl): Define using libm_alias_ldouble.
27682 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27683 <libm-alias-ldouble.h>.
27684 (cbrtl): Define using libm_alias_ldouble.
27685 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27686 <libm-alias-ldouble.h>.
27687 (copysignl): Define using libm_alias_ldouble.
27688 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27689 <libm-alias-ldouble.h>.
27690 (cosl): Define using libm_alias_ldouble.
27691 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27692 <libm-alias-ldouble.h>.
27693 (erfl): Define using libm_alias_ldouble.
27694 (erfcl): Likewise.
27695 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27696 <libm-alias-ldouble.h>.
27697 (fmal): Define using libm_alias_ldouble.
27698 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27699 <libm-alias-ldouble.h>.
27700 (frexpl): Define using libm_alias_ldouble.
27701 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27702 libm_alias_ldouble.
27703 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27704 <libm-alias-ldouble.h>.
27705 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27706 libm_alias_ldouble.
27707 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27708 <libm-alias-ldouble.h>.
27709 (getpayloadl): Define using libm_alias_ldouble.
27710 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27711 <libm-alias-ldouble.h>.
27712 (llrintl): Define using libm_alias_ldouble.
27713 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27714 <libm-alias-ldouble.h>.
27715 (llroundl): Define using libm_alias_ldouble.
27716 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27717 <libm-alias-ldouble.h>.
27718 (lrintl): Define using libm_alias_ldouble.
27719 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27720 <libm-alias-ldouble.h>.
27721 (lroundl): Define using libm_alias_ldouble.
27722 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27723 <libm-alias-ldouble.h>.
27724 (modfl): Define using libm_alias_ldouble.
27725 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27726 <libm-alias-ldouble.h>.
27727 (nextupl): Define using libm_alias_ldouble.
27728 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27729 <libm-alias-ldouble.h>.
27730 (remquol): Define using libm_alias_ldouble.
27731 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27732 <libm-alias-ldouble.h>.
27733 (roundevenl): Define using libm_alias_ldouble.
27734 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27735 <libm-alias-ldouble.h>.
27736 (roundl): Define using libm_alias_ldouble.
27737 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27738 using libm_alias_ldouble.
27739 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27740 <libm-alias-ldouble.h>.
27741 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27742 <libm-alias-ldouble.h>.
27743 (setpayloadsigl): Define using libm_alias_ldouble.
27744 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27745 <libm-alias-ldouble.h>.
27746 (sincosl): Define using libm_alias_ldouble.
27747 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27748 <libm-alias-ldouble.h>.
27749 (sinl): Define using libm_alias_ldouble.
27750 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27751 <libm-alias-ldouble.h>.
27752 (tanhl): Define using libm_alias_ldouble.
27753 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27754 <libm-alias-ldouble.h>.
27755 (tanl): Define using libm_alias_ldouble.
27756 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27757 <libm-alias-ldouble.h>.
27758 (totalorderl): Define using libm_alias_ldouble.
27759 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27760 <libm-alias-ldouble.h>.
27761 (totalordermagl): Define using libm_alias_ldouble.
27762 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27763 libm_alias_ldouble.
27764 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27765 libm_alias_ldouble.
27766
27767 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27768
27769 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27770 memmove_falkor.
27771 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27772 (__libc_ifunc_impl_list): Likewise.
27773 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27774 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27775
27776 * benchtests/bench-memmove-walk.c: New file.
27777 * benchtests/Makefile (string-benchset): Add it.
27778
27779 * benchtests/bench-memset-walk.c: New file.
27780 * benchtests/Makefile (string-benchset): Add it.
27781
27782 * benchtests/bench-memcpy-walk.c: New file.
27783 * benchtests/Makefile (string-benchset): Add it.
27784
27785 2017-10-05 Florian Weimer <fweimer@redhat.com>
27786
27787 nscd: Eliminate compilation time dependency in the build output.
27788 * nscd/nscd_stat.c (STATDATA_VERSION)
27789 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27790 (STATDATA_VERSION_FULL): New macro definitions.
27791 (compilation): Remove.
27792 (struct statdata): Adjust version member.
27793 (send_stats): Set version from STATDATA_VERSION_FULL.
27794 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27795
27796 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27797
27798 * configure.ac (--enable-add-ons): Remove option.
27799 (machine): Do not mention add-ons in comment.
27800 (LIBC_PRECONFIGURE): Likewise.
27801 (add_ons): Remove variable and sanity checks and logic to locate
27802 add-ons.
27803 (add_ons_automatic): Remove variable.
27804 (configured_add_ons): Likewise.
27805 (add_ons_sfx): Likewise.
27806 (add_ons_pfx): Likewise.
27807 (add_on_subdirs): Likewise.
27808 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27809 consideration of add-ons in Implies handling.
27810 (sysdeps_add_ons): Likewise.
27811 * configure: Regenerated.
27812 * libidn/configure.ac: Remove.
27813 * libidn/configure: Likewise.
27814 * sysdeps/unix/inet/configure.ac: New file.
27815 * sysdeps/unix/inet/configure: New generated file.
27816 * sysdeps/unix/inet/Subdirs: Add libidn.
27817 * Makeconfig (sysdeps-srcdirs): Remove variable.
27818 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27819 ($(common-objpfx)config.status): Do not depend on add-on files.
27820 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27821 comment.
27822 (all-subdirs): Do not include $(add-on-subdirs).
27823 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27824 * config.make.in (add-ons): Remove variable.
27825 (add-on-subdirs): Likewise.
27826 (sysdeps-add-ons): Likewise.
27827 * manual/Makefile (add-chapters): Remove.
27828 ($(objpfx)texis): Do not depend on $(add-chapters).
27829 (nonexamples): Do not handle $(add-chapters).
27830 (examples): Do not handle $(add-ons).
27831 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27832 libc-texinfo.sh.
27833 * manual/install.texi (Installation): Do not mention add-ons.
27834 (--enable-add-ons): Do not document configure option.
27835 * INSTALL: Regenerated.
27836 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27837 * manual/maint.texi (Hierarchy Conventions): Do not mention
27838 add-ons.
27839 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27840 --enable-add-ons.
27841 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27842 add-ons.
27843 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27844 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27845
27846 2017-10-05 Andreas Schwab <schwab@suse.de>
27847
27848 [BZ #15142]
27849 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27850 (_IO_flush_all_lockp): Always lock list_all_lock.
27851 (_IO_flush_all_linebuffered): Likewise.
27852 (_IO_unbuffer_all): Likewise.
27853
27854 2017-10-05 Florian Weimer <fweimer@redhat.com>
27855
27856 [BZ #15436]
27857 Do not flush stdio streams on abort.
27858 * stdlib/abort.c (fflush): Remove macro definition.
27859 (abort): Remove stages related to stdio flushing.
27860
27861 2017-10-05 Florian Weimer <fweimer@redhat.com>
27862
27863 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27864
27865 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27866
27867 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27868
27869 2017-10-05 Florian Weimer <fweimer@redhat.com>
27870
27871 * support/support_format_hostent.c (support_format_hostent): Add
27872 more error information for NETDB_INTERNAL.
27873
27874 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27875
27876 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27877 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27878 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27879 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27880 AC_DEFINE if multi-arch is enabled.
27881 * sysdeps/i386/configure: Regenerated.
27882
27883 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27884
27885 * Makeconfig (+link-static-before-libc): Use
27886 $(DEFAULT-LDFLAGS-$(@F)).
27887 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27888 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27889 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27890
27891 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27892
27893 * elf/Makefile (tests): Add tst-main1.
27894 (modules-names): Add tst-main1mod.
27895 ($(objpfx)tst-main1): New.
27896 (CRT-tst-main1): Likewise.
27897 (LDFLAGS-tst-main1): Likewise.
27898 (LDLIBS-tst-main1): Likewise.
27899 (tst-main1mod.so-no-z-defs): Likewise.
27900 * elf/tst-main1.c: New file.
27901 * elf/tst-main1mod.c: Likewise.
27902
27903 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27904
27905 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27906
27907 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27908
27909 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27910 (fma): Define using libm_alias_double.
27911 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27912 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27913 <math_ldbl_opt.h>.
27914 (fmal): Do not define as compat symbol here.
27915 * sysdeps/alpha/fpu/s_fma.c: New file.
27916
27917 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27918
27919 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27920
27921 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27922
27923 [BZ #22229]
27924 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27925 <math_ldbl_opt.h>
27926 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27927 and libc.
27928 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27929 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27930 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27931 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27933 Include <math_ldbl_opt.h>
27934 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27935 and libc.
27936 (compat_symbol): Undefine and redefine.
27937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27938 <math_ldbl_opt.h>
27939 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27940 (compat_symbol): Undefine and redefine.
27941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27942 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27943 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27944 GLIBC_2_1 for libm.
27945 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27946 GLIBC_2.0 copysignl symbol.
27947 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27948 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27949
27950 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27951
27952 2017-10-04 Florian Weimer <fweimer@redhat.com>
27953
27954 * scripts/check-local-headers.sh: Ignore nspr4 header file
27955 directory in addition to nspr.
27956
27957 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27958
27959 [BZ #17956]
27960 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27961 * configure: Regenerate.
27962 * crypt/Makefile (nss-cpp-flags): New variable.
27963 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27964 (CPPFLAGS-md5-crypt.c): Use it.
27965 * scripts/check-local-headers.sh: Ignore nspr header file
27966 directory.
27967
27968 2017-10-04 Andreas Schwab <schwab@suse.de>
27969
27970 * nis/Makefile (services): Remove compat.
27971 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27972 ($(objpfx)libnss_compat.so): Remove rule.
27973 * nis/Versions (libnss_compat): Remove.
27974 * nss/Makefile (services): Add compat.
27975 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27976 * nss/Versions (libnss_compat): Define.
27977 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27978 Don't include <rpc/types.h>. Replace bool_t by bool.
27979 * nss/nss_compat/compat-initgroups.c: Likewise.
27980 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27981 instead of <rpcsrv/ypclnt.h>.
27982 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27983 yp_get_default_domain.
27984 * nss/nss_compat/compat-pwd.c: Likewise.
27985 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27986 yp_get_default_domain.
27987 * nss/nss_compat/nisdomain.c: New file.
27988 * nss/nss_compat/nisdomain.h: Likewise.
27989
27990 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27991
27992 [BZ #22244]
27993 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27994 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27995
27996 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27997
27998 [BZ #22243]
27999 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28000 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28001
28002 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28003
28004 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28005 "movl main@GOTOFF(%ebx), %eax".
28006
28007 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28008
28009 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28010 allow undefined _DYNAMIC in PIE libc.a.
28011 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28012 Likewse.
28013
28014 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28015
28016 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28017 check _DYNAMIC.
28018
28019 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28020
28021 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28022 check _DYNAMIC.
28023
28024 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28025
28026 * math/test-math-iscanonical.cc (error): Replace bool with int.
28027
28028 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28029
28030 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28031 (modf): Define using libm_alias_double, only if [!__modf].
28032 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28033 <libm-alias-double.h>.
28034 (modf): Define using libm_alias_double, only if [!__modf].
28035 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28036 compat symbol here.
28037 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28038 (weak_alias): Do not undefine and redefine.
28039 (strong_alias): Likewise.
28040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28041 (weak_alias): Likewise.
28042 (strong_alias): Likewise.
28043
28044 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28045 (logb): Define using libm_alias_double, only if [!__logb].
28046 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28047 <libm-alias-double.h>.
28048 (logb): Define using libm_alias_double, only if [!__logb].
28049 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28050 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28051 (weak_alias): Do not undefine and redefine.
28052 (strong_alias): Likewise.
28053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28054 (weak_alias): Likewise.
28055 (strong_alias): Likewise.
28056
28057 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28058
28059 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28060 Check SHARED instead PIC.
28061
28062 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28063
28064 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28065 [!__fmaf] (fmaf): Define using libm_alias_float.
28066
28067 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28068 (frexp): Define using libm_alias_double.
28069 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28070 <libm-alias-double.h>.
28071 (frexp): Define using libm_alias_double.
28072 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28073 compat symbol here.
28074
28075 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28076
28077 [BZ #22235]
28078 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28079 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28080 (CFLAGS-test-math-iscanonical.cc): New variable.
28081 * math/test-math-iscanonical.cc: New file.
28082 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28083 Provide a C++ implementation based on function overloading,
28084 rather than using __MATH_TG, which uses C-only builtins.
28085 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28086 Likewise.
28087 * sysdeps/powerpc/powerpc64le/Makefile
28088 (CFLAGS-test-math-iscanonical.cc): New variable.
28089
28090 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28091
28092 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28093 (ceil): Define using libm_alias_double.
28094 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28095 (floor): Define using libm_alias_double.
28096 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28097 <libm-alias-double.h>.
28098 (llround): Define using libm_alias_double.
28099 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28100 <libm-alias-double.h>.
28101 (lround): Define using libm_alias_double.
28102 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28103 <libm-alias-double.h>.
28104 (nearbyint): Define using libm_alias_double.
28105 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28106 <libm-alias-double.h>.
28107 (remquo): Define using libm_alias_double.
28108 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28109 (rint): Define using libm_alias_double.
28110 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28111 (round): Define using libm_alias_double.
28112 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28113 (trunc): Define using libm_alias_double.
28114 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28115 <libm-alias-double.h>.
28116 (ceil): Define using libm_alias_double.
28117 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28118 <libm-alias-double.h>.
28119 (floor): Define using libm_alias_double.
28120 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28121 <libm-alias-double.h>.
28122 (llround): Define using libm_alias_double.
28123 [_LP64] (lround): Likewise.
28124 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28125 <libm-alias-double.h>.
28126 [!_LP64] (lround): Define using libm_alias_double.
28127 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28128 <libm-alias-double.h>.
28129 (nearbyint): Define using libm_alias_double.
28130 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28131 <libm-alias-double.h>.
28132 (remquo): Define using libm_alias_double.
28133 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28134 <libm-alias-double.h>.
28135 (rint): Define using libm_alias_double.
28136 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28137 <libm-alias-double.h>.
28138 (round): Define using libm_alias_double.
28139 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28140 <libm-alias-double.h>.
28141 (trunc): Define using libm_alias_double.
28142 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28143 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28144 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28145 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28146 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28147 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28148 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28149 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28150 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28151
28152 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28153
28154 * math/w_remainder.c: New file.
28155 * math/w_remainderf.c: New file.
28156 * math/w_remainderl.c: New file.
28157
28158 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28159
28160 * elf/rtld.c (BOOTSTRAP_MAP): New.
28161 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28162 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28163 Likewise.
28164 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28165 Likewise.
28166 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28167 Likewise.
28168
28169 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28170
28171 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28172 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28173 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28174 rtld_hidden_data_ver): Define to empty.
28175 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28176 __assert_perror_fail): Likewise.
28177 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28178 (__rewinddir): Likewise.
28179 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28180 (__profile_frequency): Likewise.
28181 * include/setjmp.h (__sigsetjmp): Likewise.
28182 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28183 __libc_sigaction): Likewise.
28184 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28185 not set hidden attribute.
28186 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28187 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28188 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28189 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28190 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28191 __fxstatat64): Likewise.
28192 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28193 (__uname): Likewise.
28194 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28195 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28196 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28197 (NO_RTLD_HIDDEN): Set.
28198 * sysdeps/mach/hurd/configure: Refresh.
28199 * config.h.in: Refresh.
28200
28201 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28202
28203 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28204 (atan): Define using libm_alias_double.
28205 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28206 (tan): Define using libm_alias_double.
28207 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28208 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28209
28210 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28211 define as weak alias of __atan. Do not define any aliases if
28212 [__atan].
28213 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28214 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28215 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28216 as weak alias of __tan. Do not define any aliases if [__tan].
28217 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28218 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28219 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28220 __atan.
28221 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28222 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28223 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28224 and define as weak alias of __atan.
28225 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28226 __atan.
28227 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28228 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28229 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28230 define as weak alias of __tan.
28231
28232 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28233
28234 * math/w_lgamma.c: New file.
28235 * math/w_lgammaf.c: New file.
28236 * math/w_lgammal.c: New file.
28237
28238 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28239
28240 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28241 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28242 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28243 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28244 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28245 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28246 * sysdeps/i386/fpu/w_log2f.c: New file.
28247 * sysdeps/i386/fpu/w_logf.c: New file.
28248 * sysdeps/i386/fpu/w_powf.c: New file.
28249 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28250 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28251 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28252
28253 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28254 H.J. Lu <hongjiu.lu@intel.com>
28255
28256 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28257 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28258 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28259 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28260 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28261 the new expf code.
28262 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28263 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28264 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28265 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28266 * sysdeps/i386/fpu/w_exp2f.c: New file.
28267 * sysdeps/i386/fpu/w_expf.c: New file.
28268 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28269 * sysdeps/x86_64/fpu/w_expf.c: New file.
28270
28271 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28272
28273 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28274 (log2f): Likewise.
28275 (powf): Likewise.
28276 * math/w_log2f.c: New file.
28277 * math/w_logf.c: New file.
28278 * math/w_powf.c: New file.
28279 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28280 * math/w_logf_compat.c (__logf_compat): Likewise.
28281 * math/w_powf_compat.c (__powf_compat): Likewise.
28282 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28283 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28284 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28285 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28286 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28287 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28288 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28289 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28290 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28291 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28292 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28293 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28294 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28295 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28296 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28298 Likewise.
28299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28300 Likewise.
28301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28302 Likewise.
28303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28304 Likewise.
28305 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28306 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28307 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28308 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28309 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28310 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28311 Likewise.
28312 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28313 Likewise.
28314 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28315 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28316 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28317
28318 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28319
28320 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28321 (sysdep_routines): Add memrchr_power8.
28322 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28323 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28324 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28325 New file.
28326 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28327 (memrchr): Add __memrchr_power8 to ifunc list.
28328 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28329
28330 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28331
28332 [BZ #18822]
28333 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28334 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28335 libc_hidden_def.
28336 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28337 (__posix_fallocate64_l64): Likewise.
28338
28339 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28340
28341 [BZ #18822]
28342 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28343 (__sched_setaffinity_new): Add libc_hidden_proto and
28344 libc_hidden_def.
28345
28346 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28347
28348 [BZ #18822]
28349 * include/glob.h (__glob64): Add libc_hidden_proto.
28350 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28351 libc_hidden_def.
28352
28353 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28354
28355 [BZ #18822]
28356 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28357 attribute_hidden.
28358
28359 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28360
28361 [BZ #18822]
28362 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28363
28364 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28365
28366 [BZ #18822]
28367 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28368 libc_hidden_def.
28369
28370 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28371
28372 [BZ #18822]
28373 * csu/version.c (__libc_print_version): Add attribute_hidden.
28374
28375 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28376
28377 [BZ #18822]
28378 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28379
28380 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28381
28382 [BZ #18822]
28383 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28384
28385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28386
28387 [BZ #18822]
28388 * nscd/nscd_helper.c (__nis_hash): New prototype.
28389
28390 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28391
28392 [BZ #18822]
28393 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28394 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28395 libc_hidden_def.
28396 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28397 * termios/tcgetattr.c (__tcgetattr): Likewise.
28398
28399 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28400
28401 [BZ #18822]
28402 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28403 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28404 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28405 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28406 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28407
28408 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28409
28410 [BZ #18822]
28411 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28412
28413 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28414
28415 [BZ #18822]
28416 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28417 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28418
28419 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28420
28421 [BZ #18822]
28422 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28423
28424 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28425
28426 [BZ #18822]
28427 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28428 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28429
28430 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28431
28432 [BZ #18822]
28433 * include/ifreq.h: New file.
28434 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28435 (__ifreq): Likewise.
28436 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28437 (__ifreq): Likewise.
28438
28439 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28440
28441 [BZ #18822]
28442 * include/idna.h: New file.
28443 * inet/getnameinfo.c: Include <idna.h> instead of
28444 <libidn/idna.h>.
28445 (__idna_to_unicode_lzlz): Removed.
28446 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28447 <libidn/idna.h>.
28448 (__idna_to_ascii_lz): Removed.
28449 (__idna_to_unicode_lzlz): Likewise.
28450
28451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28452
28453 [BZ #18822]
28454 * include/plural-exp.h: New file.
28455 * intl/plural-exp.c: Include <plural-exp.h> instead of
28456 "plural-exp.h".
28457
28458 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28459
28460 [BZ #18822]
28461 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28462 "getsourcefilter.h".
28463 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28464 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28465 "getsourcefilter.h".
28466 (__get_sol): Removed.
28467
28468 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28469
28470 [BZ #18822]
28471 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28472 to ...
28473 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28474
28475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28476
28477 [BZ #18822]
28478 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28479 attribute_hidden.
28480
28481 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28482
28483 [BZ #18822]
28484 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28485
28486 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28487
28488 [BZ #18822]
28489 * include/search.h (__tdestroy): Add libc_hidden_proto.
28490 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28491
28492 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28493
28494 [BZ #18822]
28495 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28496
28497 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28498
28499 [BZ #18822]
28500 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28501 attribute_hidden.
28502
28503 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28504
28505 [BZ #18822]
28506 * include/signal.h (__kill): Add libc_hidden_proto.
28507 (__sigblock): Likewise.
28508 (__sigprocmask): Likewise.
28509 (__sigaltstack): Likewise.
28510 * signal/kill.c (__kill): Add libc_hidden_def.
28511 * signal/sigblock.c (__sigblock): Likewise.
28512 * signal/sigprocmask.c (__sigprocmask): Likewise.
28513 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28514 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28515 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28516 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28517 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28518 Likewise.
28519 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28520 Likewise.
28521 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28522 (__sigprocmask): Likewise.
28523 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28524 Likewise.
28525 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28526 (__sigprocmask): Likewise.
28527 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28528 Likewise.
28529
28530 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28531
28532 [BZ #18822]
28533 * include/string.h (__strsep): Add libc_hidden_proto.
28534 * string/strsep.c (__strsep): Add libc_hidden_def.
28535
28536 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28537
28538 [BZ #18822]
28539 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28540 attribute_hidden.
28541 (__spawni): Likewise.
28542
28543 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28544
28545 [BZ #18822]
28546 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28547 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28548 libc_hidden_def.
28549
28550 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28551
28552 [BZ #18822]
28553 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28554
28555 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28556
28557 [BZ #18822]
28558 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28559 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28560 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28561 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28562 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28563 Likewise.
28564 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28565 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28566
28567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28568
28569 [BZ #18822]
28570 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28571 (__dcigettext): Likewise.
28572
28573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28574
28575 [BZ #18822]
28576 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28577 libc_hidden_proto.
28578 (__get_nprocs): Likewise.
28579 (__get_phys_pages): Likewise.
28580 (__get_avphys_pages): Likewise.
28581 (__get_child_max): Add attribute_hidden.
28582 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28583 (__get_nprocs): Likewise.
28584 (__get_phys_pages): Likewise.
28585 (__get_avphys_pages): Likewise.
28586 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28587 libc_hidden_def.
28588 (__get_nprocs): Likewise.
28589 (__get_phys_pages): Likewise.
28590 (__get_avphys_pages): Likewise.
28591 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28592 libc_hidden_def.
28593 (__get_nprocs_conf): Likewise.
28594 (__get_phys_pages): Likewise.
28595 (__get_avphys_pages): Likewise.
28596
28597 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28598
28599 [BZ #18822]
28600 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28601 attribute_hidden.
28602 (__netlink_close): Likewise.
28603 (__netlink_free_handle): Likewise.
28604 (__netlink_request): Likewise.
28605
28606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28607
28608 [BZ #18822]
28609 * include/rpc/rpc.h (__rpc_thread_variables): Add
28610 attribute_hidden.
28611 (__rpc_thread_svc_cleanup): Likewise.
28612 (__rpc_thread_clnt_cleanup): Likewise.
28613 (__rpc_thread_key_cleanup): Likewise.
28614
28615 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28616
28617 [BZ #18822]
28618 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28619 (__writev): Likewise.
28620 * misc/readv.c (__readv): Add libc_hidden_def.
28621 * misc/writev.c (__writev): Likewise.
28622 * sysdeps/posix/readv.c (__readv): Likewise.
28623 * sysdeps/posix/writev.c (__writev): Likewise.
28624 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28625 (__readv): Likewise.
28626 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28627 (__writev): Likewise.
28628
28629 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28630
28631 [BZ #18822]
28632 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28633 (__regcomp): Add libc_hidden_proto.
28634 (__regexec): Likewise.
28635 (__regfree): Likewise.
28636 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28637 (__regfree): Likewise.
28638 * posix/regexec.c (__regexec): Likewise.
28639
28640 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28641
28642 [BZ #18822]
28643 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28644 (__getutent): Likewise.
28645 (__getutid): Likewise.
28646 (__getutline): Likewise.
28647 (__pututline): Likewise.
28648 (__getutent_r): Likewise.
28649 (__getutid_r): Likewise.
28650 (__getutline_r): Likewise.
28651 (__utmpname): Add attribute_hidden.
28652 (__setutent): Likewise.
28653 (__endutent): Likewise.
28654 * login/getutent.c (__getutent): Add libc_hidden_def.
28655 * login/getutent_r.c (__getutent_r): Likewise.
28656 (__pututline): Likewise.
28657 * login/getutid.c (__getutid): Likewise.
28658 * login/getutid_r.c (__getutid_r): Likewise.
28659 * login/getutline.c (__getutline): Likewise.
28660 * login/getutline_r.c (__getutline_r): Likewise.
28661 * login/updwtmp.c (__updwtmp): Likewise.
28662
28663 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28664
28665 [BZ #18822]
28666 * include/dirent.h (__opendir): Always add attribute_hidden.
28667 (__fdopendir): Likewise.
28668 (__closedir): Likewise.
28669 (__readdir): Likewise.
28670 (__readdir64): Add libc_hidden_proto.
28671 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28672 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28673 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28674 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28675 New alias.
28676
28677 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28678
28679 [BZ #18822]
28680 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28681 * include/netdb.h (__gethostbyaddr_r): Likewise.
28682 (__gethostbyname_r): Likewise.
28683 (__gethostbyname2_r): Likewise.
28684 (__getnetbyaddr_r): Likewise.
28685 (__getnetbyname_r): Likewise.
28686 (__getservbyname_r): Likewise.
28687 (__getservbyport_r): Likewise.
28688 (__getprotobyname_r): Likewise.
28689 (__getprotobynumber_r): Likewise.
28690 (__getnetgrent_r): Likewise.
28691 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28692 (__getrpcbynumber_r): Likewise.
28693 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28694
28695 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28696
28697 [BZ #18822]
28698 * include/stdio.h (__fcloseall): Add attribute_hidden.
28699 (__getline): Likewise.
28700 (__path_search): Likewise.
28701 (__gen_tempname): Likewise.
28702 (__libc_message): Likewise.
28703 (__flockfile): Likewise.
28704 (__funlockfile): Likewise.
28705 (__fxprintf): Likewise.
28706 (__fxprintf_nocancel): Likewise.
28707
28708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28709
28710 [BZ #18822]
28711 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28712 (__sgetsgent_r): Likewise.
28713
28714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28715
28716 [BZ #18822]
28717 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28718 (__statfs64): Likewise.
28719 (__fstatfs64): Likewise.
28720 * include/sys/statvfs.h (__statvfs64): Likewise.
28721 (__fstatvfs64): Likewise.
28722 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28723 (__statfs_filesize_max): Likewise.
28724 (__statfs_symlinks): Likewise.
28725 (__statfs_chown_restricted): Likewise.
28726
28727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28728
28729 [BZ #18822]
28730 * include/time.h (__tzstring): Add attribute_hidden.
28731 (__tzfile_read): Likewise.
28732 (__tzfile_compute): Likewise.
28733 (__tzfile_default): Likewise.
28734 (__tzset_parse_tz): Likewise.
28735 (__offtime): Likewise.
28736 (__asctime_r): Likewise.
28737 (__tzset): Likewise.
28738 (__tz_convert): Likewise.
28739 (__getdate_r): Likewise.
28740 (__getclktck): Likewise.
28741
28742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28743
28744 [BZ #18822]
28745 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28746 (__nscd_unmap): Likewise.
28747 (__nscd_cache_search): Likewise.
28748 (__nscd_get_nl_timestamp): Likewise.
28749 (__nscd_getpwnam_r): Likewise.
28750 (__nscd_getpwuid_r): Likewise.
28751 (__nscd_getgrnam_r): Likewise.
28752 (__nscd_getgrgid_r): Likewise.
28753 (__nscd_gethostbyname_r): Likewise.
28754 (__nscd_gethostbyname2_r): Likewise.
28755 (__nscd_gethostbyaddr_r): Likewise.
28756 (__nscd_getai): Likewise.
28757 (__nscd_getgrouplist): Likewise.
28758 (__nscd_getservbyname_r): Likewise.
28759 (__nscd_getservbyport_r): Likewise.
28760 (__nscd_innetgr): Likewise.
28761 (__nscd_setnetgrent): Likewise.
28762
28763 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28764
28765 [BZ #18822]
28766 * include/gmp.h: Declare internal functions only if _ISOMAC is
28767 undefined.
28768 (__mpn_extract_double): Add attribute_hidden.
28769 (__mpn_extract_long_double): Likewise.
28770 (__mpn_extract_float128): Likewise.
28771 (__mpn_construct_float): Likewise.
28772 (__mpn_construct_double): Likewise.
28773 (__mpn_construct_long_double): Likewise.
28774 (__mpn_construct_float128): Likewise.
28775 (mpn_add_1): Likewise.
28776 (mpn_addmul_1): Likewise.
28777 (mpn_add_n): Likewise.
28778 (mpn_cmp): Likewise.
28779 (mpn_divrem): Likewise.
28780 (mpn_lshift): Likewise.
28781 (mpn_mul): Likewise.
28782 (mpn_mul_1): Likewise.
28783 (mpn_rshift): Likewise.
28784 (mpn_sub_1): Likewise.
28785 (mpn_submul_1): Likewise.
28786 (mpn_sub_n): Likewise.
28787
28788 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28789
28790 [BZ #18822]
28791 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28792 (__wcscat): Likewise.
28793 (__btowc): Likewise.
28794 (__wcrtomb): Likewise.
28795 (__mbsrtowcs): Likewise.
28796 (__wcsrtombs): Likewise.
28797 (__mbsnrtowcs): Likewise.
28798 (__wcsnrtombs): Likewise.
28799 (__wcsncpy): Likewise.
28800 (__wcpncpy): Likewise.
28801 (__wmemcpy): Likewise.
28802 (__wmempcpy): Likewise.
28803 (__wmemmove): Likewise.
28804 (__wcschrnul): Likewise.
28805 (__vfwscanf): Likewise.
28806 (__vswprintf): Likewise.
28807 (__fwprintf): Likewise.
28808 (__vfwprintf): Likewise.
28809
28810 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28811
28812 [BZ #18822]
28813 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28814 (__getgrgid_r): Likewise.
28815 (__getgrnam_r): Likewise.
28816 * include/pwd.h (__getpwuid_r): Likewise.
28817 (__getpwnam_r): Likewise.
28818 (__fgetpwent_r): Likewise.
28819 * include/shadow.h (__getspnam_r): Likewise.
28820 (__sgetspent_r): Likewise.
28821 (__fgetspent_r): Likewise.
28822
28823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28824
28825 [BZ #18822]
28826 * include/unistd.h (__access): Add attribute_hidden.
28827 (__lseek64): Likewise.
28828 (__libc_pread64): Likewise.
28829 (__pipe2): Likewise.
28830 (__sleep): Likewise.
28831 (__chdir): Likewise.
28832 (__fchdir): Likewise.
28833 (__getcwd): Likewise.
28834 (__rmdir): Likewise.
28835 (__execvpe): Likewise.
28836 (__execve): Likewise.
28837 (__setsid): Likewise.
28838 (__getuid): Likewise.
28839 (__geteuid): Likewise.
28840 (__getgid): Likewise.
28841 (__getegid): Likewise.
28842 (__getgroups): Likewise.
28843 (__group_member): Likewise.
28844 (__ttyname_r): Likewise.
28845 (__isatty): Likewise.
28846 (__readlink): Likewise.
28847 (__unlink): Likewise.
28848 (__gethostname): Likewise.
28849 (__profil): Likewise.
28850 (__getdtablesize): Likewise.
28851 (__brk): Likewise.
28852 (__ftruncate): Likewise.
28853 (__ftruncate64): Likewise.
28854
28855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28856
28857 [BZ #18822]
28858 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28859 * argp/argp-fs-xinl.c: Likewise.
28860 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28861 * argp/argp-parse.c: Include <argp.h>.
28862 * argp/argp-xinl.c: Likewise.
28863 * include/argp-fmtstream.h: New file.
28864 * include/argp.h (__argp_error): Add attribute_hidden.
28865 (__argp_failure): Likewise.
28866 (__argp_input): Likewise.
28867 (__argp_state_help): Likewise.
28868
28869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28870
28871 [BZ #18822]
28872 * include/wchar.h (____wcstof_l_internal): New prototype.
28873 (____wcstod_l_internal): Likewise.
28874 (____wcstold_l_internal): Likewise.
28875 (____wcstol_l_internal): Likewise.
28876 (____wcstoul_l_internal): Likewise.
28877 (____wcstoll_l_internal): Likewise.
28878 (____wcstoull_l_internal): Likewise.
28879 (____wcstof128_l_internal): Likewise.
28880 * sysdeps/ieee754/float128/wcstof128.c
28881 (____wcstof128_l_internal): Removed.
28882 * sysdeps/ieee754/float128/wcstof128_l.c
28883 (____wcstof128_l_internal): Likewise.
28884 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28885 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28886 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28887 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28888 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28889 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28890 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28891 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28892 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28893 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28894
28895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28896
28897 [BZ #18822]
28898 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28899 instead of <sys/statvfs.h>.
28900 (__internal_statvfs): Removed.
28901 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28902 instead of <sys/statvfs.h>.
28903 (__internal_statvfs64): Removed.
28904 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28905 "internal_statvfs.h" instead of <sys/statvfs.h>.
28906 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28907 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28908 instead of <sys/statvfs.h>.
28909 (__internal_statvfs): Removed.
28910 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28911 instead of <sys/statvfs.h>.
28912 (__internal_statvfs64): Removed.
28913
28914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28915
28916 [BZ #18822]
28917 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28918 (__gconv_close): Likewise.
28919 (__gconv): Likewise.
28920 (__gconv_find_transform): Likewise.
28921 (__gconv_lookup_cache): Likewise.
28922 (__gconv_compare_alias_cache): Likewise.
28923 (__gconv_load_cache): Likewise.
28924 (__gconv_get_path): Likewise.
28925 (__gconv_close_transform): Likewise.
28926 (__gconv_release_cache): Likewise.
28927 (__gconv_find_shlib): Likewise.
28928 (__gconv_release_shlib): Likewise.
28929 (__gconv_get_builtin_trans): Likewise.
28930 (__gconv_compare_alias): Likewise.
28931 * include/dlfcn.h (_dlerror_run): Likewise.
28932 * include/stdio.h (__fortify_fail_abort): Likewise.
28933 * include/time.h (__tz_compute): Likewise.
28934 (__strptime_internal): Likewise.
28935 * intl/gettextP.h (_nl_find_domain): Likewise.
28936 (_nl_load_domain): Likewise.
28937 (_nl_find_msg): Likewise.
28938 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28939 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28940 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28941 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28942 (__gai_find_request): Likewise.
28943 (__gai_remove_request): Likewise.
28944 (__gai_notify): Likewise.
28945 (__gai_notify_only): Likewise.
28946 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28947 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28948 (_dl_non_dynamic_init): Likewise.
28949 (_dl_aux_init): Likewise.
28950 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28951 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28952 Likewise.
28953 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28954 (__wcsmbs_clone_conv): Likewise.
28955 (__wcsmbs_named_conv): Likewise.
28956
28957 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28958
28959 [BZ #18822]
28960 * include/stdlib.h (__random): Add attribute_hidden.
28961 (__random_r): Likewise.
28962 (__srandom_r): Likewise.
28963 (__initstate_r): Likewise.
28964 (__setstate_r): Likewise.
28965 (__erand48_r): Likewise.
28966 (__nrand48_r): Likewise.
28967 (__jrand48_r): Likewise.
28968 (__srand48_r): Likewise.
28969 (__seed48_r): Likewise.
28970 (__lcong48_r): Likewise.
28971 (__drand48_iterate): Likewise.
28972 (__setenv): Likewise.
28973 (__unsetenv): Likewise.
28974 (__clearenv): Likewise.
28975 (__ptsname_r): Likewise.
28976 (__posix_openpt): Likewise.
28977 (__add_to_environ): Likewise.
28978 (__realpath): Add libc_hidden_proto.
28979 (__ecvt_r): Likewise.
28980 (__fcvt_r): Likewise.
28981 (__qecvt_r): Likewise.
28982 (__qfcvt_r): Likewise.
28983 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28984 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28985
28986 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28987
28988 [BZ #18822]
28989 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28990 * include/time.h (__mktime_internal): Likewise.
28991 * libio/iolibio.h (__fopen_internal): Likewise.
28992
28993 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28994
28995 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28996 pointer in frame.
28997 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28998 Correct offset used to restore PIC register.
28999
29000 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29001
29002 [BZ libc/22165]
29003 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29004 code to load address of __getcontext_ret when generating PIC code.
29005
29006 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29007
29008 * elf/Makefile (tests-static-internal): Add
29009 tst-tls1-static-non-pie.
29010 (LDFLAGS-tst-tls1-static-non-pie): New.
29011 * elf/tst-tls1-static-non-pie.c: New file.
29012
29013 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29014
29015 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29016 (asinh): Define using libm_alias_double.
29017 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29018 (cbrt): Define using libm_alias_double.
29019 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29020 <libm-alias-double.h>.
29021 (copysign): Define using libm_alias_double.
29022 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29023 (erf): Define using libm_alias_double.
29024 (erfc): Likewise.
29025 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29026 (expm1): Define using libm_alias_double.
29027 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29028 (fabs): Define using libm_alias_double.
29029 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29030 libm_alias_double.
29031 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29032 <libm-alias-double.h>.
29033 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29034 libm_alias_double.
29035 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29036 <libm-alias-double.h>.
29037 (getpayload): Define using libm_alias_double.
29038 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29039 <libm-alias-double.h>.
29040 (llrint): Define using libm_alias_double.
29041 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29042 (lrint): Define using libm_alias_double.
29043 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29044 <libm-alias-double.h>.
29045 (nextup): Define using libm_alias_double.
29046 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29047 <libm-alias-double.h>.
29048 (roundeven): Define using libm_alias_double.
29049 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29050 libm_alias_double.
29051 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29052 <libm-alias-double.h>.
29053 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29054 using libm_alias_double.
29055 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29056 (cos): Define using libm_alias_double.
29057 (sin): Likewise.
29058 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29059 <libm-alias-double.h>.
29060 (sincos): Define using libm_alias_double.
29061 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29062 (tanh): Define using libm_alias_double.
29063 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29064 <libm-alias-double.h>.
29065 (totalorder): Define using libm_alias_double.
29066 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29067 <libm-alias-double.h>.
29068 (totalordermag): Define using libm_alias_double.
29069 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29070 libm_alias_double.
29071 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29072 libm_alias_double.
29073 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29074 <libm-alias-double.h>.
29075 (getpayload): Define using libm_alias_double.
29076 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29077 <libm-alias-double.h>.
29078 (roundeven): Define using libm_alias_double.
29079 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29080 <libm-alias-double.h>.
29081 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29082 <libm-alias-double.h>.
29083 (totalorder): Define using libm_alias_double.
29084 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29085 <libm-alias-double.h>.
29086 (totalordermag): Define using libm_alias_double.
29087 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29088 libc compat symbol here.
29089 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29090 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29091 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29092 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29093 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29094 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29095 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29096 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29097 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29098 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29099
29100 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29101
29102 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29103 _dl_relocate_static_pie instead of _dl_start to compute load
29104 address in static PIE. Return 0 if _DYNAMIC is undefined for
29105 static executable.
29106
29107 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29108
29109 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29110 _DYNAMIC is undefined for static executable.
29111
29112 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29113
29114 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29115
29116 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29117
29118 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29119
29120 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29121
29122 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29123 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29124 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29125 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29126 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29127 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29128 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29129 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29130 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29131 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29132 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29133 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29134 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29135 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29136 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29137 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29138 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29139
29140 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29141
29142 * math/bits/cmathcalls.h (cimag): Remove inline.
29143 (creal): Remove inline.
29144 (conj): Remove inline.
29145
29146 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29147
29148 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29149 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29150 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29151 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29152 (issignalingf_inline): Likewise.
29153 (POWF_LOG2_TABLE_BITS): Likewise.
29154 (POWF_LOG2_POLY_ORDER): Likewise.
29155 (POWF_SCALE_BITS): Likewise.
29156 (POWF_SCALE): Likewise.
29157 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29158 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29159 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29160
29161 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29162
29163 * math/Makefile (type-float-routines): Add e_log2f_data.
29164 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29165 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29166 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29167 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29168 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29169 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29170 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29171
29172 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29173
29174 * math/Makefile (type-float-routines): Add e_logf_data.
29175 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29176 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29177 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29178 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29179 * sysdeps/i386/fpu/e_logf_data.c: New file.
29180 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29181 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29182
29183 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29184
29185 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29186 undefined _DYNAMIC in PIE libc.a.
29187 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29188 Likewse.
29189
29190 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29191
29192 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29193 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29194 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29195 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29196 (__signbit): Remove.
29197 (__signbitl): Remove.
29198 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29199 (__signbit): Remove.
29200 (__signbitl): Remove.
29201 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29202 (__signbit): Remove.
29203 (__signbitl): Remove.
29204 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29205 (__signbit): Remove.
29206 (__signbitl): Remove.
29207 * sysdeps/tile/bits/mathinline.h: Delete file.
29208 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29209 (__signbit): Remove.
29210 (__signbitl): Remove.
29211
29212 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29213
29214 * math/math.h: Improve handling of C99 isgreater macros.
29215 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29216 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29217 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29218 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29219 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29220
29221 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29222
29223 * sysdeps/aarch64/libm-test-ulps: Update.
29224
29225 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29226
29227 [BZ #22225]
29228 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29229 math_opt_barrier on argument when doing arithmetic on it.
29230 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29231 Likewise. Use math_force_eval not math_opt_barrier after
29232 arithmetic.
29233 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29234 math_opt_barrier on argument when doing arithmetic on it.
29235 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29236 Likewise.
29237
29238 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29239
29240 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29241 libc_hidden_def.
29242 (__freeifaddrs): Likewise.
29243
29244 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29245
29246 * include/dirent.h (__dirfd): New declaration.
29247 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29248 alias.
29249 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29250 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29251 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29252 * include/unistd.h (__revoke): New declaration.
29253 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29254 alias.
29255 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29256 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29257 revoke.
29258 * include/dirent.h (__seekdir): New declaration.
29259 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29260 redefine as weak alias.
29261 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29262 of seekdir.
29263 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29264 and use libc_hidden_def on them.
29265 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29266 them.
29267 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29268 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29269 instead of getifaddrs and freeifaddrs.
29270
29271 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29272
29273 [BZ #18822]
29274 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29275 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29276 (__dso_handle): Remove declaration.
29277 * dlfcn/tstatexit.c (__dso_handle): Removed.
29278 (main): Don't check __dso_handle.
29279 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29280 (main): Don't check __dso_handle.
29281 * include/dso_handle.h: New file.
29282 * malloc/mtrace.c: Include <dso_handle.h>.
29283 (mtrace): Pass __dso_handle directly.
29284 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29285 (__dso_handle): Remove declaration.
29286 (__pthread_atfork): Pass __dso_handle directly.
29287 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29288 (__dso_handle): Removed.
29289 * posix/wordexp-test.c: Include <dso_handle.h>.
29290 (__dso_handle): Remove declaration.
29291 (__app_register_atfork): Pass __dso_handle directly.
29292 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29293 (__dso_handle): Remove declaration.
29294 (at_quick_exit): Pass __dso_handle directly.
29295 * stdlib/atexit.c: Include <dso_handle.h>.
29296 (__dso_handle): Remove declaration.
29297 (atexit): Pass __dso_handle directly.
29298 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29299 (__dso_handle): Removed.
29300
29301 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29302
29303 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29304 using VDSO.
29305
29306 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29307
29308 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29309 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29310 values to correct default value for given type.
29311
29312 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29313
29314 [BZ #22101]
29315 * elf/Makefile (tests): Add tst-debug1.
29316 ($(objpfx)tst-debug1): New.
29317 ($(objpfx)tst-debug1.out): Likewise.
29318 ($(objpfx)tst-debug1mod1.so): Likewise.
29319 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29320 with p_filesz == 0.
29321 * elf/tst-debug1.c: New file.
29322
29323 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29324
29325 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29326 Define using __ifunc.
29327
29328 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29329
29330 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29331 exp2f() values.
29332
29333 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29334
29335 [BZ #22156]
29336 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29337
29338 2017-09-26 Florian Weimer <fweimer@redhat.com>
29339
29340 * resolv/Makefile (tests-internal): Fix typo in comment.
29341
29342 2017-09-26 Florian Weimer <fweimer@redhat.com>
29343
29344 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29345
29346 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29347
29348 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29349 Use an union instead of a max_align_t array for __space,
29350 so that __space is the same size on all platforms.
29351 * malloc/scratch_buffer_grow_preserve.c
29352 (__libc_scratch_buffer_grow_preserve): Likewise.
29353
29354 [BZ #22183]
29355 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29356 version to 2.
29357 * posix/Makefile (routines): Add glob-lstat-compat and
29358 glob64-lstat-compat.
29359 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29360 * posix/glob-lstat-compat.c: New file.
29361 * posix/glob64-lstat-compat.c: Likewise.
29362 * posix/tst-glob_lstat_compat.c: Likewise.
29363 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29364 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29365 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29366 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29367 Likewise.
29368 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29369 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29370 * posix/glob.c (glob_lstat): New function.
29371 (glob): Rename to __glob and add versioned symbol to 2.27.
29372 (glob_in_dir): Use glob_lstat.
29373 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29374 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29375 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29376 2.27.
29377 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29378 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29379 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29380 gl_lstat on glob call.
29381 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29382 and glob64 symbols.
29383 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29384 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29385 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29386 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29387 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29388 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29389 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29390 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29391 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29392 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29393 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29394 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29396 Likewise.
29397 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29399 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29400 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29401 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29402 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29403 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29404 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29405 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29406 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29407 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29408 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29409
29410 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29411
29412 * configure.ac (AS): Require binutils 2.25 or later.
29413 * configure: Regenerated.
29414
29415 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29416
29417 [BZ #22207]
29418 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29419 VM size.
29420
29421 2017-09-25 DJ Delorie <dj@redhat.com>
29422
29423 [BZ #22161]
29424 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29425 resetting timeout.
29426
29427 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29428
29429 * sysdeps/ieee754/dbl-64/sincos32.h
29430 [SINCCOS32_H]: Remove define.
29431 [SINCOS32_H]: Define.
29432
29433 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29434
29435 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29436 (exp2f): Likewise.
29437 * math/w_exp2f.c: New file.
29438 * math/w_expf.c: New file.
29439 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29440 * math/w_expf_compat.c (__expf_compat): Likewise.
29441 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29442 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29443 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29444 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29445 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29446 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29447 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29448 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29449 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29450 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29451 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29452 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29453 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29454 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29456 Likewise.
29457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29458 Likewise.
29459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29460 Likewise.
29461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29462 Likewise.
29463 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29464 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29465 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29466 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29467 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29468 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29469 Likewise.
29470 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29471 Likewise.
29472 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29473 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29474 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29475
29476 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29477
29478 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29479 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29480 (roundtoint, converttoint): Likewise.
29481 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29482 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29483 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29484 * sysdeps/ieee754/flt-32/math_config.h: New file.
29485 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29486 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29487 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29488 * sysdeps/i386/fpu/math_errf.c: New file.
29489 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29490 * sysdeps/ia64/fpu/math_errf.c: New file.
29491 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29492 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29493
29494 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29495
29496 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29497 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29498 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29499 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29500 to make sure that these symbols are defined.
29501 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29502 of <limits.h>
29503 (__need_NULL): Do not define.
29504 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29505 alignment.
29506 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29507 CMGROUP_MAX, cmsgcred): Do not define.
29508 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29509 NULL.
29510 * bits/socket.h: Likewise.
29511 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29512 __gettimeofday instead of gettimeofday.
29513 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29514 instead of settimeofday.
29515
29516 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29517
29518 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29519 (asinhf): Define using libm_alias_float.
29520 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29521 (atanf): Define using libm_alias_float.
29522 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29523 (cbrtf): Define using libm_alias_float.
29524 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29525 (ceilf): Define using libm_alias_float.
29526 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29527 <libm-alias-float.h>.
29528 (copysignf): Define using libm_alias_float.
29529 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29530 (cosf): Define using libm_alias_float.
29531 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29532 (erff): Define using libm_alias_float.
29533 (erfcf): Likewise.
29534 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29535 (expm1f): Define using libm_alias_float.
29536 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29537 (fabsf): Define using libm_alias_float.
29538 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29539 (floorf): Define using libm_alias_float.
29540 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29541 (frexpf): Define using libm_alias_float.
29542 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29543 libm_alias_float.
29544 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29545 <libm-alias-float.h>.
29546 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29547 libm_alias_float.
29548 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29549 <libm-alias-float.h>.
29550 (getpayloadf): Define using libm_alias_float.
29551 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29552 <libm-alias-float.h>.
29553 (llrintf): Define using libm_alias_float.
29554 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29555 <libm-alias-float.h>.
29556 (llroundf): Define using libm_alias_float.
29557 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29558 (logbf): Define using libm_alias_float.
29559 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29560 (lrintf): Define using libm_alias_float.
29561 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29562 (lroundf): Define using libm_alias_float.
29563 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29564 (modff): Define using libm_alias_float.
29565 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29566 <libm-alias-float.h>.
29567 (nearbyintf): Define using libm_alias_float.
29568 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29569 <libm-alias-float.h>.
29570 (nextafterf): Define using libm_alias_float.
29571 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29572 <libm-alias-float.h>.
29573 (nextupf): Define using libm_alias_float.
29574 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29575 <libm-alias-float.h>.
29576 (remquof): Define using libm_alias_float.
29577 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29578 (rintf): Define using libm_alias_float.
29579 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29580 <libm-alias-float.h>.
29581 (roundevenf): Define using libm_alias_float.
29582 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29583 (roundf): Define using libm_alias_float.
29584 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29585 using libm_alias_float.
29586 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29587 <libm-alias-float.h>.
29588 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29589 Define using libm_alias_float.
29590 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29591 <libm-alias-float.h>.
29592 (sincosf): Define using libm_alias_float.
29593 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29594 (sinf): Define using libm_alias_float.
29595 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29596 (tanf): Define using libm_alias_float.
29597 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29598 (tanhf): Define using libm_alias_float.
29599 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29600 <libm-alias-float.h>.
29601 (totalorderf): Define using libm_alias_float.
29602 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29603 <libm-alias-float.h>.
29604 (totalordermagf): Define using libm_alias_float.
29605 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29606 (truncf): Define using libm_alias_float.
29607 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29608 libm_alias_float.
29609 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29610 libm_alias_float.
29611
29612 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29613
29614 [BZ #22146]
29615 math/math.h: Let fpclassify use the builtin in C++ mode, even
29616 when optimazing for size.
29617
29618 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29619
29620 * csu/Makefile (generated): Do not add version-info.h.
29621 (before-compile): Likewise.
29622 (all-Banner-files): Remove variable.
29623 ($(objpfx)version-info.h): Remove rule.
29624 * csu/version.c (banner): Do not include "version-info.h".
29625 * libidn/Banner: Remove.
29626 * manual/contrib.texi (Simon Josefsson): New entry.
29627
29628 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29629
29630 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29631 Remove conditionals on LDBL_MANT_DIG.
29632 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29633 (__ieee754_lgammal_r): Likewise.
29634
29635 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29636
29637 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29638 _Float128 and L().
29639 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29640 _Float128 and L(). Replace _Float128 with long double and L(x)
29641 with xL, throughout the file.
29642 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29643 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29644 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29645 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29646
29647 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29648
29649 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29650 sysdeps/ieee754/ldbl-128ibm.
29651 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29652 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29653 of including it. Keep _Float128 and L() intact. These will be
29654 reviewed by a separate patch.
29655 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29656 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29657 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29658 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29659
29660 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29661
29662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29663 (__finitef128): Define to __redirect___finitef128.
29664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29665 (__isinff128): Define to __redirect___isinff128.
29666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29667 (__isnanf128): Define to __redirect___isnanf128.
29668
29669 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29670
29671 * sysdeps/powerpc/powerpc64le/Makefile
29672 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29673 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29674
29675 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29676 Carlos O'Donell <carlos@redhat.com>
29677
29678 [BZ #22180]
29679 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29680 * stdlib/test-dlclose-exit-race.c: New file.
29681 * stdlib/test-dlclose-exit-race-helper.c: New file.
29682 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29683
29684 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29685
29686 * crypt/Banner: Remove file.
29687 * nptl/Banner: Likewise.
29688 * resolv/Banner: Likewise.
29689 * soft-fp/Banner: Likewise.
29690 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29691 ($(objpfx)version.d): Remove dependency on banner.h.
29692 ($(objpfx)version.os): Likewise.
29693 * nptl/version.c (banner): Do not include banner.h.
29694 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29695 Jelinek and BIND code.
29696
29697 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29698 Carlos O'Donell <carlos@redhat.com>
29699
29700 * support/xdlfcn.h: New file.
29701 * support/xdlfcn.c: New file.
29702 * support/Makefile (libsupport-routines): Add xdlfcn.
29703 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29704
29705 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29706
29707 [BZ #20142]
29708 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29709 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29710 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29711 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29712 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29713 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29714 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29715 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29716
29717 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29718 Ricky Zhou <rickyz@google.com>
29719 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29720
29721 [BZ #14333]
29722 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29723 Remove atomics.
29724 (__new_exitfn): Fail registration when we finished at_exit processing.
29725 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29726 * stdlib/on_exit.c (__on_exit): Likewise.
29727 * stdlib/exit.c (__exit_funcs_done): New variable.
29728 (__run_exit_handlers): Use __exit_funcs_lock.
29729 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29730 declarations.
29731 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29732 (test-cxa_atexit-race, test-on_exit-race): New tests.
29733 * stdlib/test-atexit-race-common.c: New file.
29734 * stdlib/test-atexit-race.c: New file.
29735 * stdlib/test-at_quick_exit-race.c: New file.
29736 * stdlib/test-cxa_atexit-race.c: New file.
29737 * stdlib/test-on_exit-race.c: New file.
29738
29739 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29740
29741 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29742 * benchtests/exp2f-inputs: Copy of expf-inputs.
29743 * benchtests/log2f-inputs: Copy of logf-inputs.
29744
29745 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29746
29747 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29748 Explicitly take address of first element of array arguments in
29749 call to INLINE_SYSCALL.
29750
29751 2017-09-19 Andreas Schwab <schwab@suse.de>
29752
29753 [BZ #22134]
29754 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29755 execveat first.
29756 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29757 unimplemented.
29758 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29759 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29760 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29761 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29762 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29763 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29764 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29765 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29766 * posix/Makefile (tests): Add tst-fexecve.
29767 * posix/tst-fexecve.c: New file.
29768
29769 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29770
29771 * benchtests/Makefile: Add logf benchmark.
29772 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29773
29774 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29775
29776 * benchtests/Makefile: Add expf benchmark.
29777 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29778
29779 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29780
29781 * csu/Makefile: Add -funwind-tables to libc-start.c.
29782 * debug/Makefile: Add -funwind-tables to backtrace.c.
29783 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29784 * sysdeps/arm/Makefile: Likewise.
29785 * sysdeps/i386/Makefile: Likewise.
29786 * sysdeps/m68k/Makefile: Likewise.
29787 * sysdeps/mips/Makefile: Likewise.
29788 * sysdeps/nios2/Makefile: Likewise.
29789 * sysdeps/sh/Makefile: Likewise.
29790 * sysdeps/sparc/Makefile: Likewise.
29791
29792 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29793
29794 * benchtests/Makefile (bench-math): Add trunc and truncf.
29795 (CFLAGS-bench-trunc.c): New variable.
29796 (CFLAGS-bench-truncf.c): Likewise.
29797 * benchtests/trunc-inputs: New file.
29798 * benchtests/truncf-inputs: Likewise.
29799
29800 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29801
29802 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29803
29804 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29805
29806 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29807 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29808 redefine.
29809 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29810 (exp10l): Define as weak alias.
29811 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29812 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29813 and redefine.
29814 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29815 (remainderl): Define as weak alias.
29816
29817 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29818 (fmal): Define using libm_alias_ldouble.
29819 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29820 (acoshl): Define using libm_alias_ldouble.
29821 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29822 (acosl): Define using libm_alias_ldouble.
29823 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29824 (asinl): Define using libm_alias_ldouble.
29825 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29826 (atan2l): Define using libm_alias_ldouble.
29827 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29828 (atanhl): Define using libm_alias_ldouble.
29829 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29830 (coshl): Define using libm_alias_ldouble.
29831 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29832 (exp10l): Define using libm_alias_ldouble.
29833 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29834 (exp2l): Define using libm_alias_ldouble.
29835 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29836 (expl): Define using libm_alias_ldouble.
29837 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29838 (fmodl): Define using libm_alias_ldouble.
29839 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29840 (hypotl): Define using libm_alias_ldouble.
29841 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29842 (j0l): Define using libm_alias_ldouble.
29843 (y0l): Likewise.
29844 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29845 (j1l): Define using libm_alias_ldouble.
29846 (y1l): Likewise.
29847 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29848 (jnl): Define using libm_alias_ldouble.
29849 (ynl): Likewise.
29850 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29851 (log10l): Define using libm_alias_ldouble.
29852 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29853 (log2l): Define using libm_alias_ldouble.
29854 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29855 (logl): Define using libm_alias_ldouble.
29856 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29857 (powl): Define using libm_alias_ldouble.
29858 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29859 (remainderl): Define using libm_alias_ldouble.
29860 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29861 (sinhl): Define using libm_alias_ldouble.
29862 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29863 (sqrtl): Define using libm_alias_ldouble.
29864 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29865 (tgammal): Define using libm_alias_ldouble.
29866 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29867 (exp10l): Do not use long_double_symbol here.
29868 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29869 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29870 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29871 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29872 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29873 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29874 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29875 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29876 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29877 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29878 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29879 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29880 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29881 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29882 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29883 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29884 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29885 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29886 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29887 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29888 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29889 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29890
29891 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29892
29893 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29894 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29895
29896 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29897
29898 * io/read.c (read): Add libc_hidden_weak.
29899 * sysdeps/mach/hurd/read.c (read): Likewise.
29900 * io/write.c (write): Likewise.
29901 * sysdeps/mach/hurd/write.c (write): Likewise.
29902 * io/pread64.c (__pread64): Likewise.
29903 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29904 * posix/pread64.c (__pread64): Add libc_hidden_def.
29905
29906 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29907
29908 * benchtests/scripts/compare_strings.py: New option -g.
29909 (draw_graph): Print a message that a graph is being generated.
29910 (process_results): Generate graph only if -g is passed.
29911 (main): Process option -g.
29912
29913 * benchtests/scripts/compare_strings.py (process_results):
29914 Better spacing for output.
29915
29916 * benchtests/scripts/compare_strings.py: Use argparse.
29917 * benchtests/README: Document existence of compare_strings.py.
29918
29919 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29920
29921 * math/s_fma.c: Include <libm-alias-double.h>.
29922 (fma): Define using libm_alias_double.
29923 * math/s_nextafter.c: Include <libm-alias-double.h>.
29924 (nextafter): Define using libm_alias_double.
29925 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29926 (acos): Define using libm_alias_double.
29927 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29928 (aocsh): Define using libm_alias_double.
29929 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29930 (asin): Define using libm_alias_double.
29931 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29932 (atan2): Define using libm_alias_double.
29933 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29934 (atanh): Define using libm_alias_double.
29935 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29936 (cosh): Define using libm_alias_double.
29937 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29938 (exp10): Define using libm_alias_double.
29939 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29940 (exp2): Define using libm_alias_double.
29941 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29942 (exp): Define using libm_alias_double.
29943 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29944 (fmod): Define using libm_alias_double.
29945 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29946 (hypot): Define using libm_alias_double.
29947 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29948 (j0): Define using libm_alias_double.
29949 (y0): Likewise.
29950 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29951 (j1): Define using libm_alias_double.
29952 (y1): Likewise.
29953 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29954 (jn): Define using libm_alias_double.
29955 (yn): Likewise.
29956 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29957 (log10): Define using libm_alias_double.
29958 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29959 (log2): Define using libm_alias_double.
29960 * math/w_log_compat.c: Include <libm-alias-double.h>.
29961 (log): Define using libm_alias_double.
29962 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29963 (pow): Define using libm_alias_double.
29964 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29965 (remainder): Define using libm_alias_double.
29966 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29967 (sinh): Define using libm_alias_double.
29968 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29969 (sqrt): Define using libm_alias_double.
29970 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29971 (tgamma): Define using libm_alias_double.
29972 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29973 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29974 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29975 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29976 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29977 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29978 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29979 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29980 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29981 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29982 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29983 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29984 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29985 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29986 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29987 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29988 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29989 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29990 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29991 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29992 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29993 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29994 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29995 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29996 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29997
29998 * math/e_acoshl.c: Remove.
29999 * math/e_acosl.c: Likewise.
30000 * math/e_asinl.c: Likewise.
30001 * math/e_atan2l.c: Likewise.
30002 * math/e_atanhl.c: Likewise.
30003 * math/e_coshl.c: Likewise.
30004 * math/e_expl.c: Likewise.
30005 * math/e_fmodl.c: Likewise.
30006 * math/e_gammal_r.c: Likewise.
30007 * math/e_hypotl.c: Likewise.
30008 * math/e_j0l.c: Likewise.
30009 * math/e_j1l.c: Likewise.
30010 * math/e_jnl.c: Likewise.
30011 * math/e_lgammal_r.c: Likewise.
30012 * math/e_log10l.c: Likewise.
30013 * math/e_log2l.c: Likewise.
30014 * math/e_logl.c: Likewise.
30015 * math/e_powl.c: Likewise.
30016 * math/e_rem_pio2l.c: Likewise.
30017 * math/e_sinhl.c: Likewise.
30018 * math/e_sqrtf128.c: Likewise.
30019 * math/e_sqrtl.c: Likewise.
30020 * math/k_cosl.c: Likewise.
30021 * math/k_sinl.c: Likewise.
30022 * math/k_tanl.c: Likewise.
30023 * math/s_asinhl.c: Likewise.
30024 * math/s_atanl.c: Likewise.
30025 * math/s_cbrtl.c: Likewise.
30026 * math/s_erfl.c: Likewise.
30027 * math/s_expm1l.c: Likewise.
30028 * math/s_log1pl.c: Likewise.
30029 * math/s_tanhl.c: Likewise.
30030
30031 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30032
30033 [BZ #21745]
30034 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30035 [$(subdir) = math] (sysdep_calls): New variable. Has the
30036 previous contents of sysdep_routines, but re-sorted..
30037 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30038 sysdep_calls.
30039 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30040 defined in sysdep_calls and replace by the respective m_* names.
30041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30042 (compat_symbol): Undefine to avoid duplicated compat symbols in
30043 libc.
30044
30045 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30046
30047 * math/s_fmaf.c: Include <libm-alias-float.h>.
30048 (fmaf): Define using libm_alias_float.
30049 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30050 (acosf): Define using libm_alias_float.
30051 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30052 (acoshf): Define using libm_alias_float.
30053 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30054 (asinf): Define using libm_alias_float.
30055 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30056 (atan2f): Define using libm_alias_float.
30057 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30058 (atanhf): Define using libm_alias_float.
30059 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30060 (coshf): Define using libm_alias_float.
30061 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30062 (exp10f): Define using libm_alias_float.
30063 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30064 (fmodf): Define using libm_alias_float.
30065 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30066 (hypotf): Define using libm_alias_float.
30067 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30068 (j0f): Define using libm_alias_float.
30069 (y0f): Likewise.
30070 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30071 (j1f): Define using libm_alias_float.
30072 (y1f): Likewise.
30073 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30074 (jnf): Define using libm_alias_float.
30075 (ynf): Likewise.
30076 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30077 (log10f): Define using libm_alias_float.
30078 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30079 (log2f): Define using libm_alias_float.
30080 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30081 (logf): Define using libm_alias_float.
30082 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30083 (powf): Define using libm_alias_float.
30084 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30085 (remainderf): Define using libm_alias_float.
30086 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30087 (sinhf): Define using libm_alias_float.
30088 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30089 (sqrtf): Define using libm_alias_float.
30090 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30091 (tgammaf): Define using libm_alias_float.
30092
30093 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30094
30095 * include/math.h (roundeven): Change hidden_proto call to
30096 __roundeven.
30097 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30098 alias.
30099 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30100 (y0): Rename to __y0 and define as weak alias.
30101 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30102 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30103 alias.
30104 (y0f): Rename to __y0f and define as weak alias.
30105 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30106 alias.
30107 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30108 (y1): Rename to __y1 and define as weak alias.
30109 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30110 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30111 alias.
30112 (y1f): Rename to __y1f and define as weak alias.
30113 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30114 alias.
30115 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30116 (yn): Rename to __yn and define as weak alias.
30117 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30118 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30119 alias.
30120 (ynf): Rename to __ynf and define as weak alias.
30121 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30122 (fromfp): Define as weak alias.
30123 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30124 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30125 (fromfpx): Define as weak alias.
30126 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30127 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30128 __getpayload and define as weak alias.
30129 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30130 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30131 __roundeven and define as weak alias.
30132 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30133 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30134 __setpayload.
30135 (setpayload): Define as weak alias.
30136 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30137 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30138 __setpayloadsig.
30139 (setpayloadsig): Define as weak alias.
30140 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30141 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30142 __totalorder and define as weak alias.
30143 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30144 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30145 to __totalordermag and define as weak alias.
30146 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30147 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30148 (ufromfp): Define as weak alias.
30149 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30150 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30151 __ufromfpx.
30152 (ufromfpx): Define as weak alias.
30153 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30154 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30155 Rename to __getpayload and define as weak alias.
30156 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30157 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30158 Rename to __roundeven and define as weak alias.
30159 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30160 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30161 Rename to __totalorder and define as weak alias.
30162 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30163 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30164 (totalordermag): Rename to __totalordermag and define as weak
30165 alias.
30166 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30167 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30168 macro.
30169 (__roundevenl): Likewise.
30170 (__totalorderl): Likewise.
30171 (__totalordermagl): Likewise
30172 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30173 __fromfpf128.
30174 (fromfpf128): Define as weak alias.
30175 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30176 __fromfpxf128.
30177 (fromfpxf128): Define as weak alias.
30178 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30179 __setpayloadf128.
30180 (setpayloadf128): Define as weak alias.
30181 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30182 __setpayloadsigf128.
30183 (setpayloadsigf128): Define as weak alias.
30184 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30185 __ufromfpf128.
30186 (ufromfpf128): Define as weak alias.
30187 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30188 __ufromfpxf128.
30189 (ufromfpxf128): Define as weak alias.
30190 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30191 (fromfpf): Define as weak alias.
30192 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30193 __fromfpxf.
30194 (fromfpxf): Define as weak alias.
30195 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30196 __getpayloadf and define as weak alias.
30197 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30198 __roundevenf and define as weak alias.
30199 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30200 __setpayloadf.
30201 (setpayloadf): Define as weak alias.
30202 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30203 __setpayloadsigf.
30204 (setpayloadsigf): Define as weak alias.
30205 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30206 __totalorderf and define as weak alias.
30207 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30208 Rename to __totalordermagf and define as weak alias.
30209 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30210 __ufromfpf.
30211 (ufromfpf): Define as weak alias.
30212 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30213 __ufromfpxf.
30214 (ufromfpxf): Define as weak alias.
30215 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30216 __fromfpl.
30217 (fromfpl): Define as weak alias.
30218 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30219 __fromfpxl.
30220 (fromfpxl): Define as weak alias.
30221 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30222 to __getpayloadl and define as weak alias.
30223 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30224 __roundevenl and define as weak alias.
30225 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30226 __setpayloadl.
30227 (setpayloadl): Define as weak alias.
30228 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30229 __setpayloadsigl.
30230 (setpayloadsigl): Define as weak alias.
30231 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30232 to __totalorderl and define as weak alias.
30233 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30234 Rename to __totalordermagl and define as weak alias.
30235 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30236 __ufromfpl.
30237 (ufromfpl): Define as weak alias.
30238 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30239 __ufromfpxl.
30240 (ufromfpxl): Define as weak alias.
30241 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30242 __fromfpl.
30243 (fromfpl): Define as weak alias.
30244 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30245 __fromfpxl.
30246 (fromfpxl): Define as weak alias.
30247 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30248 Rename to __getpayloadl and define as weak alias.
30249 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30250 to __roundevenl and define as weak alias. Call __roundeven
30251 instead of roundeven.
30252 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30253 __setpayloadl.
30254 (setpayloadl): Define as weak alias.
30255 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30256 __setpayloadsigl.
30257 (setpayloadsigl): Define as weak alias.
30258 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30259 Rename to __totalorderl and define as weak alias.
30260 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30261 Rename to __totalordermagl and define as weak alias.
30262 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30263 __ufromfpl.
30264 (ufromfpl): Define as weak alias.
30265 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30266 __ufromfpxl.
30267 (ufromfpxl): Define as weak alias.
30268 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30269 __fromfpl.
30270 (fromfpl): Define as weak alias.
30271 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30272 __fromfpxl.
30273 (fromfpxl): Define as weak alias.
30274 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30275 __getpayloadl and define as weak alias.
30276 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30277 __roundevenl and define as weak alias.
30278 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30279 __setpayloadl.
30280 (setpayloadl): Define as weak alias.
30281 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30282 __setpayloadsigl.
30283 (setpayloadsigl): Define as weak alias.
30284 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30285 __totalorderl and define as weak alias.
30286 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30287 Rename to __totalordermagl and define as weak alias.
30288 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30289 __ufromfpl.
30290 (ufromfpl): Define as weak alias.
30291 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30292 __ufromfpxl.
30293 (ufromfpxl): Define as weak alias.
30294
30295 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30296
30297 * benchtests/bench-string.h (realloc_bufs): New function.
30298 (test_init): Call it.
30299 * benchtests/bench-memset-large.c (do_test): Likewise.
30300 * benchtests/bench-memset.c (do_test): Likewise.
30301
30302 * benchtests/bench-memset-large.c: Print output in JSON
30303 format.
30304 * benchtests/bench-memset.c: Likewise.
30305
30306 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30307
30308 [BZ #21084]
30309 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30310 * iconvdata/Makefile: Add IBM858.
30311 * iconvdata/gconv-modules: Likewise.
30312 * iconvdata/tst-tables.sh: Likewise.
30313 * iconvdata/ibm858.c: New file.
30314 * localedata/charmaps/IBM858: Likewise.
30315
30316 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30317
30318 [BZ #22023]
30319 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30320 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30321
30322 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30323
30324 [BZ #22112]
30325 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30326 and add tel_int_fmt.
30327
30328 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30329
30330 * sysdeps/generic/libm-alias-float128.h: New file.
30331 * sysdeps/generic/math-type-macros-float128.h: Include
30332 <libm-alias-float128.h>.
30333 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30334
30335 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30336
30337 * sysdeps/generic/libm-alias-ldouble.h: New file.
30338 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30339 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30340 * sysdeps/generic/math-type-macros-ldouble.h: Include
30341 <libm-alias-ldouble.h>.
30342 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30343 libm_alias_ldouble.
30344
30345 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30346
30347 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30348 * math/w_exp_compat.c: ... here.
30349 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30350 * math/w_expf_compat.c: ... here.
30351 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30352 * math/w_expl_compat.c: ... here.
30353 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30354 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30355 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30356 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30357
30358 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30359
30360 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30361 redefine.
30362 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30363 macro.
30364 (ldexpl): Only define as compat symbol for libc, not libm.
30365 (scalbnl): Define as compat symbol for libc here.
30366 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30367 define for [IS_IN (libc)].
30368 (__ldexpl_2): Remove alias.
30369 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30370 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30371 name in long_double_symbol call.
30372 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30373 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30374 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30375 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30376 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30377 Remove macro.
30378 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30379 Define as compat symbol.
30380
30381 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30382
30383 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30384 * sysdeps/unix/sysv/linux/alpha/Makefile
30385 [$(subdir) = csu] (sysdep_routines): Remove rule.
30386
30387 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30388
30389 * sysdeps/generic/libm-alias-double.h: New file.
30390 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30391 * sysdeps/generic/math-type-macros-double.h: Include
30392 <libm-alias-double.h>.
30393 [declare_mgen_alias] (declare_mgen_alias): Define to use
30394 libm_alias_double.
30395 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30396 (M_LIBM_NEED_COMPAT): Remove macro.
30397 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30398 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30399 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30400 code.
30401 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30402 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30403 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30404 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30405 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30406 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30407 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30408 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30409 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30410 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30411 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30412 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30413 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30414 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30415 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30416 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30417 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30418 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30419 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30420 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30421 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30422 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30423 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30424 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30425 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30426 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30427 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30428 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30429 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30430 macro.
30431 (declare_mgen_alias): New macro.
30432 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30433 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30434 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30435 (M_LIBM_NEED_COMPAT): Remove macro.
30436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30437 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30438 <first-versions.h>.
30439 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30440 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30441
30442 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30443
30444 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30445 (declare_mgen_alias_2): Remove.
30446 * sysdeps/generic/math-type-macros-double.h
30447 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30448 Likewise.
30449 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30450 alias.
30451 (ldexp): Define with declare_mgen_alias.
30452 (scalbn): Likewise.
30453
30454 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30455
30456 * grp/initgroups.c: Include config.h.
30457 (DEFAULT_CONFIG): New macro.
30458 (internal_getgrouplist): Use DEFAULT_CONFIG.
30459 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30460 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30461 (DEFAULT_DEFCONFIG): New macro.
30462 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30463 * nss/grp-lookup.c: Include config.h
30464 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30465 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30466 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30467 * manual/nss.texi: Update default values section.
30468
30469 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30470
30471 [BZ #21967]
30472 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30473 New.
30474 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30475 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30476 Handle MathVec_Prefer_No_AVX512.
30477 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30478 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30479 is set.
30480
30481 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30482
30483 * posix/sched_primax.c (__sched_get_priority_max): Add
30484 libc_hidden_def.
30485 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30486 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30487 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30488 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30489 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30490 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30491 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30492 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30493 Add aliases.
30494
30495 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30496
30497 * sysdeps/generic/libm-alias-float.h: New file.
30498 * sysdeps/generic/math-type-macros-float.h: Include
30499 <libm-alias-float.h>.
30500 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30501
30502 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30503
30504 [BZ #22093]
30505 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30506 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30507 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30508 (HWCAP_IMPORTANT): Likewise.
30509 (HWCAP_X86_64): New enum.
30510 (HWCAP_X86_AVX512_1): Updated.
30511 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30512 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30513 (modules-names): Add x86_64/tst-x86_64mod-1.
30514 (LDFLAGS-tst-x86_64mod-1.so): New.
30515 ($(objpfx)tst-x86_64-1): Likewise.
30516 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30517 (tst-x86_64-1-clean): Likewise.
30518 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30519 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30520
30521 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30522
30523 * po/sv.po: Update translations.
30524 * po/fr.po: Likewise.
30525
30526 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30527
30528 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30529 seconds.
30530 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30531 seconds.
30532 * elf/rtld-Rules: Fix $(error) use.
30533
30534 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30535
30536 [BZ #14925]
30537 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30538 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30539 * localedata/locales/bn_BD: “Bengali” was still used in some
30540 comments. Change it to “Bangla”.
30541
30542 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30543
30544 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30545
30546 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30547
30548 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30549 thunderx2t99p1 to list of cpu names.
30550 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30551 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30552
30553 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30554
30555 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30556 Use strcmp instead of tunable_is_name.
30557
30558 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30559
30560 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30561 (F_GET_RW_HINT): New macro.
30562 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30563 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30564 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30565 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30566 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30567 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30568 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30569 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30570 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30571
30572 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30573 (F_ADD_SEALS): New macro.
30574 [__USE_GNU] (F_GET_SEALS): Likewise.
30575 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30576 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30577 [__USE_GNU] (F_SEAL_GROW): Likewise.
30578 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30579
30580 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30581
30582 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30583 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30584 * posix/glob_internal.h (__glob_pattern_type):
30585 * posix/glob.c (glob):
30586 * posix/glob_pattern_p.c (__glob_pattern_p):
30587 Use them.
30588
30589 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30590 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30591 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30592 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30593 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30595 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30596 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30597 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30598 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30599 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30600 * sysdeps/wordsize-64/glob.c: Likewise.
30601 * sysdeps/wordsize-64/glob64.c: Likewise.
30602 * sysdeps/wordsize-64/globfree.c: Likewise.
30603 * sysdeps/wordsize-64/globfree64.c: Likewise.
30604 * sysdeps/unix/sysv/linux/glob.c: New file.
30605 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30606 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30607 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30608 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30609 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30610 adds !GLOB_NO_OLD_VERSION as an extra condition.
30611 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30612 using relative path instead of absolute one.
30613 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30614 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30615 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30616 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30617 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30618 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30619
30620 [BZ #1062]
30621 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30622 (glob): Use the same scratch buffer for both getlogin_r and
30623 getpwnam_r. Don’t require preallocation of the login name. This
30624 simplifies storage allocation, and corrects the handling of
30625 long login names.
30626
30627 [BZ #1062]
30628 * posix/glob.c (glob): Port recent patches to platforms
30629 lacking getpwnam_r.
30630 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30631 returns an error number rather than setting errno.
30632
30633 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30634 instead of GCC extension.
30635 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30636 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30637 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30638
30639 [BZ #866]
30640 [BZ #1062]
30641 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30642 * posix/bug-glob1.c: Remove file.
30643 * posix/tst-glob_symlinks.c: New file.
30644 * posix/glob.c (__lstat64): New macro.
30645 (is_dir): New function.
30646 (glob, glob_in_dir): Match symlinks even if they are dangling.
30647 (link_stat, link_exists_p): Remove. All uses removed.
30648
30649 [BZ #1062]
30650 [BZ #19971]
30651 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30652 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30653 All uses removed.
30654
30655 [BZ #1062]
30656 CVE-2017-15671
30657 * posix/Makefile (routines): Add globfree, globfree64, and
30658 glob_pattern_p.
30659 * posix/flexmember.h: New file.
30660 * posix/glob_internal.h: Likewise.
30661 * posix/glob_pattern_p.c: Likewise.
30662 * posix/globfree.c: Likewise.
30663 * posix/globfree64.c: Likewise.
30664 * sysdeps/gnu/globfree64.c: Likewise.
30665 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30666 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30667 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30668 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30669 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30670 * sysdeps/wordsize-64/globfree.c: Likewise.
30671 * sysdeps/wordsize-64/globfree64.c: Likewise.
30672 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30673 [NDEBUG): Remove comments.
30674 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30675 (dirent_type): New type. Use uint_fast8_t not
30676 uint8_t, as C99 does not require uint8_t.
30677 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30678 (struct readdir_result): Use dirent_type. Do not define skip_entry
30679 unless it is needed; this saves a byte on platforms lacking d_ino.
30680 (readdir_result_type, readdir_result_skip_entry):
30681 New functions, replacing ...
30682 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30683 these functions, which were removed. This makes the callers
30684 easier to read. All callers changed.
30685 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30686 (size_add_wrapv, glob_use_alloca): New static functions.
30687 (glob, glob_in_dir): Check for size_t overflow in several places,
30688 and fix some size_t checks that were not quite right.
30689 Remove old code using SHELL since Bash no longer
30690 uses this.
30691 (glob, prefix_array): Separate MS code better.
30692 (glob_in_dir): Remove old Amiga and VMS code.
30693 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30694 separate files.
30695 (glob_in_dir): Do not rely on undefined behavior in accessing
30696 struct members beyond their bounds. Use a flexible array member
30697 instead
30698 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30699 0/1. Caller changed.
30700 (glob): Fix memory leaks.
30701 * posix/glob64 (globfree64): Move to separate file.
30702 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30703 (globfree64): Remove hidden alias.
30704 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30705 oldglob.
30706 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30707 separate file.
30708 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30709 define.
30710 Move compat code to separate file.
30711 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30712 separate file.
30713
30714 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30715
30716 * resolv/tst-resolv-qtypes.c (domain): Changed to
30717 "const char domain[] =".
30718
30719 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30720
30721 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30722 version to 3.1.6.
30723
30724 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30725 (TCP_MD5SIG_EXT): Likewise.
30726 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30727 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30728 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30729
30730 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30731
30732 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30733
30734 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30735
30736 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30737
30738 [BZ #22100]
30739 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30740
30741 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30742
30743 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30744 before assuming that the file is empty. Avoid testing buffer content
30745 when nread == 0.
30746
30747 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30748
30749 [BZ #18858]
30750 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30751 Remove define.
30752 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30753 Likewise.
30754 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30755 Likewise.
30756 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30757 Likewise.
30758 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30759 Likewise.
30760 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30761 Likewise.
30762 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30763 Likewise.
30764
30765 2017-09-06 Florian Weimer <fweimer@redhat.com>
30766
30767 * malloc/dynarray_emplace_enlarge.c
30768 (__libc_dynarray_emplace_enlarge): Add missing else.
30769
30770 2017-09-06 Florian Weimer <fweimer@redhat.com>
30771
30772 [BZ #22096]
30773 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30774 case of failure to obtain the global conf object.
30775
30776 2017-09-06 Florian Weimer <fweimer@redhat.com>
30777
30778 [BZ #22095]
30779 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30780 dynarray allocation failure.
30781
30782 2017-09-06 Florian Weimer <fweimer@redhat.com>
30783
30784 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30785 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30786 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30787 New functions.
30788 (response): Call them. Add 'p', '6' flag processing.
30789 (test_reverse): New function.
30790 (test_get2_any): Call it.
30791 (test_no_inet6): Add 'p' test.
30792 (test_inet6): Likewise.
30793
30794 2017-09-06 Florian Weimer <fweimer@redhat.com>
30795
30796 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30797 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30798 the QNAME.
30799 (test_gai): Adjust query names. Add additional tests.
30800 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30801 test_get2. Adjust query names. Add additional tests.
30802 (test_no_inet6): New function, extracted from threadfunc.
30803 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30804 Add additional tests.
30805
30806 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30807
30808 [BZ #22070]
30809 * localedata/unicode-gen/utf8_gen.py: Set the width for
30810 characters with Prepended_Concatenation_Mark property to 1
30811 * localedata/charmaps/UTF-8: Updated using the improved script.
30812
30813 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30814
30815 [BZ #21750]
30816 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30817 use the range notation for all ranges of neighbouring characters
30818 with the same width.
30819
30820 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30821
30822 * sysdeps/generic/math-type-macros-double.h: Include
30823 <math-svid-compat.h>.
30824 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30825 * sysdeps/generic/math-type-macros-float.h: Include
30826 <math-svid-compat.h>.
30827 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30828 * sysdeps/generic/math-type-macros-ldouble.h: Include
30829 <math-svid-compat.h>.
30830 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30831 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30832 condition.
30833 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30834 * math/w_acosf_compat.c: Likewise.
30835 * math/w_acosh_compat.c: Likewise.
30836 * math/w_acoshf_compat.c: Likewise.
30837 * math/w_acoshl_compat.c: Likewise.
30838 * math/w_acosl_compat.c: Likewise.
30839 * math/w_asin_compat.c: Likewise.
30840 * math/w_asinf_compat.c: Likewise.
30841 * math/w_asinl_compat.c: Likewise.
30842 * math/w_atan2_compat.c: Likewise.
30843 * math/w_atan2f_compat.c: Likewise.
30844 * math/w_atan2l_compat.c: Likewise.
30845 * math/w_atanh_compat.c: Likewise.
30846 * math/w_atanhf_compat.c: Likewise.
30847 * math/w_atanhl_compat.c: Likewise.
30848 * math/w_cosh_compat.c: Likewise.
30849 * math/w_coshf_compat.c: Likewise.
30850 * math/w_coshl_compat.c: Likewise.
30851 * math/w_exp10_compat.c: Likewise.
30852 * math/w_exp10f_compat.c: Likewise.
30853 * math/w_exp10l_compat.c: Likewise.
30854 * math/w_exp2_compat.c: Likewise.
30855 * math/w_exp2f_compat.c: Likewise.
30856 * math/w_exp2l_compat.c: Likewise.
30857 * math/w_fmod_compat.c: Likewise.
30858 * math/w_fmodf_compat.c: Likewise.
30859 * math/w_fmodl_compat.c: Likewise.
30860 * math/w_hypot_compat.c: Likewise.
30861 * math/w_hypotf_compat.c: Likewise.
30862 * math/w_hypotl_compat.c: Likewise.
30863 * math/w_j0_compat.c: Likewise.
30864 * math/w_j0f_compat.c: Likewise.
30865 * math/w_j0l_compat.c: Likewise.
30866 * math/w_j1_compat.c: Likewise.
30867 * math/w_j1f_compat.c: Likewise.
30868 * math/w_j1l_compat.c: Likewise.
30869 * math/w_jn_compat.c: Likewise.
30870 * math/w_jnf_compat.c: Likewise.
30871 * math/w_jnl_compat.c: Likewise.
30872 * math/w_lgamma_r_compat.c: Likewise.
30873 * math/w_lgammaf_r_compat.c: Likewise.
30874 * math/w_lgammal_r_compat.c: Likewise.
30875 * math/w_log10_compat.c: Likewise.
30876 * math/w_log10f_compat.c: Likewise.
30877 * math/w_log10l_compat.c: Likewise.
30878 * math/w_log2_compat.c: Likewise.
30879 * math/w_log2f_compat.c: Likewise.
30880 * math/w_log2l_compat.c: Likewise.
30881 * math/w_log_compat.c: Likewise.
30882 * math/w_logf_compat.c: Likewise.
30883 * math/w_logl_compat.c: Likewise.
30884 * math/w_pow_compat.c: Likewise.
30885 * math/w_powf_compat.c: Likewise.
30886 * math/w_powl_compat.c: Likewise.
30887 * math/w_remainder_compat.c: Likewise.
30888 * math/w_remainderf_compat.c: Likewise.
30889 * math/w_remainderl_compat.c: Likewise.
30890 * math/w_sinh_compat.c: Likewise.
30891 * math/w_sinhf_compat.c: Likewise.
30892 * math/w_sinhl_compat.c: Likewise.
30893 * math/w_sqrt_compat.c: Likewise.
30894 * math/w_sqrtf_compat.c: Likewise.
30895 * math/w_sqrtl_compat.c: Likewise.
30896 * math/w_tgamma_compat.c: Likewise.
30897 * math/w_tgammaf_compat.c: Likewise.
30898 * math/w_tgammal_compat.c: Likewise.
30899 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30900 [LIBM_SVID_COMPAT].
30901 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30902 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30903 [LIBM_SVID_COMPAT].
30904 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30905 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30906 [LIBM_SVID_COMPAT].
30907 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30908 * sysdeps/i386/fpu/w_sqrt.c: New file.
30909 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30910 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30911 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30912 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30913 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30914 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30915 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30916 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30917 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30918 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30919 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30920 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30921 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30922 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30923 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30924 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30925 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30926 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30927 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30928 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30929 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30930 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30931 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30932 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30933 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30934 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30935 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30936 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30937 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30938 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30939 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30940 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30941 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30942 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30943 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30944 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30945 * sysdeps/ia64/fpu/w_log.c: Likewise.
30946 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30947 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30948 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30949 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30950 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30951 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30952 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30953 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30954 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30955 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30956 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30957 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30958 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30959 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30960 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30961 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30962 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30963 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30964 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30965 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30966 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30967 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30968 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30969 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30970 [LIBM_SVID_COMPAT].
30971 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30972 * sysdeps/ieee754/k_standard.c: Likewise.
30973 * sysdeps/ieee754/k_standardf.c: Likewise.
30974 * sysdeps/ieee754/k_standardl.c: Likewise.
30975 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30976 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30977 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30978 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30979 long_double_symbol call on [LIBM_SVID_COMPAT].
30980 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30981 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30982 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30983 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30984 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30985 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30986 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30987 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30988 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30989 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30990 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30991 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30992 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30993 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30994 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30995 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30996 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30997 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30998 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30999 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31000 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31001 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31002
31003 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31004
31005 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31006 * malloc/tst-mallocstate.c: Convert from test-skeleton
31007 to test-driver. Ifdef code using TEST_COMPAT macro.
31008 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31009 * math/test-matherr.c: Likewise.
31010
31011 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31012
31013 [BZ #22086]
31014 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31015 comparing word with byte-swapped constant.
31016
31017 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31018
31019 [BZ #20498]
31020 * locale/iso-639.def: add Miskito.
31021 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31022 * localedata/locales/miq_NI: New file.
31023
31024 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31025
31026 [BZ #18822]
31027 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31028 (__mkdir): Likewise.
31029 * io/chmod.c (__chmod): Add libc_hidden_def.
31030 * io/mkdir.c (__mkdir): Likewise.
31031 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31032 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31033 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31034 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31035
31036 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31037
31038 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31039 version to 4.13.
31040
31041 [BZ #22082]
31042 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31043 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31044
31045 2017-09-04 Florian Weimer <fweimer@redhat.com>
31046
31047 * math/math.h: Issue warning if log is defined.
31048
31049 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31050
31051 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31052 kernel version to 4.13.
31053
31054 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31055
31056 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31057 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31058 parameter.
31059 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31060 just <bits/types.h>.
31061 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31062 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31063 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31064 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31065 * misc/preadv2.c: Include <errno.h>.
31066 * misc/preadv64v2.c: Include <errno.h>.
31067 * misc/pwritev2.c: Include <errno.h>.
31068 * misc/pwritev64v2.c: Include <errno.h>.
31069 * sysdeps/posix/preadv2.c: Include <errno.h>.
31070 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31071 Fix <unistd.h> inclusion.
31072 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31073 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31074 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31075 __strtoul_internal): New functions.
31076 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31077 * sysdeps/posix/system.c: Include <sigsetops.h>.
31078 * sysdeps/mach/hurd/i386/Makefile
31079 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31080 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31081 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31082 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31083 __feraiseexcept_renamed to feraiseexcept instead of
31084 __GI_feraiseexcept.
31085 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31086 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31087 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31088 RWF_NOWAIT): Define to 0 if undefined already.
31089 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31090 boils down to 0.
31091 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31092 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31093
31094 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31095
31096 * manual/math.texi (pow10): Do not document.
31097 (pow10f): Likewise.
31098 (pow10l): Likewise.
31099 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31100 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31101 * math/libm-test-exp10.inc (pow10_test): Remove.
31102 (do_test): Do not call pow10.
31103 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31104 [NO_LONG_DOUBLE] (pow10l): Likewise.
31105 * math/w_exp10f_compat.c (pow10f): Likewise.
31106 * math/w_exp10l_compat.c (pow10l): Likewise.
31107 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31108 (pow10): Make into compat symbol.
31109 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31110 (pow10f): Make into compat symbol.
31111 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31112 (pow10l): Make into compat symbol.
31113 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31114 pow10.
31115 (CFLAGS-nldbl-pow10.c): Remove variable..
31116 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31117 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31118 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31119 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31120 Undefine and redefine.
31121 (pow10l): Make into compat symbol.
31122 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31123 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31124 * sysdeps/arm/libm-test-ulps: Likewise.
31125 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31126 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31127 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31128 * sysdeps/microblaze/libm-test-ulps: Likewise.
31129 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31130 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31131 * sysdeps/nios2/libm-test-ulps: Likewise.
31132 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31133 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31134 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31135 * sysdeps/sh/libm-test-ulps: Likewise.
31136 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31137 * sysdeps/tile/libm-test-ulps: Likewise.
31138 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31139
31140 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31141
31142 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31143
31144 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31145
31146 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31147 "../ChangeLog.old/ChangeLog.8".
31148 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31149 "../ChangeLog.old/ChangeLog.14".
31150
31151 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31152
31153 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31154 Threads Library.
31155
31156 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31157
31158 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31159
31160 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31161
31162 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31163 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31164
31165 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31166
31167 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31168 32 atexit handlers.
31169
31170 2017-09-01 Zack Weinberg <zackw@panix.com>
31171
31172 * math/math.h (HUGE_VAL): Improve commentary.
31173
31174 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31175 Andreas Schwab <schwab@suse.de>
31176
31177 [BZ #21530]
31178 * include/stdio.h (__gen_tempfd): New function.
31179 * stdio-common/Makefile (routines): Add gentempfd.
31180 * stdio-common/gentempfd.c: New file.
31181 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31182 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31183 unnamed file first.
31184
31185 2017-09-01 Florian Weimer <fweimer@redhat.com>
31186
31187 [BZ #21915]
31188 [BZ #21922]
31189 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31190 result to determine success or failure, not the errno value.
31191 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31192 (tst-nss-files-hosts-erange): Link with -ldl.
31193 * nss/tst-nss-files-hosts-erange.c: New file.
31194 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31195 (do_test): Add NO_DATA tests.
31196 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31197 (do_test): Call it.
31198
31199 2017-09-01 Florian Weimer <fweimer@redhat.com>
31200
31201 [BZ #21922]
31202 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31203 coming from gethostbyname2_r.
31204
31205 2017-09-01 Florian Weimer <fweimer@redhat.com>
31206
31207 * support/namespace.h (struct support_chroot_configuration): Add
31208 hosts, host_conf.
31209 (struct support_chroot): Add path_hosts, path_host_conf.
31210 * support/support_chroot.c (write_file): New function.
31211 (support_chroot_create): Call it to process /etc/resolv.conf,
31212 /etc/hosts, /etc/host.conf.
31213 (support_chroot_free): Update.
31214
31215 2017-09-01 Florian Weimer <fweimer@redhat.com>
31216
31217 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31218 status indicates it is set.
31219
31220 2017-09-01 Florian Weimer <fweimer@redhat.com>
31221
31222 [BZ #20532]
31223 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31224 function lookup failures more reliable.
31225
31226 2017-09-01 Florian Weimer <fweimer@redhat.com>
31227
31228 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31229 (getcanonname): Likewise.
31230 (gaih_inet): Likewise.
31231
31232 2017-09-01 Florian Weimer <fweimer@redhat.com>
31233
31234 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31235 (getcanonname): Likewise.
31236 (gaih_inet): Likewise.
31237
31238 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31239 Richard Henderson <rth@twiddle.net>
31240
31241 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31242 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31243 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31244 (IREG_SIZE, OREG_SIZE): New macros.
31245 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31246 (IREG_SIZE, OREG_SIZE): New macros.
31247 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31248 (IREG_SIZE): New macro.
31249 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31250 (IREG_SIZE): New macro.
31251 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31252 New includes.
31253 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31254 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31255 (__CONCATX): Handle exceptions correctly on large values that may
31256 set FE_INVALID.
31257 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31258 Initialize if not already set.
31259 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31260
31261 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31262
31263 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31264 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31265 Likewise.
31266 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31267 Likewise.
31268 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31269 Likewise.
31270 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31271 Likewise.
31272 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31273 Likewise.
31274 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31275 Likewise.
31276 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31277 Likewise.
31278 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31279 (NO_CANCELLATION): Likewise.
31280 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31281 Likewise.
31282 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31283 Likewise.
31284 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31285 Likewise.
31286 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31287 (NO_CANCELLATION): Likewise.
31288 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31289 (NO_CANCELLATION): Likewise.
31290 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31291 Likewise
31292 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31293 Likewise.
31294 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31295 Likewise.
31296 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31297 Likewise.
31298 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31299 hidden prototype.
31300 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31301 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31302
31303 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31304
31305 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31306 in resolver call.
31307
31308 2017-08-31 Florian Weimer <fweimer@redhat.com>
31309
31310 * include/libc-symbols.h (internal_function): Remove.
31311
31312 2017-08-31 Florian Weimer <fweimer@redhat.com>
31313
31314 * stdlib/fmtmsg.c (internal_addseverity): Remove
31315 internal_function.
31316
31317 2017-08-31 Florian Weimer <fweimer@redhat.com>
31318
31319 * stdio-common/printf_fp.c (group_number): Remove
31320 internal_function.
31321 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31322
31323 2017-08-31 Florian Weimer <fweimer@redhat.com>
31324
31325 * posix/fnmatch.c (internal_function): Remove definition.
31326 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31327 * posix/regcomp.c (peek_token, init_word_char)
31328 (duplicate_node_closure, fetch_token, peek_token)
31329 (peek_token_bracket, build_range_exp, build_collating_symbol):
31330 Likewise.
31331 * posix/regex_internal.c (re_string_construct_common)
31332 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31333 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31334 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31335 (re_string_translate_buffer, re_string_reconstruct)
31336 (re_string_peek_byte_case, re_string_fetch_byte_case)
31337 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31338 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31339 (re_node_set_add_intersect, re_node_set_init_union)
31340 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31341 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31342 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31343 (re_acquire_state_context): Likewise.
31344 * posix/regex_internal.h (internal_function): Remove definition.
31345 (re_string_realloc_buffers, build_wcs_buffer)
31346 (build_wcs_upper_buffer, build_upper_buffer)
31347 (re_string_translate_buffer, re_string_context_at)
31348 (re_string_char_size_at, re_string_wchar_at)
31349 (re_string_elem_size_at): Likewise.
31350 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31351 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31352 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31353 (re_search_internal, re_search_2_stub, re_search_stub)
31354 (re_copy_regs, prune_impossible_nodes, check_matching)
31355 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31356 (free_fail_stack_return, sift_states_iter_mb)
31357 (sift_states_backward, build_sifted_states)
31358 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31359 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31360 (check_subexp_limits, sift_states_bkref, merge_state_array)
31361 (find_recover_state, transit_state, merge_state_with_log)
31362 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31363 (transit_state_mb, transit_state_bkref, get_subexp)
31364 (get_subexp_sub, find_subexp_node, check_arrival)
31365 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31366 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31367 (check_node_accept_bytes, find_collation_sequence_value)
31368 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31369 (acquire_init_state_context, check_halt_node_context)
31370 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31371 (sub_epsilon_src_nodes): Likewise.
31372 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31373 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31374 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31375 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31376 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31377 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31378 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31379 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31380 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31381 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31382 (PREADV): Likewise.
31383 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31384 (PREADV): Likewise.
31385 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31386 (PWRITEV): Likewise.
31387 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31388 (PWRITEV): Likewise.
31389 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31390 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31391
31392 2017-08-31 Florian Weimer <fweimer@redhat.com>
31393
31394 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31395 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31396 Remove internal_function.
31397 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31398 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31399 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31400 (__deallocate_stack, __libc_pthread_init)
31401 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31402 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31403 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31404 Likewise.
31405 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31406 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31407 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31408 Likewise.
31409 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31410 (__pthread_mutex_unlock_usercnt): Likewise.
31411
31412 2017-08-31 Florian Weimer <fweimer@redhat.com>
31413
31414 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31415 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31416 (fts_safe_changedir): Remove internal_function.
31417 * io/ftw.c (internal_function): Remove definition.
31418 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31419
31420 2017-08-31 Florian Weimer <fweimer@redhat.com>
31421
31422 * inet/deadline.c (__deadline_current_time)
31423 (__deadline_from_timeval, __deadline_to_ms): Remove
31424 internal_function.
31425 * inet/getnameinfo.c (nrl_domainname): Likewise.
31426 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31427 * inet/inet6_option.c (add_pad): Likewise.
31428 * inet/net-internal.h (__deadline_current_time)
31429 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31430 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31431 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31432 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31433
31434 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31435
31436 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31437 include <bits/nan.h>.
31438 * math/Makefile (headers): Remove bits/nan.h.
31439 * bits/nan.h: Remove.
31440 * sysdeps/ieee754/bits/nan.h: Likewise.
31441 * sysdeps/mips/bits/nan.h: Likewise.
31442
31443 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31444 not include <bits/inf.h>.
31445 * math/Makefile (headers): Remove bits/inf.h.
31446 * bits/inf.h: Remove.
31447 * sysdeps/ieee754/bits/inf.h: Likewise.
31448
31449 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31450 bits/huge_vall.h or bits/huge_val_flt128.h.
31451 (HUGE_VAL): Define directly here.
31452 [__USE_ISOC99] (HUGE_VALF): Likewise.
31453 [__USE_ISOC99] (HUGE_VALL): Likewise.
31454 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31455 (HUGE_VAL_F128): Likewise.
31456 * math/Makefile (headers): Remove bits/huge_val.h,
31457 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31458 * bits/huge_val.h: Remove.
31459 * bits/huge_val_flt128.h: Likewise.
31460 * bits/huge_valf.h: Likewise.
31461 * bits/huge_vall.h: Likewise.
31462 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31463 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31464 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31465 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31466 * sysdeps/sh/bits/huge_val.h: Likewise.
31467 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31468 * sysdeps/x86/bits/huge_vall.h: Likewise.
31469
31470 2017-08-31 Florian Weimer <fweimer@redhat.com>
31471
31472 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31473 internal_function.
31474 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31475 Likewise.
31476 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31477 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31478 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31479 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31480 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31481 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31482 * elf/dl-libc.c (dlerror_run): Likewise.
31483 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31484 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31485 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31486 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31487 Likewise.
31488 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31489 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31490 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31491 * elf/dl-profile.c (_dl_start_profile): Likewise.
31492 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31493 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31494 Likewise.
31495 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31496 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31497 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31498 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31499 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31500 (_dl_allocate_tls_storage): Likewise.
31501 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31502 (_dl_check_all_versions): Likewise.
31503 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31504 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31505 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31506 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31507 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31508 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31509 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31510 internal_function from __dl_start.
31511 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31512 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31513 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31514 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31515 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31516 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31517 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31518 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31519 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31520 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31521 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31522 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31523 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31524 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31525 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31526 Likewise.
31527 (struct rtld_global_ro): Remove internal_function from the
31528 _dl_lookup_symbol_x member.
31529 (_dl_symbol_value): Remove. No longer defined anywhere.
31530 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31531 internal_function.
31532 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31533 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31534 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31535 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31536 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31537 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31538 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31539 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31540 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31541 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31542 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31543 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31544
31545 2017-08-31 Florian Weimer <fweimer@redhat.com>
31546
31547 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31548 Remove internal_function.
31549 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31550 Likewise.
31551 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31552 Likewise.
31553
31554 2017-08-31 Florian Weimer <fweimer@redhat.com>
31555
31556 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31557 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31558 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31559
31560 2017-08-31 Florian Weimer <fweimer@redhat.com>
31561
31562 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31563 (__gai_enqueue_request): Remove internal_function.
31564 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31565 (__gai_remove_request, __gai_notify, __gai_notify_only)
31566 (__gai_sigqueue): Likewise.
31567 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31568 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31569 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31570 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31571 Likewise.
31572
31573 2017-08-31 Florian Weimer <fweimer@redhat.com>
31574
31575 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31576 * include/dirent.h (__opendirat, __getdents, __getdents64)
31577 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31578 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31579 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31580 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31581 Likewise.
31582 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31583
31584 2017-08-31 Florian Weimer <fweimer@redhat.com>
31585
31586 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31587 internal_function.
31588 (GETCWD_RETURN_TYPE): Likewise.
31589
31590 2017-08-31 Florian Weimer <fweimer@redhat.com>
31591
31592 * include/time.h (__tz_compute, __strptime_internal): Remove
31593 internal_function.
31594 * time/strptime_l.c (__strptime_internal): Likewise.
31595 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31596
31597 2017-08-31 Florian Weimer <fweimer@redhat.com>
31598
31599 * iconv/gconv.c (__gconv): Remove internal_function.
31600 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31601 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31602 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31603 (__gconv_release_cache): Likewise.
31604 * iconv/gconv_close.c (__gconv_close): Likewise.
31605 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31606 (read_conf_file, __gconv_get_path): Likewise.
31607 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31608 (__gconv_release_step, gen_steps, increment_counter)
31609 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31610 (__gconv_close_transform, free_modules_db): Likewise.
31611 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31612 Likewise.
31613 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31614 (__gconv_find_transform, __gconv_lookup_cache)
31615 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31616 (__gconv_close_transform, __gconv_release_cache)
31617 (__gconv_loaded_object, __gconv_release_shlib)
31618 (__gconv_compare_alias): Likewise.
31619 * iconv/gconv_open.c (__gconv_open): Likewise.
31620 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31621 * iconv/iconvconfig.c (add_module): Likewise.
31622 * intl/dcigettext.c (plural_lookup, guess_category_value)
31623 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31624 * intl/eval-plural.h (plural_eval): Likewise.
31625 * intl/finddomain.c (_nl_find_domain): Likewise.
31626 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31627 (_nl_load_domain, _nl_find_msg): Likewise.
31628 (internal_function): Remove definition.
31629 * intl/loadinfo.h (internal_function): Likewise.
31630 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31631 internal_function.
31632 * intl/localealias.c (internal_function): Remove definition.
31633 (read_alias_file): Remove internal_function.
31634 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31635 * intl/plural-exp.h (internal_function): Remove definition.
31636 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31637 internal_function.
31638 * intl/plural.c: Regenerate.
31639 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31640 * locale/coll-lookup.c (__collidx_table_lookup)
31641 (__collseq_table_lookup): Likewise.
31642 * locale/coll-lookup.h (__collidx_table_lookup)
31643 (__collseq_table_lookup): Likewise.
31644 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31645 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31646 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31647 (_nl_unload_locale): Likewise.
31648 * locale/localeinfo.h (struct __locale_data): Remove
31649 internal_function from cleanup member.
31650 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31651 (_nl_remove_locale, _nl_load_locale_from_archive)
31652 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31653 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31654 (_nl_cleanup_time): Remove internal_function.
31655 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31656 (_nl_parse_alt_digit): Likewise.
31657 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31658 (_nl_select_era_entry): Likewise.
31659 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31660 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31661 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31662 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31663 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31664
31665 2017-08-31 Florian Weimer <fweimer@redhat.com>
31666
31667 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31668 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31669 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31670 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31671 Likewise.
31672 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31673 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31674 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31675 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31676 Likewise.
31677 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31678
31679 2017-08-31 Florian Weimer <fweimer@redhat.com>
31680
31681 * misc/getttyent.c (skip, value): Remove internal_function.
31682 * misc/syslog.c (openlog_internal): Likewise.
31683 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31684
31685 2017-08-31 Florian Weimer <fweimer@redhat.com>
31686
31687 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31688 (__nss_rewrite_field): Remove internal_function.
31689 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31690 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31691 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31692 * nss/nsswitch.c (nss_parse_file, nss_getline)
31693 (nss_parse_service_list, nss_new_service): Likewise.
31694 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31695 * nss/valid_field.c (__nss_valid_field): Likewise.
31696 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31697
31698 2017-08-31 Florian Weimer <fweimer@redhat.com>
31699
31700 * malloc/arena.c (__malloc_fork_lock_parent)
31701 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31702 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31703 internal_function from defintions.
31704 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31705 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31706 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31707 internal_function from declarations.
31708 * malloc/malloc.c (internal_function): Do not define.
31709 (mem2mem_check): Remove internal_function from declaration.
31710 (munmap_chunk, mremap_chunk): Remove internal_function.
31711 * malloc/mtrace.c (tr_where): Likewise.
31712
31713 2017-08-31 Florian Weimer <fweimer@redhat.com>
31714
31715 * include/rpc/pmap_clnt.h (__get_socket): Remove
31716 internal_function.
31717 * sunrpc/auth_des.c (synchronize): Likewise.
31718 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31719 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31720 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31721 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31722 (key_call): Likewise.
31723 * sunrpc/pm_getport.c (__get_socket): Likewise.
31724 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31725 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31726 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31727 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31728 (invalidate): Likewise.
31729 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31730 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31731 (set_input_fragment, get_input_bytes): Likewise.
31732
31733 2017-08-31 Florian Weimer <fweimer@redhat.com>
31734
31735 * malloc/malloc.c (_int_free): Remove locked variable and related
31736 asserts.
31737
31738 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31739
31740 [BZ #22051]
31741 * Makerules (build-module-helper-objlist): Filter out
31742 $(elf-objpfx)sofini.os.
31743 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31744 needed.
31745
31746 2017-08-31 Florian Weimer <fweimer@redhat.com>
31747
31748 * libio/fcloseall.c: Assume weak_alias is defined.
31749 * libio/feof.c: Likewise.
31750 * libio/fileno.c: Likewise.
31751 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31752 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31753 definitions.
31754 (_IO_file_open): Call __open directly.
31755 (_IO_new_file_sync): Assume ESPIPE is defined.
31756 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31757 (_IO_new_file_write): Call __write directly.
31758 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31759 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31760 * libio/genops.c: Assume _LIBC is defined.
31761 (save_for_backup): Remove internal_function.
31762 * libio/getc.c: Assume weak_alias is defined.
31763 * libio/getwc.c: Likewise.
31764 * libio/iofclose.c: Assume _LIBC is defined.
31765 * libio/iofdopen.c: Likewise.
31766 (_IO_fcntl): Remove macro definition.
31767 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31768 Call __fcntl directly.
31769 * libio/iofflush.c: Assume weak_alias is defined.
31770 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31771 defined.
31772 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31773 * libio/iofgets.c: Likewise.
31774 * libio/iofopen.c: Assume _LIBC is defined.
31775 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31776 * libio/iofputs.c: Assume weak_alias is defined.
31777 * libio/iofread.c: Likewise.
31778 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31779 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31780 * libio/ioftell.c: Assume weak_alias is defined.
31781 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31782 * libio/iofwide.c: Assume _LIBC is defined.
31783 (_IO_fwide): Drop SHARED conditional because it is implied by
31784 SHLIB_COMPAT.
31785 * libio/iofwrite.c: Assume weak_alias is defined.
31786 * libio/iogetdelim.c: Likewise.
31787 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31788 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31789 (_IO_getwline): Call __wmemcpy directly.
31790 * libio/iopopen.c: Assume _LIBC is defined.
31791 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31792 (_IO_close): Remove macro definitions.
31793 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31794 _exit directly.
31795 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31796 directly.
31797 * libio/ioputs.c: Assume weak_alias is defined.
31798 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31799 * libio/iosetbuffer.c: Assume weak_alias is defined.
31800 * libio/iosetvbuf.c: Likewise.
31801 * libio/ioungetc.c: Likewise.
31802 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31803 libc_hidden_def, libc_hidden_weak, NULL are defined.
31804 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31805 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31806 defined.
31807 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31808 definitions.
31809 (_IO_old_file_init_internal): Drop SHARED conditional because it
31810 is implied by SHLIB_COMPAT.
31811 (_IO_old_file_fopen): Call __open directly.
31812 (_IO_old_file_sync): Assume ESPIPE is defined.
31813 (_IO_old_file_write): Call __write directly.
31814 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31815 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31816 Call __fcntl directly.
31817 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31818 (_IO_old_fgetpos): Assume EIO is defined.
31819 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31820 (_IO_old_fgetpos64): Assume EIO is defined.
31821 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31822 (_IO_old_fsetpos): Assume EIO is defined.
31823 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31824 (_IO_old_fsetpos64): Assume EIO is defined.
31825 * libio/oldiopopen.c: Assume _LIBC is defined.
31826 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31827 (_IO_close): Remove macro definitions.
31828 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31829 directly.
31830 (_IO_old_proc_close): Call __close, __waitpid directly.
31831 * libio/put.c: Assume weak_alias is defined.
31832 * libio/stdfiles.c: Assume _LIBC is defined.
31833 * libio/stdio.c: Likewise.
31834 * libio/wfileops.c: Likewise.
31835 (_IO_wfile_sync): Assume ESPIPE is defined.
31836 * libio/wgenops.c: Assume _LIBC is defined.
31837 (save_for_wbackup): Remove internal_function.
31838
31839 2017-08-31 Florian Weimer <fweimer@redhat.com>
31840
31841 * malloc/malloc.c (top_check): Change return type to void. Remove
31842 internal_function.
31843 * malloc/hooks.c (top_check): Likewise.
31844 (malloc_check, realloc_check, memalign_check): Adjust.
31845
31846 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31847
31848 [BZ #21457]
31849 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31850 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31851 sigcontext and namespace requirements.
31852 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31853 * sysdeps/m68k/sys/ucontext.h: Likewise.
31854 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31855 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31856 <bits/sigcontext.h>.
31857 (__ctx): Define earlier.
31858 (mcontext_t): Define structure contents rather than using struct
31859 sigcontext.
31860 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31861 __glibc_reserved1 instead of __reserved.
31862 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31863 <bits/sigcontext.h>.
31864 (__ctx): Define earlier.
31865 (mcontext_t): Define structure contents rather than using struct
31866 sigcontext.
31867 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31868 mcontext_t instead of struct sigcontext.
31869 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31870 <bits/sigcontext.h>.
31871 (__ctx): Define earlier.
31872 (mcontext_t): Define structure contents rather than using struct
31873 sigcontext.
31874 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31875 <bits/sigcontext.h>.
31876 (__ctx): Define earlier.
31877 (mcontext_t): Define structure contents rather than using struct
31878 sigcontext.
31879 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31880 mcontext_t instead of struct sigcontext.
31881 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31882 mcontext_t instead of struct sigcontext.
31883 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31884 <bits/sigcontext.h>.
31885 (__ctx): New macro.
31886 (struct __ia64_fpreg_mcontext): New type.
31887 (mcontext_t): Define structure contents rather than using struct
31888 sigcontext.
31889 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31890 (uc_sigmask): Define using __ctx.
31891 (uc_stack): Likewise.
31892 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31893 <bits/sigcontext.h>.
31894 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31895 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31896 <bits/sigcontext.h>.
31897 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31898 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31899 <bits/sigcontext.h>.
31900 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31901 <bits/sigcontext.h>.
31902 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31903 <bits/sigcontext.h>.
31904 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31905 <bits/sigcontext.h>.
31906 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31907 <bits/sigcontext.h>.
31908 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31909 <bits/sigcontext.h>.
31910 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31911 <bits/sigcontext.h>.
31912 (__ctx): Define earlier.
31913 (mcontext_t): Define structure contents rather than using struct
31914 sigcontext.
31915 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31916 <bits/sigcontext.h>. Include <bits/types.h>.
31917 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31918 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31919 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31920 (test-xfail-UNIX98/signal.h/conform): Likewise.
31921 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31922 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31923 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31924 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31925 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31926 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31927 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31928 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31929 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31930
31931 2017-08-30 Florian Weimer <fweimer@redhat.com>
31932
31933 * malloc/dynarray_emplace_enlarge.c
31934 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31935 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31936 * malloc/tst-dynarray.c (test_long_overflow): New function.
31937 (do_test): Call it.
31938
31939 2017-08-30 Florian Weimer <fweimer@redhat.com>
31940
31941 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31942 (set_arena_corrupt): Remove definitions.
31943 (mtrim): Do not check for corrupt arena.
31944 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31945 Likewise.
31946
31947 2017-08-30 Florian Weimer <fweimer@redhat.com>
31948
31949 [BZ #21754]
31950 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31951 check_action.
31952 (ptmalloc_init): Do not set or use check_action.
31953 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31954 call to malloc_printerr. Remove return statement.
31955 (free_check): Likewise. Remove arena unlock.
31956 (top_check): Update comment. Adjust call to malloc_printerr.
31957 Remove heap repair code.
31958 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31959 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31960 (sysmalloc): Adjust call to malloc_printerr.
31961 (munmap_chunk, __libc_realloc): Likewise. Remove return
31962 statement.
31963 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31964 Remove errout label and corresponding gotos.
31965 (_int_free): Likewise. Remove arena unlock.
31966 (do_set_mallopt_check): Do not set check_action.
31967 (malloc_printerr): Adjust parameter list. Do not mark arena as
31968 corrupt.
31969 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31970 comment.
31971 * manual/probes.texi (Memory Allocation Probes): Remove
31972 memory_mallopt_check_action.
31973
31974 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31975
31976 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31977 Use pointer to uint64_t instead of long int for sp.
31978
31979 2017-08-30 Florian Weimer <fweimer@redhat.com>
31980
31981 [BZ #21754]
31982 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31983 without printing a backtrace. Do not leak any information in the
31984 error message.
31985 * manual/memory.texi (Heap Consistency Checking): Update.
31986 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31987
31988 2017-08-30 Florian Weimer <fweimer@redhat.com>
31989
31990 Do not scale NPTL tests with available number of CPUs.
31991 * nptl/tst-cond16.c (count): Set to constant value of 8.
31992 * nptl/tst-cond18.c (count): Likewise.
31993
31994 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31995
31996 [BZ #22035]
31997 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31998 Define to take a second argument that is a macro that
31999 concatentates a suffix, not the suffix itself.
32000 (__CONCAT_d): New macro.
32001 (__CONCAT_f): Likewise.
32002 (__CONCAT_l): Likewise.
32003
32004 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32005
32006 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32007 by child.
32008
32009 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32010 Aurelien Jarno <aurelien@aurel32.net>
32011 Maciej W. Rozycki <macro@imgtec.com>
32012
32013 [BZ #21956]
32014 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32015 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32016 `mips16-syscall6' and `mips16-syscall7'.
32017 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32018 (CFLAGS-mips16-syscall7.c): Remove.
32019 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32020 Remove `__mips16_syscall5', `__mips16_syscall6' and
32021 `__mips16_syscall7'.
32022 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32023 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32024 `__mips_syscall_return'.
32025 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32026 (__mips16_syscall1): Likewise.
32027 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32028 (__mips16_syscall2): Likewise.
32029 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32030 (__mips16_syscall3): Likewise.
32031 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32032 (__mips16_syscall4): Likewise.
32033 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32034 Remove.
32035 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32036 Remove.
32037 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32038 Remove.
32039 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32040 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32041 `__mips16_syscall5'. Remove prototype.
32042 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32043 `__mips16_syscall6'. Remove prototype.
32044 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32045 `__mips16_syscall7'. Remove prototype.
32046 (__nomips16, __mips16_syscall_return): Move to...
32047 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32048 (__nomips16, __mips_syscall_return): ... here.
32049 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32050 `__mips16_syscall_return' to `__mips_syscall_return'.
32051 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32052 `internal_syscall##nr'.
32053 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32054 `internal_syscall##nr'.
32055 (FORCE_FRAME_POINTER): Remove.
32056 (__mips_syscall5): New prototype.
32057 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32058 (__mips_syscall6): New prototype.
32059 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32060 (__mips_syscall7): New prototype.
32061 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32062 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32063 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32064 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32065 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32066 (sysdep_routines): Add libc-do-syscall.
32067 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32068 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32069
32070 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32071
32072 [BZ #21672]
32073 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32074 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32075 (advise_stack_range): New function.
32076 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32077 stack non required to advise_stack_range at allocatestack.c
32078
32079 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32080
32081 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32082
32083 2017-08-29 Florian Weimer <fweimer@redhat.com>
32084
32085 [BZ #22026]
32086 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32087 __end_fct. Mangle __end_fct after setting it to NULL.
32088 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32089 (modules-names, modules-names-tests): Add
32090 tst-gconv-init-failure-mod.
32091 (gconv-modules): New target.
32092 (tst-gconv-init-failure-mod.so): Link against libsupport.
32093 (tst-gconv-init-failure): Depend on gconv-modules,
32094 tst-gconv-init-failure-mod.so.
32095 * iconv/tst-gconv-init-failure-mod.c: New file.
32096 * iconv/tst-gconv-init-failure.c: Likewise.
32097 * iconv/test-gconv-modules: Likewise.
32098
32099 2017-08-29 Florian Weimer <fweimer@redhat.com>
32100
32101 [BZ #22025]
32102 * iconv/gconv_db.c (free_derivation): Remove redundant
32103 parentheses.
32104 (gen_steps): Unconditionally mangle __btowc_fct after
32105 initialization.
32106 (increment_counter): Likewise. Do not call init_fct for internal
32107 modules.
32108
32109 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32110
32111 [BZ #22028]
32112 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32113 (_MSUF_): Remove macro.
32114 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32115 Likewise.
32116 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32117 (__REDIRFROM_X): New macro.
32118 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32119 Likewise.
32120 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32121 (__REDIRTO_X): Likewise.
32122 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32123 arguments.
32124 (__MATH_REDIRCALL_2): Likewise.
32125 (__MATH_REDIRCALL_INTERNAL): Likewise.
32126 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32127 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32128 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32129 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32130 * math/test-finite-macros.c: New file.
32131 * math/Makefile (tests): Add test-finite-macros.
32132 (CFLAGS-test-finite-macros.c): New variable.
32133
32134 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32135 Jeff Law <law@redhat.com>
32136
32137 [BZ #22025]
32138 Mangle NULL pointers in iconv/gconv.
32139 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32140 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32141 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32142 is non-NULL before demangling the end_fct. Check for NULL
32143 end_fct after demangling.
32144 (__gconv_release_step): Demangle the end_fct before checking
32145 it for NULL. Remove assert on __shlibc_handle != NULL.
32146 (gen_steps): Don't check btowc_fct for NULL before mangling.
32147 Demangle init_fct before checking for NULL.
32148 (increment_counter): Likewise.
32149 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32150 end_fct for NULL before mangling.
32151 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32152 for NULL.
32153
32154 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32155
32156 [BZ #21971]
32157 * locale/iso-639.def: add Morisyen.
32158
32159 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32160
32161 [BZ #21930]
32162 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32163 (iszero): New C++ implementation that does not use
32164 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32165 signaling nans are enabled, since __builtin_types_compatible_p
32166 is a C-only feature.
32167 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32168 defined, include ieee754_float128.h for access to the union and
32169 member ieee854_float128.ieee.
32170 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32171 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32172 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32173 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32174 options of test-math-zero on powerpc64le.
32175
32176 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32177
32178 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32179 Change double to float.
32180
32181 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32182
32183 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32184 unconditional.
32185 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32186 conditional code; define contents only for [LIBM_SVID_COMPAT].
32187
32188 2017-08-28 Florian Weimer <fweimer@redhat.com>
32189
32190 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32191 (abi-lp64_be-options): Remove.
32192 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32193 (abi-hard-options): Likewise.
32194 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32195 (abi-o32_hard-options, abi-o32_soft_2008-options)
32196 (abi-o32_hard_2008-options, abi-n32_soft-options)
32197 (abi-n32_hard-options, abi-n32_soft_2008-options)
32198 (abi-n32_hard_2008-options, abi-n64_soft-options)
32199 (abi-n64_hard-options, abi-n64_soft_2008-options)
32200 (abi-n64_hard_2008-options): Likewise.
32201 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32202 (abi-64-v1-options, abi-64-v2-options): Likewise.
32203 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32204 (abi-64-options): Likewise.
32205 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32206 (abi-64-options): Likewise.
32207 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32208 (abi-64-options): Likewise.
32209 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32210 (abi-64-options, abi-x32-options): Likewise.
32211
32212 2017-08-28 Florian Weimer <fweimer@redhat.com>
32213
32214 Store supported list of SYS_* system calls in the source tree.
32215 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32216 (bits/syscall.h): Generate from list file.
32217 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32218 [$(subdir) = misc] (tests): Add tst-syscall-list.
32219 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32220 [$(subdir) = misc] (tst-syscall-list-macros.list)
32221 [$(subdir) = misc] (tst-syscall-list-nr.list)
32222 (tst-syscall-list-sys.list): Helper targets for new
32223 tst-syscall-list test.
32224 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32225 tst-syscall-list.sh.
32226 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32227 target. Do not include bits/syscall.d.
32228 [$(subdir) = misc] (generated): Do not update.
32229 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32230 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32231 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32232 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32233
32234 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32235
32236 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32237 (tst-cxa_atexit, tst-on_exit): Likewise.
32238 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32239 tst-cxa_atexit, and tst-on_exit.
32240 * stdlib/tst-atexit-common.c: New file.
32241 * stdlib/tst-atexit.c: New file.
32242 * stdlib/tst-at_quick_exit.c: New file.
32243 * stdlib/tst-cxa_atexit.c: New file.
32244 * stdlib/tst-on_exit.c: New file.
32245
32246 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32247
32248 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32249 * mach/stack_chk_fail_local.c: New file.
32250 * hurd/stack_chk_fail_local.c: New file.
32251 * mach/Machrules ($(interface-library)-routines): Add
32252 stack_chk_fail_local.
32253 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32254 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32255 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32256 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32257 * hurd/Makefile (CFLAGS-hurdstartup.o,
32258 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32259
32260 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32261
32262 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32263 (index_cpu_*, index_arch_*): Removed.
32264
32265 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32266
32267 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32268 Use uint64_t instead of unsigned long.
32269
32270 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32271
32272 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32273 [__HAVE_DISTINCT_FLOAT128].
32274
32275 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32276 of <bits/math-finite.h>.
32277 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32278 inclusion of <bits/math-finite.h>.
32279 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32280 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32281 __NO_LONG_DOUBLE_MATH].
32282 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32283 (__MATH_REDIRCALL_2): Likewise.
32284 (__MATH_REDIRCALL_INTERNAL): Likewise.
32285 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32286 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32287 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32288
32289 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32290 Remove file.
32291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32292 Likewise.
32293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32294 Likewise.
32295 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32296 Likewise.
32297 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32298 Likewise.
32299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32300 Likewise.
32301 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32302 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32303 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32304 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32306 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32307 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32308 w_sqrtf_compat-ppc32.
32309
32310 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32311
32312 * math/math.h [defined __cplusplus] (issignaling): In the long
32313 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32314 is not defined. Call __issignaling, otherwise.
32315
32316 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32317
32318 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32319 syscall definitions and replace __builtin_expect with __glibc_likely.
32320 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32321 syscall.
32322 (SYSCALL_CANCELLABLE): Removedefinition
32323 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32324 definition.
32325 (PSEUDO_END): Likewise.
32326 [IS_IN (libpthread)] (CENABLE): Likewise.
32327 [IS_IN (libpthread)] (CDISABLE): Likewise.
32328 [IS_IN (libc)] (CENABLE): Likewise.
32329 [IS_IN (libc)] (CENABLE): Likewise.
32330 [IS_IN (librt)] (CDISABLE): Likewise.
32331 [IS_IN (librt)] (CDISABLE): Likewise.
32332 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32333 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32334 definition.
32335 (PSEUDO_END): Likewise.
32336 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32337 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32338 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32339 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32340 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32341 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32342 (CENABLE): Likewise.
32343 (CDISABLE): Likewise.
32344 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32345 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32346 defintion.
32347 (PSEUDO_END): Likewise.
32348 [IS_IN (libpthread)] (CENABLE): Likewise.
32349 [IS_IN (libpthread)] (CDISABLE): Likewise.
32350 [IS_IN (libc)] (CENABLE): Likewise.
32351 [IS_IN (libc)] (CENABLE): Likewise.
32352 [IS_IN (librt)] (CDISABLE): Likewise.
32353 [IS_IN (librt)] (CDISABLE): Likewise.
32354 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32355 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32356 definition.
32357 (PSEUDO_END): Likewise.
32358 [IS_IN (libpthread)] (CENABLE): Likewise.
32359 [IS_IN (libpthread)] (CDISABLE): Likewise.
32360 [IS_IN (libc)] (CENABLE): Likewise.
32361 [IS_IN (libc)] (CENABLE): Likewise.
32362 [IS_IN (librt)] (CDISABLE): Likewise.
32363 [IS_IN (librt)] (CDISABLE): Likewise.
32364 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32365 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32366 definition.
32367 (PSEUDO_END): Likewise.
32368 [IS_IN (libpthread)] (CENABLE): Likewise.
32369 [IS_IN (libpthread)] (CDISABLE): Likewise.
32370 [IS_IN (libc)] (CENABLE): Likewise.
32371 [IS_IN (libc)] (CENABLE): Likewise.
32372 [IS_IN (librt)] (CDISABLE): Likewise.
32373 [IS_IN (librt)] (CDISABLE): Likewise.
32374 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32375 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32376 definition.
32377 (PSEUDO_END): Likewise.
32378 [IS_IN (libpthread)] (CENABLE): Likewise.
32379 [IS_IN (libpthread)] (CDISABLE): Likewise.
32380 [IS_IN (libc)] (CENABLE): Likewise.
32381 [IS_IN (libc)] (CENABLE): Likewise.
32382 [IS_IN (librt)] (CDISABLE): Likewise.
32383 [IS_IN (librt)] (CDISABLE): Likewise.
32384 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32385 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32386 definition.
32387 (PSEUDO_END): Likewise.
32388 [IS_IN (libpthread)] (CENABLE): Likewise.
32389 [IS_IN (libpthread)] (CDISABLE): Likewise.
32390 [IS_IN (libc)] (CENABLE): Likewise.
32391 [IS_IN (libc)] (CENABLE): Likewise.
32392 [IS_IN (librt)] (CDISABLE): Likewise.
32393 [IS_IN (librt)] (CDISABLE): Likewise.
32394 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32395 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32396 definition.
32397 (PSEUDO_END): Likewise.
32398 [IS_IN (libpthread)] (CENABLE): Likewise.
32399 [IS_IN (libpthread)] (CDISABLE): Likewise.
32400 [IS_IN (libc)] (CENABLE): Likewise.
32401 [IS_IN (libc)] (CENABLE): Likewise.
32402 [IS_IN (librt)] (CDISABLE): Likewise.
32403 [IS_IN (librt)] (CDISABLE): Likewise.
32404 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32405 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32406 Remove definition.
32407 (PSEUDO_END): Likewise.
32408 [IS_IN (libpthread)] (CENABLE): Likewise.
32409 [IS_IN (libpthread)] (CDISABLE): Likewise.
32410 [IS_IN (libc)] (CENABLE): Likewise.
32411 [IS_IN (libc)] (CENABLE): Likewise.
32412 [IS_IN (librt)] (CDISABLE): Likewise.
32413 [IS_IN (librt)] (CDISABLE): Likewise.
32414 (SINGLE_THREAD_P): Likewise.
32415 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32416 definition.
32417 (PSEUDO_END): Likewise.
32418 [IS_IN (libpthread)] (CENABLE): Likewise.
32419 [IS_IN (libpthread)] (CDISABLE): Likewise.
32420 [IS_IN (libc)] (CENABLE): Likewise.
32421 [IS_IN (libc)] (CENABLE): Likewise.
32422 [IS_IN (librt)] (CDISABLE): Likewise.
32423 [IS_IN (librt)] (CDISABLE): Likewise.
32424 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32425 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32426 definition.
32427 (PSEUDO_END): Likewise.
32428 [IS_IN (libpthread)] (CENABLE): Likewise.
32429 [IS_IN (libpthread)] (CDISABLE): Likewise.
32430 [IS_IN (libc)] (CENABLE): Likewise.
32431 [IS_IN (libc)] (CENABLE): Likewise.
32432 [IS_IN (librt)] (CDISABLE): Likewise.
32433 [IS_IN (librt)] (CDISABLE): Likewise.
32434 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32435 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32436 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32437 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32438 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32439 definition.
32440 (PSEUDO_END): Likewise.
32441 [IS_IN (libpthread)] (CENABLE): Likewise.
32442 [IS_IN (libpthread)] (CDISABLE): Likewise.
32443 [IS_IN (libc)] (CENABLE): Likewise.
32444 [IS_IN (libc)] (CENABLE): Likewise.
32445 [IS_IN (librt)] (CDISABLE): Likewise.
32446 [IS_IN (librt)] (CDISABLE): Likewise.
32447 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32448 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32449 definition.
32450 (PSEUDO_END): Likewise.
32451 [IS_IN (libpthread)] (CENABLE): Likewise.
32452 [IS_IN (libpthread)] (CDISABLE): Likewise.
32453 [IS_IN (libc)] (CENABLE): Likewise.
32454 [IS_IN (libc)] (CENABLE): Likewise.
32455 [IS_IN (librt)] (CDISABLE): Likewise.
32456 [IS_IN (librt)] (CDISABLE): Likewise.
32457 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32458 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32459 definition.
32460 (PSEUDO_END): Likewise.
32461 [IS_IN (libpthread)] (CENABLE): Likewise.
32462 [IS_IN (libpthread)] (CDISABLE): Likewise.
32463 [IS_IN (libc)] (CENABLE): Likewise.
32464 [IS_IN (libc)] (CENABLE): Likewise.
32465 [IS_IN (librt)] (CDISABLE): Likewise.
32466 [IS_IN (librt)] (CDISABLE): Likewise.
32467 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32468 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32469 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32470 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32471 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32472 definition.
32473 (PSEUDO_END): Likewise.
32474 [IS_IN (libpthread)] (CENABLE): Likewise.
32475 [IS_IN (libpthread)] (CDISABLE): Likewise.
32476 [IS_IN (libc)] (CENABLE): Likewise.
32477 [IS_IN (libc)] (CENABLE): Likewise.
32478 [IS_IN (librt)] (CDISABLE): Likewise.
32479 [IS_IN (librt)] (CDISABLE): Likewise.
32480 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32481 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32482 definition.
32483 (PSEUDO_END): Likewise.
32484 [IS_IN (libpthread)] (CENABLE): Likewise.
32485 [IS_IN (libpthread)] (CDISABLE): Likewise.
32486 [IS_IN (libc)] (CENABLE): Likewise.
32487 [IS_IN (libc)] (CENABLE): Likewise.
32488 [IS_IN (librt)] (CDISABLE): Likewise.
32489 [IS_IN (librt)] (CDISABLE): Likewise.
32490 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32491
32492 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32493
32494 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32495
32496 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32497
32498 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32499
32500 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32501
32502 [BZ #21982]
32503 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32504 middle and outer with size_t instead of int. Repleace %d and
32505 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32506 "MAX (outer, nchars - 64)" to support unsigned outer and
32507 nchars. Also exit loop when outer == 0.
32508
32509 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32510
32511 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32512 * include/signal.h (__sigsuspend_nocancel): Likewise.
32513 * include/time.h (__nanosleep_nocancel): Likewise.
32514 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32515 * login/utmp_file.c: Include non cancellable syscall header.
32516 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32517 prototype.
32518
32519 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32520
32521 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32522 .byte sequences with AVX512F instructions.
32523 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32524 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32525 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32526 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32527 Likewise.
32528 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32529 Likewise.
32530
32531 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32532 Steve Ellcey <sellcey@cavium.com>
32533
32534 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32535 Use PTR_REG macro in cmp instruction.
32536
32537 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32538
32539 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32540 Change the return type of the ifunc resolver to match the return
32541 type of the target function.
32542
32543 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32544
32545 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32546 (preadv64): Likewise.
32547 (pwrite64(: Likewise.
32548 (pwritev64): Likewise.
32549
32550 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32551 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32552 (LOAD_ARGS_0): Likewise.
32553 (LOAD_ARGS_1): Likewise.
32554 (LOAD_ARGS_2): Likewise.
32555 (LOAD_ARGS_3): Likewise.
32556 (LOAD_ARGS_4): Likewise.
32557 (LOAD_ARGS_5): Likewise.
32558 (LOAD_ARGS_6): Likewise.
32559 (LOAD_REGS_0): Likewise.
32560 (LOAD_REGS_1): Likewise.
32561 (LOAD_REGS_2): Likewise.
32562 (LOAD_REGS_3): Likewise.
32563 (LOAD_REGS_4): Likewise.
32564 (LOAD_REGS_5): Likewise.
32565 (LOAD_REGS_6): Likewise.
32566 (ASM_ARGS_0): Likewise.
32567 (ASM_ARGS_1): Likewise.
32568 (ASM_ARGS_2): Likewise.
32569 (ASM_ARGS_3): Likewise.
32570 (ASM_ARGS_4): Likewise.
32571 (ASM_ARGS_5): Likewise.
32572 (ASM_ARGS_6): Likewise.
32573 (LOAD_ARGS_TYPES_1): Likewise.
32574 (LOAD_ARGS_TYPES_2): Likewise.
32575 (LOAD_ARGS_TYPES_3): Likewise.
32576 (LOAD_ARGS_TYPES_4): Likewise.
32577 (LOAD_ARGS_TYPES_5): Likewise.
32578 (LOAD_ARGS_TYPES_6): Likewise.
32579 (LOAD_REGS_TYPES_1): Likewise.
32580 (LOAD_REGS_TYPES_2): Likewise.
32581 (LOAD_REGS_TYPES_3): Likewise.
32582 (LOAD_REGS_TYPES_4): Likewise.
32583 (LOAD_REGS_TYPES_5): Likewise.
32584 (LOAD_REGS_TYPES_6): Likewise.
32585 (TYPEFY): New define.
32586 (ARGIFY): Likewise.
32587 (internal_syscall0): Likewise.
32588 (internal_syscall1): Likewise.
32589 (internal_syscall2): Likewise.
32590 (internal_syscall3): Likewise.
32591 (internal_syscall4): Likewise.
32592 (internal_syscall5): Likewise.
32593 (internal_syscall6): Likewise.
32594 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32595 (INTERNAL_SYSCALL_NCS): Remove define.
32596 (internal_syscall1): Add define.
32597
32598 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32599
32600 * math/w_remainder_compat.c: Remove duplicate inclusion of
32601 math-svid-compat.h.
32602 * math/w_remainderf_compat.c: Likewise.
32603 * math/w_remainderl_compat.c: Likewise.
32604
32605 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32606
32607 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32608
32609 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32610
32611 [BZ #21684]
32612 * math/tgmath.h (__floating_type): Simplify definitions.
32613 (__real_integer_type): New macro.
32614 (__complex_integer_type): Likewise.
32615 (__expr_is_real): Likewise.
32616 (__tgmath_real_type_sub): Update comment to describe handling of
32617 complex types.
32618 (__tgmath_complex_type_sub): New macro.
32619 (__tgmath_complex_type): Likewise.
32620 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32621 (__TGMATH_CF128): Use __expr_is_real.
32622 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32623 __expr_is_real.
32624 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32625 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32626 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32627 integer types.
32628
32629 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32630
32631 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32632 macro.
32633 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32634 alias.
32635 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32636 Likewise.
32637
32638 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32639 nanosleep_not_cancel with __nanosleep_nocancel.
32640 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32641 (__nanosleep_nocancel): New macro.
32642 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32643 function.
32644 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32645 macro.
32646 (__nanosleep_nocancel): New prototype.
32647
32648 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32649 pause_not_cancel with __pause_nocancel.
32650 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32651 (__pause_nocancel): New macro.
32652 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32653 macro.
32654 (__pause_nocancel): New prototype.
32655 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32656
32657 2017-08-22 Martin Sebor <msebor@redhat.com>
32658
32659 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32660 to return a pointer to the same type as the target function.
32661
32662 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32663
32664 [BZ #18822]
32665 [BZ #21986]
32666 * include/printf.h (__printf_fphex): Add attribute_hidden.
32667 (__guess_grouping): New prototype.
32668 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32669 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32670 libc_hidden_proto and libc_hidden_def.
32671 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32672 (__vstrfmon_l): Remove the third argument passed to
32673 __guess_grouping.
32674
32675 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32676
32677 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32678 definition for issignaling that does not rely on __MATH_TG,
32679 since __MATH_TG uses __builtin_types_compatible_p, which is only
32680 available in C mode.
32681 (CFLAGS-test-math-issignaling.cc): New variable.
32682 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32683 * math/test-math-issignaling.cc: New test for C++ implementation
32684 of type-generic issignaling.
32685 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32686 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32687 options of test-math-issignaling on powerpc64le.
32688
32689 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32690
32691 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32692 building libc.a.
32693 (hidden_proto): Likewise.
32694 (hidden_tls_proto): Likewise.
32695 (__hidden_proto): Likewise.
32696
32697 2017-08-22 Florian Weimer <fweimer@redhat.com>
32698
32699 math: Statically link tests of internal functionality.
32700 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32701 atest-exp2.
32702 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32703 (gmp-objs): Remove assignment.
32704 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32705
32706 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32707
32708 [BZ #21987]
32709 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32710 and copy to ...
32711 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32712 ... here.
32713 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32714 ... and here.
32715
32716 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32717 variable definitions above inclusion of ../Rules.
32718
32719 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32720
32721 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32722 case calling __builtin_unreachable.
32723
32724 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32725
32726 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32727 __waitpid_nocancel.
32728 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32729 (__waitpid_nocancel): New macro.
32730 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32731 macro.
32732 (__waitpid_nocancel): Replace macro with a function.
32733 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32734 function.
32735
32736 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32737 __fcntl_nocancel.
32738 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32739 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32740
32741 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32742 __writev_nocancel_nostatus.
32743 (write_call_graph): Likewise.
32744 (write_bb_counts): Likewise.
32745 * resolv/herror.c (herror): Likewise.
32746 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32747 macro.
32748 (__writev_nocancel_nostatus): New macro.
32749 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32750 Remove macro.
32751 (__writev_nocancel_nostatus): New function.
32752
32753 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32754
32755 Revert:
32756 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32757
32758 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32759 building libc.a.
32760 (hidden_proto): Likewise.
32761 (hidden_tls_proto): Likewise.
32762 (__hidden_proto): Likewise.
32763
32764 [BZ #21973]
32765 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32766 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32768 Likewise.
32769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32770 Likewise.
32771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32772 Likewise.
32773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32774 Likewise.
32775 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32776 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32777 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32778 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32779 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32780 GLIBC_2.0 sqrtl symbol.
32781
32782 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32783 [__USE_MISC] (_LIB_VERSION): Likewise.
32784 [__USE_MISC] (struct exception): Likewise.
32785 [__USE_MISC] (matherr): Likewise.
32786 [__USE_MISC] (DOMAIN): Likewise.
32787 [__USE_MISC] (SING): Likewise.
32788 [__USE_MISC] (OVERFLOW): Likewise.
32789 [__USE_MISC] (UNDERFLOW): Likewise.
32790 [__USE_MISC] (TLOSS): Likewise.
32791 [__USE_MISC] (PLOSS): Likewise.
32792 [__USE_MISC] (HUGE): Likewise.
32793 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32794 * math/math-svid-compat.h: New file.
32795 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32796 and matherrl.
32797 * include/math.h [!_ISOMAC] (__matherr): Remove.
32798 * manual/arith.texi (FP Exceptions): Do not document matherr.
32799 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32800 (tests-internal): New variable.
32801 (install-lib): Do not add libieee.a.
32802 (non-lib.a): Likewise.
32803 (extra-objs): Do not add libieee.a and ieee-math.o.
32804 (CPPFLAGS-s_lib_version.c): Remove variable.
32805 ($(objpfx)libieee.a): Remove rule.
32806 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32807 * math/ieee-math.c: Remove.
32808 * math/libm-test-support.c (matherr): Remove.
32809 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32810 and license notices. Include <math-svid-compat.h> and
32811 <shlib-compat.h>.
32812 (matherr): Undefine as macro. Use compat_symbol_reference.
32813 (_LIB_VERSION): Likewise.
32814 * math/test-matherr-2.c: New file.
32815 * math/test-matherr-3.c: Likewise.
32816 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32817 declaration.
32818 (__kernel_standard_f): Likewise.
32819 (__kernel_standard_l): Likewise.
32820 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32821 <math_private.h>. Include <math-svid-compat.h>.
32822 (_LIB_VERSION): Undefine as macro.
32823 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32824 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32825 [LIBM_SVID_COMPAT], use compat_symbol.
32826 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32827 <math_private.h>. Include <math-svid-compat.h>.
32828 (matherr): Undefine as macro.
32829 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32830 compat_symbol.
32831 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32832 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32833 compat_symbol_reference.
32834 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32835 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32836 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32837 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32838 (MATHERR_D): Remove declaration.
32839 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32840 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32841 [LIBM_BUILD] (pmatherrf): Likewise.
32842 [LIBM_BUILD] (pmatherr): Likewise.
32843 [LIBM_BUILD] (pmatherrl): Likewise.
32844 (DOMAIN): Likewise.
32845 (SING): Likewise.
32846 (OVERFLOW): Likewise.
32847 (UNDERFLOW): Likewise.
32848 (TLOSS): Likewise.
32849 (PLOSS): Likewise.
32850 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32851 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32852 compat_symbol.
32853 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32854 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32855 compat_symbol.
32856 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32857 * math/w_acos_compat.c: Likewise.
32858 * math/w_acosf_compat.c: Likewise.
32859 * math/w_acosh_compat.c: Likewise.
32860 * math/w_acoshf_compat.c: Likewise.
32861 * math/w_acoshl_compat.c: Likewise.
32862 * math/w_acosl_compat.c: Likewise.
32863 * math/w_asin_compat.c: Likewise.
32864 * math/w_asinf_compat.c: Likewise.
32865 * math/w_asinl_compat.c: Likewise.
32866 * math/w_atan2_compat.c: Likewise.
32867 * math/w_atan2f_compat.c: Likewise.
32868 * math/w_atan2l_compat.c: Likewise.
32869 * math/w_atanh_compat.c: Likewise.
32870 * math/w_atanhf_compat.c: Likewise.
32871 * math/w_atanhl_compat.c: Likewise.
32872 * math/w_cosh_compat.c: Likewise.
32873 * math/w_coshf_compat.c: Likewise.
32874 * math/w_coshl_compat.c: Likewise.
32875 * math/w_exp10_compat.c: Likewise.
32876 * math/w_exp10f_compat.c: Likewise.
32877 * math/w_exp10l_compat.c: Likewise.
32878 * math/w_exp2_compat.c: Likewise.
32879 * math/w_exp2f_compat.c: Likewise.
32880 * math/w_exp2l_compat.c: Likewise.
32881 * math/w_fmod_compat.c: Likewise.
32882 * math/w_fmodf_compat.c: Likewise.
32883 * math/w_fmodl_compat.c: Likewise.
32884 * math/w_hypot_compat.c: Likewise.
32885 * math/w_hypotf_compat.c: Likewise.
32886 * math/w_hypotl_compat.c: Likewise.
32887 * math/w_j0_compat.c: Likewise.
32888 * math/w_j0f_compat.c: Likewise.
32889 * math/w_j0l_compat.c: Likewise.
32890 * math/w_j1_compat.c: Likewise.
32891 * math/w_j1f_compat.c: Likewise.
32892 * math/w_j1l_compat.c: Likewise.
32893 * math/w_jn_compat.c: Likewise.
32894 * math/w_jnf_compat.c: Likewise.
32895 * math/w_jnl_compat.c: Likewise.
32896 * math/w_lgamma_main.c: Likewise.
32897 * math/w_lgamma_r_compat.c: Likewise.
32898 * math/w_lgammaf_main.c: Likewise.
32899 * math/w_lgammaf_r_compat.c: Likewise.
32900 * math/w_lgammal_main.c: Likewise.
32901 * math/w_lgammal_r_compat.c: Likewise.
32902 * math/w_log10_compat.c: Likewise.
32903 * math/w_log10f_compat.c: Likewise.
32904 * math/w_log10l_compat.c: Likewise.
32905 * math/w_log2_compat.c: Likewise.
32906 * math/w_log2f_compat.c: Likewise.
32907 * math/w_log2l_compat.c: Likewise.
32908 * math/w_log_compat.c: Likewise.
32909 * math/w_logf_compat.c: Likewise.
32910 * math/w_logl_compat.c: Likewise.
32911 * math/w_pow_compat.c: Likewise.
32912 * math/w_powf_compat.c: Likewise.
32913 * math/w_powl_compat.c: Likewise.
32914 * math/w_remainder_compat.c: Likewise.
32915 * math/w_remainderf_compat.c: Likewise.
32916 * math/w_remainderl_compat.c: Likewise.
32917 * math/w_scalb_compat.c: Likewise.
32918 * math/w_scalbf_compat.c: Likewise.
32919 * math/w_scalbl_compat.c: Likewise.
32920 * math/w_sinh_compat.c: Likewise.
32921 * math/w_sinhf_compat.c: Likewise.
32922 * math/w_sinhl_compat.c: Likewise.
32923 * math/w_sqrt_compat.c: Likewise.
32924 * math/w_sqrtf_compat.c: Likewise.
32925 * math/w_sqrtl_compat.c: Likewise.
32926 * math/w_tgamma_compat.c: Likewise.
32927 * math/w_tgammaf_compat.c: Likewise.
32928 * math/w_tgammal_compat.c: Likewise.
32929 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32930 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32931 * sysdeps/ieee754/k_standard.c: Likewise.
32932 * sysdeps/ieee754/k_standardf.c: Likewise.
32933 * sysdeps/ieee754/k_standardl.c: Likewise.
32934 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32935 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32936 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32937 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32938 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32939 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32940 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32941 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32942 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32944 Likewise.
32945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32946 Likewise.
32947 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32948 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32949 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32950 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32951
32952 2017-08-21 Florian Weimer <fweimer@redhat.com>
32953
32954 [BZ #21864]
32955 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32956 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32957 Move before inclusion of ../Rules.
32958
32959 2017-08-21 Florian Weimer <fweimer@redhat.com>
32960
32961 [BZ #21972]
32962 * assert/assert.h (assert): Use static_cast (bool) for C++.
32963 Use the ternary operator in the warning branch for GNU C.
32964 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32965 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32966 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32967 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32968 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32969
32970 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32971
32972 [BZ #18822]
32973 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32974 (__syscall_clock_gettime): Add attribute_hidden.
32975 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32976 (__start_context): Likewise.
32977
32978 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32979
32980 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32981 building libc.a.
32982 (hidden_proto): Likewise.
32983 (hidden_tls_proto): Likewise.
32984 (__hidden_proto): Likewise.
32985
32986 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32987
32988 * include/libc-symbols.h (attribute_hidden): Enable hidden
32989 visibility in libc.a compiled with PIE.
32990
32991 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32992
32993 [BZ #18822]
32994 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32995 Add attribute_hidden.
32996
32997 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32998
32999 [BZ #21864]
33000 * Makerules (all-nonlib): Add $(others-extras).
33001 * catgets/Makefile (others-extras): New.
33002 * elf/Makefile (others-extras): Likewise.
33003 * nss/Makefile (others-extras): Likewise.
33004
33005 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33006
33007 [BZ #18822]
33008 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33009 * elf/dl-open.c: Include <libc-internal.h>.
33010 (__libc_multiple_libcs): Removed.
33011 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33012 <hp-timing.h>.
33013 * include/libc-internal.h (__libc_multiple_libcs): New.
33014 * misc/sbrk.c: Include <libc-internal.h>.
33015 (__libc_multiple_libcs): Removed.
33016
33017 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33018
33019 [BZ #18822]
33020 * grp/initgroups.c (__nss_group_database): Removed.
33021 (__nss_initgroups_database): Likewise.
33022 * nscd/gai.c (__nss_hosts_database): Likewise.
33023 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33024 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33025 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33026 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33027 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33028 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33029 attribute_hidden.
33030 * nss/nsswitch.c (__nss_database_custom): Define only if
33031 USE_NSCD is defined.
33032 (__nss_configure_lookup): Use __nss_database_custom only if
33033 USE_NSCD is defined.
33034 * nss/nsswitch.h (__nss_database_custom): Declare only if
33035 USE_NSCD is defined. Add attribute_hidden.
33036 (__nss_setent): Add attribute_hidden.
33037 (__nss_endent): Likewise.
33038 (__nss_getent_r): Likewise.
33039 (__nss_getent): Likewise.
33040 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33041
33042 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33043
33044 [BZ #18822]
33045 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33046 libc_hidden_proto and libc_hidden_def.
33047
33048 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33049
33050 [BZ #18822]
33051 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33052 Add libc_hidden_proto.
33053 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33054 Add libc_hidden_def.
33055
33056 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33057
33058 [BZ #21974]
33059 * gmon/Makefile (routines): Remove bb_init_func and
33060 bb_exit_func.
33061 (elide-routines.os): Removed.
33062 * gmon/bb_exit_func.c: Likewise.
33063 * gmon/bb_init_func.c: Likewise.
33064 * include/sys/gmon.h (__bb): Likewise.
33065 (__bb_init_func): Likewise.
33066 (__bb_exit_func): Likewise.
33067 * sysdeps/alpha/bb_init_func.S: Likewise.
33068
33069 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33070
33071 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33072 * include/setjmp.h (____longjmp_chk): Here. Add
33073 attribute_hidden.
33074
33075 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33076
33077 [BZ #18822]
33078 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33079 attribute_hidden.
33080 (__strspn_sse2): Likewise.
33081
33082 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33083
33084 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33085 (close_not_cancel_no_status): Likewise.
33086 (__close_nocancel): New macro.
33087 (__close_nocancel_nostatus): Likewise.
33088 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33089 macro.
33090 (close_not_cancel): Likewise.
33091 (close_not_cancel_no_status): Likewise.
33092 (__close_nocancel): New prototype.
33093 (__close_nocancel_nostatus): New function.
33094 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33095 * catgets/open_catalog.c (__open_catalog): Replace
33096 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33097 * gmon/gmon.c (write_gmon): Likewise.
33098 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33099 * intl/loadmsgcat.c (close): Likewise.
33100 * io/ftw.c (open_dir_stream): Likewise.
33101 (ftw_startup): Likewise.
33102 * libio/fileops.c (_IO_file_open): Likewise.
33103 (_IO_file_close_mmap): Likewise.
33104 (_IO_file_close): Likewise.
33105 * libio/iopopen.c (_IO_dup2): Likewise.
33106 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33107 * locale/loadlocale.c (_nl_load_locale): Likewise.
33108 * login/utmp_file.c (pututline_file): Likewise.
33109 (endutent_file): Likewise.
33110 * misc/daemon.c (daemon): Likewise.
33111 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33112 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33113 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33114 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33115 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33116 * nscd/nscd_helper.c (open_socket): Likewise.
33117 (__nscd_open_socket): Likewise.
33118 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33119 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33120 (__nscd_innetgr): Likewise.
33121 * nss/nss_db/db-open.c (internal_setent): Likewise.
33122 * resolv/res-close.c (__res_iclose): Likewise.
33123 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33124 * sysdeps/posix/closedir.c (__closedir): Likewise.
33125 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33126 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33127 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33128 (opendir_tail): Likewise.
33129 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33130 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33131 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33132 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33133 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33134 (gethostid): Likewise.
33135 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33136 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33137 Likewise.
33138 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33139 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33140 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33141 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33142 Likewise.
33143 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33144 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33145 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33146 Likewise.
33147 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33148 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33149 Likewise.
33150 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33151 Likewise.
33152 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33153 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33154 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33155 __close_nocancel.
33156
33157 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33158 (openat_not_cancel_3): Likewise.
33159 (openat64_not_cancel_3): Likewise).
33160 (openat_not_cancel_3): Likewise).
33161 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33162 macro.
33163 (openat_not_cancel_3): Likewise.
33164 (openat64_not_cancel): Likewise.
33165 (openat64_not_cancel_3): Likewise.
33166 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33167 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33168 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33169 __open{64}_nocancel.
33170 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33171 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33172 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33173
33174 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33175
33176 [BZ #18822]
33177 * include/argz.h (__argz_create_sep): New function prototype.
33178 (__argz_append): Likewise.
33179 (__argz_add): Likewise.
33180 (__argz_add_sep): Likewise.
33181 (__argz_delete): Likewise.
33182 (__argz_insert): Likewise.
33183 (__argz_replace): Likewise.
33184 * string/argz.h (__argz_create_sep): Removed.
33185 (__argz_append): Likewise.
33186 (__argz_add): Likewise.
33187 (__argz_add_sep): Likewise.
33188 (__argz_delete): Likewise.
33189 (__argz_insert): Likewise.
33190 (__argz_replace): Likewise.
33191
33192 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33193
33194 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33195 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33196 (GNU_PROPERTY_STACK_SIZE): Likewie.
33197 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33198 (GNU_PROPERTY_LOPROC): Likewise.
33199 (GNU_PROPERTY_HIPROC): Likewise.
33200 (GNU_PROPERTY_LOUSER): Likewise.
33201 (GNU_PROPERTY_HIUSER): Likewise.
33202 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33203 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33204 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33205 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33206 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33207 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33208 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33209 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33210 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33211 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33212 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33213 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33214 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33215 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33216 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33217 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33218 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33219 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33220 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33221 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33222 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33223 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33224 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33225
33226 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33227
33228 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33229 in C++ mode.
33230
33231 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33232
33233 [BZ #21930]
33234 * math/math.h (isinf): Check if in C or C++ mode before using
33235 __builtin_types_compatible_p, since this is a C mode feature.
33236
33237 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33238
33239 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33240 (__write_nocancel): New macro.
33241 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33242 Rewrite as a function prototype.
33243 (write_not_cancel): Remove macro.
33244 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33245 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33246 (write_gmon): Likewise.
33247 * libio/fileops.c (_IO_new_file_write): Likewise.
33248 * login/utmp_file.c (pututline_file): Likewise.
33249 (updwtmp_file): Likewise.
33250 * stdio-common/psiginfo.c (psiginfo): Likewise.
33251 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33252 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33253 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33254 Likewise.
33255 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33256 Likewise.
33257
33258 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33259 (__read_nocancel): New macro.
33260 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33261 __read_nocancel.
33262 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33263 macro.
33264 (__read_nocancel): New prototype.
33265 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33266 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33267 with __read_nocancel.
33268 * intl/loadmsgcat.c (read): Likewise.
33269 * libio/fileops.c (_IO_file_read): Likewise.
33270 * locale/loadlocale.c (_nl_load_locale): Likewise.
33271 * login/utmp_file.c (getutent_r_file): Likewise.
33272 (internal_getut_r): Likewise.
33273 (getutline_r_file): Likewise.
33274 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33275 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33276 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33277 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33278 Likewise.
33279 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33280 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33281 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33282 Likewise.
33283 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33284 Likewise.
33285 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33286 Likewise.
33287 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33288 Likewise.
33289 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33290
33291 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33292
33293 [BZ #21966]
33294 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33295 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33296 usable.
33297
33298 2017-08-17 DJ Delorie <dj@redhat.com>
33299
33300 * bug17079.c: Update to new test harness.
33301 * test-digits-dots.c: Likewise.
33302 * test-netdb.c: Likewise.
33303 * tst-field.c: Likewise.
33304 * tst-nss-getpwent.c: Likewise.
33305 * tst-nss-static.c: Likewise.
33306 * tst-nss-test1.c: Likewise.
33307 * tst-nss-test2.c: Likewise.
33308 * tst-nss-test3.c: Likewise.
33309 * tst-nss-test4.c: Likewise.
33310 * tst-nss-test5.c: Likewise.
33311
33312 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33313
33314 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33315 (open_not_cancel_2): Likewise.
33316 (open_nocancel): New macro.
33317 (open64_nocancel): Likewise.
33318 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33319 (open_not_cancel_2): Likewise.
33320 (__open_nocancel): New prototype.
33321 (__open64_nocancel): Likewise.
33322 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33323 __open_nocancel.
33324 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33325 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33326 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33327 with __open_nocancel.
33328 * csu/check_fds.c (check_one_fd): Likewise.
33329 * gmon/gmon.c (write_gmon): Likewise.
33330 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33331 * intl/loadmsgcat.c (open): Likewise.
33332 * libio/fileops.c (_IO_file_open): Likewise.
33333 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33334 * locale/loadlocale.c (_nl_load_locale): Likewise.
33335 * login/utmp_file.c (setutent_file): Likewise.
33336 * misc/daemon.c (daemon): Likewise.
33337 * nss/nss_db/db-open.c (internal_setent): Likewise.
33338 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33339 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33340 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33341 (__opendir): Likewise.
33342 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33343 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33344 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33345 (gethostid): Likewise.
33346 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33347 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33348 Likewise.
33349 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33350 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33351 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33352 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33353 Likewise.
33354 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33355 Likewise.
33356 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33357 Likewise.
33358 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33359 Likewise.
33360 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33361 Likewise.
33362 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33363 Likewise.
33364 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33365 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33366
33367 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33368
33369 * benchtests/bench-skeleton.c (main): Add support for
33370 latency benchmarking.
33371 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33372
33373 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33374
33375 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33376 the startup object.
33377
33378 2017-08-17 Florian Weimer <fweimer@redhat.com>
33379
33380 * include/sys/socket.h (__opensock): Remove internal_function.
33381 * socket/opensock.c (__opensock): Likewise.
33382 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33383
33384 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33385
33386 [BZ #21944]
33387 * signal/bits/types/__sigval_t.h: New file.
33388 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33389 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33390 and define sigval_t using __sigval_t.
33391 * include/bits/types/__sigval_t.h: New file.
33392 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33393 instead of <bits/types/__sigval_t.h>.
33394 (struct sigevent): Use __sigval_t instead of sigval_t.
33395 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33396 instead of <bits/types/__sigval_t.h>.
33397 (siginfo_t): Use __sigval_t instead of sigval_t.
33398 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33399 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33400 (struct sigevent): Use __sigval_t instead of sigval_t.
33401 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33402 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33403 (siginfo_t): Use __sigval_t instead of sigval_t.
33404 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33405
33406 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33407
33408 * NEWS: Remove "[Add new features here]" for 2.27.
33409
33410 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33411
33412 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33413 libc.so.
33414
33415 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33416
33417 * NEWS: Mention x86-64 FMA optimization.
33418
33419 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33420
33421 [BZ #21912]
33422 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33423 Add e_expf-fma.
33424 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33425 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33426 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33427
33428 2017-08-16 Andreas Schwab <schwab@suse.de>
33429
33430 [BZ #16750]
33431 CVE-2009-5064
33432 * elf/ldd.bash.in: Never run file directly.
33433
33434 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33435
33436 [BZ #21955]
33437 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33438 (L(SP_INF_0)): Likewise.
33439
33440 2017-08-15 Florian Weimer <fweimer@redhat.com>
33441
33442 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33443 run-built-tests.
33444
33445 2017-08-15 Florian Weimer <fweimer@redhat.com>
33446
33447 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33448 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33449 BROKEN_THREAD_SIGNALS code.
33450 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33451 request_list): Remove caller_pid member used for
33452 BROKEN_THREAD_SIGNALS.
33453 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33454 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33455 Remove BROKEN_THREAD_SIGNALS support.
33456 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33457 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33458
33459 2017-08-15 Florian Weimer <fweimer@redhat.com>
33460
33461 * gmon/Makefile (tests): Add tst-gmon.
33462 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33463 Set.
33464 (tests-special): Add tst-gmon-prof.out.
33465 (tst-gmon.out): Depend on clean-tst-gmon-data.
33466 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33467 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33468 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33469 startup object.
33470 * aclocal.m4 (GPROF): Set and substitute.
33471 * config.amke.in (GPROF): Set.
33472 * configure: Regenerate.
33473
33474 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33475
33476 * elf/elf.h A (NT_PPC_TAR): New macro.
33477 (NT_PPC_PPR): Likewise.
33478 (NT_PPC_DSCR): Likewise.
33479 (NT_PPC_EBB): Likewise.
33480 (NT_PPC_PMU): Likewise.
33481 (NT_PPC_TM_CGPR): Likewise.
33482 (NT_PPC_TM_CFPR): Likewise.
33483 (NT_PPC_TM_CVMX): Likewise.
33484 (NT_PPC_TM_CVSX): Likewise.
33485 (NT_PPC_TM_SPR): Likewise.
33486 (NT_PPC_TM_CTAR): Likewise.
33487 (NT_PPC_TM_CPPR): Likewise.
33488 (NT_PPC_TM_CDSCR): Likewise.
33489
33490 2017-08-15 Florian Weimer <fweimer@redhat.com>
33491
33492 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33493 regparm (2) instead of internal_function.
33494 (_MCOUNT_DECL): Adjust.
33495
33496 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33497
33498 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33499 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33500
33501 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33502
33503 * conform/data/sys/wait.h-data (si_value): Do not expect for
33504 XPG42.
33505
33506 2017-08-14 Florian Weimer <fweimer@redhat.com>
33507
33508 [BZ #21962]
33509 NSS: Create stubs for accidentally exported lookup functions.
33510 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33511 Remove declaration.
33512 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33513 (ether_hostton): Call __nss_ethers_lookup2 instead.
33514 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33515 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33516 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33517 (setup): Call __nss_netgroup_lookup2 instead.
33518 * nss/Makefile (routines): Add compat-lookup.
33519 * nss/Versions (GLIBC_2.27): Add symbol version.
33520 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33521 (DB_COMPAT_FCT): Remove.
33522 * nss/compat-lookup.c: New file.
33523 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33524 from databases.def.
33525 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33526 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33527 (netname2user): Call __nss_publickey_lookup2 instead.
33528 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33529 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33530 instead.
33531
33532 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33533 Sergei Trofimovich <slyfox@inbox.ru>
33534
33535 [BZ #21908]
33536 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33537 Rename to MMAP2_PAGE_UNIT.
33538 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33539 __OFF_T_MATCHES_OFF64_T is not defined.
33540 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33541 uint64_t.
33542 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33543 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33544
33545 2017-08-14 Florian Weimer <fweimer@redhat.com>
33546
33547 i386: Do not set internal_function.
33548 * config.h.in (USE_REGPARMS, internal_function): Remove.
33549 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33550 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33551
33552 2017-08-14 Florian Weimer <fweimer@redhat.com>
33553
33554 * elf/dl-init.c (_dl_init): Remove internal_function.
33555 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33556 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33557
33558 2017-08-14 Florian Weimer <fweimer@redhat.com>
33559
33560 * elf/rtld.c (_dl_start): Remove internal_function.
33561 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33562 _dl_start.
33563
33564 2017-08-14 Florian Weimer <fweimer@redhat.com>
33565
33566 * elf/dl-fini.c (_dl_fini): Remove internal_function
33567 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33568
33569 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33570
33571 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33572 (bit_cpu_SHSTK): Likewise.
33573 (index_cpu_IBT): Likewise.
33574 (index_cpu_SHSTK): Likewise.
33575 (reg_IBT): Likewise.
33576 (reg_SHSTK): Likewise.
33577 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33578 Handle index_cpu_IBT and index_cpu_SHSTK.
33579
33580 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33581
33582 [BZ #19982]
33583 * po/fr.po: Fix spelling mistake.
33584
33585 2017-08-13 Florian Weimer <fweimer@redhat.com>
33586
33587 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33588 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33589 (_dl_catch_error, _dl_receive_error): Likewise.
33590 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33591 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33592 (_dl_deallocate_tls): Likewise.
33593 * include/dlfcn.h (_dl_addr): Likewise.
33594 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33595 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33596 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33597 Likewise.
33598
33599 2017-08-13 Florian Weimer <fweimer@redhat.com>
33600
33601 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33602 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33603 internal_function.
33604 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33605
33606 2017-08-13 Florian Weimer <fweimer@redhat.com>
33607
33608 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33609 internal_function.
33610 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33611 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33612 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33613 internal_function from _dl_make_stack_executable_hook member.
33614 (_dl_make_stack_executable): Remove internal_function.
33615 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33616 Likewise.
33617 * sysdeps/unix/sysv/linux/dl-execstack.c
33618 (_dl_make_stack_executable): Likewise.
33619
33620 2017-08-13 Florian Weimer <fweimer@redhat.com>
33621
33622 * sysdeps/unix/sysv/linux/netlinkaccess.h
33623 (__netlink_assert_response): Remove internal_function.
33624 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33625 (__netlink_assert_response): Likewise.
33626
33627 2017-08-13 Florian Weimer <fweimer@redhat.com>
33628
33629 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33630 internal_function.
33631 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33632
33633 2017-08-13 Florian Weimer <fweimer@redhat.com>
33634
33635 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33636 internal_function.
33637 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33638 * inet/netgroup.h (__internal_setnetgrent)
33639 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33640 * inet/getnetgrent_r.c (__internal_setnetgrent)
33641 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33642 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33643 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33644 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33645 * nss/nsswitch.h (db_lookup_function): Likewise.
33646
33647 2017-08-13 Florian Weimer <fweimer@redhat.com>
33648
33649 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33650 Remove internal_function.
33651 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33652 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33653 message argument on the stack.
33654 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33655 Likeweise.
33656
33657 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33658
33659 Adapt test case data to the changes in the thousands
33660 separators.
33661
33662 [BZ #20756]
33663 * localedata/tst-langinfo.sh: Adapt test case data.
33664 * stdlib/tst-strfmon_l.c: Likewise.
33665 * stdlib/tst-strtod4.c: Likewise.
33666 * stdlib/tst-strtod5i.c: Likewise.
33667
33668 2017-08-11 Florian Weimer <fweimer@redhat.com>
33669
33670 [BZ #21242]
33671 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33672 Suppress pedantic warning resulting from statement expression.
33673 (__ASSERT_FUNCTION): Add missing __extension__.
33674
33675 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33676
33677 * benchtests/bench-memmove-large.c: Print output in JSON
33678 format.
33679 * benchtests/bench-memmove.c: Likewise.
33680
33681 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33682 * benchtests/bench-memchr.c (do_one_test): Likewise.
33683 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33684 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33685 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33686 * benchtests/bench-memmove.c (do_one_test): Likewise.
33687 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33688 * benchtests/bench-memset.c (do_one_test): Likewise.
33689 * benchtests/bench-string.h (test_init): Remove memsets.
33690
33691 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33692
33693 * manual/lang.texi
33694 (Computing the Width of an Integer Data Type): Rename section to
33695 "Width of an Integer Type". Remove inaccurate statement regarding
33696 lack of C language facilities for determining width of integer
33697 types, and reorder content to improve flow and context of
33698 discussion.
33699
33700 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33701
33702 * lang.texi (va_copy): Change standard from ISO to C99.
33703 (__va_copy): Add standard and header annotation.
33704 Update description for clarity of origins and current use.
33705
33706 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33707
33708 [BZ #21941]
33709 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33710 xssqrtqp requires operands to be in Vector Registers
33711 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33712 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33713 (__ieee754_sqrtf128): Likewise.
33714
33715 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33716
33717 * sysdeps/aarch64/memcmp.S (memcmp):
33718 Rewrite of optimized memcmp.
33719
33720 2017-08-10 Florian Weimer <fweimer@redhat.com>
33721
33722 Introduce ld.so exceptions.
33723 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33724 (_dl_exception_create, _dl_exception_create_format)
33725 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33726 (_dl_catch_exception): Declare.
33727 (_dl_catch_error): Update comment.
33728 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33729 errstring, malloced members with exception member.
33730 (_dl_out_of_memory): Remove.
33731 (fatal_error): New function, extracted from _dl_signal_error.
33732 (_dl_signal_exception, _dl_signal_cexception): New functions.
33733 (_dl_signal_error): Call _dl_exception_create to allocate an
33734 exception object.
33735 (_dl_catch_exception): New function, based on _dl_catch_error.
33736 (_dl_catch_error): Implement using _dl_catch_exception.
33737 * elf/dl-exception.c: New file.
33738 * elf/Makefile (dl-routines): Add dl-exception.
33739 (elide-routines.os): Likewise.
33740 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33741 _dl_exception_create_format, _dl_exception_free.
33742 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33743 _dl_signal_exception.
33744 * elf/dl-lookup.c (make_string): Remove.
33745 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33746 _dl_signal_cexception, _dl_exception_free.
33747 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33748 _dl_signal_exception.
33749 * elf/dl-sym.c (do_sym): Likewise.
33750 * elf/dl-version.c (make_string): Remove.
33751 (match_symbol): Use _dl_exception_create_format,
33752 _dl_signal_cexception, _dl_exception_free.
33753 (_dl_check_map_versions): Likewise.
33754 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33755 _dl_catch_exception.
33756 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33757 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33758 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33759 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33760 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33761 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33762 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33763 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33764 Likewise.
33765 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33767 (ld.so): Likewise.
33768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33769 (ld.so): Likewise.
33770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33771 Likewise.
33772 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33773 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33774 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33775 Likewise.
33776 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33777 Likewise.
33778 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33779
33780 2017-08-10 Florian Weimer <fweimer@redhat.com>
33781
33782 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33783 attribute_hidden, internal_function.
33784 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33785 internal_function.
33786
33787 2017-08-10 Florian Weimer <fweimer@redhat.com>
33788
33789 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33790 function which calls __builtin_unreachable.
33791
33792 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33793
33794 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33795 Indian monetary formatting
33796 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33797 test cases.
33798
33799 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33800
33801 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33802 Fix typo in comment.
33803
33804 [BZ #21928]
33805 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33806 PTRACE_SEIZE_DEVEL): Remove.
33807 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33808 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33809 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33810 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33811 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33812
33813 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33814
33815 * posix/bits/types.h (__qaddr_t): Remove.
33816
33817 [BZ #21457]
33818 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33819 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33820 __glibc_reserved1.
33821 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33822 (ucontext_t): Use __ctx with uc_flags.
33823 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33824 (__ctxt): Likewise.
33825 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33826 __glibc_reserved1.
33827 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33828 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33829 __glibc_reserved1.
33830 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33831 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33832 __glibc_reserved1.
33833 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33834 macro.
33835 (ucontext_t): Use __ctx with uc_flags.
33836 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33837 (ucontext_t): Use __ctx with uc_flags.
33838 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33839 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33840 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33841 (ucontext_t): Use __ctx with uc_flags.
33842 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33843 undefine further down.
33844 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33845 __glibc_reserved1.
33846 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33847 undefine further down.
33848 (ucontext_t): Use __ctx with uc_flags.
33849 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33850 undefine further down.
33851 (ucontext_t): Use __ctx with uc_flags.
33852 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33853 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33854 Rename uc_pad to __glibc_reserved1.
33855 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33856 undefine further down.
33857 (ucontext_t): Use __ctx with uc_flags.
33858 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33859 further down.
33860 (ucontext_t): Use __ctx with uc_flags.
33861 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33862 __ctx with uc_flags.
33863 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33864 (ucontext_t): Use __ctx with uc_flags.
33865 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33866 __ctx with uc_flags.
33867
33868 2017-08-09 Florian Weimer <fweimer@redhat.com>
33869
33870 [BZ #21932]
33871 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33872 before early return.
33873
33874 2017-08-09 Andreas Schwab <schwab@suse.de>
33875
33876 [BZ #21041]
33877 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33878 renamed alias.
33879
33880 [BZ #21041]
33881 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33882 tst-compat-forwarder.
33883 (modules-names): Add tst-compat-forwarder-mod.
33884 ($(objpfx)tst-compat-forwarder): Depend on
33885 $(objpfx)tst-compat-forwarder-mod.so.
33886 * nptl/tst-compat-forwarder.c: New file.
33887 * nptl/tst-compat-forwarder-mod.c: New file.
33888
33889 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33890
33891 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33892 comments.
33893
33894 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33895 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33896 memcpy_falkor.
33897 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33898 Bump.
33899 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33900 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33901 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33902 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33903 Add falkor.
33904 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33905 New macro.
33906
33907 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33908
33909 [BZ #759]
33910 * manual/setjmp.texi (getcontex): Document uc_stack value
33911 compatibility differences.
33912
33913 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33914
33915 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33916 (old_malloc_hook): Likewise.
33917 (old_memalign_hook): Likewise.
33918 (old_realloc_hook): Likewise.
33919 (struct hdr): Likewise.
33920 (flood): Likewise.
33921 (freehook): Likewise.
33922 (mallochook): Likewise.
33923 (memalignhook): Likewise.
33924 (reallochook): Likewise.
33925 (mprobe): Likewise.
33926 * malloc/mtrace.c (mallwatch): Likewise.
33927 (tr_old_free_hook): Likewise.
33928 (tr_old_malloc_hook): Likewise.
33929 (tr_old_realloc_hook): Likewise.
33930 (tr_old_memalign_hook): Likewise.
33931 (tr_where): Likewise.
33932 (lock_and_info): Likewise.
33933 (tr_freehook): Likewise.
33934 (tr_mallochook): Likewise.
33935 (tr_reallochook): Likewise.
33936 (tr_memalignhook): Likewise.
33937 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33938 * misc/mmap.c (__mmap): Likewise.
33939 * misc/mmap64.c (__mmap64): Likewise.
33940 * misc/mprotect.c (__mprotect): Likewise.
33941 * misc/msync.c (msync): Likewise.
33942 * misc/munmap.c (__munmap): Likewise.
33943 * posix/posix_madvise.c (posix_madvise): Likewise.
33944 * socket/send.c (__send): Likewise.
33945 * socket/sendto.c (__sendto): Likewise.
33946 * socket/setsockopt.c (__setsockopt): Likewise.
33947 * string/memcmp.c (__ptr_t): Remove macro.
33948 (MEMCMP): Use void * instead of ptr_t.
33949 * string/memrchr.c (__ptr_t): Remove macro.
33950 (__memrchr): Use void * instead of ptr_t.
33951 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33952 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33953 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33954 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33955 * sysdeps/mach/msync.c (msync): Likewise.
33956 * sysdeps/mach/munmap.c (__munmap): Likewise.
33957 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33958 Likewise.
33959 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33960 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33961 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33962 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33963 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33964 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33965 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33966 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33967 Likewise.
33968 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33969 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33970 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33971 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33972 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33973 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33974 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33975 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33976 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33977 Likewise.
33978 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33979 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33980 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33981 (MEMCMP): Use void * instead of ptr_t.
33982 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33983 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33984
33985 2017-08-08 Florian Weimer <fweimer@redhat.com>
33986
33987 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33988 return statement.
33989
33990 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33991
33992 [BZ #21913]
33993 * csu/libc-tls.c: Include <startup.h> first.
33994 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33995 * elf/dl-tunables.c: Include <startup.h> first.
33996 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33997 * sysdeps/generic/startup.h: New file.
33998 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33999 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34000 (I386_USE_SYSENTER): New. Defined to 0.
34001
34002 2017-08-08 Andreas Schwab <schwab@suse.de>
34003
34004 [BZ #21041]
34005 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34006 * nptl/pt-system.c (system): Likewise.
34007
34008 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34009
34010 [BZ #21780]
34011 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34012 EOPNOTSUPP.
34013 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34014 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34015 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34016 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34017 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34018 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34019 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34020
34021 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34022
34023 [BZ #21899]
34024 * bits/sigaction.h (struct sigaction): Define sa_handler and
34025 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34026 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34027 [__USE_XOPEN_EXTENDED].
34028 (SA_RESTART): Likewise.
34029 (SA_NODEFER): Likewise.
34030 (SA_RESETHAND): Likewise.
34031 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34032 (struct sigaction): Define sa_handler and sa_sigaction using union
34033 also for [__USE_XOPEN_EXTENDED].
34034 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34035 [__USE_XOPEN_EXTENDED].
34036 (SA_RESTART): Likewise.
34037 (SA_NODEFER): Likewise.
34038 (SA_RESETHAND): Likewise.
34039 * sysdeps/unix/sysv/linux/bits/sigaction.h
34040 (struct sigaction): Define sa_handler and sa_sigaction using union
34041 also for [__USE_XOPEN_EXTENDED].
34042 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34043 [__USE_XOPEN_EXTENDED].
34044 (SA_RESTART): Likewise.
34045 (SA_NODEFER): Likewise.
34046 (SA_RESETHAND): Likewise.
34047 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34048 (struct sigaction): Define sa_handler and sa_sigaction using union
34049 also for [__USE_XOPEN_EXTENDED].
34050 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34051 [__USE_XOPEN_EXTENDED].
34052 (SA_RESTART): Likewise.
34053 (SA_NODEFER): Likewise.
34054 (SA_RESETHAND): Likewise.
34055 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34056 (struct sigaction): Define sa_handler and sa_sigaction using union
34057 also for [__USE_XOPEN_EXTENDED].
34058 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34059 [__USE_XOPEN_EXTENDED].
34060 (SA_RESTART): Likewise.
34061 (SA_NODEFER): Likewise.
34062 (SA_RESETHAND): Likewise.
34063 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34064 (struct sigaction): Define sa_handler and sa_sigaction using union
34065 also for [__USE_XOPEN_EXTENDED].
34066 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34067 [__USE_XOPEN_EXTENDED].
34068 (SA_RESTART): Likewise.
34069 (SA_NODEFER): Likewise.
34070 (SA_RESETHAND): Likewise.
34071 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34072 (struct sigaction): Define sa_handler and sa_sigaction using union
34073 also for [__USE_XOPEN_EXTENDED].
34074 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34075 [__USE_XOPEN_EXTENDED].
34076 (SA_RESTART): Likewise.
34077 (SA_NODEFER): Likewise.
34078 (SA_RESETHAND): Likewise.
34079 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34080 (struct sigaction): Define sa_handler and sa_sigaction using union
34081 also for [__USE_XOPEN_EXTENDED].
34082 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34083 [__USE_XOPEN_EXTENDED].
34084 (SA_RESTART): Likewise.
34085 (SA_NODEFER): Likewise. Define directly rather than as alias.
34086 (SA_RESETHAND): Likewise.
34087 (SA_INTERRUPT): Define only for [__USE_MISC].
34088 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34089 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34090 [__USE_MISC].
34091 (SA_STACK): Define only for [__USE_MISC].
34092 * sysdeps/unix/sysv/linux/tile/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 (SA_NOPTRACE): Define only for [__USE_MISC].
34101
34102 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34103 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34104 (struct catalog_info): Likewise.
34105 * inet/htontest.c (lo): Likewise.
34106 (foo): Likewise.
34107 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34108 * inet/inet_net.c (inet_network): Likewise.
34109 * inet/inet_netof.c (inet_netof): Likewise.
34110 * inet/rcmd.c (__ivaliduser): Likewise.
34111 (iruserok): Likewise.
34112 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34113 * locale/programs/locale-spec.c (locale_special): Likewise.
34114 * nis/nis_findserv.c (struct findserv_req): Likewise.
34115 (__nis_findfastest_with_timeout): Likewise.
34116 * nss/test-netdb.c (test_network): Likewise.
34117 * resolv/inet_neta.c (inet_neta): Likewise.
34118 * resolv/ns_date.c (ns_datetosecs): Likewise.
34119 (SECS_PER_DAY): Likewise.
34120 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34121 Likewise.
34122 * resolv/res_comp.c (__putlong): Likewise.
34123 (__putshort): Likewise.
34124 (_getlong): Likewise.
34125 (_getshort): Likewise.
34126 * resolv/res_debug.c (p_time): Likewise.
34127 (precsize_ntoa): Likewise.
34128 (precsize_aton): Likewise.
34129 (latlon2ul): Likewise.
34130 (loc_aton): Likewise.
34131 (loc_ntoa): Likewise.
34132 * resolv/res_hconf.c (struct netaddr): Likewise.
34133 (_res_hconf_reorder_addrs): Likewise.
34134 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34135 (clnttcp_control): Likewise.
34136 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34137 (clntudp_control): Likewise.
34138 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34139 (clntunix_control): Likewise.
34140 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34141 * sunrpc/rpc/auth.h (union des_block): Likewise.
34142 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34143 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34144 (xdrrec_create): Likewise.
34145 (xdrrec_endofrecord): Likewise.
34146 (flush_out): Likewise.
34147 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34148 (xdrstdio_putlong): Likewise.
34149 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34150 Likewise.
34151
34152 * misc/sys/cdefs.h (__long_double_t): Remove.
34153 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34154 instead of __long_double_t,
34155 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34156
34157 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34158
34159 * benchtests/scripts/compare_strings.py: Avoid display error when
34160 running on a text terminal.
34161
34162 * benchtests/scripts/compare_strings.py (main): Add an
34163 optional -base option.
34164 (process_results): New argument base_func.
34165
34166 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34167 hardcoding memcpy.
34168 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34169 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34170
34171 2017-08-07 Andreas Schwab <schwab@suse.de>
34172
34173 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34174 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34175 * intl/Makefile ($(objpfx)tst-gettext.out)
34176 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34177 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34178 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34179 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34180 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34181 * posix/Makefile ($(objpfx)globtest.out)
34182 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34183 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34184 ($(objpfx)tst-printf.out): Likewise.
34185 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34186 ($(objpfx)tst-setcontext3.out): Likewise.
34187
34188 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34189
34190 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34191 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34192 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34193 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34194 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34195 and mptan-fma.
34196 (CFLAGS-doasin-fma.c): New.
34197 (CFLAGS-dosincos-fma.c): Likewise.
34198 (CFLAGS-e_asin-fma.c): Likewise.
34199 (CFLAGS-e_atan2-fma.c): Likewise.
34200 (CFLAGS-e_exp-fma.c): Likewise.
34201 (CFLAGS-e_log-fma.c): Likewise.
34202 (CFLAGS-e_pow-fma.c): Likewise.
34203 (CFLAGS-halfulp-fma.c): Likewise.
34204 (CFLAGS-mpa-fma.c): Likewise.
34205 (CFLAGS-mpatan-fma.c): Likewise.
34206 (CFLAGS-mpatan2-fma.c): Likewise.
34207 (CFLAGS-mpexp-fma.c): Likewise.
34208 (CFLAGS-mplog-fma.c): Likewise.
34209 (CFLAGS-mpsqrt-fma.c): Likewise.
34210 (CFLAGS-mptan-fma.c): Likewise.
34211 (CFLAGS-s_atan-fma.c): Likewise.
34212 (CFLAGS-sincos32-fma.c): Likewise.
34213 (CFLAGS-slowexp-fma.c): Likewise.
34214 (CFLAGS-slowpow-fma.c): Likewise.
34215 (CFLAGS-s_sin-fma.c): Likewise.
34216 (CFLAGS-s_tan-fma.c): Likewise.
34217 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34218 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34219 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34220 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34221 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34222 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34223 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34224 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34225 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34226 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34227 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34228 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34229 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34230 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34231 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34232 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34233 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34234 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34235 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34236 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34237 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34238 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34239 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34240 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34241 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34242 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34243 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34244 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34245 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34246 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34247 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34248
34249 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34250
34251 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34252 (min_of_type_f): New macro.
34253 (min_of_type_): Likewise.
34254 (min_of_type_l): Likewise.
34255 (min_of_type_f128): Likewise.
34256 (min_of_type): Define using __MATH_TG and taking an expression
34257 argument.
34258 (math_check_force_underflow): Pass expression instead of type to
34259 min_of_type.
34260 (math_check_force_underflow_nonneg): Likewise.
34261
34262 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34263
34264 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34265 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34266 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34267
34268 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34269
34270 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34271 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34272 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34273 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34274 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34275 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34276 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34277 memmove_chk-nonshared and memset_chk-nonshared
34278 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34279 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34280 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34281 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34282 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34283 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34284 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34285 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34286 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34287 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34288 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34289 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34290 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34291 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34292 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34293 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34294 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34295 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34296 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34297 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34298 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34299 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34300 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34301 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34302 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34303 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34304 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34305 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34306 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34307 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34308 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34309 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34310 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34311 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34312 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34313 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34314 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34315 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34316 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34317 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34318 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34319 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34320 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34321 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34322 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34323 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34324 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34325 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34326 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34327 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34328 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34329 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34330 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34331 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34332 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34333 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34334 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34335 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34336 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34337 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34338 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34339 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34340 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34341 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34342 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34343 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34344 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34345 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34346 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34347 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34348 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34349 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34350 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34351 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34352 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34353 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34354 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34355 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34356 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34357 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34358 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34359 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34360 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34361 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34362 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34363 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34364 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34365 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34366 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34367 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34368 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34369 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34370 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34371 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34372 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34373 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34374 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34375 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34376 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34377 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34378 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34379 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34380 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34381 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34382 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34383 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34384 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34385 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34386
34387 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34388
34389 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34390 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34391 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34392 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34393 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34394 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34395 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34396 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34397 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34398 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34399 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34400 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34401 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34402 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34403 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34404 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34405 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34406 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34407 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34408 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34409 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34410 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34411 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34412 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34413 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34414 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34415 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34416 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34417 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34418 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34419 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34420 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34421 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34422 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34423 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34424 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34425 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34426 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34427 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34428 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34429 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34430 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34431 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34432 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34433 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34434 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34435 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34436 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34437 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34438 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34439 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34440 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34441 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34442 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34443 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34444 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34445 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34446 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34447 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34448 ...
34449 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34450 Don't include <sysdep.h> nor <init-arch.h>.
34451 (_ZGVbN2v_cos): Removed.
34452 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34453 ...
34454 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34455 Don't include <sysdep.h> nor <init-arch.h>.
34456 (_ZGVdN4v_cos): Removed.
34457 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34458 ...
34459 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34460 Don't include <sysdep.h> nor <init-arch.h>.
34461 (_ZGVeN8v_cos): Removed.
34462 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34463 ...
34464 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34465 Don't include <sysdep.h> nor <init-arch.h>.
34466 (_ZGVbN2v_exp): Removed.
34467 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34468 ...
34469 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34470 Don't include <sysdep.h> nor <init-arch.h>.
34471 (_ZGVdN4v_exp): Removed.
34472 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34473 ...
34474 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34475 Don't include <sysdep.h> nor <init-arch.h>.
34476 (_ZGVeN8v_exp): Removed.
34477 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34478 ...
34479 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34480 Don't include <sysdep.h> nor <init-arch.h>.
34481 (_ZGVbN2v_log): Removed.
34482 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34483 ...
34484 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34485 Don't include <sysdep.h> nor <init-arch.h>.
34486 (_ZGVdN4v_log): Removed.
34487 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34488 ...
34489 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34490 Don't include <sysdep.h> nor <init-arch.h>.
34491 (_ZGVeN8v_log): Removed.
34492 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34493 ...
34494 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34495 Don't include <sysdep.h> nor <init-arch.h>.
34496 (_ZGVbN2vv_pow): Removed.
34497 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34498 ...
34499 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34500 Don't include <sysdep.h> nor <init-arch.h>.
34501 (_ZGVdN4vv_pow): Removed.
34502 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34503 ...
34504 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34505 Don't include <sysdep.h> nor <init-arch.h>.
34506 (_ZGVeN8vv_pow): Removed.
34507 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34508 ...
34509 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34510 Don't include <sysdep.h> nor <init-arch.h>.
34511 (_ZGVbN2v_sin): Removed.
34512 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34513 ...
34514 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34515 Don't include <sysdep.h> nor <init-arch.h>.
34516 (_ZGVbN4v_sin): Removed.
34517 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34518 ...
34519 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34520 Don't include <sysdep.h> nor <init-arch.h>.
34521 (_ZGVbN8v_sin): Removed.
34522 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34523 ...
34524 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34525 Don't include <sysdep.h> nor <init-arch.h>.
34526 (_ZGVbN2vvv_sincos): Removed.
34527 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34528 ...
34529 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34530 Don't include <sysdep.h> nor <init-arch.h>.
34531 (_ZGVdN4vvv_sincos): Removed.
34532 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34533 ...
34534 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34535 Don't include <sysdep.h> nor <init-arch.h>.
34536 (_ZGVeN8vvv_sincos): Removed.
34537 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34538 ...
34539 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34540 Don't include <sysdep.h> nor <init-arch.h>.
34541 (_ZGVeN16v_cosf): Removed.
34542 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34543 ...
34544 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34545 Don't include <sysdep.h> nor <init-arch.h>.
34546 (_ZGVbN4v_cosf): Removed.
34547 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34548 ...
34549 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34550 Don't include <sysdep.h> nor <init-arch.h>.
34551 (_ZGVdN8v_cosf): Removed.
34552 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34553 ...
34554 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34555 Don't include <sysdep.h> nor <init-arch.h>.
34556 (_ZGVeN16v_expf): Removed.
34557 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34558 ...
34559 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34560 Don't include <sysdep.h> nor <init-arch.h>.
34561 (_ZGVbN4v_expf): Removed.
34562 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34563 ...
34564 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34565 Don't include <sysdep.h> nor <init-arch.h>.
34566 (_ZGVdN8v_expf): Removed.
34567 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34568 ...
34569 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34570 Don't include <sysdep.h> nor <init-arch.h>.
34571 (_ZGVeN16v_logf): Removed.
34572 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34573 ...
34574 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34575 Don't include <sysdep.h> nor <init-arch.h>.
34576 (_ZGVbN4v_logf): Removed.
34577 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34578 ...
34579 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34580 Don't include <sysdep.h> nor <init-arch.h>.
34581 (_ZGVdN8v_logf): Removed.
34582 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34583 ...
34584 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34585 Don't include <sysdep.h> nor <init-arch.h>.
34586 (_ZGVeN16vv_powf): Removed.
34587 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34588 ...
34589 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34590 Don't include <sysdep.h> nor <init-arch.h>.
34591 (_ZGVbN4vv_powf): Removed.
34592 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34593 ...
34594 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34595 Don't include <sysdep.h> nor <init-arch.h>.
34596 (_ZGVdN8vv_powf): Removed.
34597 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34598 ...
34599 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34600 Don't include <sysdep.h> nor <init-arch.h>.
34601 (_ZGVeN16vvv_sincosf): Removed.
34602 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34603 ...
34604 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34605 Don't include <sysdep.h> nor <init-arch.h>.
34606 (_ZGVbN4vvv_sincosf): Removed.
34607 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34608 ...
34609 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34610 Don't include <sysdep.h> nor <init-arch.h>.
34611 (_ZGVdN8vvv_sincosf): Removed.
34612 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34613 ...
34614 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34615 Don't include <sysdep.h> nor <init-arch.h>.
34616 (_ZGVeN16v_sinf): Removed.
34617 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34618 ...
34619 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34620 Don't include <sysdep.h> nor <init-arch.h>.
34621 (_ZGVbN4v_sinf): Removed.
34622 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34623 ...
34624 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34625 Don't include <sysdep.h> nor <init-arch.h>.
34626 (_ZGVdN8v_sinf): Removed.
34627
34628 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34629
34630 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34631 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34632 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34633 s_rint-sse4_1 and s_rintf-sse4_1.
34634 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34635 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34636 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34637 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34638 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34639 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34640 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34641 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34642 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34643 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34644 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34645 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34646 (__ceil): Removed.
34647 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34648 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34649 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34650 (__ceilf): Removed.
34651 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34652 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34653 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34654 (__floor): Removed.
34655 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34656 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34657 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34658 (__floorf): Removed.
34659 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34660 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34661 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34662 (__nearbyint): Removed.
34663 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34664 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34665 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34666 (__nearbyintf): Removed.
34667 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34668 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34669 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34670 (__rint): Removed.
34671 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34672 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34673 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34674 (__rintf): Removed.
34675
34676 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34677
34678 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34679 SHARED. Avoid dynamic relocation against main in static PIE.
34680
34681 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34682
34683 [BZ #21815]
34684 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34685 (LDFLAGS-tst-prelink): Likewise.
34686
34687 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34688
34689 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34690 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34691 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34692 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34693 (INTERNAL_SYSCALL_NCS): Likewise.
34694 (LOADARGS_1): Likewise.
34695 (LOADARGS_5): Likewise.
34696 (RESTOREARGS_1): Likewise.
34697 (RESTOREARGS_5): Likewise.
34698
34699 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34700
34701 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34702 (MEMPCPY_SYMBOL): Likewise.
34703 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34704 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34705 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34706 in libc.a.
34707 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34708 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34709 Likewise.
34710 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34711 (__hidden_ver1): Don't use in libc.a.
34712 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34713 (__mempcpy): Don't create a weak alias in libc.a.
34714 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34715 libc.a.
34716 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34717 (__hidden_ver1): Don't use in libc.a.
34718
34719 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34720
34721 * config.make.in (have-insert): New.
34722 * configure.ac (libc_cv_insert): New. Set to yes if linker
34723 supports INSERT in linker script.
34724 (AC_SUBST(libc_cv_insert): New.
34725 * configure: Regenerated.
34726 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34727 if $(have-insert) == yes.
34728
34729 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34730
34731 * elf/Makefile (tests): Add vismain only if
34732 $(have-protected-data) == yes.
34733 (tests-pie): Likewise.
34734
34735 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34736
34737 [BZ #21871]
34738 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34739 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34740
34741 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34742
34743 [BZ #21790]
34744 * sysdeps/i386/i586/memset.S
34745 (__memset_zero_constant_len_parameter): Removed.
34746 * sysdeps/i386/i686/memset.S
34747 (__memset_zero_constant_len_parameter): Likewise.
34748 * sysdeps/i386/i686/multiarch/memset_chk.S
34749 (__memset_zero_constant_len_parameter): Likewise.
34750 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34751 Likewise.
34752
34753 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34754
34755 * stdlib/getentropy.c (getentropy): Change return type to int.
34756
34757 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34758
34759 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34760
34761 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34762
34763 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34764 u_intN_t.
34765 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34766 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34767 Likewise.
34768 (ieee_float_shape_type): Likewise.
34769 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34770 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34771 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34772 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34773 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34774 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34775 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34776 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34777 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34778 Likewise.
34779 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34780 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34781 (__ieee754_yn): Likewise.
34782 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34783 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34784 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34785 Likewise.
34786 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34787 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34788 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34789 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34790 (__erfc): Likewise.
34791 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34792 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34793 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34794 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34795 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34796 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34797 Likewise.
34798 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34799 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34800 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34801 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34802 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34803 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34804 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34805 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34806 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34807 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34808 (__issignaling): Likewise.
34809 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34810 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34811 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34812 Likewise.
34813 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34814 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34815 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34816 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34817 Likewise.
34818 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34819 Likewise.
34820 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34821 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34822 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34823 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34824 (__erfcf): Likewise.
34825 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34826 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34827 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34828 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34829 Likewise.
34830 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34831 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34832 Likewise.
34833 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34834 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34835 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34836 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34837 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34838 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34839 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34840 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34841 Likewise.
34842 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34843 Likewise.
34844 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34845 Likewise.
34846 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34847 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34848 Likewise.
34849 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34850 Likewise.
34851 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34852 (__ieee754_ynl): Likewise.
34853 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34854 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34855 Likewise.
34856 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34857 Likewise.
34858 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34859 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34860 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34861 Likewise.
34862 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34863 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34864 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34865 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34866 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34867 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34868 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34869 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34870 Likewise.
34871 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34872 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34873 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34874 Likewise.
34875 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34876 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34877 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34878 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34879 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34880 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34881 Likewise.
34882 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34883 Likewise.
34884 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34885 Likewise.
34886 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34887 Likewise.
34888 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34889 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34890 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34891 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34892 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34893 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34894 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34895 Likewise.
34896 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34897 Likewise.
34898 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34899 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34900 Likewise.
34901 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34902 (__ieee754_remainderl): Likewise.
34903 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34904 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34905 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34906 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34907 Likewise.
34908 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34909 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34910 Likewise.
34911 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34912 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34913 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34914 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34915 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34916 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34917 Likewise.
34918 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34919 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34920 (__ieee754_y0l): Likewise.
34921 (pzero): Likewise.
34922 (qzero): Likewise.
34923 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34924 (__ieee754_y1l): Likewise.
34925 (pone): Likewise.
34926 (qone): Likewise.
34927 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34928 (__ieee754_ynl): Likewise.
34929 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34930 (__ieee754_lgammal_r): Likewise.
34931 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34932 Likewise.
34933 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34934 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34935 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34936 (__erfcl): Likewise.
34937 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34938 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34939 Likewise.
34940 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34941 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34942 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34943 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34944 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34945 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34946 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34947 Likewise.
34948 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34949 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34950 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34951 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34952 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34953 Likewise.
34954 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34955 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34956 Likewise.
34957 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34958 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34959 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34960 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34961 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34962
34963 2017-08-03 Florian Weimer <fweimer@redhat.com>
34964
34965 [BZ #21885]
34966 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34967 on memory allocation failure.
34968
34969 2017-08-03 Alan Modra <amodra@gmail.com>
34970
34971 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34972 tst-tlsopt-powerpc.c with function name change and no test harness.
34973 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34974 Call tls_get_addr_opt_test.
34975 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34976 (modules-names): Add mod-tlsopt-powerpc.
34977 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34978 (tst-tlsopt-powerpc): Depend on .so.
34979 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34980 define. Expand use in TLS_GD and TLS_LD.
34981
34982 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34983
34984 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34985 function.
34986 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34987
34988 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34989
34990 [BZ #21686]
34991 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34992 comparing size with that of double.
34993 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34994 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34995 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34996 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34997 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34998 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34999 unsigned __int128 types.
35000
35001 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35002
35003 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35004 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35005 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35006 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35007 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35008
35009 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35010
35011 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35012
35013 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35014
35015 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35016 of SHARED.
35017 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35018 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35019 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35020 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35021 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35022 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35023 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35024
35025 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35026
35027 [BZ #21685]
35028 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35029 bit-field expressions passed to sizeof or typeof.
35030 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35031 (__TGMATH_F128): Likewise.
35032 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35033 (__TGMATH_CF128): Likewise.
35034 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35035 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35036 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35037 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35038 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35039 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35040 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35041 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35042 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35043 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35044 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35045 (__TGMATH_UNARY_IMAG): Likewise.
35046 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35047 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35048 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35049 type.
35050 (define_vars_for_type): Handle bit_field type specially.
35051 (Tests.__init__): Declare structure with bit-field element.
35052
35053 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35054
35055 [BZ #21791]
35056 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35057 (MEMCPY_CHK): Define only if SHARED is defined.
35058 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35059 Likewise.
35060 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35061 Likewise.
35062
35063 See ChangeLog.18 for earlier changes.