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