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