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