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