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