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