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