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