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