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