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