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