Hide internal __sched_setaffinity_new function [BZ #18822]
[glibc.git] / ChangeLog
blob567a258cc5088be8ec685802be1fc63247506acc
1 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3         [BZ #18822]
4         * sysdeps/unix/sysv/linux/sched_setaffinity.c
5         (__sched_setaffinity_new): Add libc_hidden_proto and
6         libc_hidden_def.
8 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10         [BZ #18822]
11         * include/glob.h (__glob64): Add libc_hidden_proto.
12         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
13         libc_hidden_def.
15 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
17         [BZ #18822]
18         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
19         attribute_hidden.
21 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
23         [BZ #18822]
24         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28         [BZ #18822]
29         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
30         libc_hidden_def.
32 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
34         [BZ #18822]
35         * csu/version.c (__libc_print_version): Add attribute_hidden.
37 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
39         [BZ #18822]
40         * include/libc-internal.h (__init_misc): Add attribute_hidden.
42 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
44         [BZ #18822]
45         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
47 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
49         [BZ #18822]
50         * nscd/nscd_helper.c (__nis_hash): New prototype.
52 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
54         [BZ #18822]
55         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
56         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
57         libc_hidden_def.
58         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
59         * termios/tcgetattr.c (__tcgetattr): Likewise.
61 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
63         [BZ #18822]
64         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
65         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
66         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
67         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
68         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
70 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
72         [BZ #18822]
73         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
75 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
77         [BZ #18822]
78         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
79         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
81 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
83         [BZ #18822]
84         * intl/hash-string.h (__hash_string): Add attribute_hidden.
86 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
88         [BZ #18822]
89         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
90         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
92 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
94         [BZ #18822]
95         * include/ifreq.h: New file.
96         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
97         (__ifreq): Likewise.
98         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
99         (__ifreq): Likewise.
101 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
103         [BZ #18822]
104         * include/idna.h: New file.
105         * inet/getnameinfo.c: Include <idna.h> instead of
106         <libidn/idna.h>.
107         (__idna_to_unicode_lzlz): Removed.
108         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
109         <libidn/idna.h>.
110         (__idna_to_ascii_lz): Removed.
111         (__idna_to_unicode_lzlz): Likewise.
113 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
115         [BZ #18822]
116         * include/plural-exp.h: New file.
117         * intl/plural-exp.c: Include <plural-exp.h> instead of
118         "plural-exp.h".
120 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
122         [BZ #18822]
123         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
124         "getsourcefilter.h".
125         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
126         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
127         "getsourcefilter.h".
128         (__get_sol): Removed.
130 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
132         [BZ #18822]
133         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
134         to ...
135         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
137 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
139         [BZ #18822]
140         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
141         attribute_hidden.
143 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
145         [BZ #18822]
146         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
148 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
150         [BZ #18822]
151         * include/search.h (__tdestroy): Add libc_hidden_proto.
152         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
154 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
156         [BZ #18822]
157         * include/assert.h (__assert_fail_base): Add attribute_hidden.
159 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
161         [BZ #18822]
162         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
163         attribute_hidden.
165 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
167         [BZ #18822]
168         * include/signal.h (__kill): Add libc_hidden_proto.
169         (__sigblock): Likewise.
170         (__sigprocmask): Likewise.
171         (__sigaltstack): Likewise.
172         * signal/kill.c (__kill): Add libc_hidden_def.
173         * signal/sigblock.c (__sigblock): Likewise.
174         * signal/sigprocmask.c (__sigprocmask): Likewise.
175         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
176         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
177         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
178         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
179         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
180         Likewise.
181         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
182         Likewise.
183         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
184         (__sigprocmask): Likewise.
185         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
186         Likewise.
187         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
188         (__sigprocmask): Likewise.
189         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
190         Likewise.
192 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
194         [BZ #18822]
195         * include/string.h (__strsep): Add libc_hidden_proto.
196         * string/strsep.c (__strsep): Add libc_hidden_def.
198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
200         [BZ #18822]
201         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
202         attribute_hidden.
203         (__spawni): Likewise.
205 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
207         [BZ #18822]
208         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
209         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
210         libc_hidden_def.
212 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
214         [BZ #18822]
215         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
217 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
219         [BZ #18822]
220         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
221         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
222         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
223         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
224         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
225         Likewise.
226         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
227         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
229 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
231         [BZ #18822]
232         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
233         (__dcigettext): Likewise.
235 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
237         [BZ #18822]
238         * include/sys/sysinfo.h (__get_nprocs_conf): Add
239         libc_hidden_proto.
240         (__get_nprocs): Likewise.
241         (__get_phys_pages): Likewise.
242         (__get_avphys_pages): Likewise.
243         (__get_child_max): Add attribute_hidden.
244         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
245         (__get_nprocs): Likewise.
246         (__get_phys_pages): Likewise.
247         (__get_avphys_pages): Likewise.
248         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
249         libc_hidden_def.
250         (__get_nprocs): Likewise.
251         (__get_phys_pages): Likewise.
252         (__get_avphys_pages): Likewise.
253         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
254         libc_hidden_def.
255         (__get_nprocs_conf): Likewise.
256         (__get_phys_pages): Likewise.
257         (__get_avphys_pages): Likewise.
259 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
261         [BZ #18822]
262         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
263         attribute_hidden.
264         (__netlink_close): Likewise.
265         (__netlink_free_handle): Likewise.
266         (__netlink_request): Likewise.
268 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
270         [BZ #18822]
271         * include/rpc/rpc.h (__rpc_thread_variables): Add
272         attribute_hidden.
273         (__rpc_thread_svc_cleanup): Likewise.
274         (__rpc_thread_clnt_cleanup): Likewise.
275         (__rpc_thread_key_cleanup): Likewise.
277 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
279         [BZ #18822]
280         * include/sys/uio.h (__readv): Add libc_hidden_proto.
281         (__writev): Likewise.
282         * misc/readv.c (__readv): Add libc_hidden_def.
283         * misc/writev.c (__writev): Likewise.
284         * sysdeps/posix/readv.c (__readv): Likewise.
285         * sysdeps/posix/writev.c (__writev): Likewise.
286         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
287         (__readv): Likewise.
288         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
289         (__writev): Likewise.
291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
293         [BZ #18822]
294         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
295         (__regcomp): Add libc_hidden_proto.
296         (__regexec): Likewise.
297         (__regfree): Likewise.
298         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
299         (__regfree): Likewise.
300         * posix/regexec.c (__regexec): Likewise.
302 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
304         [BZ #18822]
305         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
306         (__getutent): Likewise.
307         (__getutid): Likewise.
308         (__getutline): Likewise.
309         (__pututline): Likewise.
310         (__getutent_r): Likewise.
311         (__getutid_r): Likewise.
312         (__getutline_r): Likewise.
313         (__utmpname): Add attribute_hidden.
314         (__setutent): Likewise.
315         (__endutent): Likewise.
316         * login/getutent.c (__getutent): Add libc_hidden_def.
317         * login/getutent_r.c (__getutent_r): Likewise.
318         (__pututline): Likewise.
319         * login/getutid.c (__getutid): Likewise.
320         * login/getutid_r.c (__getutid_r): Likewise.
321         * login/getutline.c (__getutline): Likewise.
322         * login/getutline_r.c (__getutline_r): Likewise.
323         * login/updwtmp.c (__updwtmp): Likewise.
325 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
327         [BZ #18822]
328         * include/dirent.h (__opendir): Always add attribute_hidden.
329         (__fdopendir): Likewise.
330         (__closedir): Likewise.
331         (__readdir): Likewise.
332         (__readdir64): Add libc_hidden_proto.
333         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
334         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
335         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
336         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
337         New alias.
339 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
341         [BZ #18822]
342         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
343         * include/netdb.h (__gethostbyaddr_r): Likewise.
344         (__gethostbyname_r): Likewise.
345         (__gethostbyname2_r): Likewise.
346         (__getnetbyaddr_r): Likewise.
347         (__getnetbyname_r): Likewise.
348         (__getservbyname_r): Likewise.
349         (__getservbyport_r): Likewise.
350         (__getprotobyname_r): Likewise.
351         (__getprotobynumber_r): Likewise.
352         (__getnetgrent_r): Likewise.
353         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
354         (__getrpcbynumber_r): Likewise.
355         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
357 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
359         [BZ #18822]
360         * include/stdio.h (__fcloseall): Add attribute_hidden.
361         (__getline): Likewise.
362         (__path_search): Likewise.
363         (__gen_tempname): Likewise.
364         (__libc_message): Likewise.
365         (__flockfile): Likewise.
366         (__funlockfile): Likewise.
367         (__fxprintf): Likewise.
368         (__fxprintf_nocancel): Likewise.
370 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
372         [BZ #18822]
373         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
374         (__sgetsgent_r): Likewise.
376 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
378         [BZ #18822]
379         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
380         (__statfs64): Likewise.
381         (__fstatfs64): Likewise.
382         * include/sys/statvfs.h (__statvfs64): Likewise.
383         (__fstatvfs64): Likewise.
384         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
385         (__statfs_filesize_max): Likewise.
386         (__statfs_symlinks): Likewise.
387         (__statfs_chown_restricted): Likewise.
389 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
391         [BZ #18822]
392         * include/time.h (__tzstring): Add attribute_hidden.
393         (__tzfile_read): Likewise.
394         (__tzfile_compute): Likewise.
395         (__tzfile_default): Likewise.
396         (__tzset_parse_tz): Likewise.
397         (__offtime): Likewise.
398         (__asctime_r): Likewise.
399         (__tzset): Likewise.
400         (__tz_convert): Likewise.
401         (__getdate_r): Likewise.
402         (__getclktck): Likewise.
404 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
406         [BZ #18822]
407         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
408         (__nscd_unmap): Likewise.
409         (__nscd_cache_search): Likewise.
410         (__nscd_get_nl_timestamp): Likewise.
411         (__nscd_getpwnam_r): Likewise.
412         (__nscd_getpwuid_r): Likewise.
413         (__nscd_getgrnam_r): Likewise.
414         (__nscd_getgrgid_r): Likewise.
415         (__nscd_gethostbyname_r): Likewise.
416         (__nscd_gethostbyname2_r): Likewise.
417         (__nscd_gethostbyaddr_r): Likewise.
418         (__nscd_getai): Likewise.
419         (__nscd_getgrouplist): Likewise.
420         (__nscd_getservbyname_r): Likewise.
421         (__nscd_getservbyport_r): Likewise.
422         (__nscd_innetgr): Likewise.
423         (__nscd_setnetgrent): Likewise.
425 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
427         [BZ #18822]
428         * include/gmp.h: Declare internal functions only if _ISOMAC is
429         undefined.
430         (__mpn_extract_double): Add attribute_hidden.
431         (__mpn_extract_long_double): Likewise.
432         (__mpn_extract_float128): Likewise.
433         (__mpn_construct_float): Likewise.
434         (__mpn_construct_double): Likewise.
435         (__mpn_construct_long_double): Likewise.
436         (__mpn_construct_float128): Likewise.
437         (mpn_add_1): Likewise.
438         (mpn_addmul_1): Likewise.
439         (mpn_add_n): Likewise.
440         (mpn_cmp): Likewise.
441         (mpn_divrem): Likewise.
442         (mpn_lshift): Likewise.
443         (mpn_mul): Likewise.
444         (mpn_mul_1): Likewise.
445         (mpn_rshift): Likewise.
446         (mpn_sub_1): Likewise.
447         (mpn_submul_1): Likewise.
448         (mpn_sub_n): Likewise.
450 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
452         [BZ #18822]
453         * include/wchar.h (__wcsnlen): Add attribute_hidden.
454         (__wcscat): Likewise.
455         (__btowc): Likewise.
456         (__wcrtomb): Likewise.
457         (__mbsrtowcs): Likewise.
458         (__wcsrtombs): Likewise.
459         (__mbsnrtowcs): Likewise.
460         (__wcsnrtombs): Likewise.
461         (__wcsncpy): Likewise.
462         (__wcpncpy): Likewise.
463         (__wmemcpy): Likewise.
464         (__wmempcpy): Likewise.
465         (__wmemmove): Likewise.
466         (__wcschrnul): Likewise.
467         (__vfwscanf): Likewise.
468         (__vswprintf): Likewise.
469         (__fwprintf): Likewise.
470         (__vfwprintf): Likewise.
472 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
474         [BZ #18822]
475         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
476         (__getgrgid_r): Likewise.
477         (__getgrnam_r): Likewise.
478         * include/pwd.h (__getpwuid_r): Likewise.
479         (__getpwnam_r): Likewise.
480         (__fgetpwent_r): Likewise.
481         * include/shadow.h (__getspnam_r): Likewise.
482         (__sgetspent_r): Likewise.
483         (__fgetspent_r): Likewise.
485 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
487         [BZ #18822]
488         * include/unistd.h (__access): Add attribute_hidden.
489         (__lseek64): Likewise.
490         (__libc_pread64): Likewise.
491         (__pipe2): Likewise.
492         (__sleep): Likewise.
493         (__chdir): Likewise.
494         (__fchdir): Likewise.
495         (__getcwd): Likewise.
496         (__rmdir): Likewise.
497         (__execvpe): Likewise.
498         (__execve): Likewise.
499         (__setsid): Likewise.
500         (__getuid): Likewise.
501         (__geteuid): Likewise.
502         (__getgid): Likewise.
503         (__getegid): Likewise.
504         (__getgroups): Likewise.
505         (__group_member): Likewise.
506         (__ttyname_r): Likewise.
507         (__isatty): Likewise.
508         (__readlink): Likewise.
509         (__unlink): Likewise.
510         (__gethostname): Likewise.
511         (__profil): Likewise.
512         (__getdtablesize): Likewise.
513         (__brk): Likewise.
514         (__ftruncate): Likewise.
515         (__ftruncate64): Likewise.
517 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
519         [BZ #18822]
520         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
521         * argp/argp-fs-xinl.c: Likewise.
522         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
523         * argp/argp-parse.c: Include <argp.h>.
524         * argp/argp-xinl.c: Likewise.
525         * include/argp-fmtstream.h: New file.
526         * include/argp.h (__argp_error): Add attribute_hidden.
527         (__argp_failure): Likewise.
528         (__argp_input): Likewise.
529         (__argp_state_help): Likewise.
531 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
533         [BZ #18822]
534         * include/wchar.h (____wcstof_l_internal): New prototype.
535         (____wcstod_l_internal): Likewise.
536         (____wcstold_l_internal): Likewise.
537         (____wcstol_l_internal): Likewise.
538         (____wcstoul_l_internal): Likewise.
539         (____wcstoll_l_internal): Likewise.
540         (____wcstoull_l_internal): Likewise.
541         (____wcstof128_l_internal): Likewise.
542         * sysdeps/ieee754/float128/wcstof128.c
543         (____wcstof128_l_internal): Removed.
544         * sysdeps/ieee754/float128/wcstof128_l.c
545         (____wcstof128_l_internal): Likewise.
546         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
547         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
548         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
549         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
550         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
551         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
552         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
553         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
554         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
555         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
557 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
559         [BZ #18822]
560         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
561         instead of <sys/statvfs.h>.
562         (__internal_statvfs): Removed.
563         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
564         instead of <sys/statvfs.h>.
565         (__internal_statvfs64): Removed.
566         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
567         "internal_statvfs.h" instead of <sys/statvfs.h>.
568         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
569         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
570         instead of <sys/statvfs.h>.
571         (__internal_statvfs): Removed.
572         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
573         instead of <sys/statvfs.h>.
574         (__internal_statvfs64): Removed.
576 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
578         [BZ #18822]
579         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
580         (__gconv_close): Likewise.
581         (__gconv): Likewise.
582         (__gconv_find_transform): Likewise.
583         (__gconv_lookup_cache): Likewise.
584         (__gconv_compare_alias_cache): Likewise.
585         (__gconv_load_cache): Likewise.
586         (__gconv_get_path): Likewise.
587         (__gconv_close_transform): Likewise.
588         (__gconv_release_cache): Likewise.
589         (__gconv_find_shlib): Likewise.
590         (__gconv_release_shlib): Likewise.
591         (__gconv_get_builtin_trans): Likewise.
592         (__gconv_compare_alias): Likewise.
593         * include/dlfcn.h (_dlerror_run): Likewise.
594         * include/stdio.h (__fortify_fail_abort): Likewise.
595         * include/time.h (__tz_compute): Likewise.
596         (__strptime_internal): Likewise.
597         * intl/gettextP.h (_nl_find_domain): Likewise.
598         (_nl_load_domain): Likewise.
599         (_nl_find_msg): Likewise.
600         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
601         (EXTRACT_PLURAL_EXPRESSION): Likewise.
602         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
603         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
604         (__gai_find_request): Likewise.
605         (__gai_remove_request): Likewise.
606         (__gai_notify): Likewise.
607         (__gai_notify_only): Likewise.
608         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
609         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
610         (_dl_non_dynamic_init): Likewise.
611         (_dl_aux_init): Likewise.
612         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
613         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
614         Likewise.
615         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
616         (__wcsmbs_clone_conv): Likewise.
617         (__wcsmbs_named_conv): Likewise.
619 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
621         [BZ #18822]
622         * include/stdlib.h (__random): Add attribute_hidden.
623         (__random_r): Likewise.
624         (__srandom_r): Likewise.
625         (__initstate_r): Likewise.
626         (__setstate_r): Likewise.
627         (__erand48_r): Likewise.
628         (__nrand48_r): Likewise.
629         (__jrand48_r): Likewise.
630         (__srand48_r): Likewise.
631         (__seed48_r): Likewise.
632         (__lcong48_r): Likewise.
633         (__drand48_iterate): Likewise.
634         (__setenv): Likewise.
635         (__unsetenv): Likewise.
636         (__clearenv): Likewise.
637         (__ptsname_r): Likewise.
638         (__posix_openpt): Likewise.
639         (__add_to_environ): Likewise.
640         (__realpath): Add libc_hidden_proto.
641         (__ecvt_r): Likewise.
642         (__fcvt_r): Likewise.
643         (__qecvt_r): Likewise.
644         (__qfcvt_r): Likewise.
645         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
646         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
648 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
650         [BZ #18822]
651         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
652         * include/time.h (__mktime_internal): Likewise.
653         * libio/iolibio.h (__fopen_internal): Likewise.
655 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
657         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
658         pointer in frame.
659         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
660         Correct offset used to restore PIC register.
662 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
664         [BZ libc/22165]
665         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
666         code to load address of __getcontext_ret when generating PIC code.
668 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
670         * elf/Makefile (tests-static-internal): Add
671         tst-tls1-static-non-pie.
672         (LDFLAGS-tst-tls1-static-non-pie): New.
673         * elf/tst-tls1-static-non-pie.c: New file.
675 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
677         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
678         (asinh): Define using libm_alias_double.
679         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
680         (cbrt): Define using libm_alias_double.
681         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
682         <libm-alias-double.h>.
683         (copysign): Define using libm_alias_double.
684         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
685         (erf): Define using libm_alias_double.
686         (erfc): Likewise.
687         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
688         (expm1): Define using libm_alias_double.
689         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
690         (fabs): Define using libm_alias_double.
691         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
692         libm_alias_double.
693         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
694         <libm-alias-double.h>.
695         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
696         libm_alias_double.
697         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
698         <libm-alias-double.h>.
699         (getpayload): Define using libm_alias_double.
700         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
701         <libm-alias-double.h>.
702         (llrint): Define using libm_alias_double.
703         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
704         (lrint): Define using libm_alias_double.
705         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
706         <libm-alias-double.h>.
707         (nextup): Define using libm_alias_double.
708         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
709         <libm-alias-double.h>.
710         (roundeven): Define using libm_alias_double.
711         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
712         libm_alias_double.
713         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
714         <libm-alias-double.h>.
715         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
716         using libm_alias_double.
717         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
718         (cos): Define using libm_alias_double.
719         (sin): Likewise.
720         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
721         <libm-alias-double.h>.
722         (sincos): Define using libm_alias_double.
723         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
724         (tanh): Define using libm_alias_double.
725         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
726         <libm-alias-double.h>.
727         (totalorder): Define using libm_alias_double.
728         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
729         <libm-alias-double.h>.
730         (totalordermag): Define using libm_alias_double.
731         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
732         libm_alias_double.
733         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
734         libm_alias_double.
735         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
736         <libm-alias-double.h>.
737         (getpayload): Define using libm_alias_double.
738         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
739         <libm-alias-double.h>.
740         (roundeven): Define using libm_alias_double.
741         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
742         <libm-alias-double.h>.
743         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
744         <libm-alias-double.h>.
745         (totalorder): Define using libm_alias_double.
746         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
747         <libm-alias-double.h>.
748         (totalordermag): Define using libm_alias_double.
749         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
750         libc compat symbol here.
751         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
752         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
753         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
754         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
755         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
756         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
757         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
758         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
759         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
760         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
762 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
764         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
765         _dl_relocate_static_pie instead of _dl_start to compute load
766         address in static PIE.  Return 0 if _DYNAMIC is undefined for
767         static executable.
769 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
771         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
772         _DYNAMIC is undefined for static executable.
774 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
776         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
778 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
780         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
782 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
784         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
785         (__ieee754_lgamma_r): Use fabs rather than __fabs.
786         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
787         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
788         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
789         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
790         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
791         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
792         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
793         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
794         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
795         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
796         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
797         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
798         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
799         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
800         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
802 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
804         * math/bits/cmathcalls.h (cimag): Remove inline.
805         (creal): Remove inline.
806         (conj): Remove inline.
808 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
810         * math/Makefile (type-float-routines): Add e_powf_log2_data.
811         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
812         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
813         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
814         (issignalingf_inline): Likewise.
815         (POWF_LOG2_TABLE_BITS): Likewise.
816         (POWF_LOG2_POLY_ORDER): Likewise.
817         (POWF_SCALE_BITS): Likewise.
818         (POWF_SCALE): Likewise.
819         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
820         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
821         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
823 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
825         * math/Makefile (type-float-routines): Add e_log2f_data.
826         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
827         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
828         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
829         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
830         * sysdeps/i386/fpu/e_log2f_data.c: New file.
831         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
832         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
834 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
836         * math/Makefile (type-float-routines): Add e_logf_data.
837         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
838         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
839         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
840         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
841         * sysdeps/i386/fpu/e_logf_data.c: New file.
842         * sysdeps/ia64/fpu/e_logf_data.c: New file.
843         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
845 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
847         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
848         undefined _DYNAMIC in PIE libc.a.
849         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
850         Likewse.
852 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
854         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
855         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
856         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
857         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
858         (__signbit): Remove.
859         (__signbitl): Remove.
860         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
861         (__signbit): Remove.
862         (__signbitl): Remove.
863         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
864         (__signbit): Remove.
865         (__signbitl): Remove.
866         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
867         (__signbit): Remove.
868         (__signbitl): Remove.
869         * sysdeps/tile/bits/mathinline.h: Delete file.
870         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
871         (__signbit): Remove.
872         (__signbitl): Remove.
874 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
876         * math/math.h: Improve handling of C99 isgreater macros.
877         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
878         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
879         * sysdeps/powerpc/bits/mathinline.h: Likewise.
880         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
881         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
883 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
885         * sysdeps/aarch64/libm-test-ulps: Update.
887 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
889         [BZ #22225]
890         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
891         math_opt_barrier on argument when doing arithmetic on it.
892         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
893         Likewise.  Use math_force_eval not math_opt_barrier after
894         arithmetic.
895         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
896         math_opt_barrier on argument when doing arithmetic on it.
897         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
898         Likewise.
900 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
902         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
903         libc_hidden_def.
904         (__freeifaddrs): Likewise.
906 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
908         * include/dirent.h (__dirfd): New declaration.
909         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
910         alias.
911         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
912         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
913         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
914         * include/unistd.h (__revoke): New declaration.
915         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
916         alias.
917         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
918         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
919         revoke.
920         * include/dirent.h (__seekdir): New declaration.
921         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
922         redefine as weak alias.
923         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
924         of seekdir.
925         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
926         and use libc_hidden_def on them.
927         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
928         them.
929         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
930         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
931         instead of getifaddrs and freeifaddrs.
933 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
935         [BZ #18822]
936         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
937         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
938         (__dso_handle): Remove declaration.
939         * dlfcn/tstatexit.c (__dso_handle): Removed.
940         (main): Don't check __dso_handle.
941         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
942         (main): Don't check __dso_handle.
943         * include/dso_handle.h: New file.
944         * malloc/mtrace.c: Include <dso_handle.h>.
945         (mtrace): Pass __dso_handle directly.
946         * nptl/pthread_atfork.c: Include <dso_handle.h>.
947         (__dso_handle): Remove declaration.
948         (__pthread_atfork): Pass __dso_handle directly.
949         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
950         (__dso_handle): Removed.
951         * posix/wordexp-test.c: Include <dso_handle.h>.
952         (__dso_handle): Remove declaration.
953         (__app_register_atfork): Pass __dso_handle directly.
954         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
955         (__dso_handle): Remove declaration.
956         (at_quick_exit): Pass __dso_handle directly.
957         * stdlib/atexit.c: Include <dso_handle.h>.
958         (__dso_handle): Remove declaration.
959         (atexit): Pass __dso_handle directly.
960         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
961         (__dso_handle): Removed.
963 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
965         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
966         using VDSO.
968 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
970         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
971         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
972         values to correct default value for given type.
974 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
976         [BZ #22101]
977         * elf/Makefile (tests): Add tst-debug1.
978         ($(objpfx)tst-debug1): New.
979         ($(objpfx)tst-debug1.out): Likewise.
980         ($(objpfx)tst-debug1mod1.so): Likewise.
981         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
982         with p_filesz == 0.
983         * elf/tst-debug1.c: New file.
985 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
987         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
988         Define using __ifunc.
990 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
992         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
993         exp2f() values.
995 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
997         [BZ #22156]
998         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
1000 2017-09-26  Florian Weimer  <fweimer@redhat.com>
1002         * resolv/Makefile (tests-internal): Fix typo in comment.
1004 2017-09-26  Florian Weimer  <fweimer@redhat.com>
1006         * resolv/nss_dns/dns-host.c: Fix typo in comment.
1008 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1010         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
1011         Use an union instead of a max_align_t array for __space,
1012         so that __space is the same size on all platforms.
1013         * malloc/scratch_buffer_grow_preserve.c
1014         (__libc_scratch_buffer_grow_preserve): Likewise.
1016         [BZ #22183]
1017         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
1018         version to 2.
1019         * posix/Makefile (routines): Add glob-lstat-compat and
1020         glob64-lstat-compat.
1021         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
1022         * posix/glob-lstat-compat.c: New file.
1023         * posix/glob64-lstat-compat.c: Likewise.
1024         * posix/tst-glob_lstat_compat.c: Likewise.
1025         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
1026         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
1027         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
1028         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
1029         Likewise.
1030         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
1031         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
1032         * posix/glob.c (glob_lstat): New function.
1033         (glob): Rename to __glob and add versioned symbol to 2.27.
1034         (glob_in_dir): Use glob_lstat.
1035         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
1036         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1037         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
1038         2.27.
1039         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
1040         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
1041         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
1042         gl_lstat on glob call.
1043         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
1044         and glob64 symbols.
1045         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1046         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1047         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1048         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1049         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1050         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1051         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1052         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1053         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1054         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1055         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1056         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1058         Likewise.
1059         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1061         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1062         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1063         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1064         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1065         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1066         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1067         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1068         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1069         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1070         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1072 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
1074         * configure.ac (AS): Require binutils 2.25 or later.
1075         * configure: Regenerated.
1077 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1079         [BZ #22207]
1080         * stdlib/test-atexit-race-common.c (do_test): Minimize required
1081         VM size.
1083 2017-09-25  DJ Delorie  <dj@redhat.com>
1085         [BZ #22161]
1086         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
1087         resetting timeout.
1089 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1091         * sysdeps/ieee754/dbl-64/sincos32.h
1092         [SINCCOS32_H]: Remove define.
1093         [SINCOS32_H]: Define.
1095 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1097         * math/Versions (expf): New libm symbol at GLIBC_2.27.
1098         (exp2f): Likewise.
1099         * math/w_exp2f.c: New file.
1100         * math/w_expf.c: New file.
1101         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
1102         * math/w_expf_compat.c (__expf_compat): Likewise.
1103         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
1104         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1105         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1106         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1107         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1108         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1109         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1110         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1111         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1112         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1113         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1114         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1115         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1116         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1118         Likewise.
1119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1120         Likewise.
1121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1122         Likewise.
1123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1124         Likewise.
1125         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1126         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1127         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1128         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1129         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1130         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1131         Likewise.
1132         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1133         Likewise.
1134         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1135         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1136         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1138 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1140         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
1141         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
1142         (roundtoint, converttoint): Likewise.
1143         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
1144         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
1145         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
1146         * sysdeps/ieee754/flt-32/math_config.h: New file.
1147         * sysdeps/ieee754/flt-32/math_errf.c: New file.
1148         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
1149         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
1150         * sysdeps/i386/fpu/math_errf.c: New file.
1151         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
1152         * sysdeps/ia64/fpu/math_errf.c: New file.
1153         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
1154         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
1156 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1158         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
1159         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
1160         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
1161         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
1162         to make sure that these symbols are defined.
1163         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
1164         of <limits.h>
1165         (__need_NULL): Do not define.
1166         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
1167         alignment.
1168         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
1169         CMGROUP_MAX, cmsgcred): Do not define.
1170         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
1171         NULL.
1172         * bits/socket.h: Likewise.
1173         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
1174         __gettimeofday instead of gettimeofday.
1175         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
1176         instead of settimeofday.
1178 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
1180         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
1181         (asinhf): Define using libm_alias_float.
1182         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
1183         (atanf): Define using libm_alias_float.
1184         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
1185         (cbrtf): Define using libm_alias_float.
1186         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
1187         (ceilf): Define using libm_alias_float.
1188         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
1189         <libm-alias-float.h>.
1190         (copysignf): Define using libm_alias_float.
1191         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
1192         (cosf): Define using libm_alias_float.
1193         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
1194         (erff): Define using libm_alias_float.
1195         (erfcf): Likewise.
1196         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
1197         (expm1f): Define using libm_alias_float.
1198         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
1199         (fabsf): Define using libm_alias_float.
1200         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
1201         (floorf): Define using libm_alias_float.
1202         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
1203         (frexpf): Define using libm_alias_float.
1204         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
1205         libm_alias_float.
1206         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
1207         <libm-alias-float.h>.
1208         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
1209         libm_alias_float.
1210         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
1211         <libm-alias-float.h>.
1212         (getpayloadf): Define using libm_alias_float.
1213         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
1214         <libm-alias-float.h>.
1215         (llrintf): Define using libm_alias_float.
1216         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
1217         <libm-alias-float.h>.
1218         (llroundf): Define using libm_alias_float.
1219         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
1220         (logbf): Define using libm_alias_float.
1221         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
1222         (lrintf): Define using libm_alias_float.
1223         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
1224         (lroundf): Define using libm_alias_float.
1225         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
1226         (modff): Define using libm_alias_float.
1227         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
1228         <libm-alias-float.h>.
1229         (nearbyintf): Define using libm_alias_float.
1230         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
1231         <libm-alias-float.h>.
1232         (nextafterf): Define using libm_alias_float.
1233         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
1234         <libm-alias-float.h>.
1235         (nextupf): Define using libm_alias_float.
1236         * sysdeps/ieee754/flt-32/s_remquof.c: Include
1237         <libm-alias-float.h>.
1238         (remquof): Define using libm_alias_float.
1239         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
1240         (rintf): Define using libm_alias_float.
1241         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
1242         <libm-alias-float.h>.
1243         (roundevenf): Define using libm_alias_float.
1244         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
1245         (roundf): Define using libm_alias_float.
1246         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
1247         using libm_alias_float.
1248         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
1249         <libm-alias-float.h>.
1250         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
1251         Define using libm_alias_float.
1252         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
1253         <libm-alias-float.h>.
1254         (sincosf): Define using libm_alias_float.
1255         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
1256         (sinf): Define using libm_alias_float.
1257         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
1258         (tanf): Define using libm_alias_float.
1259         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
1260         (tanhf): Define using libm_alias_float.
1261         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
1262         <libm-alias-float.h>.
1263         (totalorderf): Define using libm_alias_float.
1264         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1265         <libm-alias-float.h>.
1266         (totalordermagf): Define using libm_alias_float.
1267         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
1268         (truncf): Define using libm_alias_float.
1269         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
1270         libm_alias_float.
1271         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
1272         libm_alias_float.
1274 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1276         [BZ #22146]
1277         math/math.h: Let fpclassify use the builtin in C++ mode, even
1278         when optimazing for size.
1280 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
1282         * csu/Makefile (generated): Do not add version-info.h.
1283         (before-compile): Likewise.
1284         (all-Banner-files): Remove variable.
1285         ($(objpfx)version-info.h): Remove rule.
1286         * csu/version.c (banner): Do not include "version-info.h".
1287         * libidn/Banner: Remove.
1288         * manual/contrib.texi (Simon Josefsson): New entry.
1290 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1292         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1293         Remove conditionals on LDBL_MANT_DIG.
1294         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
1295         (__ieee754_lgammal_r): Likewise.
1297 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1299         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
1300         _Float128 and L().
1301         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
1302         _Float128 and L(). Replace _Float128 with long double and L(x)
1303         with xL, throughout the file.
1304         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1305         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
1306         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
1307         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
1309 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1311         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
1312         sysdeps/ieee754/ldbl-128ibm.
1313         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
1314         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
1315         of including it.  Keep _Float128 and L() intact.  These will be
1316         reviewed by a separate patch.
1317         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1318         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
1319         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
1320         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
1322 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
1325         (__finitef128): Define to __redirect___finitef128.
1326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
1327         (__isinff128): Define to __redirect___isinff128.
1328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
1329         (__isnanf128): Define to __redirect___isnanf128.
1331 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1333         * sysdeps/powerpc/powerpc64le/Makefile
1334         (CFLAGS-tst-strtod-nan-locale.c): New variable.
1335         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
1337 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
1338             Carlos O'Donell  <carlos@redhat.com>
1340         [BZ #22180]
1341         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
1342         * stdlib/test-dlclose-exit-race.c: New file.
1343         * stdlib/test-dlclose-exit-race-helper.c: New file.
1344         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
1346 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
1348         * crypt/Banner: Remove file.
1349         * nptl/Banner: Likewise.
1350         * resolv/Banner: Likewise.
1351         * soft-fp/Banner: Likewise.
1352         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
1353         ($(objpfx)version.d): Remove dependency on banner.h.
1354         ($(objpfx)version.os): Likewise.
1355         * nptl/version.c (banner): Do not include banner.h.
1356         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
1357         Jelinek and BIND code.
1359 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
1360             Carlos O'Donell  <carlos@redhat.com>
1362         * support/xdlfcn.h: New file.
1363         * support/xdlfcn.c: New file.
1364         * support/Makefile (libsupport-routines): Add xdlfcn.
1365         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
1367 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
1369         [BZ #20142]
1370         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1371         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
1372         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
1373         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
1374         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
1375         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
1376         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
1377         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
1379 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
1380             Ricky Zhou  <rickyz@google.com>
1381             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
1383         [BZ #14333]
1384         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
1385         Remove atomics.
1386         (__new_exitfn): Fail registration when we finished at_exit processing.
1387         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
1388         * stdlib/on_exit.c (__on_exit): Likewise.
1389         * stdlib/exit.c (__exit_funcs_done): New variable.
1390         (__run_exit_handlers): Use __exit_funcs_lock.
1391         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
1392         declarations.
1393         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
1394         (test-cxa_atexit-race, test-on_exit-race): New tests.
1395         * stdlib/test-atexit-race-common.c: New file.
1396         * stdlib/test-atexit-race.c: New file.
1397         * stdlib/test-at_quick_exit-race.c: New file.
1398         * stdlib/test-cxa_atexit-race.c: New file.
1399         * stdlib/test-on_exit-race.c: New file.
1401 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1403         * benchtests/Makefile: Add exp2f and log2f benchmarks.
1404         * benchtests/exp2f-inputs: Copy of expf-inputs.
1405         * benchtests/log2f-inputs: Copy of logf-inputs.
1407 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
1409         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
1410         Explicitly take address of first element of array arguments in
1411         call to INLINE_SYSCALL.
1413 2017-09-19  Andreas Schwab  <schwab@suse.de>
1415         [BZ #22134]
1416         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
1417         execveat first.
1418         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
1419         unimplemented.
1420         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
1421         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
1422         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1423         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
1424         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1425         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
1426         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1427         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
1428         * posix/Makefile (tests): Add tst-fexecve.
1429         * posix/tst-fexecve.c: New file.
1431 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1433         * benchtests/Makefile: Add logf benchmark.
1434         * benchtests/logf-inputs: Add reduced trace from wrf_r.
1436 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1438         * benchtests/Makefile: Add expf benchmark.
1439         * benchtests/expf-inputs: Add reduced trace from wrf_r.
1441 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1443         * csu/Makefile: Add -funwind-tables to libc-start.c.
1444         * debug/Makefile: Add -funwind-tables to backtrace.c.
1445         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
1446         * sysdeps/arm/Makefile: Likewise.
1447         * sysdeps/i386/Makefile: Likewise.
1448         * sysdeps/m68k/Makefile: Likewise.
1449         * sysdeps/mips/Makefile: Likewise.
1450         * sysdeps/nios2/Makefile: Likewise.
1451         * sysdeps/sh/Makefile: Likewise.
1452         * sysdeps/sparc/Makefile: Likewise.
1454 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
1456         * benchtests/Makefile (bench-math): Add trunc and truncf.
1457         (CFLAGS-bench-trunc.c): New variable.
1458         (CFLAGS-bench-truncf.c): Likewise.
1459         * benchtests/trunc-inputs: New file.
1460         * benchtests/truncf-inputs: Likewise.
1462 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1464         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
1466 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
1468         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
1469         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
1470         redefine.
1471         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
1472         (exp10l): Define as weak alias.
1473         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
1474         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
1475         and redefine.
1476         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
1477         (remainderl): Define as weak alias.
1479         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
1480         (fmal): Define using libm_alias_ldouble.
1481         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
1482         (acoshl): Define using libm_alias_ldouble.
1483         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
1484         (acosl): Define using libm_alias_ldouble.
1485         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
1486         (asinl): Define using libm_alias_ldouble.
1487         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
1488         (atan2l): Define using libm_alias_ldouble.
1489         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
1490         (atanhl): Define using libm_alias_ldouble.
1491         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
1492         (coshl): Define using libm_alias_ldouble.
1493         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
1494         (exp10l): Define using libm_alias_ldouble.
1495         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
1496         (exp2l): Define using libm_alias_ldouble.
1497         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
1498         (expl): Define using libm_alias_ldouble.
1499         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
1500         (fmodl): Define using libm_alias_ldouble.
1501         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
1502         (hypotl): Define using libm_alias_ldouble.
1503         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
1504         (j0l): Define using libm_alias_ldouble.
1505         (y0l): Likewise.
1506         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
1507         (j1l): Define using libm_alias_ldouble.
1508         (y1l): Likewise.
1509         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
1510         (jnl): Define using libm_alias_ldouble.
1511         (ynl): Likewise.
1512         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
1513         (log10l): Define using libm_alias_ldouble.
1514         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
1515         (log2l): Define using libm_alias_ldouble.
1516         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
1517         (logl): Define using libm_alias_ldouble.
1518         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
1519         (powl): Define using libm_alias_ldouble.
1520         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
1521         (remainderl): Define using libm_alias_ldouble.
1522         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
1523         (sinhl): Define using libm_alias_ldouble.
1524         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
1525         (sqrtl): Define using libm_alias_ldouble.
1526         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
1527         (tgammal): Define using libm_alias_ldouble.
1528         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
1529         (exp10l): Do not use long_double_symbol here.
1530         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
1531         [LIBM_SVID_COMPAT] (remainderl): Likewise.
1532         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
1533         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
1534         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
1535         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
1536         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
1537         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
1538         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
1539         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
1540         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
1541         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
1542         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
1543         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
1544         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
1545         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
1546         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
1547         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
1548         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
1549         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
1550         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
1551         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
1553 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
1555         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
1556         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
1558 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1560         * io/read.c (read): Add libc_hidden_weak.
1561         * sysdeps/mach/hurd/read.c (read): Likewise.
1562         * io/write.c (write): Likewise.
1563         * sysdeps/mach/hurd/write.c (write): Likewise.
1564         * io/pread64.c (__pread64): Likewise.
1565         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
1566         * posix/pread64.c (__pread64): Add libc_hidden_def.
1568 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1570         * benchtests/scripts/compare_strings.py: New option -g.
1571         (draw_graph): Print a message that a graph is being generated.
1572         (process_results): Generate graph only if -g is passed.
1573         (main): Process option -g.
1575         * benchtests/scripts/compare_strings.py (process_results):
1576         Better spacing for output.
1578         * benchtests/scripts/compare_strings.py: Use argparse.
1579         * benchtests/README: Document existence of compare_strings.py.
1581 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
1583         * math/s_fma.c: Include <libm-alias-double.h>.
1584         (fma): Define using libm_alias_double.
1585         * math/s_nextafter.c: Include <libm-alias-double.h>.
1586         (nextafter): Define using libm_alias_double.
1587         * math/w_acos_compat.c: Include <libm-alias-double.h>.
1588         (acos): Define using libm_alias_double.
1589         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
1590         (aocsh): Define using libm_alias_double.
1591         * math/w_asin_compat.c: Include <libm-alias-double.h>.
1592         (asin): Define using libm_alias_double.
1593         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
1594         (atan2): Define using libm_alias_double.
1595         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
1596         (atanh): Define using libm_alias_double.
1597         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
1598         (cosh): Define using libm_alias_double.
1599         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
1600         (exp10): Define using libm_alias_double.
1601         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
1602         (exp2): Define using libm_alias_double.
1603         * math/w_exp_compat.c: Include <libm-alias-double.h>.
1604         (exp): Define using libm_alias_double.
1605         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
1606         (fmod): Define using libm_alias_double.
1607         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
1608         (hypot): Define using libm_alias_double.
1609         * math/w_j0_compat.c: Include <libm-alias-double.h>.
1610         (j0): Define using libm_alias_double.
1611         (y0): Likewise.
1612         * math/w_j1_compat.c: Include <libm-alias-double.h>.
1613         (j1): Define using libm_alias_double.
1614         (y1): Likewise.
1615         * math/w_jn_compat.c: Include <libm-alias-double.h>.
1616         (jn): Define using libm_alias_double.
1617         (yn): Likewise.
1618         * math/w_log10_compat.c: Include <libm-alias-double.h>.
1619         (log10): Define using libm_alias_double.
1620         * math/w_log2_compat.c: Include <libm-alias-double.h>.
1621         (log2): Define using libm_alias_double.
1622         * math/w_log_compat.c: Include <libm-alias-double.h>.
1623         (log): Define using libm_alias_double.
1624         * math/w_pow_compat.c: Include <libm-alias-double.h>.
1625         (pow): Define using libm_alias_double.
1626         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
1627         (remainder): Define using libm_alias_double.
1628         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
1629         (sinh): Define using libm_alias_double.
1630         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
1631         (sqrt): Define using libm_alias_double.
1632         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
1633         (tgamma): Define using libm_alias_double.
1634         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
1635         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
1636         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
1637         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
1638         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
1639         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
1640         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
1641         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
1642         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
1643         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
1644         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
1645         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
1646         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
1647         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
1648         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
1649         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
1650         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
1651         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
1652         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
1653         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
1654         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
1655         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
1656         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
1657         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
1658         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
1660         * math/e_acoshl.c: Remove.
1661         * math/e_acosl.c: Likewise.
1662         * math/e_asinl.c: Likewise.
1663         * math/e_atan2l.c: Likewise.
1664         * math/e_atanhl.c: Likewise.
1665         * math/e_coshl.c: Likewise.
1666         * math/e_expl.c: Likewise.
1667         * math/e_fmodl.c: Likewise.
1668         * math/e_gammal_r.c: Likewise.
1669         * math/e_hypotl.c: Likewise.
1670         * math/e_j0l.c: Likewise.
1671         * math/e_j1l.c: Likewise.
1672         * math/e_jnl.c: Likewise.
1673         * math/e_lgammal_r.c: Likewise.
1674         * math/e_log10l.c: Likewise.
1675         * math/e_log2l.c: Likewise.
1676         * math/e_logl.c: Likewise.
1677         * math/e_powl.c: Likewise.
1678         * math/e_rem_pio2l.c: Likewise.
1679         * math/e_sinhl.c: Likewise.
1680         * math/e_sqrtf128.c: Likewise.
1681         * math/e_sqrtl.c: Likewise.
1682         * math/k_cosl.c: Likewise.
1683         * math/k_sinl.c: Likewise.
1684         * math/k_tanl.c: Likewise.
1685         * math/s_asinhl.c: Likewise.
1686         * math/s_atanl.c: Likewise.
1687         * math/s_cbrtl.c: Likewise.
1688         * math/s_erfl.c: Likewise.
1689         * math/s_expm1l.c: Likewise.
1690         * math/s_log1pl.c: Likewise.
1691         * math/s_tanhl.c: Likewise.
1693 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1695         [BZ #21745]
1696         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
1697         [$(subdir) = math] (sysdep_calls): New variable.  Has the
1698         previous contents of sysdep_routines, but re-sorted..
1699         [$(subdir) = math] (sysdep_routines): Re-use the contents from
1700         sysdep_calls.
1701         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
1702         defined in sysdep_calls and replace by the respective m_* names.
1703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
1704         (compat_symbol): Undefine to avoid duplicated compat symbols in
1705         libc.
1707 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
1709         * math/s_fmaf.c: Include <libm-alias-float.h>.
1710         (fmaf): Define using libm_alias_float.
1711         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
1712         (acosf): Define using libm_alias_float.
1713         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
1714         (acoshf): Define using libm_alias_float.
1715         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
1716         (asinf): Define using libm_alias_float.
1717         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
1718         (atan2f): Define using libm_alias_float.
1719         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
1720         (atanhf): Define using libm_alias_float.
1721         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
1722         (coshf): Define using libm_alias_float.
1723         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
1724         (exp10f): Define using libm_alias_float.
1725         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
1726         (fmodf): Define using libm_alias_float.
1727         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
1728         (hypotf): Define using libm_alias_float.
1729         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
1730         (j0f): Define using libm_alias_float.
1731         (y0f): Likewise.
1732         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
1733         (j1f): Define using libm_alias_float.
1734         (y1f): Likewise.
1735         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
1736         (jnf): Define using libm_alias_float.
1737         (ynf): Likewise.
1738         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
1739         (log10f): Define using libm_alias_float.
1740         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
1741         (log2f): Define using libm_alias_float.
1742         * math/w_logf_compat.c: Include <libm-alias-float.h>.
1743         (logf): Define using libm_alias_float.
1744         * math/w_powf_compat.c: Include <libm-alias-float.h>.
1745         (powf): Define using libm_alias_float.
1746         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
1747         (remainderf): Define using libm_alias_float.
1748         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
1749         (sinhf): Define using libm_alias_float.
1750         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
1751         (sqrtf): Define using libm_alias_float.
1752         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
1753         (tgammaf): Define using libm_alias_float.
1755 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
1757         * include/math.h (roundeven): Change hidden_proto call to
1758         __roundeven.
1759         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
1760         alias.
1761         [NO_LONG_DOUBLE] (__j0l): New strong alias.
1762         (y0): Rename to __y0 and define as weak alias.
1763         [NO_LONG_DOUBLE] (__y0l): New strong alias.
1764         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
1765         alias.
1766         (y0f): Rename to __y0f and define as weak alias.
1767         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
1768         alias.
1769         [NO_LONG_DOUBLE] (__j1l): New strong alias.
1770         (y1): Rename to __y1 and define as weak alias.
1771         [NO_LONG_DOUBLE] (__y1l): New strong alias.
1772         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
1773         alias.
1774         (y1f): Rename to __y1f and define as weak alias.
1775         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
1776         alias.
1777         [NO_LONG_DOUBLE] (__jnl): New strong alias.
1778         (yn): Rename to __yn and define as weak alias.
1779         [NO_LONG_DOUBLE] (__ynl): New strong alias.
1780         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
1781         alias.
1782         (ynf): Rename to __ynf and define as weak alias.
1783         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
1784         (fromfp): Define as weak alias.
1785         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
1786         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
1787         (fromfpx): Define as weak alias.
1788         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
1789         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
1790         __getpayload and define as weak alias.
1791         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
1792         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
1793         __roundeven and define as weak alias.
1794         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
1795         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
1796         __setpayload.
1797         (setpayload): Define as weak alias.
1798         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
1799         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
1800         __setpayloadsig.
1801         (setpayloadsig): Define as weak alias.
1802         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
1803         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
1804         __totalorder and define as weak alias.
1805         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
1806         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
1807         to __totalordermag and define as weak alias.
1808         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
1809         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
1810         (ufromfp): Define as weak alias.
1811         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
1812         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
1813         __ufromfpx.
1814         (ufromfpx): Define as weak alias.
1815         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
1816         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
1817         Rename to __getpayload and define as weak alias.
1818         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
1819         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
1820         Rename to __roundeven and define as weak alias.
1821         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
1822         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
1823         Rename to __totalorder and define as weak alias.
1824         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
1825         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
1826         (totalordermag): Rename to __totalordermag and define as weak
1827         alias.
1828         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
1829         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
1830         macro.
1831         (__roundevenl): Likewise.
1832         (__totalorderl): Likewise.
1833         (__totalordermagl): Likewise
1834         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
1835         __fromfpf128.
1836         (fromfpf128): Define as weak alias.
1837         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
1838         __fromfpxf128.
1839         (fromfpxf128): Define as weak alias.
1840         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
1841         __setpayloadf128.
1842         (setpayloadf128): Define as weak alias.
1843         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
1844         __setpayloadsigf128.
1845         (setpayloadsigf128): Define as weak alias.
1846         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
1847         __ufromfpf128.
1848         (ufromfpf128): Define as weak alias.
1849         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
1850         __ufromfpxf128.
1851         (ufromfpxf128): Define as weak alias.
1852         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
1853         (fromfpf): Define as weak alias.
1854         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
1855         __fromfpxf.
1856         (fromfpxf): Define as weak alias.
1857         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
1858         __getpayloadf and define as weak alias.
1859         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
1860         __roundevenf and define as weak alias.
1861         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
1862         __setpayloadf.
1863         (setpayloadf): Define as weak alias.
1864         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
1865         __setpayloadsigf.
1866         (setpayloadsigf): Define as weak alias.
1867         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
1868         __totalorderf and define as weak alias.
1869         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
1870         Rename to __totalordermagf and define as weak alias.
1871         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
1872         __ufromfpf.
1873         (ufromfpf): Define as weak alias.
1874         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
1875         __ufromfpxf.
1876         (ufromfpxf): Define as weak alias.
1877         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
1878         __fromfpl.
1879         (fromfpl): Define as weak alias.
1880         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
1881         __fromfpxl.
1882         (fromfpxl): Define as weak alias.
1883         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
1884         to __getpayloadl and define as weak alias.
1885         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
1886         __roundevenl and define as weak alias.
1887         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
1888         __setpayloadl.
1889         (setpayloadl): Define as weak alias.
1890         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
1891         __setpayloadsigl.
1892         (setpayloadsigl): Define as weak alias.
1893         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
1894         to __totalorderl and define as weak alias.
1895         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
1896         Rename to __totalordermagl and define as weak alias.
1897         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
1898         __ufromfpl.
1899         (ufromfpl): Define as weak alias.
1900         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
1901         __ufromfpxl.
1902         (ufromfpxl): Define as weak alias.
1903         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
1904         __fromfpl.
1905         (fromfpl): Define as weak alias.
1906         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
1907         __fromfpxl.
1908         (fromfpxl): Define as weak alias.
1909         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
1910         Rename to __getpayloadl and define as weak alias.
1911         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
1912         to __roundevenl and define as weak alias.  Call __roundeven
1913         instead of roundeven.
1914         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
1915         __setpayloadl.
1916         (setpayloadl): Define as weak alias.
1917         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
1918         __setpayloadsigl.
1919         (setpayloadsigl): Define as weak alias.
1920         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
1921         Rename to __totalorderl and define as weak alias.
1922         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
1923         Rename to __totalordermagl and define as weak alias.
1924         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
1925         __ufromfpl.
1926         (ufromfpl): Define as weak alias.
1927         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
1928         __ufromfpxl.
1929         (ufromfpxl): Define as weak alias.
1930         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
1931         __fromfpl.
1932         (fromfpl): Define as weak alias.
1933         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
1934         __fromfpxl.
1935         (fromfpxl): Define as weak alias.
1936         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
1937         __getpayloadl and define as weak alias.
1938         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
1939         __roundevenl and define as weak alias.
1940         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
1941         __setpayloadl.
1942         (setpayloadl): Define as weak alias.
1943         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
1944         __setpayloadsigl.
1945         (setpayloadsigl): Define as weak alias.
1946         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
1947         __totalorderl and define as weak alias.
1948         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
1949         Rename to __totalordermagl and define as weak alias.
1950         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
1951         __ufromfpl.
1952         (ufromfpl): Define as weak alias.
1953         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
1954         __ufromfpxl.
1955         (ufromfpxl): Define as weak alias.
1957 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1959         * benchtests/bench-string.h (realloc_bufs): New function.
1960         (test_init): Call it.
1961         * benchtests/bench-memset-large.c (do_test): Likewise.
1962         * benchtests/bench-memset.c (do_test): Likewise.
1964         * benchtests/bench-memset-large.c: Print output in JSON
1965         format.
1966         * benchtests/bench-memset.c: Likewise.
1968 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
1970         [BZ #21084]
1971         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
1972         * iconvdata/Makefile: Add IBM858.
1973         * iconvdata/gconv-modules: Likewise.
1974         * iconvdata/tst-tables.sh: Likewise.
1975         * iconvdata/ibm858.c: New file.
1976         * localedata/charmaps/IBM858: Likewise.
1978 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
1980         [BZ #22023]
1981         * locales/niu_NZ (LC_TIME): copy "niu_NU".
1982         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
1984 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
1986         [BZ #22112]
1987         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
1988         and add tel_int_fmt.
1990 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
1992         * sysdeps/generic/libm-alias-float128.h: New file.
1993         * sysdeps/generic/math-type-macros-float128.h: Include
1994         <libm-alias-float128.h>.
1995         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
1997 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
1999         * sysdeps/generic/libm-alias-ldouble.h: New file.
2000         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
2001         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
2002         * sysdeps/generic/math-type-macros-ldouble.h: Include
2003         <libm-alias-ldouble.h>.
2004         [!declare_mgen_alias] (declare_mgen_alias): Define to use
2005         libm_alias_ldouble.
2007 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2009         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
2010         * math/w_exp_compat.c: ... here.
2011         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
2012         * math/w_expf_compat.c: ... here.
2013         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
2014         * math/w_expl_compat.c: ... here.
2015         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
2016         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
2017         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
2018         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
2020 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
2022         * math/w_scalbln_template.c (strong_alias): Do not undefine and
2023         redefine.
2024         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
2025         macro.
2026         (ldexpl): Only define as compat symbol for libc, not libm.
2027         (scalbnl): Define as compat symbol for libc here.
2028         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
2029         define for [IS_IN (libc)].
2030         (__ldexpl_2): Remove alias.
2031         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
2032         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
2033         name in long_double_symbol call.
2034         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
2035         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
2036         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
2037         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
2038         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
2039         Remove macro.
2040         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
2041         Define as compat symbol.
2043 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2045         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
2046         * sysdeps/unix/sysv/linux/alpha/Makefile
2047         [$(subdir) = csu] (sysdep_routines): Remove rule.
2049 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
2051         * sysdeps/generic/libm-alias-double.h: New file.
2052         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
2053         * sysdeps/generic/math-type-macros-double.h: Include
2054         <libm-alias-double.h>.
2055         [declare_mgen_alias] (declare_mgen_alias): Define to use
2056         libm_alias_double.
2057         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
2058         (M_LIBM_NEED_COMPAT): Remove macro.
2059         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
2060         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
2061         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
2062         code.
2063         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2064         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2065         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2066         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2067         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2068         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2069         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2070         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2071         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2072         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2073         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2074         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2075         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2076         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2077         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2078         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2079         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2080         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2081         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2082         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2083         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2084         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2085         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2086         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2087         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2088         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2089         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2090         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
2091         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
2092         macro.
2093         (declare_mgen_alias): New macro.
2094         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
2095         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
2096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
2097         (M_LIBM_NEED_COMPAT): Remove macro.
2098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
2099         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
2100         <first-versions.h>.
2101         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
2102         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
2104 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
2106         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
2107         (declare_mgen_alias_2): Remove.
2108         * sysdeps/generic/math-type-macros-double.h
2109         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
2110         Likewise.
2111         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
2112         alias.
2113         (ldexp): Define with declare_mgen_alias.
2114         (scalbn): Likewise.
2116 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
2118         * grp/initgroups.c: Include config.h.
2119         (DEFAULT_CONFIG): New macro.
2120         (internal_getgrouplist): Use DEFAULT_CONFIG.
2121         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2122         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
2123         (DEFAULT_DEFCONFIG): New macro.
2124         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
2125         * nss/grp-lookup.c: Include config.h
2126         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
2127         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
2128         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
2129         * manual/nss.texi: Update default values section.
2131 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
2133         [BZ #21967]
2134         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
2135         New.
2136         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
2137         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2138         Handle MathVec_Prefer_No_AVX512.
2139         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
2140         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
2141         is set.
2143 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2145         * posix/sched_primax.c (__sched_get_priority_max): Add
2146         libc_hidden_def.
2147         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
2148         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2149         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
2150         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
2151         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
2152         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
2153         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
2154         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
2155         Add aliases.
2157 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
2159         * sysdeps/generic/libm-alias-float.h: New file.
2160         * sysdeps/generic/math-type-macros-float.h: Include
2161         <libm-alias-float.h>.
2162         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
2164 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2166         [BZ #22093]
2167         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
2168         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
2169         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
2170         (HWCAP_IMPORTANT): Likewise.
2171         (HWCAP_X86_64): New enum.
2172         (HWCAP_X86_AVX512_1): Updated.
2173         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
2174         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
2175         (modules-names): Add x86_64/tst-x86_64mod-1.
2176         (LDFLAGS-tst-x86_64mod-1.so): New.
2177         ($(objpfx)tst-x86_64-1): Likewise.
2178         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
2179         (tst-x86_64-1-clean): Likewise.
2180         * sysdeps/x86_64/tst-x86_64-1.c: New file.
2181         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
2183 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2185         * po/sv.po: Update translations.
2186         * po/fr.po: Likewise.
2188 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2190         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
2191         seconds.
2192         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
2193         seconds.
2194         * elf/rtld-Rules: Fix $(error) use.
2196 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
2198         [BZ #14925]
2199         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
2200         * locale/iso-639.def: Change “Bengali” to “Bangla”.
2201         * localedata/locales/bn_BD: “Bengali” was still used in some
2202         comments. Change it to “Bangla”.
2204 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
2206         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
2208 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
2210         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
2211         thunderx2t99p1 to list of cpu names.
2212         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2213         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
2215 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
2217         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
2218         Use strcmp instead of tunable_is_name.
2220 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
2222         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2223         (F_GET_RW_HINT): New macro.
2224         [__USE_GNU] (F_SET_RW_HINT): Likewise.
2225         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
2226         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
2227         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
2228         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
2229         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
2230         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
2231         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
2232         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
2234         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2235         (F_ADD_SEALS): New macro.
2236         [__USE_GNU] (F_GET_SEALS): Likewise.
2237         [__USE_GNU] (F_SEAL_SEAL): Likewise.
2238         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
2239         [__USE_GNU] (F_SEAL_GROW): Likewise.
2240         [__USE_GNU] (F_SEAL_WRITE): Likewise.
2242 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2244         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2245         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2246         * posix/glob_internal.h (__glob_pattern_type):
2247         * posix/glob.c (glob):
2248         * posix/glob_pattern_p.c (__glob_pattern_p):
2249         Use them.
2251         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
2252         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
2253         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
2254         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
2255         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
2256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
2257         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
2258         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
2259         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
2260         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2261         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
2262         * sysdeps/wordsize-64/glob.c: Likewise.
2263         * sysdeps/wordsize-64/glob64.c: Likewise.
2264         * sysdeps/wordsize-64/globfree.c: Likewise.
2265         * sysdeps/wordsize-64/globfree64.c: Likewise.
2266         * sysdeps/unix/sysv/linux/glob.c: New file.
2267         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
2268         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
2269         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
2270         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
2271         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
2272         adds !GLOB_NO_OLD_VERSION as an extra condition.
2273         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
2274         using relative path instead of absolute one.
2275         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
2276         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2277         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2278         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2279         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
2280         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
2282         [BZ #1062]
2283         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
2284         (glob): Use the same scratch buffer for both getlogin_r and
2285         getpwnam_r.  Don’t require preallocation of the login name.  This
2286         simplifies storage allocation, and corrects the handling of
2287         long login names.
2289         [BZ #1062]
2290         * posix/glob.c (glob): Port recent patches to platforms
2291         lacking getpwnam_r.
2292         (glob): Fix longstanding misuse of errno after getpwnam_r, which
2293         returns an error number rather than setting errno.
2295         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
2296         instead of GCC extension.
2297         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
2298         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
2299         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
2301         [BZ #866]
2302         [BZ #1062]
2303         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
2304         * posix/bug-glob1.c: Remove file.
2305         * posix/tst-glob_symlinks.c: New file.
2306         * posix/glob.c (__lstat64): New macro.
2307         (is_dir): New function.
2308         (glob, glob_in_dir): Match symlinks even if they are dangling.
2309         (link_stat, link_exists_p): Remove.  All uses removed.
2311         [BZ #1062]
2312         [BZ #19971]
2313         * posix/glob.c (struct readdir_result): Remove skip_entry member.
2314         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
2315         All uses removed.
2317         [BZ #1062]
2318         * posix/Makefile (routines): Add globfree, globfree64, and
2319         glob_pattern_p.
2320         * posix/flexmember.h: New file.
2321         * posix/glob_internal.h: Likewise.
2322         * posix/glob_pattern_p.c: Likewise.
2323         * posix/globfree.c: Likewise.
2324         * posix/globfree64.c: Likewise.
2325         * sysdeps/gnu/globfree64.c: Likewise.
2326         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
2327         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
2328         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
2329         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
2330         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
2331         * sysdeps/wordsize-64/globfree.c: Likewise.
2332         * sysdeps/wordsize-64/globfree64.c: Likewise.
2333         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
2334         [NDEBUG): Remove comments.
2335         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
2336         (dirent_type): New type.  Use uint_fast8_t not
2337         uint8_t, as C99 does not require uint8_t.
2338         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
2339         (struct readdir_result): Use dirent_type.  Do not define skip_entry
2340         unless it is needed; this saves a byte on platforms lacking d_ino.
2341         (readdir_result_type, readdir_result_skip_entry):
2342         New functions, replacing ...
2343         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
2344          these functions, which were removed.  This makes the callers
2345         easier to read.  All callers changed.
2346         (D_INO_TO_RESULT): Now empty if there is no d_ino.
2347         (size_add_wrapv, glob_use_alloca): New static functions.
2348         (glob, glob_in_dir): Check for size_t overflow in several places,
2349         and fix some size_t checks that were not quite right.
2350         Remove old code using SHELL since Bash no longer
2351         uses this.
2352         (glob, prefix_array): Separate MS code better.
2353         (glob_in_dir): Remove old Amiga and VMS code.
2354         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
2355         separate files.
2356         (glob_in_dir): Do not rely on undefined behavior in accessing
2357         struct members beyond their bounds.  Use a flexible array member
2358         instead
2359         (link_stat): Rename from link_exists2_p and return -1/0 instead of
2360         0/1.  Caller changed.
2361         (glob): Fix memory leaks.
2362         * posix/glob64 (globfree64): Move to separate file.
2363         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
2364         (globfree64): Remove hidden alias.
2365         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
2366         oldglob.
2367         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
2368         separate file.
2369         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
2370         define.
2371         Move compat code to separate file.
2372         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
2373         separate file.
2375 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2377         * resolv/tst-resolv-qtypes.c (domain): Changed to
2378         "const char domain[] =".
2380 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
2382         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2383         version to 3.1.6.
2385         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
2386         (TCP_MD5SIG_EXT): Likewise.
2387         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
2388         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
2389         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
2391         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
2393 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
2395         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
2397 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
2399         [BZ #22100]
2400         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
2402 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2404         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
2405         before assuming that the file is empty.  Avoid testing buffer content
2406         when nread == 0.
2408 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2410         [BZ #18858]
2411         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
2412         Remove define.
2413         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
2414         Likewise.
2415         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
2416         Likewise.
2417         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
2418         Likewise.
2419         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
2420         Likewise.
2421         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
2422         Likewise.
2423         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
2424         Likewise.
2426 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2428         * malloc/dynarray_emplace_enlarge.c
2429         (__libc_dynarray_emplace_enlarge): Add missing else.
2431 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2433         [BZ #22096]
2434         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
2435         case of failure to obtain the global conf object.
2437 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2439         [BZ #22095]
2440         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
2441         dynarray allocation failure.
2443 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2445         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
2446         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
2447         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
2448         New functions.
2449         (response): Call them.  Add 'p', '6' flag processing.
2450         (test_reverse): New function.
2451         (test_get2_any): Call it.
2452         (test_no_inet6): Add 'p' test.
2453         (test_inet6): Likewise.
2455 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2457         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
2458         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
2459         the QNAME.
2460         (test_gai): Adjust query names.  Add additional tests.
2461         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
2462         test_get2.  Adjust query names.  Add additional tests.
2463         (test_no_inet6): New function, extracted from threadfunc.
2464         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
2465         Add additional tests.
2467 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
2469         [BZ #22070]
2470         * localedata/unicode-gen/utf8_gen.py: Set the width for
2471         characters with Prepended_Concatenation_Mark property to 1
2472         * localedata/charmaps/UTF-8: Updated using the improved script.
2474 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
2476         [BZ #21750]
2477         * localedata/unicode-gen/utf8_gen.py: Improve the script to
2478         use the range notation for all ranges of neighbouring characters
2479         with the same width.
2481 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
2483         * sysdeps/generic/math-type-macros-double.h: Include
2484         <math-svid-compat.h>.
2485         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
2486         * sysdeps/generic/math-type-macros-float.h: Include
2487         <math-svid-compat.h>.
2488         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
2489         * sysdeps/generic/math-type-macros-ldouble.h: Include
2490         <math-svid-compat.h>.
2491         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
2492         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
2493         condition.
2494         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
2495         * math/w_acosf_compat.c: Likewise.
2496         * math/w_acosh_compat.c: Likewise.
2497         * math/w_acoshf_compat.c: Likewise.
2498         * math/w_acoshl_compat.c: Likewise.
2499         * math/w_acosl_compat.c: Likewise.
2500         * math/w_asin_compat.c: Likewise.
2501         * math/w_asinf_compat.c: Likewise.
2502         * math/w_asinl_compat.c: Likewise.
2503         * math/w_atan2_compat.c: Likewise.
2504         * math/w_atan2f_compat.c: Likewise.
2505         * math/w_atan2l_compat.c: Likewise.
2506         * math/w_atanh_compat.c: Likewise.
2507         * math/w_atanhf_compat.c: Likewise.
2508         * math/w_atanhl_compat.c: Likewise.
2509         * math/w_cosh_compat.c: Likewise.
2510         * math/w_coshf_compat.c: Likewise.
2511         * math/w_coshl_compat.c: Likewise.
2512         * math/w_exp10_compat.c: Likewise.
2513         * math/w_exp10f_compat.c: Likewise.
2514         * math/w_exp10l_compat.c: Likewise.
2515         * math/w_exp2_compat.c: Likewise.
2516         * math/w_exp2f_compat.c: Likewise.
2517         * math/w_exp2l_compat.c: Likewise.
2518         * math/w_fmod_compat.c: Likewise.
2519         * math/w_fmodf_compat.c: Likewise.
2520         * math/w_fmodl_compat.c: Likewise.
2521         * math/w_hypot_compat.c: Likewise.
2522         * math/w_hypotf_compat.c: Likewise.
2523         * math/w_hypotl_compat.c: Likewise.
2524         * math/w_j0_compat.c: Likewise.
2525         * math/w_j0f_compat.c: Likewise.
2526         * math/w_j0l_compat.c: Likewise.
2527         * math/w_j1_compat.c: Likewise.
2528         * math/w_j1f_compat.c: Likewise.
2529         * math/w_j1l_compat.c: Likewise.
2530         * math/w_jn_compat.c: Likewise.
2531         * math/w_jnf_compat.c: Likewise.
2532         * math/w_jnl_compat.c: Likewise.
2533         * math/w_lgamma_r_compat.c: Likewise.
2534         * math/w_lgammaf_r_compat.c: Likewise.
2535         * math/w_lgammal_r_compat.c: Likewise.
2536         * math/w_log10_compat.c: Likewise.
2537         * math/w_log10f_compat.c: Likewise.
2538         * math/w_log10l_compat.c: Likewise.
2539         * math/w_log2_compat.c: Likewise.
2540         * math/w_log2f_compat.c: Likewise.
2541         * math/w_log2l_compat.c: Likewise.
2542         * math/w_log_compat.c: Likewise.
2543         * math/w_logf_compat.c: Likewise.
2544         * math/w_logl_compat.c: Likewise.
2545         * math/w_pow_compat.c: Likewise.
2546         * math/w_powf_compat.c: Likewise.
2547         * math/w_powl_compat.c: Likewise.
2548         * math/w_remainder_compat.c: Likewise.
2549         * math/w_remainderf_compat.c: Likewise.
2550         * math/w_remainderl_compat.c: Likewise.
2551         * math/w_sinh_compat.c: Likewise.
2552         * math/w_sinhf_compat.c: Likewise.
2553         * math/w_sinhl_compat.c: Likewise.
2554         * math/w_sqrt_compat.c: Likewise.
2555         * math/w_sqrtf_compat.c: Likewise.
2556         * math/w_sqrtl_compat.c: Likewise.
2557         * math/w_tgamma_compat.c: Likewise.
2558         * math/w_tgammaf_compat.c: Likewise.
2559         * math/w_tgammal_compat.c: Likewise.
2560         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
2561         [LIBM_SVID_COMPAT].
2562         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
2563         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
2564         [LIBM_SVID_COMPAT].
2565         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
2566         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
2567         [LIBM_SVID_COMPAT].
2568         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
2569         * sysdeps/i386/fpu/w_sqrt.c: New file.
2570         * sysdeps/ia64/fpu/w_acos.c: Likewise.
2571         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
2572         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
2573         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
2574         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
2575         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
2576         * sysdeps/ia64/fpu/w_asin.c: Likewise.
2577         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
2578         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
2579         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
2580         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
2581         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
2582         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
2583         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
2584         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
2585         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
2586         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
2587         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
2588         * sysdeps/ia64/fpu/w_exp.c: Likewise.
2589         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
2590         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
2591         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
2592         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
2593         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
2594         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
2595         * sysdeps/ia64/fpu/w_expf.c: Likewise.
2596         * sysdeps/ia64/fpu/w_expl.c: Likewise.
2597         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
2598         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
2599         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
2600         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
2601         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
2602         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
2603         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
2604         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
2605         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
2606         * sysdeps/ia64/fpu/w_log.c: Likewise.
2607         * sysdeps/ia64/fpu/w_log10.c: Likewise.
2608         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
2609         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
2610         * sysdeps/ia64/fpu/w_log2.c: Likewise.
2611         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
2612         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
2613         * sysdeps/ia64/fpu/w_logf.c: Likewise.
2614         * sysdeps/ia64/fpu/w_logl.c: Likewise.
2615         * sysdeps/ia64/fpu/w_pow.c: Likewise.
2616         * sysdeps/ia64/fpu/w_powf.c: Likewise.
2617         * sysdeps/ia64/fpu/w_powl.c: Likewise.
2618         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
2619         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
2620         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
2621         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
2622         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
2623         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
2624         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
2625         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
2626         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
2627         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
2628         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
2629         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
2630         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
2631         [LIBM_SVID_COMPAT].
2632         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
2633         * sysdeps/ieee754/k_standard.c: Likewise.
2634         * sysdeps/ieee754/k_standardf.c: Likewise.
2635         * sysdeps/ieee754/k_standardl.c: Likewise.
2636         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
2637         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
2638         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
2639         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
2640         long_double_symbol call on [LIBM_SVID_COMPAT].
2641         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
2642         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
2643         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
2644         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
2645         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
2646         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
2647         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
2648         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
2649         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
2650         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
2651         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
2652         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2653         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
2654         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
2655         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
2656         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
2657         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
2658         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
2659         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
2660         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
2661         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
2662         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
2664 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
2666         * include/shlib-compat.h (TEST_COMPAT): New Macro.
2667         * malloc/tst-mallocstate.c: Convert from test-skeleton
2668         to test-driver.  Ifdef code using TEST_COMPAT macro.
2669         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
2670         * math/test-matherr.c: Likewise.
2672 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
2674         [BZ #22086]
2675         * debug/pcprofiledump.c (main): Use byte-swapped mask when
2676         comparing word with byte-swapped constant.
2678 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
2680         [BZ #20498]
2681         * locale/iso-639.def: add Miskito.
2682         * localedata/SUPPORTED: Add miq_NI/UTF-8.
2683         * localedata/locales/miq_NI: New file.
2685 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
2687         [BZ #18822]
2688         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
2689         (__mkdir): Likewise.
2690         * io/chmod.c (__chmod): Add libc_hidden_def.
2691         * io/mkdir.c (__mkdir): Likewise.
2692         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
2693         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
2694         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
2695         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
2697 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
2699         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2700         version to 4.13.
2702         [BZ #22082]
2703         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
2704         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
2706 2017-09-04  Florian Weimer  <fweimer@redhat.com>
2708         * math/math.h: Issue warning if log is defined.
2710 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
2712         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2713         kernel version to 4.13.
2715 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2717         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
2718         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
2719         parameter.
2720         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
2721         just <bits/types.h>.
2722         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
2723         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
2724         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
2725         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2726         * misc/preadv2.c: Include <errno.h>.
2727         * misc/preadv64v2.c: Include <errno.h>.
2728         * misc/pwritev2.c: Include <errno.h>.
2729         * misc/pwritev64v2.c: Include <errno.h>.
2730         * sysdeps/posix/preadv2.c: Include <errno.h>.
2731         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
2732         Fix <unistd.h> inclusion.
2733         * sysdeps/posix/pwritev2.c: Include <errno.h>.
2734         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
2735         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
2736         __strtoul_internal): New functions.
2737         * sysdeps/posix/pause.c: Include <sigsetops.h>.
2738         * sysdeps/posix/system.c: Include <sigsetops.h>.
2739         * sysdeps/mach/hurd/i386/Makefile
2740         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
2741         [$(subdir) = csu] (sysdep-only-routines): Likewise.
2742         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
2743         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
2744         __feraiseexcept_renamed to feraiseexcept instead of
2745         __GI_feraiseexcept.
2746         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2747         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
2748         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
2749         RWF_NOWAIT): Define to 0 if undefined already.
2750         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
2751         boils down to 0.
2752         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
2753         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
2755 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
2757         * manual/math.texi (pow10): Do not document.
2758         (pow10f): Likewise.
2759         (pow10l): Likewise.
2760         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
2761         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
2762         * math/libm-test-exp10.inc (pow10_test): Remove.
2763         (do_test): Do not call pow10.
2764         * math/w_exp10_compat.c (pow10): Make into compat symbol.
2765         [NO_LONG_DOUBLE] (pow10l): Likewise.
2766         * math/w_exp10f_compat.c (pow10f): Likewise.
2767         * math/w_exp10l_compat.c (pow10l): Likewise.
2768         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
2769         (pow10): Make into compat symbol.
2770         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
2771         (pow10f): Make into compat symbol.
2772         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
2773         (pow10l): Make into compat symbol.
2774         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
2775         pow10.
2776         (CFLAGS-nldbl-pow10.c): Remove variable..
2777         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
2778         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
2779         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
2780         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
2781         Undefine and redefine.
2782         (pow10l): Make into compat symbol.
2783         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
2784         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
2785         * sysdeps/arm/libm-test-ulps: Likewise.
2786         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
2787         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
2788         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2789         * sysdeps/microblaze/libm-test-ulps: Likewise.
2790         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
2791         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2792         * sysdeps/nios2/libm-test-ulps: Likewise.
2793         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2794         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
2795         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2796         * sysdeps/sh/libm-test-ulps: Likewise.
2797         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2798         * sysdeps/tile/libm-test-ulps: Likewise.
2799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2801 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
2803         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
2805 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
2807         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
2808         "../ChangeLog.old/ChangeLog.8".
2809         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
2810         "../ChangeLog.old/ChangeLog.14".
2812 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
2814         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
2815         Threads Library.
2817 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
2819         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
2821 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
2823         * csu/version.c (banner): Remove "by Roland McGrath et al.".
2824         * nptl/Banner: Remove "by Ulrich Drepper et al.".
2826 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
2828         * stdlib/tst-atexit-common.c (do_test): Test support for at least
2829         32 atexit handlers.
2831 2017-09-01  Zack Weinberg  <zackw@panix.com>
2833         * math/math.h (HUGE_VAL): Improve commentary.
2835 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2836             Andreas Schwab  <schwab@suse.de>
2838         [BZ #21530]
2839         * include/stdio.h (__gen_tempfd): New function.
2840         * stdio-common/Makefile (routines): Add gentempfd.
2841         * stdio-common/gentempfd.c: New file.
2842         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
2843         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
2844         unnamed file first.
2846 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2848         [BZ #21915]
2849         [BZ #21922]
2850         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
2851         result to determine success or failure, not the errno value.
2852         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
2853         (tst-nss-files-hosts-erange): Link with -ldl.
2854         * nss/tst-nss-files-hosts-erange.c: New file.
2855         * nss/tst-resolv-basic.c (response): Handle nodata.example.
2856         (do_test): Add NO_DATA tests.
2857         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
2858         (do_test): Call it.
2860 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2862         [BZ #21922]
2863         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
2864         coming from gethostbyname2_r.
2866 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2868         * support/namespace.h (struct support_chroot_configuration): Add
2869         hosts, host_conf.
2870         (struct support_chroot): Add path_hosts, path_host_conf.
2871         * support/support_chroot.c (write_file): New function.
2872         (support_chroot_create): Call it to process /etc/resolv.conf,
2873         /etc/hosts, /etc/host.conf.
2874         (support_chroot_free): Update.
2876 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2878         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
2879         status indicates it is set.
2881 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2883         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
2884         function lookup failures more reliable.
2886 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2888         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
2889         (getcanonname): Likewise.
2890         (gaih_inet): Likewise.
2892 2017-09-01  Florian Weimer  <fweimer@redhat.com>
2894         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
2895         (getcanonname): Likewise.
2896         (gaih_inet): Likewise.
2898 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
2899             Richard Henderson <rth@twiddle.net>
2901         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
2902         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
2903         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
2904         (IREG_SIZE, OREG_SIZE): New macros.
2905         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
2906         (IREG_SIZE, OREG_SIZE): New macros.
2907         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
2908         (IREG_SIZE): New macro.
2909         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
2910         (IREG_SIZE): New macro.
2911         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
2912         New includes.
2913         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
2914         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
2915         (__CONCATX): Handle exceptions correctly on large values that may
2916         set FE_INVALID.
2917         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
2918         Initialize if not already set.
2919         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
2921 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2923         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
2924         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
2925         Likewise.
2926         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
2927         Likewise.
2928         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
2929         Likewise.
2930         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
2931         Likewise.
2932         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
2933         Likewise.
2934         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
2935         Likewise.
2936         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
2937         Likewise.
2938         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
2939         (NO_CANCELLATION): Likewise.
2940         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
2941         Likewise.
2942         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
2943         Likewise.
2944         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
2945         Likewise.
2946         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
2947         (NO_CANCELLATION): Likewise.
2948         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
2949         (NO_CANCELLATION): Likewise.
2950         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
2951         Likewise
2952         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
2953         Likewise.
2954         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
2955         Likewise.
2956         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
2957         Likewise.
2958         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
2959         hidden prototype.
2960         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
2961         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
2963 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
2965         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
2966         in resolver call.
2968 2017-08-31  Florian Weimer  <fweimer@redhat.com>
2970         * include/libc-symbols.h (internal_function): Remove.
2972 2017-08-31  Florian Weimer  <fweimer@redhat.com>
2974         * stdlib/fmtmsg.c (internal_addseverity): Remove
2975         internal_function.
2977 2017-08-31  Florian Weimer  <fweimer@redhat.com>
2979         * stdio-common/printf_fp.c (group_number): Remove
2980         internal_function.
2981         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
2983 2017-08-31  Florian Weimer  <fweimer@redhat.com>
2985         * posix/fnmatch.c (internal_function): Remove definition.
2986         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
2987         * posix/regcomp.c (peek_token, init_word_char)
2988         (duplicate_node_closure, fetch_token, peek_token)
2989         (peek_token_bracket, build_range_exp, build_collating_symbol):
2990         Likewise.
2991         * posix/regex_internal.c (re_string_construct_common)
2992         (create_ci_newstate, create_cd_newstate, re_string_allocate)
2993         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
2994         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
2995         (re_string_translate_buffer, re_string_reconstruct)
2996         (re_string_peek_byte_case, re_string_fetch_byte_case)
2997         (re_string_destruct, re_string_context_at, re_node_set_alloc)
2998         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
2999         (re_node_set_add_intersect, re_node_set_init_union)
3000         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
3001         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
3002         (re_dfa_add_node, calc_state_hash, re_acquire_state)
3003         (re_acquire_state_context): Likewise.
3004         * posix/regex_internal.h (internal_function): Remove definition.
3005         (re_string_realloc_buffers, build_wcs_buffer)
3006         (build_wcs_upper_buffer, build_upper_buffer)
3007         (re_string_translate_buffer, re_string_context_at)
3008         (re_string_char_size_at, re_string_wchar_at)
3009         (re_string_elem_size_at): Likewise.
3010         * posix/regexec.c (match_ctx_init, match_ctx_clean)
3011         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
3012         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
3013         (re_search_internal, re_search_2_stub, re_search_stub)
3014         (re_copy_regs, prune_impossible_nodes, check_matching)
3015         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
3016         (free_fail_stack_return, sift_states_iter_mb)
3017         (sift_states_backward, build_sifted_states)
3018         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
3019         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
3020         (check_subexp_limits, sift_states_bkref, merge_state_array)
3021         (find_recover_state, transit_state, merge_state_with_log)
3022         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
3023         (transit_state_mb, transit_state_bkref, get_subexp)
3024         (get_subexp_sub, find_subexp_node, check_arrival)
3025         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
3026         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
3027         (check_node_accept_bytes, find_collation_sequence_value)
3028         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
3029         (acquire_init_state_context, check_halt_node_context)
3030         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
3031         (sub_epsilon_src_nodes): Likewise.
3032         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
3033         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
3034         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
3035         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
3036         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
3037         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
3038         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
3039         * sysdeps/posix/ttyname.c (getttyname): Likewise.
3040         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
3041         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
3042         (PREADV): Likewise.
3043         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
3044         (PREADV): Likewise.
3045         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
3046         (PWRITEV): Likewise.
3047         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
3048         (PWRITEV): Likewise.
3049         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
3050         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
3052 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3054         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
3055         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
3056         Remove internal_function.
3057         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
3058         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
3059         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
3060         (__deallocate_stack, __libc_pthread_init)
3061         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
3062         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
3063         (__libc_disable_asynccancel, __librt_disable_asynccancel):
3064         Likewise.
3065         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
3066         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
3067         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
3068         Likewise.
3069         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
3070         (__pthread_mutex_unlock_usercnt): Likewise.
3072 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3074         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
3075         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
3076         (fts_safe_changedir): Remove internal_function.
3077         * io/ftw.c (internal_function): Remove definition.
3078         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
3080 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3082         * inet/deadline.c (__deadline_current_time)
3083         (__deadline_from_timeval, __deadline_to_ms): Remove
3084         internal_function.
3085         * inet/getnameinfo.c (nrl_domainname): Likewise.
3086         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
3087         * inet/inet6_option.c (add_pad): Likewise.
3088         * inet/net-internal.h (__deadline_current_time)
3089         (__deadline_from_timeval, __deadline_to_ms): Likewise.
3090         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
3091         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
3092         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
3094 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
3096         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
3097         include <bits/nan.h>.
3098         * math/Makefile (headers): Remove bits/nan.h.
3099         * bits/nan.h: Remove.
3100         * sysdeps/ieee754/bits/nan.h: Likewise.
3101         * sysdeps/mips/bits/nan.h: Likewise.
3103         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
3104         not include <bits/inf.h>.
3105         * math/Makefile (headers): Remove bits/inf.h.
3106         * bits/inf.h: Remove.
3107         * sysdeps/ieee754/bits/inf.h: Likewise.
3109         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
3110         bits/huge_vall.h or bits/huge_val_flt128.h.
3111         (HUGE_VAL): Define directly here.
3112         [__USE_ISOC99] (HUGE_VALF): Likewise.
3113         [__USE_ISOC99] (HUGE_VALL): Likewise.
3114         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3115         (HUGE_VAL_F128): Likewise.
3116         * math/Makefile (headers): Remove bits/huge_val.h,
3117         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
3118         * bits/huge_val.h: Remove.
3119         * bits/huge_val_flt128.h: Likewise.
3120         * bits/huge_valf.h: Likewise.
3121         * bits/huge_vall.h: Likewise.
3122         * sysdeps/ia64/bits/huge_vall.h: Likewise.
3123         * sysdeps/ieee754/bits/huge_val.h: Likewise.
3124         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
3125         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
3126         * sysdeps/sh/bits/huge_val.h: Likewise.
3127         * sysdeps/sparc/bits/huge_vall.h: Likewise.
3128         * sysdeps/x86/bits/huge_vall.h: Likewise.
3130 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3132         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
3133         internal_function.
3134         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
3135         Likewise.
3136         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
3137         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
3138         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
3139         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
3140         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3141         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
3142         * elf/dl-libc.c (dlerror_run): Likewise.
3143         * elf/dl-load.c (add_name_to_object, decompose_rpath)
3144         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
3145         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
3146         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
3147         Likewise.
3148         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
3149         (_dl_higher_prime_number, _dl_strtoul): Likewise.
3150         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
3151         * elf/dl-profile.c (_dl_start_profile): Likewise.
3152         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
3153         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
3154         Likewise.
3155         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
3156         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
3157         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
3158         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
3159         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
3160         (_dl_allocate_tls_storage): Likewise.
3161         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
3162         (_dl_check_all_versions): Likewise.
3163         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
3164         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
3165         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
3166         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
3167         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
3168         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
3169         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
3170         internal_function from __dl_start.
3171         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
3172         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
3173         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
3174         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
3175         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
3176         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
3177         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
3178         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
3179         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
3180         (_dl_next_ld_env_entry, _dl_important_hwcaps)
3181         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
3182         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
3183         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
3184         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
3185         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
3186         Likewise.
3187         (struct rtld_global_ro): Remove internal_function from the
3188         _dl_lookup_symbol_x member.
3189         (_dl_symbol_value): Remove.  No longer defined anywhere.
3190         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
3191         internal_function.
3192         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
3193         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
3194         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
3195         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
3196         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
3197         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
3198         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
3199         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
3200         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
3201         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
3202         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
3203         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
3205 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3207         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
3208         Remove internal_function.
3209         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
3210         Likewise.
3211         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
3212         Likewise.
3214 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3216         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
3217         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
3218         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
3220 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3222         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
3223         (__gai_enqueue_request): Remove internal_function.
3224         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
3225         (__gai_remove_request, __gai_notify, __gai_notify_only)
3226         (__gai_sigqueue): Likewise.
3227         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
3228         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
3229         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
3230         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3231         Likewise.
3233 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3235         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
3236         * include/dirent.h (__opendirat, __getdents, __getdents64)
3237         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
3238         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
3239         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
3240         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3241         Likewise.
3242         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
3244 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3246         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
3247         internal_function.
3248         (GETCWD_RETURN_TYPE): Likewise.
3250 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3252         * include/time.h (__tz_compute, __strptime_internal): Remove
3253         internal_function.
3254         * time/strptime_l.c (__strptime_internal): Likewise.
3255         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
3257 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3259         * iconv/gconv.c (__gconv): Remove internal_function.
3260         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
3261         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
3262         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
3263         (__gconv_release_cache): Likewise.
3264         * iconv/gconv_close.c (__gconv_close): Likewise.
3265         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
3266         (read_conf_file, __gconv_get_path): Likewise.
3267         * iconv/gconv_db.c (derivation_lookup, add_derivation)
3268         (__gconv_release_step, gen_steps, increment_counter)
3269         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
3270         (__gconv_close_transform, free_modules_db): Likewise.
3271         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
3272         Likewise.
3273         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
3274         (__gconv_find_transform, __gconv_lookup_cache)
3275         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
3276         (__gconv_close_transform, __gconv_release_cache)
3277         (__gconv_loaded_object, __gconv_release_shlib)
3278         (__gconv_compare_alias): Likewise.
3279         * iconv/gconv_open.c (__gconv_open): Likewise.
3280         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
3281         * iconv/iconvconfig.c (add_module): Likewise.
3282         * intl/dcigettext.c (plural_lookup, guess_category_value)
3283         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
3284         * intl/eval-plural.h (plural_eval): Likewise.
3285         * intl/finddomain.c (_nl_find_domain): Likewise.
3286         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
3287         (_nl_load_domain, _nl_find_msg): Likewise.
3288         (internal_function): Remove definition.
3289         * intl/loadinfo.h (internal_function): Likewise.
3290         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
3291         internal_function.
3292         * intl/localealias.c (internal_function): Remove definition.
3293         (read_alias_file): Remove internal_function.
3294         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
3295         * intl/plural-exp.h (internal_function): Remove definition.
3296         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
3297         internal_function.
3298         * intl/plural.c: Regenerate.
3299         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
3300         * locale/coll-lookup.c (__collidx_table_lookup)
3301         (__collseq_table_lookup): Likewise.
3302         * locale/coll-lookup.h (__collidx_table_lookup)
3303         (__collseq_table_lookup): Likewise.
3304         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
3305         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
3306         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
3307         (_nl_unload_locale): Likewise.
3308         * locale/localeinfo.h (struct __locale_data): Remove
3309         internal_function from cleanup member.
3310         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
3311         (_nl_remove_locale, _nl_load_locale_from_archive)
3312         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
3313         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
3314         (_nl_cleanup_time): Remove internal_function.
3315         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
3316         (_nl_parse_alt_digit): Likewise.
3317         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
3318         (_nl_select_era_entry): Likewise.
3319         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3320         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
3321         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
3322         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
3323         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
3325 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3327         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
3328         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3329         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
3330         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
3331         Likewise.
3332         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
3333         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
3334         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
3335         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
3336         Likewise.
3337         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
3339 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3341         * misc/getttyent.c (skip, value): Remove internal_function.
3342         * misc/syslog.c (openlog_internal): Likewise.
3343         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
3345 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3347         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
3348         (__nss_rewrite_field): Remove internal_function.
3349         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3350         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3351         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3352         * nss/nsswitch.c (nss_parse_file, nss_getline)
3353         (nss_parse_service_list, nss_new_service): Likewise.
3354         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
3355         * nss/valid_field.c (__nss_valid_field): Likewise.
3356         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
3358 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3360         * malloc/arena.c (__malloc_fork_lock_parent)
3361         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
3362         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
3363         internal_function from defintions.
3364         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
3365         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
3366         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
3367         internal_function from declarations.
3368         * malloc/malloc.c (internal_function): Do not define.
3369         (mem2mem_check): Remove internal_function from declaration.
3370         (munmap_chunk, mremap_chunk): Remove internal_function.
3371         * malloc/mtrace.c (tr_where): Likewise.
3373 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3375         * include/rpc/pmap_clnt.h (__get_socket): Remove
3376         internal_function.
3377         * sunrpc/auth_des.c (synchronize): Likewise.
3378         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
3379         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
3380         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
3381         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
3382         (key_call): Likewise.
3383         * sunrpc/pm_getport.c (__get_socket): Likewise.
3384         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
3385         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
3386         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
3387         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
3388         (invalidate): Likewise.
3389         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
3390         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
3391         (set_input_fragment, get_input_bytes): Likewise.
3393 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3395         * malloc/malloc.c (_int_free): Remove locked variable and related
3396         asserts.
3398 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
3400         [BZ #22051]
3401         * Makerules (build-module-helper-objlist): Filter out
3402         $(elf-objpfx)sofini.os.
3403         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
3404         needed.
3406 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3408         * libio/fcloseall.c: Assume weak_alias is defined.
3409         * libio/feof.c: Likewise.
3410         * libio/fileno.c: Likewise.
3411         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
3412         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
3413         definitions.
3414         (_IO_file_open): Call __open directly.
3415         (_IO_new_file_sync): Assume ESPIPE is defined.
3416         (_IO_file_seekoff_maybe_mmap): Call __read directly.
3417         (_IO_new_file_write): Call __write directly.
3418         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
3419         * libio/ftello64.c (__ftello64): Assume EIO is defined.
3420         * libio/genops.c: Assume _LIBC is defined.
3421         (save_for_backup): Remove internal_function.
3422         * libio/getc.c: Assume weak_alias is defined.
3423         * libio/getwc.c: Likewise.
3424         * libio/iofclose.c: Assume _LIBC is defined.
3425         * libio/iofdopen.c: Likewise.
3426         (_IO_fcntl): Remove macro definition.
3427         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
3428         Call __fcntl directly.
3429         * libio/iofflush.c: Assume weak_alias is defined.
3430         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
3431         defined.
3432         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
3433         * libio/iofgets.c: Likewise.
3434         * libio/iofopen.c: Assume _LIBC is defined.
3435         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
3436         * libio/iofputs.c: Assume weak_alias is defined.
3437         * libio/iofread.c: Likewise.
3438         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
3439         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3440         * libio/ioftell.c: Assume weak_alias is defined.
3441         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
3442         * libio/iofwide.c: Assume _LIBC is defined.
3443         (_IO_fwide): Drop SHARED conditional because it is implied by
3444         SHLIB_COMPAT.
3445         * libio/iofwrite.c: Assume weak_alias is defined.
3446         * libio/iogetdelim.c: Likewise.
3447         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
3448         * libio/iogetwline.c (wmemcpy): Remove macro definition.
3449         (_IO_getwline): Call __wmemcpy directly.
3450         * libio/iopopen.c: Assume _LIBC is defined.
3451         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
3452         (_IO_close): Remove macro definitions.
3453         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
3454         _exit directly.
3455         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
3456         directly.
3457         * libio/ioputs.c: Assume weak_alias is defined.
3458         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
3459         * libio/iosetbuffer.c: Assume weak_alias is defined.
3460         * libio/iosetvbuf.c: Likewise.
3461         * libio/ioungetc.c: Likewise.
3462         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
3463         libc_hidden_def, libc_hidden_weak, NULL are defined.
3464         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
3465         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
3466         defined.
3467         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
3468         definitions.
3469         (_IO_old_file_init_internal): Drop SHARED conditional because it
3470         is implied by SHLIB_COMPAT.
3471         (_IO_old_file_fopen): Call __open directly.
3472         (_IO_old_file_sync): Assume ESPIPE is defined.
3473         (_IO_old_file_write): Call __write directly.
3474         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
3475         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
3476         Call __fcntl directly.
3477         * libio/oldiofgetpos.c: Assume weak_alias is defined.
3478         (_IO_old_fgetpos): Assume EIO is defined.
3479         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
3480         (_IO_old_fgetpos64): Assume EIO is defined.
3481         * libio/oldiofsetpos.c: Assume weak_alias is defined.
3482         (_IO_old_fsetpos): Assume EIO is defined.
3483         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
3484         (_IO_old_fsetpos64): Assume EIO is defined.
3485         * libio/oldiopopen.c:  Assume _LIBC is defined.
3486         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
3487         (_IO_close): Remove macro definitions.
3488         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
3489         directly.
3490         (_IO_old_proc_close): Call __close, __waitpid directly.
3491         * libio/put.c: Assume weak_alias is defined.
3492         * libio/stdfiles.c: Assume _LIBC is defined.
3493         * libio/stdio.c: Likewise.
3494         * libio/wfileops.c: Likewise.
3495         (_IO_wfile_sync): Assume ESPIPE is defined.
3496         * libio/wgenops.c: Assume _LIBC is defined.
3497         (save_for_wbackup): Remove internal_function.
3499 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3501         * malloc/malloc.c (top_check): Change return type to void.  Remove
3502         internal_function.
3503         * malloc/hooks.c (top_check): Likewise.
3504         (malloc_check, realloc_check, memalign_check): Adjust.
3506 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
3508         [BZ #21457]
3509         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
3510         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
3511         sigcontext and namespace requirements.
3512         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
3513         * sysdeps/m68k/sys/ucontext.h: Likewise.
3514         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
3515         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
3516         <bits/sigcontext.h>.
3517         (__ctx): Define earlier.
3518         (mcontext_t): Define structure contents rather than using struct
3519         sigcontext.
3520         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
3521         __glibc_reserved1 instead of __reserved.
3522         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
3523         <bits/sigcontext.h>.
3524         (__ctx): Define earlier.
3525         (mcontext_t): Define structure contents rather than using struct
3526         sigcontext.
3527         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
3528         mcontext_t instead of struct sigcontext.
3529         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
3530         <bits/sigcontext.h>.
3531         (__ctx): Define earlier.
3532         (mcontext_t): Define structure contents rather than using struct
3533         sigcontext.
3534         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
3535         <bits/sigcontext.h>.
3536         (__ctx): Define earlier.
3537         (mcontext_t): Define structure contents rather than using struct
3538         sigcontext.
3539         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
3540         mcontext_t instead of struct sigcontext.
3541         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
3542         mcontext_t instead of struct sigcontext.
3543         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
3544         <bits/sigcontext.h>.
3545         (__ctx): New macro.
3546         (struct __ia64_fpreg_mcontext): New type.
3547         (mcontext_t): Define structure contents rather than using struct
3548         sigcontext.
3549         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
3550         (uc_sigmask): Define using __ctx.
3551         (uc_stack): Likewise.
3552         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
3553         <bits/sigcontext.h>.
3554         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3555         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
3556         <bits/sigcontext.h>.
3557         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
3558         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
3559         <bits/sigcontext.h>.
3560         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
3561         <bits/sigcontext.h>.
3562         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
3563         <bits/sigcontext.h>.
3564         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
3565         <bits/sigcontext.h>.
3566         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
3567         <bits/sigcontext.h>.
3568         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
3569         <bits/sigcontext.h>.
3570         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
3571         <bits/sigcontext.h>.
3572         (__ctx): Define earlier.
3573         (mcontext_t): Define structure contents rather than using struct
3574         sigcontext.
3575         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
3576         <bits/sigcontext.h>.  Include <bits/types.h>.
3577         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
3578         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
3579         (test-xfail-XPG42/ucontext.h/conform): Likewise.
3580         (test-xfail-UNIX98/signal.h/conform): Likewise.
3581         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
3582         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
3583         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
3584         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
3585         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
3586         (test-xfail-POSIX2008/signal.h/conform): Likewise.
3587         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
3588         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
3589         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
3591 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3593         * malloc/dynarray_emplace_enlarge.c
3594         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
3595         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
3596         * malloc/tst-dynarray.c (test_long_overflow): New function.
3597         (do_test): Call it.
3599 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3601         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
3602         (set_arena_corrupt): Remove definitions.
3603         (mtrim): Do not check for corrupt arena.
3604         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
3605         Likewise.
3607 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3609         [BZ #21754]
3610         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
3611         check_action.
3612         (ptmalloc_init): Do not set or use check_action.
3613         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
3614         call to malloc_printerr.  Remove return statement.
3615         (free_check): Likewise.  Remove arena unlock.
3616         (top_check): Update comment.  Adjust call to malloc_printerr.
3617         Remove heap repair code.
3618         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
3619         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
3620         (sysmalloc): Adjust call to malloc_printerr.
3621         (munmap_chunk, __libc_realloc): Likewise.  Remove return
3622         statement.
3623         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
3624         Remove errout label and corresponding gotos.
3625         (_int_free): Likewise.  Remove arena unlock.
3626         (do_set_mallopt_check): Do not set check_action.
3627         (malloc_printerr): Adjust parameter list.  Do not mark arena as
3628         corrupt.
3629         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
3630         comment.
3631         * manual/probes.texi (Memory Allocation Probes): Remove
3632         memory_mallopt_check_action.
3634 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
3636         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
3637         Use pointer to uint64_t instead of long int for sp.
3639 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3641         [BZ #21754]
3642         * malloc/malloc.c (malloc_printerr): Always terminate the process,
3643         without printing a backtrace.  Do not leak any information in the
3644         error message.
3645         * manual/memory.texi (Heap Consistency Checking): Update.
3646         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
3648 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3650         Do not scale NPTL tests with available number of CPUs.
3651         * nptl/tst-cond16.c (count): Set to constant value of 8.
3652         * nptl/tst-cond18.c (count): Likewise.
3654 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
3656         [BZ #22035]
3657         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
3658         Define to take a second argument that is a macro that
3659         concatentates a suffix, not the suffix itself.
3660         (__CONCAT_d): New macro.
3661         (__CONCAT_f): Likewise.
3662         (__CONCAT_l): Likewise.
3664 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
3666         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
3667         by child.
3669 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3670             Aurelien Jarno  <aurelien@aurel32.net>
3671             Maciej W. Rozycki  <macro@imgtec.com>
3673         [BZ #21956]
3674         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
3675         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
3676         `mips16-syscall6' and `mips16-syscall7'.
3677         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
3678         (CFLAGS-mips16-syscall7.c): Remove.
3679         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
3680         Remove `__mips16_syscall5', `__mips16_syscall6' and
3681         `__mips16_syscall7'.
3682         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
3683         (__mips16_syscall0): Rename `__mips16_syscall_return' to
3684         `__mips_syscall_return'.
3685         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
3686         (__mips16_syscall1): Likewise.
3687         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
3688         (__mips16_syscall2): Likewise.
3689         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
3690         (__mips16_syscall3): Likewise.
3691         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
3692         (__mips16_syscall4): Likewise.
3693         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
3694         Remove.
3695         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
3696         Remove.
3697         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
3698         Remove.
3699         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
3700         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
3701         `__mips16_syscall5'.  Remove prototype.
3702         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
3703         `__mips16_syscall6'.  Remove prototype.
3704         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
3705         `__mips16_syscall7'.  Remove prototype.
3706         (__nomips16, __mips16_syscall_return): Move to...
3707         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
3708         (__nomips16, __mips_syscall_return): ... here.
3709         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
3710         `__mips16_syscall_return' to `__mips_syscall_return'.
3711         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
3712         `internal_syscall##nr'.
3713         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
3714         `internal_syscall##nr'.
3715         (FORCE_FRAME_POINTER): Remove.
3716         (__mips_syscall5): New prototype.
3717         (internal_syscall5): Rewrite to call `__mips_syscall5'.
3718         (__mips_syscall6): New prototype.
3719         (internal_syscall6): Rewrite to call `__mips_syscall6'.
3720         (__mips_syscall7): New prototype.
3721         (internal_syscall7): Rewrite to call `__mips_syscall7'.
3722         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
3723         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
3724         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
3725         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
3726         (sysdep_routines): Add libc-do-syscall.
3727         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
3728         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
3730 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3732         [BZ #21672]
3733         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
3734         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
3735         (advise_stack_range): New function.
3736         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
3737         stack non required to advise_stack_range at allocatestack.c
3739 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3741         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
3743 2017-08-29  Florian Weimer  <fweimer@redhat.com>
3745         [BZ #22026]
3746         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
3747         __end_fct.  Mangle __end_fct after setting it to NULL.
3748         * iconv/Makefile (tests): Add tst-gconv-init-failure.
3749         (modules-names, modules-names-tests): Add
3750         tst-gconv-init-failure-mod.
3751         (gconv-modules): New target.
3752         (tst-gconv-init-failure-mod.so): Link against libsupport.
3753         (tst-gconv-init-failure): Depend on gconv-modules,
3754         tst-gconv-init-failure-mod.so.
3755         * iconv/tst-gconv-init-failure-mod.c: New file.
3756         * iconv/tst-gconv-init-failure.c: Likewise.
3757         * iconv/test-gconv-modules: Likewise.
3759 2017-08-29  Florian Weimer  <fweimer@redhat.com>
3761         [BZ #22025]
3762         * iconv/gconv_db.c (free_derivation): Remove redundant
3763         parentheses.
3764         (gen_steps): Unconditionally mangle __btowc_fct after
3765         initialization.
3766         (increment_counter): Likewise.  Do not call init_fct for internal
3767         modules.
3769 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
3771         [BZ #22028]
3772         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
3773         (_MSUF_): Remove macro.
3774         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
3775         Likewise.
3776         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
3777         (__REDIRFROM_X): New macro.
3778         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
3779         Likewise.
3780         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
3781         (__REDIRTO_X): Likewise.
3782         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
3783         arguments.
3784         (__MATH_REDIRCALL_2): Likewise.
3785         (__MATH_REDIRCALL_INTERNAL): Likewise.
3786         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
3787         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
3788         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
3789         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
3790         * math/test-finite-macros.c: New file.
3791         * math/Makefile (tests): Add test-finite-macros.
3792         (CFLAGS-test-finite-macros.c): New variable.
3794 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
3795             Jeff Law  <law@redhat.com>
3797         [BZ #22025]
3798         Mangle NULL pointers in iconv/gconv.
3799         * iconv/gconv_cache.c (find_module): Demangle init_fct before
3800         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
3801         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
3802         is non-NULL before demangling the end_fct.  Check for NULL
3803         end_fct after demangling.
3804         (__gconv_release_step): Demangle the end_fct before checking
3805         it for NULL.   Remove assert on __shlibc_handle != NULL.
3806         (gen_steps): Don't check btowc_fct for NULL before mangling.
3807         Demangle init_fct before checking for NULL.
3808         (increment_counter): Likewise.
3809         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
3810         end_fct for NULL before mangling.
3811         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
3812         for NULL.
3814 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
3816         [BZ #21971]
3817         * locale/iso-639.def: add Morisyen.
3819 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3821         [BZ #21930]
3822         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
3823         (iszero): New C++ implementation that does not use
3824         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
3825         signaling nans are enabled, since __builtin_types_compatible_p
3826         is a C-only feature.
3827         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
3828         defined, include ieee754_float128.h for access to the union and
3829         member ieee854_float128.ieee.
3830         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
3831         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
3832         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
3833         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
3834         options of test-math-zero on powerpc64le.
3836 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
3838         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
3839         Change double to float.
3841 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
3843         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
3844         unconditional.
3845         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
3846         conditional code; define contents only for [LIBM_SVID_COMPAT].
3848 2017-08-28  Florian Weimer  <fweimer@redhat.com>
3850         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
3851         (abi-lp64_be-options): Remove.
3852         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
3853         (abi-hard-options): Likewise.
3854         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
3855         (abi-o32_hard-options, abi-o32_soft_2008-options)
3856         (abi-o32_hard_2008-options, abi-n32_soft-options)
3857         (abi-n32_hard-options, abi-n32_soft_2008-options)
3858         (abi-n32_hard_2008-options, abi-n64_soft-options)
3859         (abi-n64_hard-options, abi-n64_soft_2008-options)
3860         (abi-n64_hard_2008-options): Likewise.
3861         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
3862         (abi-64-v1-options, abi-64-v2-options): Likewise.
3863         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
3864         (abi-64-options): Likewise.
3865         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
3866         (abi-64-options): Likewise.
3867         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
3868         (abi-64-options): Likewise.
3869         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
3870         (abi-64-options, abi-x32-options): Likewise.
3872 2017-08-28  Florian Weimer  <fweimer@redhat.com>
3874         Store supported list of SYS_* system calls in the source tree.
3875         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3876         (bits/syscall.h): Generate from list file.
3877         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
3878         [$(subdir) = misc] (tests): Add tst-syscall-list.
3879         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
3880         [$(subdir) = misc] (tst-syscall-list-macros.list)
3881         [$(subdir) = misc] (tst-syscall-list-nr.list)
3882         (tst-syscall-list-sys.list): Helper targets for new
3883         tst-syscall-list test.
3884         [$(subdir) = misc] (tst-syscall-list.out): Run test script
3885         tst-syscall-list.sh.
3886         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
3887         target. Do not include bits/syscall.d.
3888         [$(subdir) = misc] (generated): Do not update.
3889         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
3890         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
3891         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
3892         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
3894 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
3896         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
3897         (tst-cxa_atexit, tst-on_exit): Likewise.
3898         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
3899         tst-cxa_atexit, and tst-on_exit.
3900         * stdlib/tst-atexit-common.c: New file.
3901         * stdlib/tst-atexit.c: New file.
3902         * stdlib/tst-at_quick_exit.c: New file.
3903         * stdlib/tst-cxa_atexit.c: New file.
3904         * stdlib/tst-on_exit.c: New file.
3906 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3908         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
3909         * mach/stack_chk_fail_local.c: New file.
3910         * hurd/stack_chk_fail_local.c: New file.
3911         * mach/Machrules ($(interface-library)-routines): Add
3912         stack_chk_fail_local.
3913         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
3914         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
3915         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
3916         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
3917         * hurd/Makefile (CFLAGS-hurdstartup.o,
3918         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
3920 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
3922         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
3923         (index_cpu_*, index_arch_*): Removed.
3925 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3927         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
3928         Use uint64_t instead of unsigned long.
3930 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
3932         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
3933         [__HAVE_DISTINCT_FLOAT128].
3935         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
3936         of <bits/math-finite.h>.
3937         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
3938         inclusion of <bits/math-finite.h>.
3939         * math/bits/math-finite.h (__REDIRTO_X): Do not define
3940         conditionally on [__MATH_DECLARING_LDOUBLE && defined
3941         __NO_LONG_DOUBLE_MATH].
3942         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
3943         (__MATH_REDIRCALL_2): Likewise.
3944         (__MATH_REDIRCALL_INTERNAL): Likewise.
3945         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
3946         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
3947         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
3949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
3950         Remove file.
3951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
3952         Likewise.
3953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
3954         Likewise.
3955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
3956         Likewise.
3957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
3958         Likewise.
3959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
3960         Likewise.
3961         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
3962         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
3963         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
3964         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
3965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3966         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
3967         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
3968         w_sqrtf_compat-ppc32.
3970 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3972         * math/math.h [defined __cplusplus] (issignaling): In the long
3973         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
3974         is not defined.  Call __issignaling, otherwise.
3976 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3978         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
3979         syscall definitions and replace __builtin_expect with __glibc_likely.
3980         * sysdeps/unix/syscall-template.S: Update comment about cancellable
3981         syscall.
3982          (SYSCALL_CANCELLABLE): Removedefinition
3983         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
3984         definition.
3985         (PSEUDO_END): Likewise.
3986         [IS_IN (libpthread)] (CENABLE): Likewise.
3987         [IS_IN (libpthread)] (CDISABLE): Likewise.
3988         [IS_IN (libc)] (CENABLE): Likewise.
3989         [IS_IN (libc)] (CENABLE): Likewise.
3990         [IS_IN (librt)] (CDISABLE): Likewise.
3991         [IS_IN (librt)] (CDISABLE): Likewise.
3992         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3993         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
3994         definition.
3995         (PSEUDO_END): Likewise.
3996         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
3997         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
3998         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
3999         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
4000         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
4001         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
4002         (CENABLE): Likewise.
4003         (CDISABLE): Likewise.
4004         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4005         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
4006         defintion.
4007         (PSEUDO_END): Likewise.
4008         [IS_IN (libpthread)] (CENABLE): Likewise.
4009         [IS_IN (libpthread)] (CDISABLE): Likewise.
4010         [IS_IN (libc)] (CENABLE): Likewise.
4011         [IS_IN (libc)] (CENABLE): Likewise.
4012         [IS_IN (librt)] (CDISABLE): Likewise.
4013         [IS_IN (librt)] (CDISABLE): Likewise.
4014         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4015         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
4016         definition.
4017         (PSEUDO_END): Likewise.
4018         [IS_IN (libpthread)] (CENABLE): Likewise.
4019         [IS_IN (libpthread)] (CDISABLE): Likewise.
4020         [IS_IN (libc)] (CENABLE): Likewise.
4021         [IS_IN (libc)] (CENABLE): Likewise.
4022         [IS_IN (librt)] (CDISABLE): Likewise.
4023         [IS_IN (librt)] (CDISABLE): Likewise.
4024         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4025         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
4026         definition.
4027         (PSEUDO_END): Likewise.
4028         [IS_IN (libpthread)] (CENABLE): Likewise.
4029         [IS_IN (libpthread)] (CDISABLE): Likewise.
4030         [IS_IN (libc)] (CENABLE): Likewise.
4031         [IS_IN (libc)] (CENABLE): Likewise.
4032         [IS_IN (librt)] (CDISABLE): Likewise.
4033         [IS_IN (librt)] (CDISABLE): Likewise.
4034         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4035         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
4036         definition.
4037         (PSEUDO_END): Likewise.
4038         [IS_IN (libpthread)] (CENABLE): Likewise.
4039         [IS_IN (libpthread)] (CDISABLE): Likewise.
4040         [IS_IN (libc)] (CENABLE): Likewise.
4041         [IS_IN (libc)] (CENABLE): Likewise.
4042         [IS_IN (librt)] (CDISABLE): Likewise.
4043         [IS_IN (librt)] (CDISABLE): Likewise.
4044         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4045         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
4046         definition.
4047         (PSEUDO_END): Likewise.
4048         [IS_IN (libpthread)] (CENABLE): Likewise.
4049         [IS_IN (libpthread)] (CDISABLE): Likewise.
4050         [IS_IN (libc)] (CENABLE): Likewise.
4051         [IS_IN (libc)] (CENABLE): Likewise.
4052         [IS_IN (librt)] (CDISABLE): Likewise.
4053         [IS_IN (librt)] (CDISABLE): Likewise.
4054         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4055         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
4056         definition.
4057         (PSEUDO_END): Likewise.
4058         [IS_IN (libpthread)] (CENABLE): Likewise.
4059         [IS_IN (libpthread)] (CDISABLE): Likewise.
4060         [IS_IN (libc)] (CENABLE): Likewise.
4061         [IS_IN (libc)] (CENABLE): Likewise.
4062         [IS_IN (librt)] (CDISABLE): Likewise.
4063         [IS_IN (librt)] (CDISABLE): Likewise.
4064         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4065         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
4066         Remove definition.
4067         (PSEUDO_END): Likewise.
4068         [IS_IN (libpthread)] (CENABLE): Likewise.
4069         [IS_IN (libpthread)] (CDISABLE): Likewise.
4070         [IS_IN (libc)] (CENABLE): Likewise.
4071         [IS_IN (libc)] (CENABLE): Likewise.
4072         [IS_IN (librt)] (CDISABLE): Likewise.
4073         [IS_IN (librt)] (CDISABLE): Likewise.
4074         (SINGLE_THREAD_P): Likewise.
4075         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
4076         definition.
4077         (PSEUDO_END): Likewise.
4078         [IS_IN (libpthread)] (CENABLE): Likewise.
4079         [IS_IN (libpthread)] (CDISABLE): Likewise.
4080         [IS_IN (libc)] (CENABLE): Likewise.
4081         [IS_IN (libc)] (CENABLE): Likewise.
4082         [IS_IN (librt)] (CDISABLE): Likewise.
4083         [IS_IN (librt)] (CDISABLE): Likewise.
4084         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4085         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
4086         definition.
4087         (PSEUDO_END): Likewise.
4088         [IS_IN (libpthread)] (CENABLE): Likewise.
4089         [IS_IN (libpthread)] (CDISABLE): Likewise.
4090         [IS_IN (libc)] (CENABLE): Likewise.
4091         [IS_IN (libc)] (CENABLE): Likewise.
4092         [IS_IN (librt)] (CDISABLE): Likewise.
4093         [IS_IN (librt)] (CDISABLE): Likewise.
4094         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4095         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
4096         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4097         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
4098         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
4099         definition.
4100         (PSEUDO_END): Likewise.
4101         [IS_IN (libpthread)] (CENABLE): Likewise.
4102         [IS_IN (libpthread)] (CDISABLE): Likewise.
4103         [IS_IN (libc)] (CENABLE): Likewise.
4104         [IS_IN (libc)] (CENABLE): Likewise.
4105         [IS_IN (librt)] (CDISABLE): Likewise.
4106         [IS_IN (librt)] (CDISABLE): Likewise.
4107         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4108         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
4109         definition.
4110         (PSEUDO_END): Likewise.
4111         [IS_IN (libpthread)] (CENABLE): Likewise.
4112         [IS_IN (libpthread)] (CDISABLE): Likewise.
4113         [IS_IN (libc)] (CENABLE): Likewise.
4114         [IS_IN (libc)] (CENABLE): Likewise.
4115         [IS_IN (librt)] (CDISABLE): Likewise.
4116         [IS_IN (librt)] (CDISABLE): Likewise.
4117         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4118         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
4119         definition.
4120         (PSEUDO_END): Likewise.
4121         [IS_IN (libpthread)] (CENABLE): Likewise.
4122         [IS_IN (libpthread)] (CDISABLE): Likewise.
4123         [IS_IN (libc)] (CENABLE): Likewise.
4124         [IS_IN (libc)] (CENABLE): Likewise.
4125         [IS_IN (librt)] (CDISABLE): Likewise.
4126         [IS_IN (librt)] (CDISABLE): Likewise.
4127         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4128         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
4129         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4130         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
4131         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
4132         definition.
4133         (PSEUDO_END): Likewise.
4134         [IS_IN (libpthread)] (CENABLE): Likewise.
4135         [IS_IN (libpthread)] (CDISABLE): Likewise.
4136         [IS_IN (libc)] (CENABLE): Likewise.
4137         [IS_IN (libc)] (CENABLE): Likewise.
4138         [IS_IN (librt)] (CDISABLE): Likewise.
4139         [IS_IN (librt)] (CDISABLE): Likewise.
4140         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4141         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
4142         definition.
4143         (PSEUDO_END): Likewise.
4144         [IS_IN (libpthread)] (CENABLE): Likewise.
4145         [IS_IN (libpthread)] (CDISABLE): Likewise.
4146         [IS_IN (libc)] (CENABLE): Likewise.
4147         [IS_IN (libc)] (CENABLE): Likewise.
4148         [IS_IN (librt)] (CDISABLE): Likewise.
4149         [IS_IN (librt)] (CDISABLE): Likewise.
4150         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4152 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4154         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
4156 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
4158         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4160 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
4162         [BZ #21982]
4163         * string/stratcliff.c (do_test): Declare size, nchars, inner,
4164         middle and outer with size_t instead of int.  Repleace %d and
4165         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
4166         "MAX (outer, nchars - 64)" to support unsigned outer and
4167         nchars.  Also exit loop when outer == 0.
4169 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4171         * include/fcntl.h (__fcntl_nocancel): Remove definition.
4172         * include/signal.h (__sigsuspend_nocancel): Likewise.
4173         * include/time.h (__nanosleep_nocancel): Likewise.
4174         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
4175         * login/utmp_file.c: Include non cancellable syscall header.
4176         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
4177         prototype.
4179 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
4181         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
4182         .byte sequences with AVX512F instructions.
4183         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
4184         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
4185         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
4186         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
4187         Likewise.
4188         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
4189         Likewise.
4191 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4192             Steve Ellcey  <sellcey@cavium.com>
4194         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
4195         Use PTR_REG macro in cmp instruction.
4197 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4199         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
4200         Change the return type of the ifunc resolver to match the return
4201         type of the target function.
4203 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4205         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
4206         (preadv64): Likewise.
4207         (pwrite64(: Likewise.
4208         (pwritev64): Likewise.
4210         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
4211         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
4212         (LOAD_ARGS_0): Likewise.
4213         (LOAD_ARGS_1): Likewise.
4214         (LOAD_ARGS_2): Likewise.
4215         (LOAD_ARGS_3): Likewise.
4216         (LOAD_ARGS_4): Likewise.
4217         (LOAD_ARGS_5): Likewise.
4218         (LOAD_ARGS_6): Likewise.
4219         (LOAD_REGS_0): Likewise.
4220         (LOAD_REGS_1): Likewise.
4221         (LOAD_REGS_2): Likewise.
4222         (LOAD_REGS_3): Likewise.
4223         (LOAD_REGS_4): Likewise.
4224         (LOAD_REGS_5): Likewise.
4225         (LOAD_REGS_6): Likewise.
4226         (ASM_ARGS_0): Likewise.
4227         (ASM_ARGS_1): Likewise.
4228         (ASM_ARGS_2): Likewise.
4229         (ASM_ARGS_3): Likewise.
4230         (ASM_ARGS_4): Likewise.
4231         (ASM_ARGS_5): Likewise.
4232         (ASM_ARGS_6): Likewise.
4233         (LOAD_ARGS_TYPES_1): Likewise.
4234         (LOAD_ARGS_TYPES_2): Likewise.
4235         (LOAD_ARGS_TYPES_3): Likewise.
4236         (LOAD_ARGS_TYPES_4): Likewise.
4237         (LOAD_ARGS_TYPES_5): Likewise.
4238         (LOAD_ARGS_TYPES_6): Likewise.
4239         (LOAD_REGS_TYPES_1): Likewise.
4240         (LOAD_REGS_TYPES_2): Likewise.
4241         (LOAD_REGS_TYPES_3): Likewise.
4242         (LOAD_REGS_TYPES_4): Likewise.
4243         (LOAD_REGS_TYPES_5): Likewise.
4244         (LOAD_REGS_TYPES_6): Likewise.
4245         (TYPEFY): New define.
4246         (ARGIFY): Likewise.
4247         (internal_syscall0): Likewise.
4248         (internal_syscall1): Likewise.
4249         (internal_syscall2): Likewise.
4250         (internal_syscall3): Likewise.
4251         (internal_syscall4): Likewise.
4252         (internal_syscall5): Likewise.
4253         (internal_syscall6): Likewise.
4254         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
4255         (INTERNAL_SYSCALL_NCS): Remove define.
4256         (internal_syscall1): Add define.
4258 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4260         * math/w_remainder_compat.c: Remove duplicate inclusion of
4261         math-svid-compat.h.
4262         * math/w_remainderf_compat.c: Likewise.
4263         * math/w_remainderl_compat.c: Likewise.
4265 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4267         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4269 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
4271         [BZ #21684]
4272         * math/tgmath.h (__floating_type): Simplify definitions.
4273         (__real_integer_type): New macro.
4274         (__complex_integer_type): Likewise.
4275         (__expr_is_real): Likewise.
4276         (__tgmath_real_type_sub): Update comment to describe handling of
4277         complex types.
4278         (__tgmath_complex_type_sub): New macro.
4279         (__tgmath_complex_type): Likewise.
4280         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4281         (__TGMATH_CF128): Use __expr_is_real.
4282         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
4283         __expr_is_real.
4284         (__TGMATH_BINARY_REAL_IMAG): Likewise.
4285         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
4286         * math/gen-tgmath-tests.py (Type.create_type): Create complex
4287         integer types.
4289 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4291         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
4292         macro.
4293         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
4294         alias.
4295         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
4296         Likewise.
4298         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
4299         nanosleep_not_cancel with __nanosleep_nocancel.
4300         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
4301         (__nanosleep_nocancel): New macro.
4302         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
4303         function.
4304         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
4305         macro.
4306         (__nanosleep_nocancel): New prototype.
4308         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
4309         pause_not_cancel with __pause_nocancel.
4310         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
4311         (__pause_nocancel): New macro.
4312         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
4313         macro.
4314         (__pause_nocancel): New prototype.
4315         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
4317 2017-08-22  Martin Sebor  <msebor@redhat.com>
4319         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
4320         to return a pointer to the same type as the target function.
4322 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4324         [BZ #18822]
4325         [BZ #21986]
4326         * include/printf.h (__printf_fphex): Add attribute_hidden.
4327         (__guess_grouping): New prototype.
4328         * stdio-common/printf_fp.c (__guess_grouping): Removed.
4329         * stdio-common/reg-printf.c (__register_printf_specifier): Add
4330         libc_hidden_proto and libc_hidden_def.
4331         * stdlib/strfmon_l.c (__guess_grouping): Removed.
4332         (__vstrfmon_l): Remove the third argument passed to
4333         __guess_grouping.
4335 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4337         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
4338         definition for issignaling that does not rely on __MATH_TG,
4339         since __MATH_TG uses __builtin_types_compatible_p, which is only
4340         available in C mode.
4341         (CFLAGS-test-math-issignaling.cc): New variable.
4342         * math/Makefile [CXX] (tests): Add test-math-issignaling.
4343         * math/test-math-issignaling.cc: New test for C++ implementation
4344         of type-generic issignaling.
4345         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
4346         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
4347         options of test-math-issignaling on powerpc64le.
4349 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4351         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
4352         building libc.a.
4353         (hidden_proto): Likewise.
4354         (hidden_tls_proto): Likewise.
4355         (__hidden_proto): Likewise.
4357 2017-08-22  Florian Weimer  <fweimer@redhat.com>
4359         math: Statically link tests of internal functionality.
4360         * math/Makefile (tests): Remove atest-exp, atest-sincos,
4361         atest-exp2.
4362         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
4363         (gmp-objs): Remove assignment.
4364         (atest-exp, atest-sincos, atest-exp2): Remove targets.
4366 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
4368         [BZ #21987]
4369         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
4370         and copy to ...
4371         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
4372         ... here.
4373         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
4374         ... and here.
4376         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
4377         variable definitions above inclusion of ../Rules.
4379 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
4381         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
4382         case calling __builtin_unreachable.
4384 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4386         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
4387         __waitpid_nocancel.
4388         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
4389         (__waitpid_nocancel): New macro.
4390         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
4391         macro.
4392         (__waitpid_nocancel): Replace macro with a function.
4393         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
4394         function.
4396         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
4397         __fcntl_nocancel.
4398         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
4399         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
4401         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
4402         __writev_nocancel_nostatus.
4403         (write_call_graph): Likewise.
4404         (write_bb_counts): Likewise.
4405         * resolv/herror.c (herror): Likewise.
4406         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
4407         macro.
4408         (__writev_nocancel_nostatus): New macro.
4409         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
4410         Remove macro.
4411         (__writev_nocancel_nostatus): New function.
4413 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
4415         Revert:
4416         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4418         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
4419         building libc.a.
4420         (hidden_proto): Likewise.
4421         (hidden_tls_proto): Likewise.
4422         (__hidden_proto): Likewise.
4424         [BZ #21973]
4425         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
4426         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
4427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
4428         Likewise.
4429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
4430         Likewise.
4431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
4432         Likewise.
4433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
4434         Likewise.
4435         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
4436         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
4437         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
4438         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
4439         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4440         GLIBC_2.0 sqrtl symbol.
4442         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
4443         [__USE_MISC] (_LIB_VERSION): Likewise.
4444         [__USE_MISC] (struct exception): Likewise.
4445         [__USE_MISC] (matherr): Likewise.
4446         [__USE_MISC] (DOMAIN): Likewise.
4447         [__USE_MISC] (SING): Likewise.
4448         [__USE_MISC] (OVERFLOW): Likewise.
4449         [__USE_MISC] (UNDERFLOW): Likewise.
4450         [__USE_MISC] (TLOSS): Likewise.
4451         [__USE_MISC] (PLOSS): Likewise.
4452         [__USE_MISC] (HUGE): Likewise.
4453         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
4454         * math/math-svid-compat.h: New file.
4455         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
4456         and matherrl.
4457         * include/math.h [!_ISOMAC] (__matherr): Remove.
4458         * manual/arith.texi (FP Exceptions): Do not document matherr.
4459         * math/Makefile (tests): Change test-matherr to test-matherr-3.
4460         (tests-internal): New variable.
4461         (install-lib): Do not add libieee.a.
4462         (non-lib.a): Likewise.
4463         (extra-objs): Do not add libieee.a and ieee-math.o.
4464         (CPPFLAGS-s_lib_version.c): Remove variable.
4465         ($(objpfx)libieee.a): Remove rule.
4466         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
4467         * math/ieee-math.c: Remove.
4468         * math/libm-test-support.c (matherr): Remove.
4469         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
4470         and license notices.  Include <math-svid-compat.h> and
4471         <shlib-compat.h>.
4472         (matherr): Undefine as macro.  Use compat_symbol_reference.
4473         (_LIB_VERSION): Likewise.
4474         * math/test-matherr-2.c: New file.
4475         * math/test-matherr-3.c: Likewise.
4476         * sysdeps/generic/math_private.h (__kernel_standard): Remove
4477         declaration.
4478         (__kernel_standard_f): Likewise.
4479         (__kernel_standard_l): Likewise.
4480         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
4481         <math_private.h>.  Include <math-svid-compat.h>.
4482         (_LIB_VERSION): Undefine as macro.
4483         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
4484         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
4485         [LIBM_SVID_COMPAT], use compat_symbol.
4486         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
4487         <math_private.h>.  Include <math-svid-compat.h>.
4488         (matherr): Undefine as macro.
4489         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
4490         compat_symbol.
4491         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
4492         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
4493         compat_symbol_reference.
4494         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
4495         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
4496         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
4497         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
4498         (MATHERR_D): Remove declaration.
4499         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
4500         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
4501         [LIBM_BUILD] (pmatherrf): Likewise.
4502         [LIBM_BUILD] (pmatherr): Likewise.
4503         [LIBM_BUILD] (pmatherrl): Likewise.
4504         (DOMAIN): Likewise.
4505         (SING): Likewise.
4506         (OVERFLOW): Likewise.
4507         (UNDERFLOW): Likewise.
4508         (TLOSS): Likewise.
4509         (PLOSS): Likewise.
4510         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
4511         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
4512         compat_symbol.
4513         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
4514         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
4515         compat_symbol.
4516         * math/lgamma-compat.h: Include <math-svid-compat.h>.
4517         * math/w_acos_compat.c: Likewise.
4518         * math/w_acosf_compat.c: Likewise.
4519         * math/w_acosh_compat.c: Likewise.
4520         * math/w_acoshf_compat.c: Likewise.
4521         * math/w_acoshl_compat.c: Likewise.
4522         * math/w_acosl_compat.c: Likewise.
4523         * math/w_asin_compat.c: Likewise.
4524         * math/w_asinf_compat.c: Likewise.
4525         * math/w_asinl_compat.c: Likewise.
4526         * math/w_atan2_compat.c: Likewise.
4527         * math/w_atan2f_compat.c: Likewise.
4528         * math/w_atan2l_compat.c: Likewise.
4529         * math/w_atanh_compat.c: Likewise.
4530         * math/w_atanhf_compat.c: Likewise.
4531         * math/w_atanhl_compat.c: Likewise.
4532         * math/w_cosh_compat.c: Likewise.
4533         * math/w_coshf_compat.c: Likewise.
4534         * math/w_coshl_compat.c: Likewise.
4535         * math/w_exp10_compat.c: Likewise.
4536         * math/w_exp10f_compat.c: Likewise.
4537         * math/w_exp10l_compat.c: Likewise.
4538         * math/w_exp2_compat.c: Likewise.
4539         * math/w_exp2f_compat.c: Likewise.
4540         * math/w_exp2l_compat.c: Likewise.
4541         * math/w_fmod_compat.c: Likewise.
4542         * math/w_fmodf_compat.c: Likewise.
4543         * math/w_fmodl_compat.c: Likewise.
4544         * math/w_hypot_compat.c: Likewise.
4545         * math/w_hypotf_compat.c: Likewise.
4546         * math/w_hypotl_compat.c: Likewise.
4547         * math/w_j0_compat.c: Likewise.
4548         * math/w_j0f_compat.c: Likewise.
4549         * math/w_j0l_compat.c: Likewise.
4550         * math/w_j1_compat.c: Likewise.
4551         * math/w_j1f_compat.c: Likewise.
4552         * math/w_j1l_compat.c: Likewise.
4553         * math/w_jn_compat.c: Likewise.
4554         * math/w_jnf_compat.c: Likewise.
4555         * math/w_jnl_compat.c: Likewise.
4556         * math/w_lgamma_main.c: Likewise.
4557         * math/w_lgamma_r_compat.c: Likewise.
4558         * math/w_lgammaf_main.c: Likewise.
4559         * math/w_lgammaf_r_compat.c: Likewise.
4560         * math/w_lgammal_main.c: Likewise.
4561         * math/w_lgammal_r_compat.c: Likewise.
4562         * math/w_log10_compat.c: Likewise.
4563         * math/w_log10f_compat.c: Likewise.
4564         * math/w_log10l_compat.c: Likewise.
4565         * math/w_log2_compat.c: Likewise.
4566         * math/w_log2f_compat.c: Likewise.
4567         * math/w_log2l_compat.c: Likewise.
4568         * math/w_log_compat.c: Likewise.
4569         * math/w_logf_compat.c: Likewise.
4570         * math/w_logl_compat.c: Likewise.
4571         * math/w_pow_compat.c: Likewise.
4572         * math/w_powf_compat.c: Likewise.
4573         * math/w_powl_compat.c: Likewise.
4574         * math/w_remainder_compat.c: Likewise.
4575         * math/w_remainderf_compat.c: Likewise.
4576         * math/w_remainderl_compat.c: Likewise.
4577         * math/w_scalb_compat.c: Likewise.
4578         * math/w_scalbf_compat.c: Likewise.
4579         * math/w_scalbl_compat.c: Likewise.
4580         * math/w_sinh_compat.c: Likewise.
4581         * math/w_sinhf_compat.c: Likewise.
4582         * math/w_sinhl_compat.c: Likewise.
4583         * math/w_sqrt_compat.c: Likewise.
4584         * math/w_sqrtf_compat.c: Likewise.
4585         * math/w_sqrtl_compat.c: Likewise.
4586         * math/w_tgamma_compat.c: Likewise.
4587         * math/w_tgammaf_compat.c: Likewise.
4588         * math/w_tgammal_compat.c: Likewise.
4589         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
4590         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
4591         * sysdeps/ieee754/k_standard.c: Likewise.
4592         * sysdeps/ieee754/k_standardf.c: Likewise.
4593         * sysdeps/ieee754/k_standardl.c: Likewise.
4594         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
4595         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
4596         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
4597         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
4598         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
4599         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
4600         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
4601         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
4602         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
4603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
4604         Likewise.
4605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
4606         Likewise.
4607         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
4608         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
4609         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
4610         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
4612 2017-08-21  Florian Weimer  <fweimer@redhat.com>
4614         [BZ #21864]
4615         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
4616         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
4617         Move before inclusion of ../Rules.
4619 2017-08-21  Florian Weimer  <fweimer@redhat.com>
4621         [BZ #21972]
4622         * assert/assert.h (assert): Use static_cast (bool) for C++.
4623         Use the ternary operator in the warning branch for GNU C.
4624         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
4625         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
4626         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
4627         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
4628         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
4630 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4632         [BZ #18822]
4633         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4634         (__syscall_clock_gettime): Add attribute_hidden.
4635         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
4636         (__start_context): Likewise.
4638 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4640         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
4641         building libc.a.
4642         (hidden_proto): Likewise.
4643         (hidden_tls_proto): Likewise.
4644         (__hidden_proto): Likewise.
4646 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4648         * include/libc-symbols.h (attribute_hidden): Enable hidden
4649         visibility in libc.a compiled with PIE.
4651 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4653         [BZ #18822]
4654         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
4655         Add attribute_hidden.
4657 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4659         [BZ #21864]
4660         * Makerules (all-nonlib): Add $(others-extras).
4661         * catgets/Makefile (others-extras): New.
4662         * elf/Makefile (others-extras): Likewise.
4663         * nss/Makefile (others-extras): Likewise.
4665 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4667         [BZ #18822]
4668         * csu/libc-start.c (__libc_multiple_libcs): Removed.
4669         * elf/dl-open.c: Include <libc-internal.h>.
4670         (__libc_multiple_libcs): Removed.
4671         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
4672         <hp-timing.h>.
4673         * include/libc-internal.h (__libc_multiple_libcs): New.
4674         * misc/sbrk.c: Include <libc-internal.h>.
4675         (__libc_multiple_libcs): Removed.
4677 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4679         [BZ #18822]
4680         * grp/initgroups.c (__nss_group_database): Removed.
4681         (__nss_initgroups_database): Likewise.
4682         * nscd/gai.c (__nss_hosts_database): Likewise.
4683         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
4684         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
4685         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
4686         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
4687         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
4688         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
4689         attribute_hidden.
4690         * nss/nsswitch.c (__nss_database_custom): Define only if
4691         USE_NSCD is defined.
4692         (__nss_configure_lookup): Use __nss_database_custom only if
4693         USE_NSCD is defined.
4694         * nss/nsswitch.h (__nss_database_custom): Declare only if
4695         USE_NSCD is defined.  Add attribute_hidden.
4696         (__nss_setent): Add attribute_hidden.
4697         (__nss_endent): Likewise.
4698         (__nss_getent_r): Likewise.
4699         (__nss_getent): Likewise.
4700         (DEFINE_DATABASE): Declare __nss_##arg##_database.
4702 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4704         [BZ #18822]
4705         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
4706         libc_hidden_proto and libc_hidden_def.
4708 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4710         [BZ #18822]
4711         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
4712         Add libc_hidden_proto.
4713         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
4714         Add libc_hidden_def.
4716 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4718         [BZ #21974]
4719         * gmon/Makefile (routines): Remove bb_init_func and
4720         bb_exit_func.
4721         (elide-routines.os): Removed.
4722         * gmon/bb_exit_func.c: Likewise.
4723         * gmon/bb_init_func.c: Likewise.
4724         * include/sys/gmon.h (__bb): Likewise.
4725         (__bb_init_func): Likewise.
4726         (__bb_exit_func): Likewise.
4727         * sysdeps/alpha/bb_init_func.S: Likewise.
4729 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4731         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
4732         * include/setjmp.h (____longjmp_chk): Here.  Add
4733         attribute_hidden.
4735 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4737         [BZ #18822]
4738         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
4739         attribute_hidden.
4740         (__strspn_sse2): Likewise.
4742 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4744         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
4745         (close_not_cancel_no_status): Likewise.
4746         (__close_nocancel): New macro.
4747         (__close_nocancel_nostatus): Likewise.
4748         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
4749         macro.
4750         (close_not_cancel): Likewise.
4751         (close_not_cancel_no_status): Likewise.
4752         (__close_nocancel): New prototype.
4753         (__close_nocancel_nostatus): New function.
4754         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
4755         * catgets/open_catalog.c (__open_catalog): Replace
4756         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
4757         * gmon/gmon.c (write_gmon): Likewise.
4758         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4759         * intl/loadmsgcat.c (close): Likewise.
4760         * io/ftw.c (open_dir_stream): Likewise.
4761         (ftw_startup): Likewise.
4762         * libio/fileops.c (_IO_file_open): Likewise.
4763         (_IO_file_close_mmap): Likewise.
4764         (_IO_file_close): Likewise.
4765         * libio/iopopen.c (_IO_dup2): Likewise.
4766         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4767         * locale/loadlocale.c (_nl_load_locale): Likewise.
4768         * login/utmp_file.c (pututline_file): Likewise.
4769         (endutent_file): Likewise.
4770         * misc/daemon.c (daemon): Likewise.
4771         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4772         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4773         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4774         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4775         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4776         * nscd/nscd_helper.c (open_socket): Likewise.
4777         (__nscd_open_socket): Likewise.
4778         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4779         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
4780         (__nscd_innetgr): Likewise.
4781         * nss/nss_db/db-open.c (internal_setent): Likewise.
4782         * resolv/res-close.c (__res_iclose): Likewise.
4783         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
4784         * sysdeps/posix/closedir.c (__closedir): Likewise.
4785         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
4786         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
4787         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
4788         (opendir_tail): Likewise.
4789         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4790         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
4791         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
4792         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4793         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
4794         (gethostid): Likewise.
4795         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
4796         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4797         Likewise.
4798         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
4799         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
4800         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
4801         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
4802         Likewise.
4803         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
4804         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
4805         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
4806         Likewise.
4807         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
4808         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
4809         Likewise.
4810         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
4811         Likewise.
4812         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4813         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
4814         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4815         __close_nocancel.
4817         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
4818         (openat_not_cancel_3): Likewise.
4819         (openat64_not_cancel_3): Likewise).
4820         (openat_not_cancel_3): Likewise).
4821         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
4822         macro.
4823         (openat_not_cancel_3): Likewise.
4824         (openat64_not_cancel): Likewise.
4825         (openat64_not_cancel_3): Likewise.
4826         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
4827         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
4828         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
4829         __open{64}_nocancel.
4830         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4831         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
4832         * sysdeps/posix/opendir.c (__opendirat): Likewise.
4834 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4836         [BZ #18822]
4837         * include/argz.h (__argz_create_sep): New function prototype.
4838         (__argz_append): Likewise.
4839         (__argz_add): Likewise.
4840         (__argz_add_sep): Likewise.
4841         (__argz_delete): Likewise.
4842         (__argz_insert): Likewise.
4843         (__argz_replace): Likewise.
4844         * string/argz.h (__argz_create_sep): Removed.
4845         (__argz_append): Likewise.
4846         (__argz_add): Likewise.
4847         (__argz_add_sep): Likewise.
4848         (__argz_delete): Likewise.
4849         (__argz_insert): Likewise.
4850         (__argz_replace): Likewise.
4852 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4854         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
4855         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
4856         (GNU_PROPERTY_STACK_SIZE): Likewie.
4857         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
4858         (GNU_PROPERTY_LOPROC): Likewise.
4859         (GNU_PROPERTY_HIPROC): Likewise.
4860         (GNU_PROPERTY_LOUSER): Likewise.
4861         (GNU_PROPERTY_HIUSER): Likewise.
4862         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
4863         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
4864         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
4865         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
4866         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
4867         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
4868         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
4869         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
4870         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
4871         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
4872         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
4873         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
4874         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
4875         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
4876         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
4877         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
4878         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
4879         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
4880         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
4881         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
4882         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
4883         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
4884         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
4886 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4888         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
4889         in C++ mode.
4891 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4893         [BZ #21930]
4894         * math/math.h (isinf): Check if in C or C++ mode before using
4895         __builtin_types_compatible_p, since this is a C mode feature.
4897 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4899         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
4900         (__write_nocancel): New macro.
4901         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
4902         Rewrite as a function prototype.
4903         (write_not_cancel): Remove macro.
4904         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
4905         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
4906         (write_gmon): Likewise.
4907         * libio/fileops.c (_IO_new_file_write): Likewise.
4908         * login/utmp_file.c (pututline_file): Likewise.
4909         (updwtmp_file): Likewise.
4910         * stdio-common/psiginfo.c (psiginfo): Likewise.
4911         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4912         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
4913         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
4914         Likewise.
4915         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
4916         Likewise.
4918         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
4919         (__read_nocancel): New macro.
4920         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4921         __read_nocancel.
4922         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
4923         macro.
4924         (__read_nocancel): New prototype.
4925         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
4926         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
4927         with __read_nocancel.
4928         * intl/loadmsgcat.c (read): Likewise.
4929         * libio/fileops.c (_IO_file_read): Likewise.
4930         * locale/loadlocale.c (_nl_load_locale): Likewise.
4931         * login/utmp_file.c (getutent_r_file): Likewise.
4932         (internal_getut_r): Likewise.
4933         (getutline_r_file): Likewise.
4934         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
4935         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
4936         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
4937         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4938         Likewise.
4939         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
4940         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
4941         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
4942         Likewise.
4943         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
4944         Likewise.
4945         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
4946         Likewise.
4947         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
4948         Likewise.
4949         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
4951 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4953         [BZ #21966]
4954         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
4955         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
4956         usable.
4958 2017-08-17  DJ Delorie  <dj@redhat.com>
4960         * bug17079.c: Update to new test harness.
4961         * test-digits-dots.c: Likewise.
4962         * test-netdb.c: Likewise.
4963         * tst-field.c: Likewise.
4964         * tst-nss-getpwent.c: Likewise.
4965         * tst-nss-static.c: Likewise.
4966         * tst-nss-test1.c: Likewise.
4967         * tst-nss-test2.c: Likewise.
4968         * tst-nss-test3.c: Likewise.
4969         * tst-nss-test4.c: Likewise.
4970         * tst-nss-test5.c: Likewise.
4972 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4974         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
4975         (open_not_cancel_2): Likewise.
4976         (open_nocancel): New macro.
4977         (open64_nocancel): Likewise.
4978         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
4979         (open_not_cancel_2): Likewise.
4980         (__open_nocancel): New prototype.
4981         (__open64_nocancel): Likewise.
4982         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4983         __open_nocancel.
4984         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
4985         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
4986         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
4987         with __open_nocancel.
4988         * csu/check_fds.c (check_one_fd): Likewise.
4989         * gmon/gmon.c (write_gmon): Likewise.
4990         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
4991         * intl/loadmsgcat.c (open): Likewise.
4992         * libio/fileops.c (_IO_file_open): Likewise.
4993         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4994         * locale/loadlocale.c (_nl_load_locale): Likewise.
4995         * login/utmp_file.c (setutent_file): Likewise.
4996         * misc/daemon.c (daemon): Likewise.
4997         * nss/nss_db/db-open.c (internal_setent): Likewise.
4998         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4999         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
5000         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
5001         (__opendir): Likewise.
5002         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
5003         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
5004         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
5005         (gethostid): Likewise.
5006         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
5007         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5008         Likewise.
5009         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
5010         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
5011         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
5012         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
5013         Likewise.
5014         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
5015         Likewise.
5016         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
5017         Likewise.
5018         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
5019         Likewise.
5020         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
5021         Likewise.
5022         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
5023         Likewise.
5024         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5025         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
5027 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
5029         * benchtests/bench-skeleton.c (main): Add support for
5030         latency benchmarking.
5031         * benchtests/scripts/bench.py: Add support for latency benchmarking.
5033 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5035         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
5036         the startup object.
5038 2017-08-17  Florian Weimer  <fweimer@redhat.com>
5040         * include/sys/socket.h (__opensock): Remove internal_function.
5041         * socket/opensock.c (__opensock): Likewise.
5042         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
5044 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
5046         [BZ #21944]
5047         * signal/bits/types/__sigval_t.h: New file.
5048         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
5049         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
5050         and define sigval_t using __sigval_t.
5051         * include/bits/types/__sigval_t.h: New file.
5052         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
5053         instead of <bits/types/__sigval_t.h>.
5054         (struct sigevent): Use __sigval_t instead of sigval_t.
5055         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
5056         instead of <bits/types/__sigval_t.h>.
5057         (siginfo_t): Use __sigval_t instead of sigval_t.
5058         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
5059         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
5060         (struct sigevent): Use __sigval_t instead of sigval_t.
5061         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
5062         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
5063         (siginfo_t): Use __sigval_t instead of sigval_t.
5064         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
5066 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5068         * NEWS: Remove "[Add new features here]" for 2.27.
5070 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
5072         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
5073         libc.so.
5075 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5077         * NEWS: Mention x86-64 FMA optimization.
5079 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5081         [BZ #21912]
5082         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5083         Add e_expf-fma.
5084         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
5085         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
5086         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
5088 2017-08-16  Andreas Schwab  <schwab@suse.de>
5090         [BZ #16750]
5091         CVE-2009-5064
5092         * elf/ldd.bash.in: Never run file directly.
5094 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
5096         [BZ #21955]
5097         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
5098         (L(SP_INF_0)): Likewise.
5100 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5102         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
5103         run-built-tests.
5105 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5107         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
5108         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
5109         BROKEN_THREAD_SIGNALS code.
5110         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
5111         request_list): Remove caller_pid member used for
5112         BROKEN_THREAD_SIGNALS.
5113         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
5114         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
5115         Remove BROKEN_THREAD_SIGNALS support.
5116         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
5117         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
5119 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5121         * gmon/Makefile (tests): Add tst-gmon.
5122         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
5123         Set.
5124         (tests-special): Add tst-gmon-prof.out.
5125         (tst-gmon.out): Depend on clean-tst-gmon-data.
5126         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
5127         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
5128         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
5129         startup object.
5130         * aclocal.m4 (GPROF): Set and substitute.
5131         * config.amke.in (GPROF): Set.
5132         * configure: Regenerate.
5134 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5136         * elf/elf.h A (NT_PPC_TAR): New macro.
5137         (NT_PPC_PPR): Likewise.
5138         (NT_PPC_DSCR): Likewise.
5139         (NT_PPC_EBB): Likewise.
5140         (NT_PPC_PMU): Likewise.
5141         (NT_PPC_TM_CGPR): Likewise.
5142         (NT_PPC_TM_CFPR): Likewise.
5143         (NT_PPC_TM_CVMX): Likewise.
5144         (NT_PPC_TM_CVSX): Likewise.
5145         (NT_PPC_TM_SPR): Likewise.
5146         (NT_PPC_TM_CTAR): Likewise.
5147         (NT_PPC_TM_CPPR): Likewise.
5148         (NT_PPC_TM_CDSCR): Likewise.
5150 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5152         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
5153         regparm (2) instead of internal_function.
5154         (_MCOUNT_DECL): Adjust.
5156 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5158         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
5159         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
5161 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
5163         * conform/data/sys/wait.h-data (si_value): Do not expect for
5164         XPG42.
5166 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5168         [BZ #21962]
5169         NSS: Create stubs for accidentally exported lookup functions.
5170         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
5171         Remove declaration.
5172         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5173         (ether_hostton): Call __nss_ethers_lookup2 instead.
5174         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
5175         (ether_ntohost): Call __nss_ethers_lookup2 instead.
5176         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
5177         (setup): Call __nss_netgroup_lookup2 instead.
5178         * nss/Makefile (routines): Add compat-lookup.
5179         * nss/Versions (GLIBC_2.27): Add symbol version.
5180         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
5181         (DB_COMPAT_FCT): Remove.
5182         * nss/compat-lookup.c: New file.
5183         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
5184         from databases.def.
5185         * nss/service-lookup.c (NO_COMPAT): Remove definition.
5186         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
5187         (netname2user): Call __nss_publickey_lookup2 instead.
5188         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
5189         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
5190         instead.
5192 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5193             Sergei Trofimovich  <slyfox@inbox.ru>
5195         [BZ #21908]
5196         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
5197         Rename to MMAP2_PAGE_UNIT.
5198         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
5199         __OFF_T_MATCHES_OFF64_T is not defined.
5200         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
5201         uint64_t.
5202         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
5203         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
5205 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5207         i386: Do not set internal_function.
5208         * config.h.in (USE_REGPARMS, internal_function): Remove.
5209         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
5210         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
5212 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5214         * elf/dl-init.c (_dl_init): Remove internal_function.
5215         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
5216         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
5218 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5220         * elf/rtld.c (_dl_start): Remove internal_function.
5221         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
5222         _dl_start.
5224 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5226         * elf/dl-fini.c (_dl_fini): Remove internal_function
5227         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
5229 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
5231         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
5232         (bit_cpu_SHSTK): Likewise.
5233         (index_cpu_IBT): Likewise.
5234         (index_cpu_SHSTK): Likewise.
5235         (reg_IBT): Likewise.
5236         (reg_SHSTK): Likewise.
5237         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5238         Handle index_cpu_IBT and index_cpu_SHSTK.
5240 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
5242         [BZ #19982]
5243         * po/fr.po: Fix spelling mistake.
5245 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5247         * elf/dl-addr.c (_dl_addr): Remove internal_function.
5248         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
5249         (_dl_catch_error, _dl_receive_error): Likewise.
5250         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
5251         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
5252         (_dl_deallocate_tls): Likewise.
5253         * include/dlfcn.h (_dl_addr): Likewise.
5254         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
5255         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
5256         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
5257         Likewise.
5259 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5261         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
5262         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
5263         internal_function.
5264         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
5266 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5268         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
5269         internal_function.
5270         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
5271         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
5272         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
5273         internal_function from _dl_make_stack_executable_hook member.
5274         (_dl_make_stack_executable): Remove internal_function.
5275         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
5276         Likewise.
5277         * sysdeps/unix/sysv/linux/dl-execstack.c
5278         (_dl_make_stack_executable): Likewise.
5280 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5282         * sysdeps/unix/sysv/linux/netlinkaccess.h
5283         (__netlink_assert_response): Remove internal_function.
5284         * sysdeps/unix/sysv/linux/netlink_assert_response.c
5285         (__netlink_assert_response): Likewise.
5287 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5289         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
5290         internal_function.
5291         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
5293 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5295         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
5296         internal_function.
5297         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
5298         * inet/netgroup.h (__internal_setnetgrent)
5299         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
5300         * inet/getnetgrent_r.c (__internal_setnetgrent)
5301         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
5302         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
5303         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
5304         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
5305         * nss/nsswitch.h (db_lookup_function): Likewise.
5307 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5309         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
5310         Remove internal_function.
5311         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
5312         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
5313         message argument on the stack.
5314         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
5315         Likeweise.
5317 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
5319         Adapt test case data to the changes in the thousands
5320         separators.
5322         [BZ #20756]
5323         * localedata/tst-langinfo.sh: Adapt test case data.
5324         * stdlib/tst-strfmon_l.c: Likewise.
5325         * stdlib/tst-strtod4.c: Likewise.
5326         * stdlib/tst-strtod5i.c: Likewise.
5328 2017-08-11  Florian Weimer  <fweimer@redhat.com>
5330         [BZ #21242]
5331         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
5332         Suppress pedantic warning resulting from statement expression.
5333         (__ASSERT_FUNCTION): Add missing __extension__.
5335 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5337         * benchtests/bench-memmove-large.c: Print output in JSON
5338         format.
5339         * benchtests/bench-memmove.c: Likewise.
5341         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
5342         * benchtests/bench-memchr.c (do_one_test): Likewise.
5343         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
5344         * benchtests/bench-memcpy.c (do_one_test): Likewise.
5345         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
5346         * benchtests/bench-memmove.c (do_one_test): Likewise.
5347         * benchtests/bench-memset-large.c (do_one_test): Likewise.
5348         * benchtests/bench-memset.c (do_one_test): Likewise.
5349         * benchtests/bench-string.h (test_init): Remove memsets.
5351 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
5353         * manual/lang.texi
5354         (Computing the Width of an Integer Data Type): Rename section to
5355         "Width of an Integer Type".  Remove inaccurate statement regarding
5356         lack of C language facilities for determining width of integer
5357         types, and reorder content to improve flow and context of
5358         discussion.
5360 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
5362         * lang.texi (va_copy): Change standard from ISO to C99.
5363         (__va_copy): Add standard and header annotation.
5364         Update description for clarity of origins and current use.
5366 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5368         [BZ #21941]
5369         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
5370         xssqrtqp requires operands to be in Vector Registers
5371         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
5372         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
5373         (__ieee754_sqrtf128): Likewise.
5375 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
5377         * sysdeps/aarch64/memcmp.S (memcmp):
5378         Rewrite of optimized memcmp.
5380 2017-08-10  Florian Weimer  <fweimer@redhat.com>
5382         Introduce ld.so exceptions.
5383         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
5384         (_dl_exception_create, _dl_exception_create_format)
5385         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
5386         (_dl_catch_exception): Declare.
5387         (_dl_catch_error): Update comment.
5388         * elf/dl-error-skeleton.c (struct catch): Replace objname,
5389         errstring, malloced members with exception member.
5390         (_dl_out_of_memory): Remove.
5391         (fatal_error): New function, extracted from _dl_signal_error.
5392         (_dl_signal_exception, _dl_signal_cexception): New functions.
5393         (_dl_signal_error): Call _dl_exception_create to allocate an
5394         exception object.
5395         (_dl_catch_exception): New function, based on _dl_catch_error.
5396         (_dl_catch_error): Implement using _dl_catch_exception.
5397         * elf/dl-exception.c: New file.
5398         * elf/Makefile (dl-routines): Add dl-exception.
5399         (elide-routines.os): Likewise.
5400         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
5401         _dl_exception_create_format, _dl_exception_free.
5402         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
5403         _dl_signal_exception.
5404         * elf/dl-lookup.c (make_string): Remove.
5405         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
5406         _dl_signal_cexception, _dl_exception_free.
5407         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
5408         _dl_signal_exception.
5409         * elf/dl-sym.c (do_sym): Likewise.
5410         * elf/dl-version.c (make_string): Remove.
5411         (match_symbol): Use _dl_exception_create_format,
5412         _dl_signal_cexception, _dl_exception_free.
5413         (_dl_check_map_versions): Likewise.
5414         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
5415         _dl_catch_exception.
5416         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
5417         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
5418         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
5419         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
5420         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
5421         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
5422         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
5423         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
5424         Likewise.
5425         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
5426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
5427         (ld.so): Likewise.
5428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5429         (ld.so): Likewise.
5430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
5431         Likewise.
5432         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
5433         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
5434         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
5435         Likewise.
5436         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
5437         Likewise.
5438         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
5440 2017-08-10  Florian Weimer  <fweimer@redhat.com>
5442         * inet/net-internal.h (__inet6_scopeid_pton): Remove
5443         attribute_hidden, internal_function.
5444         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
5445         internal_function.
5447 2017-08-10  Florian Weimer  <fweimer@redhat.com>
5449         * malloc/malloc.c (get_max_fast): Reimplement as an inline
5450         function which calls __builtin_unreachable.
5452 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
5454         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
5455         Indian monetary formatting
5456         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
5457         test cases.
5459 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
5461         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
5462         Fix typo in comment.
5464         [BZ #21928]
5465         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
5466         PTRACE_SEIZE_DEVEL): Remove.
5467         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
5468         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5469         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5470         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5471         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5473 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
5475         * posix/bits/types.h (__qaddr_t): Remove.
5477         [BZ #21457]
5478         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
5479         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5480         __glibc_reserved1.
5481         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
5482         (ucontext_t): Use __ctx with uc_flags.
5483         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
5484         (__ctxt): Likewise.
5485         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5486         __glibc_reserved1.
5487         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
5488         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5489         __glibc_reserved1.
5490         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
5491         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5492         __glibc_reserved1.
5493         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
5494         macro.
5495         (ucontext_t): Use __ctx with uc_flags.
5496         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
5497         (ucontext_t): Use __ctx with uc_flags.
5498         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
5499         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
5500         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
5501         (ucontext_t): Use __ctx with uc_flags.
5502         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
5503         undefine further down.
5504         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5505         __glibc_reserved1.
5506         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
5507         undefine further down.
5508         (ucontext_t): Use __ctx with uc_flags.
5509         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
5510         undefine further down.
5511         (ucontext_t): Use __ctx with uc_flags.
5512         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
5513         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
5514         Rename uc_pad to __glibc_reserved1.
5515         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
5516         undefine further down.
5517         (ucontext_t): Use __ctx with uc_flags.
5518         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
5519         further down.
5520         (ucontext_t): Use __ctx with uc_flags.
5521         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
5522         __ctx with uc_flags.
5523         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
5524         (ucontext_t): Use __ctx with uc_flags.
5525         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
5526         __ctx with uc_flags.
5528 2017-08-09  Florian Weimer  <fweimer@redhat.com>
5530         [BZ #21932]
5531         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
5532         before early return.
5534 2017-08-09  Andreas Schwab  <schwab@suse.de>
5536         [BZ #21041]
5537         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
5538         renamed alias.
5540         [BZ #21041]
5541         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
5542         tst-compat-forwarder.
5543         (modules-names): Add tst-compat-forwarder-mod.
5544         ($(objpfx)tst-compat-forwarder): Depend on
5545         $(objpfx)tst-compat-forwarder-mod.so.
5546         * nptl/tst-compat-forwarder.c: New file.
5547         * nptl/tst-compat-forwarder-mod.c: New file.
5549 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5551         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
5552         comments.
5554         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
5555         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
5556         memcpy_falkor.
5557         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
5558         Bump.
5559         (__libc_ifunc_impl_list): Add __memcpy_falkor.
5560         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
5561         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
5562         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5563         Add falkor.
5564         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
5565         New macro.
5567 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5569         [BZ #759]
5570         * manual/setjmp.texi (getcontex): Document uc_stack value
5571         compatibility differences.
5573 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
5575         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
5576         (old_malloc_hook): Likewise.
5577         (old_memalign_hook): Likewise.
5578         (old_realloc_hook): Likewise.
5579         (struct hdr): Likewise.
5580         (flood): Likewise.
5581         (freehook): Likewise.
5582         (mallochook): Likewise.
5583         (memalignhook): Likewise.
5584         (reallochook): Likewise.
5585         (mprobe): Likewise.
5586         * malloc/mtrace.c (mallwatch): Likewise.
5587         (tr_old_free_hook): Likewise.
5588         (tr_old_malloc_hook): Likewise.
5589         (tr_old_realloc_hook): Likewise.
5590         (tr_old_memalign_hook): Likewise.
5591         (tr_where): Likewise.
5592         (lock_and_info): Likewise.
5593         (tr_freehook): Likewise.
5594         (tr_mallochook): Likewise.
5595         (tr_reallochook): Likewise.
5596         (tr_memalignhook): Likewise.
5597         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
5598         * misc/mmap.c (__mmap): Likewise.
5599         * misc/mmap64.c (__mmap64): Likewise.
5600         * misc/mprotect.c (__mprotect): Likewise.
5601         * misc/msync.c (msync): Likewise.
5602         * misc/munmap.c (__munmap): Likewise.
5603         * posix/posix_madvise.c (posix_madvise): Likewise.
5604         * socket/send.c (__send): Likewise.
5605         * socket/sendto.c (__sendto): Likewise.
5606         * socket/setsockopt.c (__setsockopt): Likewise.
5607         * string/memcmp.c (__ptr_t): Remove macro.
5608         (MEMCMP): Use void * instead of ptr_t.
5609         * string/memrchr.c (__ptr_t): Remove macro.
5610         (__memrchr): Use void * instead of ptr_t.
5611         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
5612         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5613         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
5614         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
5615         * sysdeps/mach/msync.c (msync): Likewise.
5616         * sysdeps/mach/munmap.c (__munmap): Likewise.
5617         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
5618         Likewise.
5619         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5620         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
5621         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
5622         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
5623         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
5624         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
5625         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
5626         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
5627         Likewise.
5628         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
5629         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
5630         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
5631         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
5632         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
5633         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
5634         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
5635         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
5636         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
5637         Likewise.
5638         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
5639         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
5640         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
5641         (MEMCMP): Use void * instead of ptr_t.
5642         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
5643         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
5645 2017-08-08  Florian Weimer  <fweimer@redhat.com>
5647         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
5648         return statement.
5650 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5652         [BZ #21913]
5653         * csu/libc-tls.c: Include <startup.h> first.
5654         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
5655         * elf/dl-tunables.c: Include <startup.h> first.
5656         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
5657         * sysdeps/generic/startup.h: New file.
5658         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
5659         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
5660         (I386_USE_SYSENTER): New.  Defined to 0.
5662 2017-08-08  Andreas Schwab  <schwab@suse.de>
5664         [BZ #21041]
5665         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
5666         * nptl/pt-system.c (system): Likewise.
5668 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5670         [BZ #21780]
5671         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
5672         EOPNOTSUPP.
5673         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
5674         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
5675         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
5676         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
5677         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5678         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5679         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5681 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
5683         [BZ #21899]
5684         * bits/sigaction.h (struct sigaction): Define sa_handler and
5685         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
5686         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5687         [__USE_XOPEN_EXTENDED].
5688         (SA_RESTART): Likewise.
5689         (SA_NODEFER): Likewise.
5690         (SA_RESETHAND): Likewise.
5691         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
5692         (struct sigaction): Define sa_handler and sa_sigaction using union
5693         also for [__USE_XOPEN_EXTENDED].
5694         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5695         [__USE_XOPEN_EXTENDED].
5696         (SA_RESTART): Likewise.
5697         (SA_NODEFER): Likewise.
5698         (SA_RESETHAND): Likewise.
5699         * sysdeps/unix/sysv/linux/bits/sigaction.h
5700         (struct sigaction): Define sa_handler and sa_sigaction using union
5701         also for [__USE_XOPEN_EXTENDED].
5702         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5703         [__USE_XOPEN_EXTENDED].
5704         (SA_RESTART): Likewise.
5705         (SA_NODEFER): Likewise.
5706         (SA_RESETHAND): Likewise.
5707         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
5708         (struct sigaction): Define sa_handler and sa_sigaction using union
5709         also for [__USE_XOPEN_EXTENDED].
5710         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5711         [__USE_XOPEN_EXTENDED].
5712         (SA_RESTART): Likewise.
5713         (SA_NODEFER): Likewise.
5714         (SA_RESETHAND): Likewise.
5715         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
5716         (struct sigaction): Define sa_handler and sa_sigaction using union
5717         also for [__USE_XOPEN_EXTENDED].
5718         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5719         [__USE_XOPEN_EXTENDED].
5720         (SA_RESTART): Likewise.
5721         (SA_NODEFER): Likewise.
5722         (SA_RESETHAND): Likewise.
5723         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
5724         (struct sigaction): Define sa_handler and sa_sigaction using union
5725         also for [__USE_XOPEN_EXTENDED].
5726         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5727         [__USE_XOPEN_EXTENDED].
5728         (SA_RESTART): Likewise.
5729         (SA_NODEFER): Likewise.
5730         (SA_RESETHAND): Likewise.
5731         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
5732         (struct sigaction): Define sa_handler and sa_sigaction using union
5733         also for [__USE_XOPEN_EXTENDED].
5734         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5735         [__USE_XOPEN_EXTENDED].
5736         (SA_RESTART): Likewise.
5737         (SA_NODEFER): Likewise.
5738         (SA_RESETHAND): Likewise.
5739         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
5740         (struct sigaction): Define sa_handler and sa_sigaction using union
5741         also for [__USE_XOPEN_EXTENDED].
5742         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5743         [__USE_XOPEN_EXTENDED].
5744         (SA_RESTART): Likewise.
5745         (SA_NODEFER): Likewise.  Define directly rather than as alias.
5746         (SA_RESETHAND): Likewise.
5747         (SA_INTERRUPT): Define only for [__USE_MISC].
5748         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
5749         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
5750         [__USE_MISC].
5751         (SA_STACK): Define only for [__USE_MISC].
5752         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
5753         (struct sigaction): Define sa_handler and sa_sigaction using union
5754         also for [__USE_XOPEN_EXTENDED].
5755         (SA_ONSTACK): Change [__USE_UNIX98] condition to
5756         [__USE_XOPEN_EXTENDED].
5757         (SA_RESTART): Likewise.
5758         (SA_NODEFER): Likewise.
5759         (SA_RESETHAND): Likewise.
5760         (SA_NOPTRACE): Define only for [__USE_MISC].
5762         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
5763         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
5764         (struct catalog_info): Likewise.
5765         * inet/htontest.c (lo): Likewise.
5766         (foo): Likewise.
5767         * inet/inet_lnaof.c (inet_lnaof): Likewise.
5768         * inet/inet_net.c (inet_network): Likewise.
5769         * inet/inet_netof.c (inet_netof): Likewise.
5770         * inet/rcmd.c (__ivaliduser): Likewise.
5771         (iruserok): Likewise.
5772         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
5773         * locale/programs/locale-spec.c (locale_special): Likewise.
5774         * nis/nis_findserv.c (struct findserv_req): Likewise.
5775         (__nis_findfastest_with_timeout): Likewise.
5776         * nss/test-netdb.c (test_network): Likewise.
5777         * resolv/inet_neta.c (inet_neta): Likewise.
5778         * resolv/ns_date.c (ns_datetosecs): Likewise.
5779         (SECS_PER_DAY): Likewise.
5780         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
5781         Likewise.
5782         * resolv/res_comp.c (__putlong): Likewise.
5783         (__putshort): Likewise.
5784         (_getlong): Likewise.
5785         (_getshort): Likewise.
5786         * resolv/res_debug.c (p_time): Likewise.
5787         (precsize_ntoa): Likewise.
5788         (precsize_aton): Likewise.
5789         (latlon2ul): Likewise.
5790         (loc_aton): Likewise.
5791         (loc_ntoa): Likewise.
5792         * resolv/res_hconf.c (struct netaddr): Likewise.
5793         (_res_hconf_reorder_addrs): Likewise.
5794         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
5795         (clnttcp_control): Likewise.
5796         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5797         (clntudp_control): Likewise.
5798         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
5799         (clntunix_control): Likewise.
5800         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
5801         * sunrpc/rpc/auth.h (union des_block): Likewise.
5802         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
5803         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
5804         (xdrrec_create): Likewise.
5805         (xdrrec_endofrecord): Likewise.
5806         (flush_out): Likewise.
5807         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
5808         (xdrstdio_putlong): Likewise.
5809         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
5810         Likewise.
5812         * misc/sys/cdefs.h (__long_double_t): Remove.
5813         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
5814         instead of __long_double_t,
5815         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
5817 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5819         * benchtests/scripts/compare_strings.py: Avoid display error when
5820         running on a text terminal.
5822         * benchtests/scripts/compare_strings.py (main): Add an
5823         optional -base option.
5824         (process_results): New argument base_func.
5826         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
5827         hardcoding memcpy.
5828         * benchtests/bench-memcpy-large.c (test_name): Likewise.
5829         * benchtests/bench-memcpy-random.c (test_name): Likewise.
5831 2017-08-07  Andreas Schwab  <schwab@suse.de>
5833         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
5834         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
5835         * intl/Makefile ($(objpfx)tst-gettext.out)
5836         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
5837         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
5838         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
5839         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
5840         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
5841         * posix/Makefile ($(objpfx)globtest.out)
5842         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
5843         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
5844         ($(objpfx)tst-printf.out): Likewise.
5845         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
5846         ($(objpfx)tst-setcontext3.out): Likewise.
5848 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5850         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5851         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
5852         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
5853         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
5854         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
5855         and mptan-fma.
5856         (CFLAGS-doasin-fma.c): New.
5857         (CFLAGS-dosincos-fma.c): Likewise.
5858         (CFLAGS-e_asin-fma.c): Likewise.
5859         (CFLAGS-e_atan2-fma.c): Likewise.
5860         (CFLAGS-e_exp-fma.c): Likewise.
5861         (CFLAGS-e_log-fma.c): Likewise.
5862         (CFLAGS-e_pow-fma.c): Likewise.
5863         (CFLAGS-halfulp-fma.c): Likewise.
5864         (CFLAGS-mpa-fma.c): Likewise.
5865         (CFLAGS-mpatan-fma.c): Likewise.
5866         (CFLAGS-mpatan2-fma.c): Likewise.
5867         (CFLAGS-mpexp-fma.c): Likewise.
5868         (CFLAGS-mplog-fma.c): Likewise.
5869         (CFLAGS-mpsqrt-fma.c): Likewise.
5870         (CFLAGS-mptan-fma.c): Likewise.
5871         (CFLAGS-s_atan-fma.c): Likewise.
5872         (CFLAGS-sincos32-fma.c): Likewise.
5873         (CFLAGS-slowexp-fma.c): Likewise.
5874         (CFLAGS-slowpow-fma.c): Likewise.
5875         (CFLAGS-s_sin-fma.c): Likewise.
5876         (CFLAGS-s_tan-fma.c): Likewise.
5877         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
5878         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
5879         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
5880         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
5881         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
5882         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
5883         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
5884         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
5885         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
5886         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
5887         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
5888         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
5889         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
5890         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
5891         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
5892         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
5893         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
5894         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
5895         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
5896         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
5897         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
5898         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
5899         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
5900         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
5901         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5902         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5903         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5904         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
5905         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5906         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5907         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5909 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
5911         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
5912         (min_of_type_f): New macro.
5913         (min_of_type_): Likewise.
5914         (min_of_type_l): Likewise.
5915         (min_of_type_f128): Likewise.
5916         (min_of_type): Define using __MATH_TG and taking an expression
5917         argument.
5918         (math_check_force_underflow): Pass expression instead of type to
5919         min_of_type.
5920         (math_check_force_underflow_nonneg): Likewise.
5922 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5924         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
5925         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
5926         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
5928 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5930         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5931         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
5932         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
5933         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
5934         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
5935         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
5936         memcpy_chk-nonshared, mempcpy_chk-nonshared,
5937         memmove_chk-nonshared and memset_chk-nonshared
5938         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
5939         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
5940         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
5941         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
5942         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
5943         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
5944         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
5945         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
5946         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
5947         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
5948         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
5949         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
5950         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
5951         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
5952         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
5953         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
5954         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
5955         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
5956         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
5957         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
5958         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
5959         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
5960         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
5961         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
5962         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
5963         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
5964         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
5965         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
5966         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
5967         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
5968         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
5969         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
5970         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
5971         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
5972         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
5973         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
5974         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
5975         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
5976         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
5977         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
5978         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
5979         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
5980         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
5981         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
5982         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
5983         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
5984         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
5985         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
5986         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
5987         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
5988         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
5989         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
5990         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
5991         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
5992         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
5993         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
5994         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
5995         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
5996         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
5997         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
5998         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
5999         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
6000         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
6001         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
6002         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
6003         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
6004         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
6005         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
6006         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
6007         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6008         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
6009         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6010         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6011         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6012         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6013         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6014         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6015         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6016         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6017         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6018         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6019         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6020         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6021         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6022         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
6023         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
6024         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6025         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
6026         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6027         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6028         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6029         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6030         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6031         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6032         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
6033         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
6034         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
6035         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
6036         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6037         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
6038         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6039         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6040         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6041         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6042         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6043         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6044         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6045         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6047 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6049         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
6050         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
6051         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
6052         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
6053         svml_d_log2_core-sse2, svml_d_log4_core-sse,
6054         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
6055         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
6056         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
6057         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
6058         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
6059         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
6060         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
6061         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
6062         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
6063         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
6064         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
6065         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
6066         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
6067         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
6068         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
6069         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
6070         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
6071         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
6072         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
6073         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
6074         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
6075         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
6076         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
6077         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
6078         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
6079         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
6080         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
6081         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
6082         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
6083         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
6084         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
6085         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
6086         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
6087         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
6088         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
6089         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
6090         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
6091         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
6092         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
6093         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
6094         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
6095         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
6096         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
6097         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
6098         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
6099         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
6100         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
6101         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
6102         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
6103         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
6104         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
6105         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
6106         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
6107         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
6108         ...
6109         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
6110         Don't include <sysdep.h> nor <init-arch.h>.
6111         (_ZGVbN2v_cos): Removed.
6112         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
6113         ...
6114         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
6115         Don't include <sysdep.h> nor <init-arch.h>.
6116         (_ZGVdN4v_cos): Removed.
6117         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
6118         ...
6119         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
6120         Don't include <sysdep.h> nor <init-arch.h>.
6121         (_ZGVeN8v_cos): Removed.
6122         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
6123         ...
6124         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
6125         Don't include <sysdep.h> nor <init-arch.h>.
6126         (_ZGVbN2v_exp): Removed.
6127         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
6128         ...
6129         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
6130         Don't include <sysdep.h> nor <init-arch.h>.
6131         (_ZGVdN4v_exp): Removed.
6132         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
6133         ...
6134         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
6135         Don't include <sysdep.h> nor <init-arch.h>.
6136         (_ZGVeN8v_exp): Removed.
6137         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
6138         ...
6139         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
6140         Don't include <sysdep.h> nor <init-arch.h>.
6141         (_ZGVbN2v_log): Removed.
6142         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
6143         ...
6144         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
6145         Don't include <sysdep.h> nor <init-arch.h>.
6146         (_ZGVdN4v_log): Removed.
6147         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
6148         ...
6149         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
6150         Don't include <sysdep.h> nor <init-arch.h>.
6151         (_ZGVeN8v_log): Removed.
6152         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
6153         ...
6154         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
6155         Don't include <sysdep.h> nor <init-arch.h>.
6156         (_ZGVbN2vv_pow): Removed.
6157         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
6158         ...
6159         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
6160         Don't include <sysdep.h> nor <init-arch.h>.
6161         (_ZGVdN4vv_pow): Removed.
6162         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
6163         ...
6164         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
6165         Don't include <sysdep.h> nor <init-arch.h>.
6166         (_ZGVeN8vv_pow): Removed.
6167         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
6168         ...
6169         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
6170         Don't include <sysdep.h> nor <init-arch.h>.
6171         (_ZGVbN2v_sin): Removed.
6172         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
6173         ...
6174         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
6175         Don't include <sysdep.h> nor <init-arch.h>.
6176         (_ZGVbN4v_sin): Removed.
6177         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
6178         ...
6179         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
6180         Don't include <sysdep.h> nor <init-arch.h>.
6181         (_ZGVbN8v_sin): Removed.
6182         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
6183         ...
6184         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
6185         Don't include <sysdep.h> nor <init-arch.h>.
6186         (_ZGVbN2vvv_sincos): Removed.
6187         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
6188         ...
6189         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
6190         Don't include <sysdep.h> nor <init-arch.h>.
6191         (_ZGVdN4vvv_sincos): Removed.
6192         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
6193         ...
6194         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
6195         Don't include <sysdep.h> nor <init-arch.h>.
6196         (_ZGVeN8vvv_sincos): Removed.
6197         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
6198         ...
6199         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
6200         Don't include <sysdep.h> nor <init-arch.h>.
6201         (_ZGVeN16v_cosf): Removed.
6202         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
6203         ...
6204         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
6205         Don't include <sysdep.h> nor <init-arch.h>.
6206         (_ZGVbN4v_cosf): Removed.
6207         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
6208         ...
6209         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
6210         Don't include <sysdep.h> nor <init-arch.h>.
6211         (_ZGVdN8v_cosf): Removed.
6212         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
6213         ...
6214         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
6215         Don't include <sysdep.h> nor <init-arch.h>.
6216         (_ZGVeN16v_expf): Removed.
6217         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
6218         ...
6219         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
6220         Don't include <sysdep.h> nor <init-arch.h>.
6221         (_ZGVbN4v_expf): Removed.
6222         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
6223         ...
6224         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
6225         Don't include <sysdep.h> nor <init-arch.h>.
6226         (_ZGVdN8v_expf): Removed.
6227         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
6228         ...
6229         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
6230         Don't include <sysdep.h> nor <init-arch.h>.
6231         (_ZGVeN16v_logf): Removed.
6232         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
6233         ...
6234         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
6235         Don't include <sysdep.h> nor <init-arch.h>.
6236         (_ZGVbN4v_logf): Removed.
6237         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
6238         ...
6239         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
6240         Don't include <sysdep.h> nor <init-arch.h>.
6241         (_ZGVdN8v_logf): Removed.
6242         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
6243         ...
6244         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
6245         Don't include <sysdep.h> nor <init-arch.h>.
6246         (_ZGVeN16vv_powf): Removed.
6247         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
6248         ...
6249         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
6250         Don't include <sysdep.h> nor <init-arch.h>.
6251         (_ZGVbN4vv_powf): Removed.
6252         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
6253         ...
6254         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
6255         Don't include <sysdep.h> nor <init-arch.h>.
6256         (_ZGVdN8vv_powf): Removed.
6257         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
6258         ...
6259         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
6260         Don't include <sysdep.h> nor <init-arch.h>.
6261         (_ZGVeN16vvv_sincosf): Removed.
6262         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
6263         ...
6264         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
6265         Don't include <sysdep.h> nor <init-arch.h>.
6266         (_ZGVbN4vvv_sincosf): Removed.
6267         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
6268         ...
6269         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
6270         Don't include <sysdep.h> nor <init-arch.h>.
6271         (_ZGVdN8vvv_sincosf): Removed.
6272         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
6273         ...
6274         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
6275         Don't include <sysdep.h> nor <init-arch.h>.
6276         (_ZGVeN16v_sinf): Removed.
6277         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
6278         ...
6279         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
6280         Don't include <sysdep.h> nor <init-arch.h>.
6281         (_ZGVbN4v_sinf): Removed.
6282         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
6283         ...
6284         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
6285         Don't include <sysdep.h> nor <init-arch.h>.
6286         (_ZGVdN8v_sinf): Removed.
6288 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6290         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6291         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
6292         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
6293         s_rint-sse4_1 and s_rintf-sse4_1.
6294         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
6295         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6296         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6297         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6298         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6299         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
6300         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
6301         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6302         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6303         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
6304         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
6305         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6306         (__ceil): Removed.
6307         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
6308         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
6309         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6310         (__ceilf): Removed.
6311         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
6312         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
6313         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6314         (__floor): Removed.
6315         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
6316         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
6317         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6318         (__floorf): Removed.
6319         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
6320         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
6321         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6322         (__nearbyint): Removed.
6323         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
6324         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
6325         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6326         (__nearbyintf): Removed.
6327         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
6328         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
6329         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6330         (__rint): Removed.
6331         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
6332         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
6333         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6334         (__rintf): Removed.
6336 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6338         * sysdeps/i386/start.S (_start): Check Check PIC instead of
6339         SHARED.  Avoid dynamic relocation against main in static PIE.
6341 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6343         [BZ #21815]
6344         * elf/Makefile (CFLAGS-tst-prelink.c): New.
6345         (LDFLAGS-tst-prelink): Likewise.
6347 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6349         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
6350         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
6351         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
6352         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
6353         (INTERNAL_SYSCALL_NCS): Likewise.
6354         (LOADARGS_1): Likewise.
6355         (LOADARGS_5): Likewise.
6356         (RESTOREARGS_1): Likewise.
6357         (RESTOREARGS_5): Likewise.
6359 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6361         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
6362         (MEMPCPY_SYMBOL): Likewise.
6363         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
6364         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
6365         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
6366         in libc.a.
6367         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6368         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6369         Likewise.
6370         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
6371         (__hidden_ver1): Don't use in libc.a.
6372         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
6373         (__mempcpy): Don't create a weak alias in libc.a.
6374         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
6375         libc.a.
6376         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
6377         (__hidden_ver1): Don't use in libc.a.
6379 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6381         * config.make.in (have-insert): New.
6382         * configure.ac (libc_cv_insert): New.  Set to yes if linker
6383         supports INSERT in linker script.
6384         (AC_SUBST(libc_cv_insert): New.
6385         * configure: Regenerated.
6386         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
6387         if $(have-insert) == yes.
6389 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6391         * elf/Makefile (tests): Add vismain only if
6392         $(have-protected-data) == yes.
6393         (tests-pie): Likewise.
6395 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6397         [BZ #21871]
6398         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
6399         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
6401 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6403         [BZ #21790]
6404         * sysdeps/i386/i586/memset.S
6405         (__memset_zero_constant_len_parameter): Removed.
6406         * sysdeps/i386/i686/memset.S
6407         (__memset_zero_constant_len_parameter): Likewise.
6408         * sysdeps/i386/i686/multiarch/memset_chk.S
6409         (__memset_zero_constant_len_parameter): Likewise.
6410         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
6411         Likewise.
6413 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
6415         * stdlib/getentropy.c (getentropy): Change return type to int.
6417 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
6419         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6421 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
6423         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
6424         u_intN_t.
6425         * math/s_nexttowardf.c (__nexttowardf): Likewise.
6426         * sysdeps/generic/math_private.h (ieee_double_shape_type):
6427         Likewise.
6428         (ieee_float_shape_type): Likewise.
6429         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
6430         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
6431         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
6432         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6433         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
6434         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
6435         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
6436         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
6437         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6438         Likewise.
6439         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
6440         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6441         (__ieee754_yn): Likewise.
6442         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
6443         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
6444         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
6445         Likewise.
6446         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
6447         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
6448         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
6449         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
6450         (__erfc): Likewise.
6451         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
6452         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
6453         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
6454         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
6455         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
6456         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
6457         Likewise.
6458         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
6459         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
6460         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
6461         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
6462         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
6463         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
6464         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
6465         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
6466         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
6467         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
6468         (__issignaling): Likewise.
6469         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
6470         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
6471         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6472         Likewise.
6473         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
6474         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
6475         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
6476         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
6477         Likewise.
6478         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
6479         Likewise.
6480         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
6481         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
6482         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
6483         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
6484         (__erfcf): Likewise.
6485         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
6486         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
6487         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
6488         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
6489         Likewise.
6490         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
6491         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
6492         Likewise.
6493         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
6494         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
6495         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
6496         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
6497         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
6498         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
6499         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
6500         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
6501         Likewise.
6502         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
6503         Likewise.
6504         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
6505         Likewise.
6506         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
6507         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6508         Likewise.
6509         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
6510         Likewise.
6511         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6512         (__ieee754_ynl): Likewise.
6513         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6514         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
6515         Likewise.
6516         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
6517         Likewise.
6518         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
6519         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
6520         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
6521         Likewise.
6522         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
6523         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
6524         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
6525         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
6526         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
6527         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
6528         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
6529         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
6530         Likewise.
6531         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6532         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
6533         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
6534         Likewise.
6535         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
6536         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
6537         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
6538         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
6539         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
6540         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
6541         Likewise.
6542         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
6543         Likewise.
6544         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6545         Likewise.
6546         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6547         Likewise.
6548         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
6549         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
6550         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6551         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
6552         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
6553         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
6554         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
6555         Likewise.
6556         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6557         Likewise.
6558         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6559         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
6560         Likewise.
6561         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
6562         (__ieee754_remainderl): Likewise.
6563         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
6564         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
6565         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
6566         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
6567         Likewise.
6568         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
6569         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6570         Likewise.
6571         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
6572         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
6573         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
6574         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
6575         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
6576         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6577         Likewise.
6578         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
6579         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
6580         (__ieee754_y0l): Likewise.
6581         (pzero): Likewise.
6582         (qzero): Likewise.
6583         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6584         (__ieee754_y1l): Likewise.
6585         (pone): Likewise.
6586         (qone): Likewise.
6587         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6588         (__ieee754_ynl): Likewise.
6589         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6590         (__ieee754_lgammal_r): Likewise.
6591         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
6592         Likewise.
6593         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
6594         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
6595         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
6596         (__erfcl): Likewise.
6597         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6598         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
6599         Likewise.
6600         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
6601         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
6602         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
6603         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
6604         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
6605         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6606         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6607         Likewise.
6608         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
6609         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
6610         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
6611         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
6612         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6613         Likewise.
6614         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
6615         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
6616         Likewise.
6617         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
6618         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
6619         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
6620         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
6621         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6623 2017-08-03  Florian Weimer  <fweimer@redhat.com>
6625         [BZ #21885]
6626         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
6627         on memory allocation failure.
6629 2017-08-03  Alan Modra  <amodra@gmail.com>
6631         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
6632         tst-tlsopt-powerpc.c with function name change and no test harness.
6633         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
6634         Call tls_get_addr_opt_test.
6635         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
6636         (modules-names): Add mod-tlsopt-powerpc.
6637         (mod-tlsopt-powerpc.so-no-z-defs): Define.
6638         (tst-tlsopt-powerpc): Depend on .so.
6639         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
6640         define.  Expand use in TLS_GD and TLS_LD.
6642 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6644         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
6645         function.
6646         * sysdeps/posix/shm_open.c: Include <pthread.h>.
6648 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
6650         [BZ #21686]
6651         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
6652         comparing size with that of double.
6653         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
6654         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
6655         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
6656         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
6657         (__TGMATH_BINARY_REAL_IMAG): Likewise.
6658         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
6659         unsigned __int128 types.
6661 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
6663         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
6664         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
6665         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
6666         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
6667         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
6669 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
6671         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
6673 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
6675         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
6676         of SHARED.
6677         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
6678         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
6679         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6680         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6681         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6682         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6683         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6685 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
6687         [BZ #21685]
6688         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
6689         bit-field expressions passed to sizeof or typeof.
6690         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6691         (__TGMATH_F128): Likewise.
6692         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6693         (__TGMATH_CF128): Likewise.
6694         (__TGMATH_UNARY_REAL_ONLY): Likewise.
6695         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
6696         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
6697         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
6698         (__TGMATH_BINARY_REAL_ONLY): Likewise.
6699         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
6700         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
6701         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
6702         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
6703         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
6704         (__TGMATH_UNARY_REAL_IMAG): Likewise.
6705         (__TGMATH_UNARY_IMAG): Likewise.
6706         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6707         (__TGMATH_BINARY_REAL_IMAG): Likewise.
6708         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
6709         type.
6710         (define_vars_for_type): Handle bit_field type specially.
6711         (Tests.__init__): Declare structure with bit-field element.
6713 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
6715         [BZ #21791]
6716         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
6717         (MEMCPY_CHK): Define only if SHARED is defined.
6718         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
6719         Likewise.
6720         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
6721         Likewise.
6723 See ChangeLog.18 for earlier changes.