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