posix: Make tst-getaddrinfo[45] xtests due to DNS dependency [BZ #20826]
[glibc.git] / ChangeLog
blob20423596a5939af2220b0c7fb41ef71f54665979
1 2017-11-28  Florian Weimer  <fweimer@redhat.com>
3         [BZ #20826]
4         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
5         due to Internet requirement.
6         * posix/Makefile (tests): Remove tst-getaddrinfo4,
7         tst-getaddrinfo5.
8         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
10 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
13         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
14         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
15         (sysdep_routines): Add memset-ultra1.
16         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
17         file.
18         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
19         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
22         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
25         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
28         file.
29         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
30         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
31         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
32         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
33         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
34         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
35         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
36         macro.
37         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
38         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
39         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
40         (sysdep_routines): Add memcpy-ultra1.
41         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
42         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
44 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
46         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
47         (cfloat_versions): Take function argument without trailing 'f'.
48         Call libm_alias_float_other.
49         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
50         * sysdeps/alpha/fpu/cargf.c: Likewise.
51         * sysdeps/alpha/fpu/cimagf.c: Likewise.
52         * sysdeps/alpha/fpu/conjf.c: Likewise.
53         * sysdeps/alpha/fpu/crealf.c: Likewise.
54         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
55         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
56         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
57         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
58         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
59         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
60         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
61         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
62         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
63         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
64         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
65         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
66         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
67         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
68         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
69         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
70         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
71         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
72         (clog10f): Use libm_alias_float_other.
73         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
74         (ceilf): Define using libm_alias_float.
75         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
76         (copysignf): Define using libm_alias_float.
77         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
78         (fabsf): Define using libm_alias_float.
79         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
80         (floorf): Define using libm_alias_float.
81         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
82         (fmaxf): Define using libm_alias_float.
83         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
84         (fminf): Define using libm_alias_float.
85         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
86         (lrintf): Define using libm_alias_float.
87         (llrintf): Likewise.
88         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
89         (lroundf): Define using libm_alias_float.
90         (llroundf): Likewise.
91         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
92         (rintf): Define using libm_alias_float.
93         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
94         (truncf): Define using libm_alias_float.
96         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
97         (ceilf): Define using libm_alias_float.
98         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
99         (floorf): Define using libm_alias_float.
100         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
101         (fmaf): Define using libm_alias_float.
102         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
103         (fmaxf): Define using libm_alias_float.
104         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
105         (fminf): Define using libm_alias_float.
106         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
107         (llrintf): Define using libm_alias_float.
108         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
109         (llroundf): Define using libm_alias_float.
110         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
111         (lrintf): Define using libm_alias_float.
112         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
113         (lroundf): Define using libm_alias_float.
114         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
115         <libm-alias-float.h>.
116         (nearbyintf): Define using libm_alias_float.
117         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
118         (rintf): Define using libm_alias_float.
119         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
120         (roundf): Define using libm_alias_float.
121         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
122         (truncf): Define using libm_alias_float.
124         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
125         (ceil): Define using libm_alias_double.
126         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
127         (copysign): Define using libm_alias_double.
128         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
129         (fabs): Define using libm_alias_double.
130         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
131         (floor): Define using libm_alias_double.
132         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
133         (fmax): Define using libm_alias_double.
134         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
135         (fmin): Define using libm_alias_double.
136         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
137         (lrint): Define using libm_alias_double.
138         (llrint): Likewise.
139         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
140         (lround): Define using libm_alias_double.
141         (llround): Likewise.
142         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
143         (rint): Define using libm_alias_double.
144         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
145         (trunc): Define using libm_alias_double.
147         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
148         (libm_alias_double_r): Add semicolon after weak_alias call.
150 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
152         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
153         (ceil): Define using libm_alias_double.
154         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
155         (floor): Define using libm_alias_double.
156         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
157         (fma): Define using libm_alias_double.
158         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
159         (fmax): Define using libm_alias_double.
160         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
161         (fmin): Define using libm_alias_double.
162         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
163         (llrint): Define using libm_alias_double.
164         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
165         (llround): Define using libm_alias_double.
166         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
167         (lrint): Define using libm_alias_double.
168         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
169         (lround): Define using libm_alias_double.
170         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
171         (nearbyint): Define using libm_alias_double.
172         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
173         (rint): Define using libm_alias_double.
174         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
175         (round): Define using libm_alias_double.
176         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
177         (trunc): Define using libm_alias_double.
179 2017-11-27  Florian Weimer  <fweimer@redhat.com>
181         * sysdeps/unix/sysv/linux/mlock2.c: New file.
182         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
183         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
184         (tests): Add tst-mlock2.
185         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
186         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
187         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
188         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
189         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
190         for mlock.  Document mlock2.
192 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
194         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
195         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
196         Likewise.
197         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
198         Likewise.
199         * sysdeps/x86/Makeconfig: New file.
200         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
201         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
202         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
203         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
204         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
205         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
206         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
207         Likewise.
208         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
209         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
210         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
211         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
212         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
213         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
214         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
215         * manual/math.texi (Mathematics): Document support for _Float64x.
216         * math/Versions (GLIBC_2.27): Add _Float64x functions.
217         * stdlib/Versions (GLIBC_2.27): Likewise.
218         * wcsmbs/Versions (GLIBC_2.27): Likewise.
219         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
220         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
221         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
222         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
223         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
224         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
225         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
226         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
227         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
228         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
229         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
231         Likewise.
232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
233         Likewise.
234         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
235         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
236         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
237         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
238         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
239         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
240         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
241         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
242         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
243         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
244         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
245         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
246         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
247         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
249 2017-11-27  Andreas Schwab  <schwab@suse.de>
251         * elf/Makefile (dl-routines): Add dl-sort-maps.
252         * elf/dl-sort-maps.c: New file.
253         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
254         (_dl_sort_maps): Declare.
255         * elf/dl-fini.c (_dl_sort_fini): Remove.
256         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
257         * elf/dl-close.c (_dl_close_worker): Likewise.
258         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
259         open-coding it.
260         * elf/dl-open.c (dl_open_worker): Likewise.
262 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
264         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
265         using libm_alias_float128.
266         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
267         Likewise.
268         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
269         Likewise.
270         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
271         (setpayloadsigf128): Likewise.
272         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
273         Likewise.
274         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
275         Likewise.
277         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
278         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
279         -mfloat128 to CFLAGS.
280         ($(foreach
281         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
282         Likewise.
283         (CFLAGS-libm-test-support-float64x.c): New variable.
284         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
285         $(f128-loader-link) to gnulib-tests.
287         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
288         (libm_alias_float128_other_r): If
289         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
290         alias.
291         (libm_alias_float128_r): Add semicolon after weak_alias call.
292         * sysdeps/generic/libm-alias-ldouble.h
293         (libm_alias_ldouble_other_r_f128): New macro.
294         (libm_alias_ldouble_other_r_f64x): Likewise.
295         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
296         and libm_alias_ldouble_other_r_f64x.
297         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
298         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
299         (libm_alias_ldouble_other_r_f128): New macro.
300         (libm_alias_ldouble_other_r_f64x): Likewise.
301         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
302         and libm_alias_ldouble_other_r_f64x.
304         * stdlib/strfroml.c: Always include <stdlib.h>.
305         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
306         undefine as macro and define as weak alias.
307         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
308         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
309         <stdlib.h>.
310         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
311         Define and later undefine as macro and define as weak alias.
313         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
314         Define and later undefine as macro.  Define as weak alias if
315         [!USE_WIDE_CHAR].
316         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
317         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
318         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
319         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
320         Define and later undefine as macro.  Define as weak alias if
321         [!USE_WIDE_CHAR].
322         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
323         Define and later undefine as macro.  Define as weak alias if
324         [USE_WIDE_CHAR].
325         * sysdeps/ieee754/float128/strtof128_l.c
326         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
327         Define and later undefine as macro.  Define as weak alias if
328         [!USE_WIDE_CHAR].
329         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
330         Define and later undefine as macro.  Define as weak alias if
331         [USE_WIDE_CHAR].
332         * sysdeps/ieee754/ldbl-128/strtold_l.c
333         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
334         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
335         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
336         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
337         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
338         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
339         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
340         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
341         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
342         * sysdeps/ieee754/ldbl-96/strtold_l.c
343         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
344         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
345         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
346         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
348         * math/test-float64x.h: New file.
349         * math/Makefile (type-float64x-yes): New variable.
350         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
352         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
353         function-like macro.
354         (min_of_type_): Likewise.
355         (min_of_type_l): Likewise.
356         (min_of_type_f128): Likewise.
357         (min_of_type): Pass () as last argument of __MATH_TG.
359         * stdlib/tst-strtod-round-skeleton.c
360         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
361         headers.
363         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
364         for combinations of long double with _Float64 and _Float64x.
366         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
367         (__DECL_SIMD_cosf32): Likewise.
368         (__DECL_SIMD_cosf64): Likewise.
369         (__DECL_SIMD_cosf32x): Likewise.
370         (__DECL_SIMD_cosf64x): Likewise.
371         (__DECL_SIMD_cosf128x): Likewise.
372         (__DECL_SIMD_sinf16): Likewise.
373         (__DECL_SIMD_sinf32): Likewise.
374         (__DECL_SIMD_sinf64): Likewise.
375         (__DECL_SIMD_sinf32x): Likewise.
376         (__DECL_SIMD_sinf64x): Likewise.
377         (__DECL_SIMD_sinf128x): Likewise.
378         (__DECL_SIMD_sincosf16): Likewise.
379         (__DECL_SIMD_sincosf32): Likewise.
380         (__DECL_SIMD_sincosf64): Likewise.
381         (__DECL_SIMD_sincosf32x): Likewise.
382         (__DECL_SIMD_sincosf64x): Likewise.
383         (__DECL_SIMD_sincosf128x): Likewise.
384         (__DECL_SIMD_logf16): Likewise.
385         (__DECL_SIMD_logf32): Likewise.
386         (__DECL_SIMD_logf64): Likewise.
387         (__DECL_SIMD_logf32x): Likewise.
388         (__DECL_SIMD_logf64x): Likewise.
389         (__DECL_SIMD_logf128x): Likewise.
390         (__DECL_SIMD_expf16): Likewise.
391         (__DECL_SIMD_expf32): Likewise.
392         (__DECL_SIMD_expf64): Likewise.
393         (__DECL_SIMD_expf32x): Likewise.
394         (__DECL_SIMD_expf64x): Likewise.
395         (__DECL_SIMD_expf128x): Likewise.
396         (__DECL_SIMD_powf16): Likewise.
397         (__DECL_SIMD_powf32): Likewise.
398         (__DECL_SIMD_powf64): Likewise.
399         (__DECL_SIMD_powf32x): Likewise.
400         (__DECL_SIMD_powf64x): Likewise.
401         (__DECL_SIMD_powf128x): Likewise.
403         * stdlib/Versions (libc): Move entries for wcstof128 and
404         wcstof128_l to ....
405         * wcsmbs/Versions (libc): ... here.
406         Include <float128-abi.h>.
408 2017-11-24  Florian Weimer  <fweimer@redhat.com>
410         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
411         bits/mman-shared.h.
412         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
413         <bits/mman-shared.h>.
414         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
415         to ...
416         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
417         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
418         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
419         <bits/mman-shared.h>.
421 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
423         [BZ #22457]
424         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
425         posix_memalign/free.
426         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
428 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
430         [BZ #22469]
431         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
432         and implement the collation rules for pl from CLDR on top of that.
433         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
434         of locales to be built for testing.
435         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
437 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
439         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
440         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
441         libm_alias_ldouble_other.
442         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
443         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
444         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
445         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
446         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
447         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
448         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
449         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
450         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
451         libm_alias_ldouble_r.
452         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
453         libm_alias_ldouble_other.
454         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
455         (log10l): Likewise.
456         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
457         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
458         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
459         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
460         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
461         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
462         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
463         (atan2l): Likewise.
464         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
465         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
466         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
467         libm_alias_ldouble.
468         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
469         (cosl): Likewise.
470         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
471         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
472         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
473         (expl): Likewise.
474         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
475         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
476         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
477         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
478         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
479         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
480         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
481         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
482         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
483         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
484         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
485         libm_alias_ldouble.
486         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
487         libm_alias_ldouble_other.
488         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
489         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
490         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
491         libm_alias_ldouble.
492         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
493         libm_alias_ldouble_other.
494         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
495         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
496         * sysdeps/ia64/fpu/w_lgammal_main.c
497         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
498         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
500 2017-11-23  Florian Weimer  <fweimer@redhat.com>
502         * malloc/malloc.c (tcache_thread_shutdown): Rename from
503         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
504         alike.  Remove freeres marker.
505         * malloc/arena.c (arena_thread_freeres): Call
506         tcache_thread_shutdown.
508 2017-11-23  Florian Weimer  <fweimer@redhat.com>
510         [BZ #22459]
511         Export nscd hash function as __nss_hash.
512         * include/nss.h (__nss_hash): Declare.
513         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
514         symbol.
515         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
516         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
517         of __nscd_hash.
518         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
519         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
520         * nss/Makefiles (routines): Add nss_hash.
521         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
522         * nss/nss_hash.c: Rename from nis/nis_hash.c.
523         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
524         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
526 2017-11-23  Florian Weimer  <fweimer@redhat.com>
528         [BZ #22478]
529         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
530         Return error code, not -1.
531         * signal/tst-sigwait-eintr.c: New file.
532         * signal/Makefile (tests): Add tst-sigwait-eintr.
534 2017-11-23  Florian Weimer  <fweimer@redhat.com>
536         Linux: Add memfd_create system call wrapper
537         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
538         tst-memfd_create.
539         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
540         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
541         [__USE_GNU] (memfd_create): Declare.
542         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
543         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
544         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
545         * sysdeps/unix/sysv/linux/**.abilist: Update.
546         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
548 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
550         * localedata/gen-locale.sh: Fix typo in variable name.
552         * resolv/res_debug.c (p_secstodate): Condition definition on
553         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
554         directly as __p_secstodate, and as a compat symbol.  Do not use
555         libresolv_hidden_def.
556         * resolv/resolv.h (p_secstodate): Remove macro and function
557         declaration.
558         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
559         using p_secstodate.
560         * include/resolv.h (__p_secstodate): Do not use
561         libresolv_hidden_proto.
562         * resolv/Makefile (tests): Move tst-p_secstodate to ....
563         (tests-internal): ... here.
564         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
565         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
566         and declare and use __p_secstodate and use compat_symbol_reference
567         in that case.
568         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
569         implementation returning 77.
571         [BZ #22463]
572         * resolv/res_debug.c: Include <libc-diag.h>.
573         (p_secstodate): Assert time_t at least as wide as u_long.  On
574         overflow, use integer seconds since the epoch as output, or use
575         "<overflow>" as output and set errno to EOVERFLOW if integer
576         seconds since the epoch would be 14 or more characters.
577         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
578         for sprintf call.
579         * resolv/tst-p_secstodate.c: New file.
580         * resolv/Makefile (tests): Add tst-p_secstodate.
581         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
583         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
584         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
585         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
587 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
589         * posix/regcomp.c (init_word_char): Add comments.
591 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
593         [BZ #22447]
594         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
595         strlen to compute length of ut_user and set trailing NUL byte of
596         result explicitly.
598 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
600         [BZ #15537]
601         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
602         using “copy "iso14651_t1"” and then implementing the
603         collation rules for lv from CLDR on top of that.
604         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
605         of locales to be built for testing.
606         * lv_LV.UTF-8.in: New file with test data to test the Latvian
607         sorting.
609 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
611         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
612         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
613         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
614         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
615         [__USE_MISC] (MADV_HWPOISON): New macro.
616         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
618 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
620         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
621         -Wmissing-braces on GCC 4.9.
623 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
625         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
626         * sysdeps/s390/s390-32/start.S (_start): Likewise
627         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
628         (thread_start): Likewise.
629         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
630         (thread_start): Likewise.
631         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
632         (__makecontext_ret): Likewise.
633         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
634         (__makecontext_ret): Likewise.
636 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
638         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
639         __wcschrnul): Remove attribute_hidden.
641 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
643         regex: don't assume uint64_t or uint32_t
644         This avoids -Werror=overflow errors for 32-bit systems in
645         the 64-bit case.  Problem reported by Joseph Myers in:
646         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
647         Also, when this code is used in Gnulib it ports to platforms
648         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
649         them, and on some 32-bit compilers there is no uint64_t.
650         Problem reported by Gianluigi Tiesi in:
651         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
652         * posix/regcomp.c (init_word_char): Don't assume that the types
653         uint64_t and uint32_t exist.  Adapted from Gnulib patch
654         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
655         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
657 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
659         * sysdeps/aarch64/memset-reg.h: New file.
660         * sysdeps/aarch64/memset.S: Use it.
661         (__memset): Rename to MEMSET macro.
662         [ZVA_MACRO]: Use zva_macro.
663         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
664         Add memset_generic and memset_falkor.
665         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
666         (__libc_ifunc_impl_list): Add memset ifuncs.
667         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
668         local variable zva_size.
669         * sysdeps/aarch64/multiarch/memset.c: New file.
670         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
671         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
672         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
673         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
674         (DCZID_DZP_MASK): New macro.
675         (DCZID_BS_MASK): Likewise.
676         (init_cpu_features): Read and set zva_size.
677         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
678         (struct cpu_features): New member zva_size.
680         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
681         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
682         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
684         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
685         backwards.  Fix timing computation.
686         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
687         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
688         on memset by N at a time.  Fix timing computation.
690 2017-11-20  Florian Weimer  <fweimer@redhat.com>
692         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
693         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
695 2017-11-19  Florian Weimer  <fweimer@redhat.com>
697         manual: Document mprotect
698         * manual/memory.texi (Memory Protection): New section.
699         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
700         documentation of PROT_* flags and reference the Memory Protection
701         section instead.
703 2017-11-19  Florian Weimer  <fweimer@redhat.com>
705         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
706         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
707         (Scatter-Gather): ... to here.  Remove misleading comment.
709 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
711         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
712         style.
714         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
715         when /proc/<pid>/setgroups does not exist.
717 2017-11-18  Florian Weimer  <fweimer@redhat.com>
719         * sysdeps/unix/sysv/linux/tst-ttyname.c
720         (become_root_in_mount_ns): Remove.
721         (do_in_chroot_1): Call support_enter_mount_namespace.
722         (do_in_chroot_2): Likewise.
723         (do_test): Call support_become_root early.
725 2017-11-18  Florian Weimer  <fweimer@redhat.com>
727         * support/namespace.h (support_enter_mount_namespace): Declare.
728         * support/support_enter_mount_namespace.c: New file.
729         * support/Makefile (libsupport-routines): Add
730         support_enter_mount_namespace.
732 2017-11-18  Florian Weimer  <fweimer@redhat.com>
734         * support/temp_file.c (support_create_temp_directory): Use
735         test_dir and do not rely on the presence of the XXXXXX suffix.
736         * support/temp_file.h (support_create_temp_directory): Update
737         comment.
738         * support/tst-xreadlink.c (do_test): Adjust.
739         * support/support_chroot.c (support_chroot_create): Likewise.
741 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
743         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
744         macro.
745         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
746         htm-no-suspend.
748 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
750         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
751         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
752         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
753         (ceill): Define using libm_alias_ldouble.
754         * sysdeps/x86_64/fpu/s_copysignl.S: Include
755         <libm-alias-ldouble.h>.
756         (copysignl): Define using libm_alias_ldouble.
757         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
758         (fabsl): Define using libm_alias_ldouble.
759         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
760         (floorl): Define using libm_alias_ldouble.
761         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
762         (fmaxl): Define using libm_alias_ldouble.
763         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
764         (fminl): Define using libm_alias_ldouble.
765         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
766         (llrintl): Define using libm_alias_ldouble.
767         (lrintl): Likewise.
768         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
769         <libm-alias-ldouble.h>.
770         (nearbyintl): Define using libm_alias_ldouble.
771         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
772         (truncl): Define using libm_alias_ldouble.
773         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
774         <libm-alias-ldouble.h>.
775         (lrintl): Define using libm_alias_ldouble.
777         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
778         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
779         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
780         (asinhl): Define using libm_alias_ldouble.
781         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
782         (atanl): Define using libm_alias_ldouble.
783         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
784         (cbrtl): Define using libm_alias_ldouble.
785         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
786         (ceill): Define using libm_alias_ldouble.
787         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
788         (copysignl): Define using libm_alias_ldouble.
789         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
790         (fabsl): Define using libm_alias_ldouble.
791         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
792         (floorl): Define using libm_alias_ldouble.
793         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
794         (fmaxl): Define using libm_alias_ldouble.
795         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
796         (fminl): Define using libm_alias_ldouble.
797         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
798         (frexpl): Define using libm_alias_ldouble.
799         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
800         (llrintl): Define using libm_alias_ldouble.
801         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
802         (logbl): Define using libm_alias_ldouble.
803         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
804         (lrintl): Define using libm_alias_ldouble.
805         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
806         (nearbyintl): Define using libm_alias_ldouble.
807         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
808         (nextafterl): Define using libm_alias_ldouble.
809         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
810         (remquol): Define using libm_alias_ldouble.
811         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
812         (rintl): Define using libm_alias_ldouble.
813         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
814         (truncl): Define using libm_alias_ldouble.
815         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
816         (fmaxl): Define using libm_alias_ldouble.
817         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
818         (fminl): Define using libm_alias_ldouble.
820         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
821         to C syntax instead of availability and properties of types.
822         * bits/floatn.h [!__ASSEMBLER]: Likewise.
823         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
824         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
825         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
826         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
827         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
829 2017-11-17  Florian Weimer  <fweimer@redhat.com>
831         support_become_root: Enable file creation in namespaces.
832         * support/support_become_root.c (setup_mapping): New function.
833         (support_become_root): Call it.
835 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
837         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
838         macro.
840 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
842         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
843         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
845 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
847         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
849         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
850         version to 4.14.
852 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
854         * INSTALL: Fix botched up regeneration.
856         * NEWS: Update sourceare link to https.
857         * configure.ac: Likewise.
858         * crypt/md5test-giant.c: Likewise.
859         * dlfcn/bug-atexit1.c: Likewise.
860         * dlfcn/bug-atexit2.c: Likewise.
861         * localedata/README: Likewise.
862         * malloc/tst-mallocfork.c: Likewise.
863         * manual/install.texi: Likewise.
864         * nptl/tst-pthread-getattr.c: Likewise.
865         * stdio-common/tst-fgets.c: Likewise.
866         * stdio-common/tst-fwrite.c: Likewise.
867         * sunrpc/Makefile: Likewise.
868         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
869         * wcsmbs/tst-mbrtowc2.c: Likewise.
870         * configure: Regenerate.
871         * INSTALL: Regenerate.
873 2017-11-15  Martin Sebor  <msebor@redhat.com>
875         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
876         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
877         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
879 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
881         [BZ #22145]
882         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
883         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
885         [BZ #22145]
886         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
887         Defer is_pty check until end of the function.
888         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
890         [BZ #22145]
891         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
892         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
893         (ttyname): Likewise.
894         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
895         (__ttyname_r): Likewise.
897         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
898         int to bool.
900         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
902         * manual/terminal.texi (Is It a Terminal):
903         Mention ENODEV for ttyname and ttyname_r.
905 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
907         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
908         constant and macro.
910         * sysdeps/unix/sysv/linux/bits/mman-linux.h
911         [__USE_MISC] (MADV_WIPEONFORK): New macro.
912         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
913         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
914         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
915         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
917 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
919         * signal/sigrelse.c (sigrelse): Optimize implementation.
921         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
922         (__sigpause): Rely on __sigsuspend to implement single thread
923         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
925 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
927         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
928         kernel version to 4.14.
930 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
932         [BZ #22442]
933         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
934         Check if ifname is too long.
936 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
938         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
940 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
942         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
943         was accidentally lost.
945 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
947         * localedata/locales/az_IR: Add standard copyright header.
949 2017-11-15  Florian Weimer  <fweimer@redhat.com>
951         [BZ #22439]
952         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
953         not just the top one.  Output a new "subheaps" statistic.
955 2017-11-15  Florian Weimer  <fweimer@redhat.com>
957         [BZ #22408]
958         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
959         under the per-arena lock.
960         * malloc/Makefile (tests): Add tst-malloc_info.
961         (tst-malloc_info): Link with libpthread.
962         * malloc/tst-malloc_info.c: New file.
964 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
966         [BZ #21660]
967         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
968         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
969         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
970         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
971         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
972         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
973         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
974         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
975         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
976         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
977         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
978         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
979         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
980         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
981         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
982         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
983         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
984         (__floating_type): Likewise.
985         (__real_integer_type): Likewise.
986         (__complex_integer_type): Likewise.
987         (__expr_is_real): Likewise.
988         (__tgmath_real_type_sub): Likewise.
989         (__tgmath_real_type): Likewise.
990         (__tgmath_complex_type_sub): Likewise.
991         (__tgmath_complex_type): Likewise.
992         (__TGMATH_F128): Likewise.
993         (__TGMATH_CF128): Likewise.
994         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
995         new macros.
996         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
997         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
998         Likewise.
999         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
1000         Likewise.
1001         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
1002         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
1003         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
1004         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
1005         Likewise.
1006         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
1007         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
1008         Likewise.
1009         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
1010         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
1011         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
1012         Likewise.
1013         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
1014         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
1015         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
1016         (cimag): Likewise.
1017         (creal): Likewise.
1019 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
1021         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
1022         for stpncpy calls for GCC 8.
1023         (test_strncat): Disable -Wstringop-truncation warning for strncat
1024         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
1025         strncat call for GCC 7.
1026         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
1027         calls for GCC 8.
1028         (test_memcmp): Use memcpy instead of strncpy for calls not copying
1029         trailing NUL.
1031         * string/bug-strncat1.c: Include <libc-diag.h>.
1032         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
1034 2017-11-13  Claude Paroz <claude@2xlibre.net>
1036         [BZ #22387]
1037         * localedata/locales/aa_DJ: Improved readibility by replacing
1038         <Uxxxx> sequences in the ASCII printable range by their ASCII
1039         character equivalents.
1040         * localedata/locales/aa_ER: Likewise.
1041         * localedata/locales/aa_ER@saaho: Likewise.
1042         * localedata/locales/aa_ET: Likewise.
1043         * localedata/locales/af_ZA: Likewise.
1044         * localedata/locales/agr_PE: Likewise.
1045         * localedata/locales/ak_GH: Likewise.
1046         * localedata/locales/am_ET: Likewise.
1047         * localedata/locales/anp_IN: Likewise.
1048         * localedata/locales/ar_AE: Likewise.
1049         * localedata/locales/ar_BH: Likewise.
1050         * localedata/locales/ar_DZ: Likewise.
1051         * localedata/locales/ar_EG: Likewise.
1052         * localedata/locales/ar_IN: Likewise.
1053         * localedata/locales/ar_IQ: Likewise.
1054         * localedata/locales/ar_JO: Likewise.
1055         * localedata/locales/ar_KW: Likewise.
1056         * localedata/locales/ar_LB: Likewise.
1057         * localedata/locales/ar_LY: Likewise.
1058         * localedata/locales/ar_MA: Likewise.
1059         * localedata/locales/ar_OM: Likewise.
1060         * localedata/locales/ar_QA: Likewise.
1061         * localedata/locales/ar_SA: Likewise.
1062         * localedata/locales/ar_SD: Likewise.
1063         * localedata/locales/ar_SS: Likewise.
1064         * localedata/locales/ar_SY: Likewise.
1065         * localedata/locales/ar_TN: Likewise.
1066         * localedata/locales/ar_YE: Likewise.
1067         * localedata/locales/as_IN: Likewise.
1068         * localedata/locales/ast_ES: Likewise.
1069         * localedata/locales/ayc_PE: Likewise.
1070         * localedata/locales/az_AZ: Likewise.
1071         * localedata/locales/az_IR: Likewise.
1072         * localedata/locales/be_BY: Likewise.
1073         * localedata/locales/be_BY@latin: Likewise.
1074         * localedata/locales/bem_ZM: Likewise.
1075         * localedata/locales/ber_DZ: Likewise.
1076         * localedata/locales/ber_MA: Likewise.
1077         * localedata/locales/bg_BG: Likewise.
1078         * localedata/locales/bhb_IN: Likewise.
1079         * localedata/locales/bho_IN: Likewise.
1080         * localedata/locales/bi_VU: Likewise.
1081         * localedata/locales/bn_BD: Likewise.
1082         * localedata/locales/bn_IN: Likewise.
1083         * localedata/locales/bo_CN: Likewise.
1084         * localedata/locales/bo_IN: Likewise.
1085         * localedata/locales/br_FR: Likewise.
1086         * localedata/locales/brx_IN: Likewise.
1087         * localedata/locales/bs_BA: Likewise.
1088         * localedata/locales/byn_ER: Likewise.
1089         * localedata/locales/ca_AD: Likewise.
1090         * localedata/locales/ca_ES: Likewise.
1091         * localedata/locales/ca_FR: Likewise.
1092         * localedata/locales/ca_IT: Likewise.
1093         * localedata/locales/ce_RU: Likewise.
1094         * localedata/locales/chr_US: Likewise.
1095         * localedata/locales/cmn_TW: Likewise.
1096         * localedata/locales/crh_UA: Likewise.
1097         * localedata/locales/cs_CZ: Likewise.
1098         * localedata/locales/csb_PL: Likewise.
1099         * localedata/locales/cv_RU: Likewise.
1100         * localedata/locales/cy_GB: Likewise.
1101         * localedata/locales/da_DK: Likewise.
1102         * localedata/locales/de_AT: Likewise.
1103         * localedata/locales/de_BE: Likewise.
1104         * localedata/locales/de_CH: Likewise.
1105         * localedata/locales/de_DE: Likewise.
1106         * localedata/locales/de_IT: Likewise.
1107         * localedata/locales/de_LI: Likewise.
1108         * localedata/locales/de_LU: Likewise.
1109         * localedata/locales/doi_IN: Likewise.
1110         * localedata/locales/dv_MV: Likewise.
1111         * localedata/locales/dz_BT: Likewise.
1112         * localedata/locales/el_CY: Likewise.
1113         * localedata/locales/el_GR: Likewise.
1114         * localedata/locales/en_AG: Likewise.
1115         * localedata/locales/en_AU: Likewise.
1116         * localedata/locales/en_BW: Likewise.
1117         * localedata/locales/en_CA: Likewise.
1118         * localedata/locales/en_DK: Likewise.
1119         * localedata/locales/en_GB: Likewise.
1120         * localedata/locales/en_HK: Likewise.
1121         * localedata/locales/en_IE: Likewise.
1122         * localedata/locales/en_IL: Likewise.
1123         * localedata/locales/en_IN: Likewise.
1124         * localedata/locales/en_NG: Likewise.
1125         * localedata/locales/en_NZ: Likewise.
1126         * localedata/locales/en_PH: Likewise.
1127         * localedata/locales/en_SG: Likewise.
1128         * localedata/locales/en_US: Likewise.
1129         * localedata/locales/en_ZA: Likewise.
1130         * localedata/locales/en_ZM: Likewise.
1131         * localedata/locales/en_ZW: Likewise.
1132         * localedata/locales/eo: Likewise.
1133         * localedata/locales/es_AR: Likewise.
1134         * localedata/locales/es_BO: Likewise.
1135         * localedata/locales/es_CL: Likewise.
1136         * localedata/locales/es_CO: Likewise.
1137         * localedata/locales/es_CR: Likewise.
1138         * localedata/locales/es_CU: Likewise.
1139         * localedata/locales/es_DO: Likewise.
1140         * localedata/locales/es_EC: Likewise.
1141         * localedata/locales/es_ES: Likewise.
1142         * localedata/locales/es_GT: Likewise.
1143         * localedata/locales/es_HN: Likewise.
1144         * localedata/locales/es_MX: Likewise.
1145         * localedata/locales/es_NI: Likewise.
1146         * localedata/locales/es_PA: Likewise.
1147         * localedata/locales/es_PE: Likewise.
1148         * localedata/locales/es_PR: Likewise.
1149         * localedata/locales/es_PY: Likewise.
1150         * localedata/locales/es_SV: Likewise.
1151         * localedata/locales/es_US: Likewise.
1152         * localedata/locales/es_UY: Likewise.
1153         * localedata/locales/es_VE: Likewise.
1154         * localedata/locales/et_EE: Likewise.
1155         * localedata/locales/eu_ES: Likewise.
1156         * localedata/locales/eu_ES@euro: Likewise.
1157         * localedata/locales/fa_IR: Likewise.
1158         * localedata/locales/ff_SN: Likewise.
1159         * localedata/locales/fi_FI: Likewise.
1160         * localedata/locales/fil_PH: Likewise.
1161         * localedata/locales/fo_FO: Likewise.
1162         * localedata/locales/fr_BE: Likewise.
1163         * localedata/locales/fr_CA: Likewise.
1164         * localedata/locales/fr_CH: Likewise.
1165         * localedata/locales/fr_FR: Likewise.
1166         * localedata/locales/fr_LU: Likewise.
1167         * localedata/locales/fur_IT: Likewise.
1168         * localedata/locales/fy_DE: Likewise.
1169         * localedata/locales/fy_NL: Likewise.
1170         * localedata/locales/ga_IE: Likewise.
1171         * localedata/locales/gd_GB: Likewise.
1172         * localedata/locales/gez_ER: Likewise.
1173         * localedata/locales/gez_ET: Likewise.
1174         * localedata/locales/gl_ES: Likewise.
1175         * localedata/locales/gu_IN: Likewise.
1176         * localedata/locales/gv_GB: Likewise.
1177         * localedata/locales/ha_NG: Likewise.
1178         * localedata/locales/hak_TW: Likewise.
1179         * localedata/locales/he_IL: Likewise.
1180         * localedata/locales/hi_IN: Likewise.
1181         * localedata/locales/hif_FJ: Likewise.
1182         * localedata/locales/hne_IN: Likewise.
1183         * localedata/locales/hr_HR: Likewise.
1184         * localedata/locales/hsb_DE: Likewise.
1185         * localedata/locales/ht_HT: Likewise.
1186         * localedata/locales/hu_HU: Likewise.
1187         * localedata/locales/hy_AM: Likewise.
1188         * localedata/locales/i18n: Likewise.
1189         * localedata/locales/ia_FR: Likewise.
1190         * localedata/locales/id_ID: Likewise.
1191         * localedata/locales/ig_NG: Likewise.
1192         * localedata/locales/ik_CA: Likewise.
1193         * localedata/locales/is_IS: Likewise.
1194         * localedata/locales/it_CH: Likewise.
1195         * localedata/locales/it_IT: Likewise.
1196         * localedata/locales/iu_CA: Likewise.
1197         * localedata/locales/ja_JP: Likewise.
1198         * localedata/locales/ka_GE: Likewise.
1199         * localedata/locales/kk_KZ: Likewise.
1200         * localedata/locales/kl_GL: Likewise.
1201         * localedata/locales/kn_IN: Likewise.
1202         * localedata/locales/ko_KR: Likewise.
1203         * localedata/locales/kok_IN: Likewise.
1204         * localedata/locales/ks_IN: Likewise.
1205         * localedata/locales/ks_IN@devanagari: Likewise.
1206         * localedata/locales/ku_TR: Likewise.
1207         * localedata/locales/kw_GB: Likewise.
1208         * localedata/locales/ky_KG: Likewise.
1209         * localedata/locales/lb_LU: Likewise.
1210         * localedata/locales/lg_UG: Likewise.
1211         * localedata/locales/li_BE: Likewise.
1212         * localedata/locales/li_NL: Likewise.
1213         * localedata/locales/lij_IT: Likewise.
1214         * localedata/locales/ln_CD: Likewise.
1215         * localedata/locales/lo_LA: Likewise.
1216         * localedata/locales/lt_LT: Likewise.
1217         * localedata/locales/lv_LV: Likewise.
1218         * localedata/locales/lzh_TW: Likewise.
1219         * localedata/locales/mag_IN: Likewise.
1220         * localedata/locales/mai_IN: Likewise.
1221         * localedata/locales/mg_MG: Likewise.
1222         * localedata/locales/mhr_RU: Likewise.
1223         * localedata/locales/mi_NZ: Likewise.
1224         * localedata/locales/mk_MK: Likewise.
1225         * localedata/locales/ml_IN: Likewise.
1226         * localedata/locales/mn_MN: Likewise.
1227         * localedata/locales/mni_IN: Likewise.
1228         * localedata/locales/mr_IN: Likewise.
1229         * localedata/locales/ms_MY: Likewise.
1230         * localedata/locales/mt_MT: Likewise.
1231         * localedata/locales/my_MM: Likewise.
1232         * localedata/locales/nan_TW: Likewise.
1233         * localedata/locales/nan_TW@latin: Likewise.
1234         * localedata/locales/nb_NO: Likewise.
1235         * localedata/locales/nds_DE: Likewise.
1236         * localedata/locales/nds_NL: Likewise.
1237         * localedata/locales/ne_NP: Likewise.
1238         * localedata/locales/nhn_MX: Likewise.
1239         * localedata/locales/niu_NU: Likewise.
1240         * localedata/locales/niu_NZ: Likewise.
1241         * localedata/locales/nl_AW: Likewise.
1242         * localedata/locales/nl_BE: Likewise.
1243         * localedata/locales/nl_NL: Likewise.
1244         * localedata/locales/nn_NO: Likewise.
1245         * localedata/locales/nr_ZA: Likewise.
1246         * localedata/locales/nso_ZA: Likewise.
1247         * localedata/locales/oc_FR: Likewise.
1248         * localedata/locales/om_ET: Likewise.
1249         * localedata/locales/om_KE: Likewise.
1250         * localedata/locales/or_IN: Likewise.
1251         * localedata/locales/os_RU: Likewise.
1252         * localedata/locales/pa_IN: Likewise.
1253         * localedata/locales/pa_PK: Likewise.
1254         * localedata/locales/pap_AW: Likewise.
1255         * localedata/locales/pap_CW: Likewise.
1256         * localedata/locales/pl_PL: Likewise.
1257         * localedata/locales/ps_AF: Likewise.
1258         * localedata/locales/pt_BR: Likewise.
1259         * localedata/locales/pt_PT: Likewise.
1260         * localedata/locales/quz_PE: Likewise.
1261         * localedata/locales/raj_IN: Likewise.
1262         * localedata/locales/ro_RO: Likewise.
1263         * localedata/locales/ru_RU: Likewise.
1264         * localedata/locales/ru_UA: Likewise.
1265         * localedata/locales/rw_RW: Likewise.
1266         * localedata/locales/sa_IN: Likewise.
1267         * localedata/locales/sat_IN: Likewise.
1268         * localedata/locales/sc_IT: Likewise.
1269         * localedata/locales/sd_IN: Likewise.
1270         * localedata/locales/sd_IN@devanagari: Likewise.
1271         * localedata/locales/se_NO: Likewise.
1272         * localedata/locales/sgs_LT: Likewise.
1273         * localedata/locales/shs_CA: Likewise.
1274         * localedata/locales/si_LK: Likewise.
1275         * localedata/locales/sid_ET: Likewise.
1276         * localedata/locales/sk_SK: Likewise.
1277         * localedata/locales/sl_SI: Likewise.
1278         * localedata/locales/sm_WS: Likewise.
1279         * localedata/locales/so_DJ: Likewise.
1280         * localedata/locales/so_ET: Likewise.
1281         * localedata/locales/so_KE: Likewise.
1282         * localedata/locales/so_SO: Likewise.
1283         * localedata/locales/sq_AL: Likewise.
1284         * localedata/locales/sq_MK: Likewise.
1285         * localedata/locales/sr_ME: Likewise.
1286         * localedata/locales/sr_RS: Likewise.
1287         * localedata/locales/sr_RS@latin: Likewise.
1288         * localedata/locales/ss_ZA: Likewise.
1289         * localedata/locales/st_ZA: Likewise.
1290         * localedata/locales/sv_FI: Likewise.
1291         * localedata/locales/sv_SE: Likewise.
1292         * localedata/locales/sw_KE: Likewise.
1293         * localedata/locales/sw_TZ: Likewise.
1294         * localedata/locales/szl_PL: Likewise.
1295         * localedata/locales/ta_IN: Likewise.
1296         * localedata/locales/ta_LK: Likewise.
1297         * localedata/locales/tcy_IN: Likewise.
1298         * localedata/locales/te_IN: Likewise.
1299         * localedata/locales/tg_TJ: Likewise.
1300         * localedata/locales/th_TH: Likewise.
1301         * localedata/locales/the_NP: Likewise.
1302         * localedata/locales/ti_ER: Likewise.
1303         * localedata/locales/ti_ET: Likewise.
1304         * localedata/locales/tig_ER: Likewise.
1305         * localedata/locales/tk_TM: Likewise.
1306         * localedata/locales/tl_PH: Likewise.
1307         * localedata/locales/tn_ZA: Likewise.
1308         * localedata/locales/to_TO: Likewise.
1309         * localedata/locales/tpi_PG: Likewise.
1310         * localedata/locales/tr_CY: Likewise.
1311         * localedata/locales/tr_TR: Likewise.
1312         * localedata/locales/ts_ZA: Likewise.
1313         * localedata/locales/tt_RU: Likewise.
1314         * localedata/locales/tt_RU@iqtelif: Likewise.
1315         * localedata/locales/ug_CN: Likewise.
1316         * localedata/locales/uk_UA: Likewise.
1317         * localedata/locales/unm_US: Likewise.
1318         * localedata/locales/ur_IN: Likewise.
1319         * localedata/locales/ur_PK: Likewise.
1320         * localedata/locales/uz_UZ: Likewise.
1321         * localedata/locales/uz_UZ@cyrillic: Likewise.
1322         * localedata/locales/ve_ZA: Likewise.
1323         * localedata/locales/vi_VN: Likewise.
1324         * localedata/locales/wa_BE: Likewise.
1325         * localedata/locales/wae_CH: Likewise.
1326         * localedata/locales/wal_ET: Likewise.
1327         * localedata/locales/wo_SN: Likewise.
1328         * localedata/locales/xh_ZA: Likewise.
1329         * localedata/locales/yi_US: Likewise.
1330         * localedata/locales/yo_NG: Likewise.
1331         * localedata/locales/yue_HK: Likewise.
1332         * localedata/locales/yuw_PG: Likewise.
1333         * localedata/locales/zh_CN: Likewise.
1334         * localedata/locales/zh_HK: Likewise.
1335         * localedata/locales/zh_SG: Likewise.
1336         * localedata/locales/zh_TW: Likewise.
1337         * localedata/locales/zu_ZA: Likewise.
1339 2017-11-13  Florian Weimer  <fweimer@redhat.com>
1341         * support/next_to_fault.h, support/next_to_fault.c: New files.
1342         * support/Makefile (libsupport-routines): Add next_to_fault.
1343         * resolv/tst-inet_pton.c (struct next_to_fault)
1344         (next_to_fault_allocate, next_to_fault_free): Remove.
1345         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
1347 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1349         * elf/dl-support.c: Include <dl-procruntime.c>.
1350         * include/link.h: Include <link_map.h>.
1351         * sysdeps/generic/dl-procruntime.c: New file.
1352         * sysdeps/generic/link_map.h: Likewise.
1353         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
1354         the writable ld.so namespace.
1356 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1358         timezone: pacify GCC -Wstringop-truncation
1359         Problem reported by Martin Sebor in:
1360         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
1361         * timezone/zic.c (writezone): Use memcpy, not strncpy.
1363 2017-11-12  Florian Weimer  <fweimer@redhat.com>
1365         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
1366         tst-xreadlink.
1367         (tests): Add tst-xreadlink.
1368         * support/support.h (xstrndup): Declare.
1369         * support/xunistd.h (xunlink, xreadlink): Declare.
1370         * support/temp_file.h (support_create_temp_directory): Declare.
1371         * support/temp_file.c (support_create_temp_directory): New function.
1372         * support/support_chroot.c (support_chroot_create): Use it.
1373         * support/xreadlink.c: New file.
1374         * support/xstrndup.c: Likewise.
1375         * support/xunlink.c: Likewise.
1376         * support/tst-xreadlink.c: Likewise.
1378 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
1380         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
1382 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1384         [BZ #22409]
1385         [BZ #22412]
1386         * resolv/res_comp.c (printable_string, binary_hnok)
1387         (binary_leading_dash): New functions.
1388         (res_hnok): Reimplement using these functions and ns_name_pton.
1389         (res_ownok): Likewise.
1390         (res_mailok): Reimplement using printable_string, ns_name_pton and
1391         binary_hnok.
1392         (res_dnok): Reimplement using printable_string and ns_name_pton.
1393         * resolv/tst-res_hnok.c (tests): Add additional tests.
1394         (LETTERDIGITS, PRINTABLE): Define.
1395         (do_test): Adjust one_char results.
1397 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1399         [BZ #22413]
1400         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
1401         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
1403 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1405         * resolv/tst-ns_name_pton.c: New file.
1406         * resolv/Makefile (tests): Add tst-ns_name_pton.
1407         (tst-ns_name_pton): Link against libresolv.
1409 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1411         * resolv/tst-res_hnok.c: New file.
1412         * resolv/Makefile (tests): Add tst-res_hnok.
1413         (tst-res_hnok): Link against libresolv.
1415 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1417         * resolv/tst-resolv-network.c: Use test framework instead explicit
1418         main function.
1420 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1422         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
1423         <jmp_buf-macros.h>.
1424         [!_ISOMAC] (STR_HELPER): New.
1425         [!_ISOMAC] (STR): Likewise.
1426         [!_ISOMAC] (TEST_SIZE): Likewise.
1427         [!_ISOMAC] (TEST_ALIGN): Likewise.
1428         [!_ISOMAC] (TEST_OFFSET): Likewise.
1429         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
1430         field offsets of jmp_buf as well as sigjmp_buf.
1431         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
1432         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
1433         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
1434         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
1435         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
1436         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
1437         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
1438         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
1439         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
1440         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
1441         Likewise.
1442         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
1443         Likewise.
1444         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
1445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
1446         Likewise.
1447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
1448         Likewise.
1449         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
1450         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
1451         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
1452         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
1453         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
1454         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
1455         Likewise.
1456         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
1457         Likewise.
1458         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
1459         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
1460         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
1462 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
1464         * include/float.h
1465         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1466         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
1467         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1468         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
1469         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1470         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
1471         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1472         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
1473         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1474         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
1475         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1476         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
1477         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1478         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
1479         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1480         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
1481         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1482         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
1483         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1484         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
1485         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1486         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
1487         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1488         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
1489         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1490         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
1491         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1492         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
1493         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1494         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
1495         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1496         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
1497         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1498         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
1499         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1500         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
1501         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1502         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
1503         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1504         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
1505         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1506         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
1507         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1508         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
1509         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1510         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
1511         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1512         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
1513         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1514         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
1515         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1516         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
1517         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1518         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
1519         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1520         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
1521         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1522         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
1523         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1524         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
1525         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1526         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
1527         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1528         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
1529         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1530         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
1531         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1532         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
1533         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1534         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
1535         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1536         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
1537         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1538         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
1539         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1540         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
1541         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1542         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
1543         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1544         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
1545         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1546         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
1547         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1548         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
1549         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1550         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
1551         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1552         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
1554         * stdlib/tst-strtod.h (F16): New macro.
1555         (F32): Likewise.
1556         (F64): Likewise.
1557         (F32X): Likewise.
1558         (F64X): Likewise.
1559         (F128X): Likewise.
1560         (IF_FLOAT16): Likewise.
1561         (IF_FLOAT32): Likewise.
1562         (IF_FLOAT64): Likewise.
1563         (IF_FLOAT32X): Likewise.
1564         (IF_FLOAT64X): Likewise.
1565         (IF_FLOAT128X): Likewise.
1566         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
1567         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
1568         (STRTOD_TEST_FOREACH): Likewise.
1569         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
1570         (CHOOSE_f64): Likewise.
1571         (CHOOSE_f32x): Likewise.
1572         (CHOOSE_f64x): Likewise.
1574 2017-11-07  Andreas Schwab  <schwab@suse.de>
1576         * nptl/Makefile (tests-internal): Remove tst-typesizes.
1578 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
1580         [BZ #22403]
1581         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
1582         to be escaped.
1583         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
1584         to be escaped.
1586 2017-11-07  Claude Paroz <claude@2xlibre.net>
1588         [BZ #22403]
1589         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
1590         to be escaped.
1591         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
1592         to be escaped.
1593         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
1594         to be escaped.
1596 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1598         [BZ #22298]
1599         * nptl/allocatestack.c (allocate_stack): Check if
1600         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
1601         __PTHREAD_MUTEX_HAVE_PREV is defined.
1602         * nptl/descr.h (pthread): Likewise.
1603         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
1604         Likewise.
1605         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1606         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1607         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
1608         * sysdeps/nptl/bits/thread-shared-types.h
1609         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1610         defines.
1611         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
1612         of __WORDSIZE for internal layout.
1613         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
1614         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
1615         instead of __WORDSIZE whether to use an union for __spins and __list
1616         fields.
1617         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
1618         case.
1619         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
1620         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1621         defines.
1622         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
1623         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1624         Likewise.
1625         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
1626         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1627         Likewise.
1628         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
1629         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1630         Likewise.
1631         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
1632         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1633         Likewise.
1634         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
1635         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1636         Likewise.
1637         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
1638         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1639         Likewise.
1640         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
1641         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1642         Likewise.
1643         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
1644         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1645         Likewise.
1646         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
1647         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1648         Likewise.
1649         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
1650         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1651         Likewise.
1652         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
1653         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1654         Likewise.
1655         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
1656         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1657         Likewise.
1658         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
1659         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1660         Likewise.
1661         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
1662         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1663         Likewise.
1665         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
1666         New macros.
1667         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
1668         checks for expected input type size.
1669         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
1670         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
1671         Likewise.
1672         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
1673         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
1674         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
1675         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1676         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
1677         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
1678         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
1679         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
1680         superflous runtime assert check.
1681         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
1682         Likewise.
1683         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
1684         Likewise.
1685         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
1686         Likewise.
1687         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
1688         Likewise.
1689         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
1690         Likewise.
1691         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
1692         Likewise.
1693         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
1694         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
1695         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
1696         Likewise.
1697         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
1698         Likewise.
1699         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
1700         Likewise.
1701         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
1702         Likewise.
1703         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
1704         Likewise.
1705         * nptl/pthread_attr_setinheritsched.c
1706         (__pthread_attr_setinheritsched): Likewise.
1707         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1708         Likewise.
1709         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
1710         Likewise.
1711         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1712         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1713         __old_pthread_attr_setstack): Likewise.
1714         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1715         Likewise.
1716         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1717         Likewise.
1718         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1719         Likewise.
1720         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1721         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1722         Likewise.
1723         * nptl/tst-typesizes.c: Remove file.
1725         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1726         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1727         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1728         checks for internal pthread_mutex_t offsets.
1729         * sysdeps/aarch64/nptl/pthread-offsets.h
1730         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1731         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1732         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1733         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1734         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1735         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1736         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1737         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1738         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1739         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1740         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1741         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1742         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1743         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1744         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1745         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1746         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1747         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1749 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1751         * bits/mman-linux.h: Move ...
1752         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1753         comment.
1754         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1755         outdated comment.
1757 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1759         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1760         Redefine STRNLEN as __strnlen_power8.
1762 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1764         * signal/sighold.c (sighold): Optimize implementation.
1766         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1767         __NR_rt_sigqueueinfo.
1769         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1770         __sigtimedwait.
1771         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1772         assume __NR_rt_sigtimedwait.
1773         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1774         and add LIBC_CANCEL_HANDLED for cancellation marking.
1775         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1777         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1778         (sysdeps_routines): Add memchr_noneon.
1779         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1780         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1781         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1782         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1783         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1784         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1785         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1787         * sysdeps/arm/arm-ifunc.h: New file.
1788         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1789         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1790         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1791         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1792         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1793         (__memcpy_neon): Avoid create hidden alias.
1794         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1795         (__memcpy_vfp): Likewise.
1796         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1797         (sysdep_routines): Add memcpy_arm.
1798         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1800 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1802         [BZ #22362]
1803         * Makerules (make-link-multidir): New.
1804         * config.make.in (multidir): New.
1805         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1806         * configure: Regenerated.
1807         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1808         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1809         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1810         New target.
1812 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1814         [BZ #22402]
1815         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1816         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1818 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1820         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1821         to be escaped.
1823 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1825         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1827 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1829         * math/math.h [__HAVE_DISTINCT_FLOAT16
1830         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1831         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1832         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1833         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1834         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1835         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1836         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1837         (__MATH_TG_F32): New macro.
1838         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1839         (__MATH_TG_F64X): Likewise.
1840         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1841         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1843 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1845         * po/de.po: Update translations.
1846         * po/ru.po: Likewise.
1848 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1850         * manual/filesys.texi (Hard Links): Document linkat.
1852 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1854         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1855         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1856         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1857         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1858         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1859         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1860         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1861         the same as _Float128.
1862         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1863         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1864         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1866         * stdlib/stdlib.h
1867         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1868         Declare.
1869         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1870         Likewise.
1871         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1872         Likewise.
1873         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1874         (strtof32x): Likewise.
1875         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1876         (strtof64x): Likewise.
1877         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1878         (strtof128x): Likewise.
1879         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1880         (strfromf16): Likewise.
1881         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1882         (strfromf32): Likewise.
1883         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1884         (strfromf64): Likewise.
1885         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1886         (strfromf32x): Likewise.
1887         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1888         (strfromf64x): Likewise.
1889         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1890         (strfromf128x): Likewise.
1891         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1892         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1893         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1894         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1895         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1896         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1898 2017-11-03  Richard Henderson  <rth@twiddle.net>
1900         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1902 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1904         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1906 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1908         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1909         DT_TLSDESC_GOT initialization.
1910         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1911         (_dl_tlsdesc_resolve_hold): Likewise.
1912         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1913         (_dl_tlsdesc_resolve_hold): Likewise.
1914         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1915         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1917 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1919         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1921 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1923         [BZ #18572]
1924         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1925         non-lazily for R_ARM_TLS_DESC.
1927 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1929         [BZ #17078]
1930         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1931         R_ARM_TLS_DESC case.
1932         (elf_machine_lazy_rel): Remove the prelink check.
1934 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1936         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1937         DT_TLSDESC_GOT initialization.
1938         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1939         (_dl_tlsdesc_resolve_rela): Likewise.
1940         (_dl_tlsdesc_resolve_hold): Likewise.
1941         (_dl_tlsdesc_undefweak): Remove ldar.
1942         (_dl_tlsdesc_dynamic): Likewise.
1943         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1944         (_dl_tlsdesc_resolve_rela): Likewise.
1945         (_dl_tlsdesc_resolve_hold): Likewise.
1946         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1947         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1948         (_dl_tlsdesc_resolve_rela): Likewise.
1949         (_dl_tlsdesc_resolve_hold): Likewise.
1951 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1953         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1954         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1956 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1958         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1959         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1961 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1963         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1964         Declare.
1965         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1966         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1967         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1968         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1969         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1970         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1971         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1972         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1973         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1974         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1975         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1977 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1979         [BZ #22382]
1980         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1981         * localedata/locales/tpi_PG: Add standard header.
1983 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1985         test-errno-linux: quotactl can fail with EPERM in containers.
1986         * sysdeps/unix/sysv/linux/test-errno-linux.c
1987         (LIST, LIST_FORWARD): New macros.
1988         (check_error_in_list): New function.
1989         (test_wrp_rv): Accept list of permitted error codes.
1990         (test_wrp_rv2): Remove.
1991         (test_wrp): Call test_wrp_rv with list of error codes.
1992         (test_wrp2): Accept list of error codes.
1993         (do_test): Adjust.  Allow EPERM for quotactl.
1995 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1997         * stdio-common/bug16.c (do_test): Use array_length.
1998         * stdio-common/errlist.c (_sys_nerr): Likewise.
1999         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
2000         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
2001         * stdio-common/psiginfo.c (psiginfo): Use array_length.
2002         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
2003         (do_test): Use array_length.
2004         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
2005         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
2006         * stdio-common/tst-printf-round.c (do_test): Likewise.
2007         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
2008         (CHECK): Use array_length.
2009         * stdio-common/tstdiomisc.c (t3, F): Likewise.
2010         * stdio-common/tstscanf.c (main): Likewise.
2011         * stdio-common/vfprintf.c (process_string_arg): Likewise.
2013 2017-11-02  Florian Weimer  <fweimer@redhat.com>
2015         Add array_length and array_end macros.
2016         * include/array_length.h: New file.
2018 2017-11-02  Florian Weimer  <fweimer@redhat.com>
2020         [BZ #22332]
2021         * posix/tst-glob-tilde.c (do_noescape): New variable.
2022         (one_test): Process it.
2023         (do_test): Set do_noescape.  Add unescaping test case.
2025 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
2027         * math/complex.h
2028         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
2029         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
2030         with appropriate macros defined and undefined.
2031         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
2032         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2033         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
2034         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2035         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
2036         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2037         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
2038         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2039         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
2040         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2042         * math/complex.h
2043         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
2044         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
2045         that for long double.  Do not condition define and undefine of
2046         _Mdouble_complex_ on [__CFLOAT128].
2048 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
2050         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
2051         of <sysdeps/generic/sysdep.h>.
2052         (ALIGNARG): Removed.
2053         (ASM_SIZE_DIRECTIVE): Likewise.
2054         (ENTRY): Likewise.
2055         (END): Likewise.
2056         (ENTRY_CHK): Likewise.
2057         (END_CHK): Likewise.
2058         (syscall_error): Likewise.
2059         (mcount): Likewise.
2060         (PSEUDO_END): Likewise.
2061         (L): Likewise.
2062         (atom_text_section): Likewise.
2063         * sysdeps/x86/sysdep.h: New file.
2064         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
2065         of <sysdeps/generic/sysdep.h>.
2066         (ALIGNARG): Removed.
2067         (ASM_SIZE_DIRECTIVE): Likewise.
2068         (ENTRY): Likewise.
2069         (END): Likewise.
2070         (ENTRY_CHK): Likewise.
2071         (END_CHK): Likewise.
2072         (syscall_error): Likewise.
2073         (mcount): Likewise.
2074         (PSEUDO_END): Likewise.
2075         (L): Likewise.
2076         (atom_text_section): Likewise.
2078 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
2080         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
2081         category of LC_CTYPE set to "i18n:2012".
2082         * localedata/locales/i18n_ctype: Regenerate.
2084 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
2086         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
2087         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2088         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2089         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2091         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
2092         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
2093         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2094         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
2096 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
2098         * math/complex.h
2099         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
2100         New macro.
2101         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
2102         Likewise.
2103         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
2104         Likewise.
2105         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2106         (CMPLXF32X): Likewise.
2107         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2108         (CMPLXF64X): Likewise.
2109         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2110         (CMPLXF128X): Likewise.
2112         * math/math.h
2113         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
2114         (__MATH_EVAL_FMT2): Define to add 0.0f.
2116 2017-10-31  Alan Modra  <amodra@gmail.com>
2118         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
2119         include sysdep.h.
2120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
2121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
2122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
2123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
2124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
2125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
2126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
2127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
2128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
2129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
2130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
2131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
2132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
2133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
2134         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
2135         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
2136         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
2137         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
2138         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
2139         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
2140         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
2141         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
2142         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
2143         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
2144         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
2145         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
2146         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
2147         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
2148         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
2149         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
2150         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
2151         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
2152         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
2153         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
2154         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
2155         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
2156         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
2157         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
2158         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
2159         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
2160         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
2161         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
2162         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
2163         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
2164         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
2165         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
2166         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
2167         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
2168         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
2169         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
2170         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
2171         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
2172         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
2173         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
2174         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
2175         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
2176         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
2177         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
2178         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
2179         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
2180         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
2181         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
2182         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
2183         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
2184         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
2185         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
2186         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
2187         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
2188         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
2190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
2191         include sysdep.h and math_ldbl_opt.h.
2193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
2194         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
2195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
2196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
2197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
2198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
2199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
2202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
2203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
2204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
2205         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
2206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
2207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
2208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
2209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
2211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
2212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
2213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
2214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
2215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
2216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
2217         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
2218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
2220 2017-10-31  Alan Modra  <amodra@gmail.com>
2222         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
2223         string/strncase_l.c, not string/strncase.c.
2224         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
2225         (libc_hidden_def): Redefine.
2227 2017-10-31  Alan Modra  <amodra@gmail.com>
2229         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
2230         (__STRCMP, STRCMP, __strcasecmp_l): Define.
2231         (__strcasecmp): Don't define.
2233 2017-10-31  Alan Modra  <amodra@gmail.com>
2235         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
2236         IS_IN (libc).
2237         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
2238         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
2239         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
2241 2017-10-31  Alan Modra  <amodra@gmail.com>
2243         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
2244         USE_AS_STPNCPY.
2246 2017-10-31  Alan Modra  <amodra@gmail.com>
2248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
2249         Redefine only when SHARED.
2251 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
2253         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2254         Include <bits/math-finite.h> with appropriate macros defined and
2255         undefined.
2256         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2257         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2258         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2259         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2260         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2262         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
2263         [!_Mlong_double_] (_Mlong_double_): Likewise.
2264         [!_Mfloat16_] (_Mfloat16_): Likewise.
2265         [!_Mfloat32_] (_Mfloat32_): Likewise.
2266         [!_Mfloat64_] (_Mfloat64_): Likewise.
2267         [!_Mfloat128_] (_Mfloat128_): Likewise.
2268         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
2269         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
2270         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
2271         (_Mdouble_): Define without indirection through those macros.
2272         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
2273         [!_Mfloat128_] (_Mfloat128_): Likewise.
2274         [_Mlong_double_] (_Mlong_double_): Likewise.
2275         (_Mdouble_): Define without indirection through those macros.
2276         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
2277         not add -D_Mlong_double_=double.
2278         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
2279         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
2281 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2283         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
2285 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2287         * sysdeps/x86/libc-start.c: Reformat.
2289 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2291         [BZ #22353]
2292         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
2293         (1): Renamed to ...
2294         (L(Src0)): This.
2295         (L(Src1)): New.
2296         (L(Src2)): Likewise.
2297         (L(1)): Renamed to ...
2298         (L(Src3)): This.
2300 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
2302         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
2303         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
2304         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
2305         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
2306         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
2307         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
2308         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
2309         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
2310         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
2311         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
2312         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
2313         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
2314         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
2315         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
2316         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
2317         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
2318         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
2319         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
2320         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
2321         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
2322         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
2323         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
2324         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
2325         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
2326         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
2327         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
2328         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
2329         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
2330         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
2331         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
2332         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
2333         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
2334         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
2335         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
2336         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
2337         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
2338         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
2339         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
2340         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
2341         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
2342         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
2343         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
2344         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
2345         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
2346         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
2347         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
2348         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
2349         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
2350         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
2351         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
2352         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
2353         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
2354         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
2355         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
2356         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
2357         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
2358         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
2359         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
2360         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
2361         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
2362         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
2363         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
2364         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
2365         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
2366         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
2367         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
2369 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2371         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
2372         always defined.
2373         * io/tst-mkdirat.c (do_test): Likewise.
2374         * io/tst-mkfifoat.c (do_test): Likewise.
2375         * io/tst-mknodat.c (do_test): Likewise.
2376         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
2377         * locale/programs/locale.c (select_dirs): Likewise.
2378         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
2379         * posix/bug-glob2.c (my_readdir): Likewise.
2380         * posix/tst-dir.c (main): Likewise.
2381         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
2382         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
2384 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2386         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
2387         just __USE_GNU.
2389 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2391         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
2392         Convert to support/test-driver.c.
2393         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
2394         New macro parameters.
2395         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
2396         * posix/tst-gnuglob.c: New file.
2397         * posix/tst-gnuglob64.c: Likewise.
2398         * posix/Makefile (tests): Add tst-gnuglob64.
2400 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
2402         [BZ #19485]
2403         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
2404         and use a better translation for March in “mon”.
2405         * localedata/locales/csb_PL: Use more ASCII to improve the
2406         readability of the source.
2408 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
2410         [BZ #13953]
2411         * localedata/locales/km_KH: Use ASCII as much
2412         as possible for better readability of the source and
2413         remove useless comments.
2414         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
2415         was commented out and apparently wrong anyway because it was
2416         using Lao characters. If Buddhist era should be used
2417         for km_KH, a native speaker should write the correct formaat
2418         for Khmer.
2419         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
2420         (According to CLDR, the first weekday for Cambodia is Sunday).
2421         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
2422         (These were using Lao characters which must be wrong. If we get
2423         the correct data from a native speaker, we could add it back, until
2424         then it is better not to have name_mr and name_mrs at all than
2425         having it wrong).
2427 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
2429         * locale/loadlocale.c: Correct size of
2430         _nl_value_type_LC_<category> arrays.
2432 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
2434         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2435         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
2436         with appropriate macros defined and undefined.
2437         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2438         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2439         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2440         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2441         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2443 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2445         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
2446         "-O2 -march=i586".
2448 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2450         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
2451         with lowercase letters to make it agree with CLDR.
2453 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2455         [BZ #15260]
2456         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
2457         first letters of yesstr and nostr in yesexpr and noexpr,
2458         not for the full words.
2459         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2460         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
2461         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
2462         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
2463         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
2464         first letters of yesstr and nostr in yesexpr and noexpr,
2465         until now only English was matched in yesexpr and noexpr.
2466         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
2467         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
2468         fil but not for tl. As tl and fil are very similar, using fil
2469         is probably better than using English.
2471 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
2473         [BZ #21706]
2474         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
2475         in yesstr and nostr.
2477 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
2479         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2480         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
2481         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
2482         Likewise.
2483         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
2484         Likewise.
2485         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
2486         Likewise.
2487         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
2488         Likewise.
2489         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2490         (SNANF128X): Likewise.
2492         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2493         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
2494         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2495         (HUGE_VAL_F32): Likewise.
2496         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2497         (HUGE_VAL_F64): Likewise.
2498         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2499         (HUGE_VAL_F32X): Likewise.
2500         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2501         (HUGE_VAL_F64X): Likewise.
2502         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2503         (HUGE_VAL_F128X): Likewise.
2505 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2507         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
2508         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
2509         for the br_FR locale.
2511 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2513         [BZ #21706]
2514         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
2516 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
2518         * locale/programs/record-status.h: Define globals, and function
2519         prototypes. Move function bodies...
2520         * locale/programs/record-status.c: ... to here. New file.
2521         * iconv/Makefile (iconv_prog-modules): Add record-status.
2522         * locale/Makefile (lib-modules): Likewise.
2523         * iconv/iconv_prog.c: Remove verbose.
2524         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
2525         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
2526         record a warning about ASCII compatibility.
2527         * locale/programs/ld-monetary.c (monetary_finish): If
2528         warn_int_curr_symbol is true then record a warning about the symbol
2529         not being in our ISO 4217 list.
2530         * locale/programs/locale.c: Include record-status.h. Remove verbose.
2531         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
2532         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
2533         (OPT_NO_WARN): Define.
2534         (OPT_WARN): Define.
2535         (options): Add entry for --no-warnings, and --warnings.
2536         (set_warnings): New function to enable/disable warnings.
2537         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
2538         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
2539         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
2540         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
2541         Pass flags to generate_locale.
2542         (generate_locale): Accept new flag argument and pass it to localedef
2543         invocation.
2544         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
2545         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
2547         * localedata/Makefile (test-input-data): Use full file name.
2548         * localedata/da_DK.in: Rename to...
2549         * localedata/da_DK.ISO-8859-1.in: ...this.
2550         * localedata/de_DE.in: Rename to...
2551         * localedata/de_DE.ISO-8859-1.in: ...this.
2552         * localedata/en_US.in: Rename to...
2553         * localedata/en_US.ISO-8859-1.in: ...this.
2554         * localedata/fr_FR.in: Rename to...
2555         * localedata/fr_FR.UTF-8.in: ... this.
2556         * localedata/hr_HR.in: Rename to...
2557         * localedata/hr_HR.ISO-8859-2.in: ...this.
2558         * localedata/hu_HU.in: Rename to...
2559         * localedata/hu_HU.UTF-8.in: ...this.
2560         * localedata/si_LK.in: Rename to...
2561         * localedata/si_LK.UTF-8.in: ...this.
2562         * localedata/sv_SE.in: Rename to...
2563         * localedata/sv_SE.ISO-8859-1.in: ...this.
2564         * localedata/tr_TR.in: Rename to...
2565         * localedata/tr_TR.UTF-8.in: ...this.
2566         * localedata/uk_UA.in: Rename to...
2567         * localedata/uk_UA.UTF-8.in: ...this.
2568         * localedata/sort-test.sh: Test file is locale name with the
2569         suffix.
2571         * localedata/unicode-gen/Makefile (check_i18n): Rename to
2572         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
2573         file.
2574         * localedata/locales/i18n_ctype: Regenerate.
2575         * localedata/locales/tr_TR: Likewise.
2576         * localedata/locales/translit_circle: Likewise.
2577         * localedata/locales/translit_cjk_compat: Likewise.
2578         * localedata/locales/translit_combining: Likewise.
2579         * localedata/locales/translit_compat: Likewise.
2580         * localedata/locales/translit_font: Likewise.
2581         * localedata/locales/translit_fraction: Likewise.
2583 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2585         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
2586         lxvd2x/stxvd2x with lvx/stvx.
2587         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
2589 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2591         * include/alloc_buffer.h: Replace "if if " with "if " in
2592         comments.
2593         * sysdeps/mips/memcpy.S: Likkewise.
2594         * sysdeps/mips/memset.S: Likewise.
2595         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
2596         Likewise.
2597         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
2598         Likewise.
2599         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
2600         Likewise.
2602 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2604         [BZ #15261]
2605         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
2606         yesexpr and noexpr.
2607         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2608         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2609         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2610         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2611         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2612         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2613         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2615 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2617         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
2618         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2619         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2620         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2621         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2622         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
2623         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2624         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2625         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2626         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2627         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2628         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2630 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2632         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
2633         as possible for better readability of the source.
2634         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
2635         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
2636         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
2637         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
2638         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
2639         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
2640         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
2641         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
2642         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2643         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
2644         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
2645         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
2646         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
2647         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
2648         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
2649         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
2650         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
2651         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
2652         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
2653         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
2654         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
2655         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
2656         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
2657         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
2658         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
2659         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
2660         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
2661         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
2662         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
2663         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
2664         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
2665         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2666         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
2667         * localedata/locales/en_US (LC_MESSAGES): Likewise.
2668         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
2669         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
2670         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
2671         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
2672         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
2673         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
2674         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
2675         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
2676         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
2677         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
2678         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
2679         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
2680         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
2681         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
2682         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
2683         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
2684         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
2685         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
2686         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
2687         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2688         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2689         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
2690         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
2691         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2692         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
2693         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
2694         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
2695         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
2696         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
2697         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
2698         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
2699         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
2700         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
2701         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
2702         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
2703         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
2704         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
2705         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
2706         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
2707         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
2708         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2709         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
2710         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2711         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2712         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2713         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2714         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2715         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2716         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2717         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2718         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2719         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2720         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2721         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2722         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2723         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2724         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2725         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2726         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2727         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2728         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2729         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2730         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2731         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2732         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2733         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2734         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2735         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2736         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2737         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2738         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2739         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2740         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2741         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2742         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2743         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2744         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2745         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2746         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2747         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2748         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2749         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2750         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2751         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2752         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2753         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2754         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2755         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2756         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2757         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2758         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2759         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2760         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2761         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2762         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2763         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2764         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2765         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2766         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2767         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2768         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2769         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2770         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2771         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2772         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2773         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2774         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2775         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2776         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2777         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2778         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2779         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2780         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2781         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2782         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2783         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2784         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2785         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2786         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2787         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2788         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2789         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2790         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2791         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2792         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2793         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2794         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2795         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2796         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2797         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2798         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2799         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2800         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2801         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2802         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2803         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2804         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2805         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2806         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2807         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2809 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2811         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2812         (Use first letters of yesstr and nostr correctly instead of using
2813         full words).
2815 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2817         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2818         (Use first letters of yesstr and nostr correctly).
2820 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2822         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2823         also check for the first characters of yesstr and nostr.
2824         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2825         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2827 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2829         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2830         also check for Chinese characters.
2832 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2834         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2835         match also for the contents of yesstr and nostr. As the first letter
2836         of yesstr and nostr is equal, checking only for the first letter
2837         is not enough.
2839 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2841         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2842         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2844 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2846         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2847         of main contributor.
2849 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2851         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2852         instead of using English.
2854 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2856         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2857         by including the first letters of nostr and yesexpr in the regexp.
2858         Also make it more readable by using ASCII where possible.
2860 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2862         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2863         the first letter of nostr in the regexp. It agrees with CLDR now.
2864         Also make it more readable by using ASCII where possible.
2866 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2868         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2869         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2870         these strings contain a U+17D6 (which somewhat looks like a colon)
2871         instead of a real colon to separate the full words for “yes”
2872         and “no” from the single letter responses.
2874 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2876         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2877         it agree with CLDR (include the first letter of yesstr).
2878         Also make it more readable by using ASCII where possible.
2880 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2882         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2883         and improve yesexpr and noexpr. The yesstr and nostr apparently
2884         came from CLDR. And CLDR has a bug there: these strings contain
2885         a U+0903 (which looks like a colon) instead of a real colon
2886         to separate the full words for “yes” and “no” from the single
2887         letter responses.
2889 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2891         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2892         letters of the full yesstr and nostr in yesexpr and noexpr.
2894 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2896         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2897         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2898         * localedata/locales/an_ES: Make source more readable by using ASCII
2899         where possible.
2901 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2903         [BZ #20952]
2904         * localedata/locales/yuw_PG: New file.
2905         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2906         * locale/iso-639.def: Add Yau (Uruwa).
2908 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2910         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2912 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2914         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2915         (__libc_realloc): Likewise.
2916         (_mid_memalign): Likewise.
2917         (__libc_calloc): Likewise.
2919 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2921         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2922         by adding the generic +1 and -0 as in all other locales.
2923         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2924         day names and make it more readable by using ASCII where possible.
2926 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2928         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2929         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2931 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2933         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2934         WNOHANG in waitpid call.
2936 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2938         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2939         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2941         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2942         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2943         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2944         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2945         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2946         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2947         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2948         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2949         variables.
2951 2017-10-23  Michael Collison  <michael.collison@arm.com>
2953         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2954         with __builtin_sqrt.
2955         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2956         with __builtin_sqrtf.
2957         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2958         with __builtin_ceil.
2959         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2960         with __builtin_ceilf.
2961         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2962         with __builtin_floor.
2963         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2964         with __builtin_floorf.
2965         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2966         with __builtin_fma.
2967         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2968         with __builtin_fmaf.
2969         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2970         with __builtin_fmax.
2971         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2972         with __builtin_fmaxf.
2973         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2974         with __builtin_fmin.
2975         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2976         with __builtin_fminf.
2977         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2978         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2979         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2980         with builtin_rint and conversion to int.
2981         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2982         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2983         with builtin_llround.
2984         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2985         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2986         with builtin_rint and conversion to long int.
2987         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2988         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2989         with builtin_lround.
2990         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2991         with builtin_lroundf.
2992         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2993         statements with __builtin_nearbyint.
2994         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2995         statements with __builtin_nearbyintf.
2996         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2997         with __builtin_rint.
2998         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2999         with __builtin_rintf.
3000         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
3001         with __builtin_round.
3002         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
3003         with __builtin_roundf.
3004         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
3005         with __builtin_trunc.
3006         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
3007         with __builtin_truncf.
3008         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
3009         and s_l[l]round[f].c too.
3011 2017-10-23  Alan Modra  <amodra@gmail.com>
3013         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
3014         Adjust stack after restoring regs.  Add missing LR cfi_restore.
3016 2017-10-23  Alan Modra  <amodra@gmail.com>
3018         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
3019         Move LR save and frame setup/teardown and LR restore to
3020         immediately around memset call.  Provide cfi.
3022 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3024         * sysdeps/i386/fpu/e_powf.S: Removed.
3025         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
3026         * sysdeps/i386/fpu/w_powf.c: Likewise.
3027         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
3028         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3029         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3030         Add e_powf-sse2.
3031         (CFLAGS-e_powf-sse2.c): New.
3032         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
3033         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
3035 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3037         * sysdeps/i386/fpu/e_log2f.S: Removed.
3038         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
3039         * sysdeps/i386/fpu/w_log2f.c: Likewise.
3040         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
3041         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3042         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3043         Add e_log2f-sse2.
3044         (CFLAGS-e_log2f-sse2.c): New.
3045         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
3046         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
3048 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3050         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3051         Add e_powf-fma.
3052         (CFLAGS-e_powf-fma.c): New.
3053         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
3054         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
3056 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3058         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3059         Add e_log2f-fma.
3060         (CFLAGS-e_log2f-fma.c): New.
3061         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
3062         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
3064 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3066         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3067         Add e_logf-fma.
3068         (CFLAGS-e_logf-fma.c): New.
3069         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
3070         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
3072 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3074         * sysdeps/i386/fpu/e_logf.S: Removed.
3075         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
3076         * sysdeps/i386/fpu/w_logf.c: Likewise.
3077         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
3078         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
3079         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3080         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3081         Add e_logf-sse2.
3082         (CFLAGS-e_logf-sse2.c): New.
3083         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
3084         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
3086 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3088         * sysdeps/i386/fpu/e_exp2f.S: Removed.
3089         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
3090         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
3091         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3092         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3093         Add e_exp2f-sse2.
3094         (CFLAGS-e_exp2f-sse2.c): New.
3095         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
3096         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
3098 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3100         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3101         Add e_exp2f-fma.
3102         (CFLAGS-e_exp2f-fma.c): New.
3103         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
3104         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
3106 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3108         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
3109         * sysdeps/i386/fpu/e_expf.S: Likewise.
3110         * sysdeps/i386/fpu/math_errf.c: Likewise.
3111         * sysdeps/i386/fpu/w_expf.c: Likewise.
3112         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
3113         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3114         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
3115         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
3116         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3117         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3118         Remove e_expf-ia32.
3119         (CFLAGS-e_expf-sse2.c): New.
3120         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
3121         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
3123 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3125         * sysdeps/x86_64/fpu/e_expf.S: Removed.
3126         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
3127         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
3128         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
3129         e_expf.c.
3130         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
3131         New.
3132         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
3133         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
3134         Renamed to ...
3135         (__redirect_expf): This.
3136         (SYMBOL_NAME): Changed to expf.
3137         (__ieee754_expf): Renamed to ...
3138         (__expf): This.
3139         (__GI___expf): This.
3140         (__ieee754_expf): Add strong_alias.
3141         (__expf_finite): Likewise.
3142         (__expf): New.
3143         Include <sysdeps/ieee754/flt-32/e_expf.c>.
3145 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
3147         [BZ #22332]
3148         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
3149         unescaping.
3151 2017-10-21  Florian Weimer  <fweimer@redhat.com>
3153         * posix/Makefile (tests): Add tst-glob-tilde.
3154         (tests-special): Add tst-glob-tilde-mem.out
3155         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
3156         (tst-glob-tilde-mem.out): Add mtrace check.
3157         * posix/tst-glob-tilde.c: New file.
3159 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
3161         * bits/floatn-common.h: New file.
3162         * math/Makefile (headers): Add bits/floatn-common.h.
3163         * bits/floatn.h: Include <bits/floatn-common.h>.
3164         * sysdeps/ia64/bits/floatn.h: Likewise.
3165         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
3166         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
3167         * sysdeps/powerpc/bits/floatn.h: Likewise.
3168         * sysdeps/x86/bits/floatn.h: Likewise.
3170 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3172         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
3173         indicates whether compiler emits an warning for alias for
3174         functions with incompatible types.
3176         [BZ #22273]
3177         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
3178         the auxiliary process is terminated by a signal before calling _exit
3179         or execve.
3181 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3183         [BZ #21265]
3184         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
3185         New.
3186         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
3187         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
3188         and bit_arch_XSAVEC_Usable if needed.
3189         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
3190         and bit_arch_Use_dl_runtime_resolve_opt.
3191         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
3192         Removed.
3193         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
3194         (bit_arch_Prefer_No_AVX512): Updated.
3195         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
3196         (bit_arch_XSAVEC_Usable): New.
3197         (STATE_SAVE_OFFSET): Likewise.
3198         (STATE_SAVE_MASK): Likewise.
3199         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
3200         (cpu_features): Add xsave_state_size and xsave_state_full_size.
3201         (index_arch_Use_dl_runtime_resolve_opt): Removed.
3202         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
3203         (index_arch_XSAVEC_Usable): New.
3204         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3205         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
3206         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
3207         is enabled.
3208         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3209         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
3210         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
3211         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
3212         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
3213         _dl_runtime_resolve_xsavec.
3214         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
3215         Removed.
3216         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
3217         instead of VEC_SIZE.
3218         (REGISTER_SAVE_BND0): Removed.
3219         (REGISTER_SAVE_BND1): Likewise.
3220         (REGISTER_SAVE_BND3): Likewise.
3221         (REGISTER_SAVE_RAX): Always defined to 0.
3222         (VMOV): Removed.
3223         (_dl_runtime_resolve_avx): Likewise.
3224         (_dl_runtime_resolve_avx_slow): Likewise.
3225         (_dl_runtime_resolve_avx_opt): Likewise.
3226         (_dl_runtime_resolve_avx512): Likewise.
3227         (_dl_runtime_resolve_avx512_opt): Likewise.
3228         (_dl_runtime_resolve_sse): Likewise.
3229         (_dl_runtime_resolve_sse_vex): Likewise.
3230         (USE_FXSAVE): New.
3231         (_dl_runtime_resolve_fxsave): Likewise.
3232         (USE_XSAVE): Likewise.
3233         (_dl_runtime_resolve_xsave): Likewise.
3234         (USE_XSAVEC): Likewise.
3235         (_dl_runtime_resolve_xsavec): Likewise.
3236         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
3237         Removed.
3238         (_dl_runtime_resolve_avx512_opt): Likewise.
3239         (_dl_runtime_resolve_avx): Likewise.
3240         (_dl_runtime_resolve_avx_opt): Likewise.
3241         (_dl_runtime_resolve_sse): Likewise.
3242         (_dl_runtime_resolve_sse_vex): Likewise.
3243         (_dl_runtime_resolve_fxsave): New.
3244         (_dl_runtime_resolve_xsave): Likewise.
3245         (_dl_runtime_resolve_xsavec): Likewise.
3247 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
3249         [BZ #22320]
3250         CVE-2017-15670
3251         * posix/glob.c (__glob): Fix one-byte overflow.
3253 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3255         * malloc/malloc.c (sysdep-cancel.h): Add include.
3257 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3259         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
3261 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
3263         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
3264         (tests): Remove $(objpfx)ga_test depdendency.
3265         * resolv/ga_test.c: Remove file.
3267 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
3269         [BZ #18812]
3270         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
3271         * localedata/locales/kab_DZ: New file.
3273 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3275         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
3276         _dl_relocate_static_pie instead of _dl_start to compute load
3277         address in static PIE.
3279 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3281         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
3283 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
3285         [BZ #13605]
3286         * localedata/SUPPORTED: Add shn_MM/UTF-8.
3287         * localedata/locales/shn_MM: New file.
3289 2017-10-20  Florian Weimer  <fweimer@redhat.com>
3291         [BZ #22321]
3292         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
3293         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
3294         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
3295         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
3296         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
3297         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
3299 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
3301         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3303 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
3305         * sysdeps/mips/ieee754/bits/floatn.h: New file.
3307         [BZ #22322]
3308         * sysdeps/mips/bits/long-double.h: Move to ....
3309         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
3311 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
3313         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
3315 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
3316             H.J. Lu  <hongjiu.lu@intel.com>
3318         [BZ #22299]
3319         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3320         GLRO(dl_platform) to NULL.
3321         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
3322         (modules-names): Add tst-platformmod-1 and
3323         x86_64/tst-platformmod-2.
3324         (CFLAGS-tst-platform-1.c): New.
3325         (CFLAGS-tst-platformmod-1.c): Likewise.
3326         (CFLAGS-tst-platformmod-2.c): Likewise.
3327         (LDFLAGS-tst-platformmod-2.so): Likewise.
3328         ($(objpfx)tst-platform-1): Likewise.
3329         ($(objpfx)tst-platform-1.out): Likewise.
3330         (tst-platform-1-ENV): Likewise.
3331         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
3332         * sysdeps/x86_64/tst-platform-1.c: New file.
3333         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
3334         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
3336 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
3338         [BZ #13994]
3339         * locale/iso-639.def: Add Karbi.
3340         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
3341         * localedata/locales/mjw_IN: New file.
3343 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
3345         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
3346         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
3347         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
3348         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
3349         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
3350         (libm_alias_ldouble_other_r): Also create _Float128 alias.
3351         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
3352         <bits/floatn.h>.
3353         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
3354         (libm_alias_ldouble_other_r): Also create _Float128 alias.
3355         * manual/math.texi (Mathematics): Document additional architecture
3356         support for _Float128.
3357         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
3358         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3359         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3360         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3361         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3362         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3363         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3364         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3365         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3366         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3367         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3368         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3369         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3370         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3371         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3373 2017-10-18  Renlin Li  <renlin.li@arm.com>
3375         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
3376         _DYNAMIC symbol to calculate load address.
3378 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
3380         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
3381         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
3382         summary bits.
3383         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
3384         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
3386 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
3388         [BZ #16777]
3389         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
3390         and improve readability by using more ASCII.
3391         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
3392         and improve readability by using more ASCII.
3394 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
3396         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
3397         not all targets support atomics on bool.
3399 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
3401         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
3402         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
3403         __f128.
3404         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3405         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
3406         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3407         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
3408         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3409         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
3411 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3413         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
3414         defines.
3416 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3418         [BZ #22159]
3419         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
3420         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
3421         (do_check_remalloced_chunk): Fix build bug.
3422         (do_check_malloc_state): Add assert that checks arena->top.
3423         (malloc_consolidate): Remove initialization.
3424         (int_mallinfo): Remove call to malloc_consolidate.
3425          (__libc_mallopt): Clarify why malloc_consolidate is needed.
3427 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3429         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
3430         (have_fastchunks): Remove.
3431         (clear_fastchunks): Remove.
3432         (set_fastchunks): Remove.
3433         (malloc_state): Add have_fastchunks.
3434         (malloc_init_state): Use have_fastchunks.
3435         (do_check_malloc_state): Remove incorrect invariant checks.
3436         (_int_malloc): Use have_fastchunks.
3437         (_int_free): Likewise.
3438         (malloc_consolidate): Likewise.
3440 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3442         * malloc/malloc.c (tcache_put): Inline.
3443         (tcache_get): Inline.
3445 2017-10-17  Jordi Mallach  <jordi@gnu.org>
3447         Aurelien Jarno  <aurelien@aurel32.net>
3448         [BZ #2522]
3449         * localedata/locales/ca_ES@valencia: New file.
3450         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
3452 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
3454         [BZ #22296]
3455         * math/math.h: Let signbit use the builtin in C++ mode with gcc
3456         < 6.x
3458 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3460         * scripts/build-many-glibcs.py (Context.add_all_configs):
3461         Add arm-linux-gnueabihf multiarch extra_glibcs.
3463         * sysdeps/generic/ifunc-init.h: New file.
3464         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
3466 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
3468         [BZ #22019]
3469         * localedata/locales/el_GR: Set n_cs_precedes to 0.
3470         * localedata/locales/el_CY: copy "el_GR" because it is identical.
3471         * stdlib/tst-strfmon_l.c: adapt test case.
3473 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3475         * sysdeps/generic/float128-abi.h: New file.
3476         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
3477         non-__prefixed symbols to ....
3478         * math/Versions: ... here.  Include <float128-abi.h>.
3479         * stdlib/Versions ... and here.  Include <float128-abi.h>
3481 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3483         * version.h (VERSION): Switch to ".9000" as the development
3484         version suffix.
3486 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3488         [BZ #22050]
3489         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
3490         compat_symbol_reference to access non-default version.
3492 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3494         * malloc/Makefile (others-extras): Set to mcheck-init.o.
3496 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
3498         * include/shlib-compat.h (compat_symbol_reference): Update
3499         comment.
3501 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3503         * math/Makefile (test-types): Add
3504         $(type-float128-$(float128-alias-fcts)).
3505         * math/test-float128.h (TYPE_STR): Define conditional on
3506         [FLT128_MANT_DIG == LDBL_MANT_DIG].
3507         (ULP_IDX): Likewise.
3508         (ULP_I_IDX): Likewise.
3510         * stdlib/strtold.c: Include <bits/floatn.h>
3511         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
3512         and later undefine as macro.  Define as weak alias if
3513         [!USE_WIDE_CHAR].
3514         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
3515         and later undefine as macro.  Define as weak alias if
3516         [USE_WIDE_CHAR].
3517         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
3518         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
3519         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3520         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3521         Define and later undefine as macro.  Define as weak alias if
3522         [USE_WIDE_CHAR].
3523         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
3524         <bits/floatn.h>.
3525         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
3526         Define and later undefine as macro.  Define as weak alias if
3527         [!USE_WIDE_CHAR].
3528         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3529         Define and later undefine as macro.  Define as weak alias if
3530         [USE_WIDE_CHAR].
3532 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
3534         * localedata/collate-test.c (allocate_arrays): Don't use \n in
3535         record_verbose messages.
3537 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3539         [BZ #22052]
3540         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
3541         to silence -O3 -Wall warning with GCC 7.
3543 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
3545         * Makeconfig (+link-static-before-libc): Use the first of
3546         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
3547         * gmon/Makefile (tests): Add tst-gmon-static.
3548         (tests-static): Likewise.
3549         (CFLAGS-tst-gmon-static.c): New.
3550         (CRT-tst-gmon-static): Likewise.
3551         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
3552         (tst-gmon-static-ENV): Likewise.
3553         (tests-special): Likewise.
3554         ($(objpfx)tst-gmon-static.out): Likewise.
3555         (clean-tst-gmon-static-data): Likewise.
3556         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
3557         * gmon/tst-gmon-static-gprof.sh: New file.
3558         * gmon/tst-gmon-static.c: Likewise.
3560 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
3562         [BZ #22295]
3563         * locale/programs/linereader.c (get_string): Don't warn on
3564         non-symbolic character.
3566         [BZ #22294]
3567         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
3568         int_curr_symbol.
3570         [BZ #22292]
3571         * locale/programs/record-status.h: New file
3572         * locale/programs/locale.c: Add comment.
3573         * locale/programs/charmap-dir.c: Don't include error.h.
3574         (charmap_opendir): Use record_error.
3575         * locale/programs/charmap.c: Don't include error.h.
3576         (charmap_read): Use record_error, and record_warning.
3577         (parse_charmap): Likewise.
3578         * locale/programs/ld-address.c: Don't include error.h.
3579         (address_finish): Use record_error, and record_warning.
3580         * locale/programs/ld-collate.c: Don't include error.h.
3581         (collate_finish): Use record_error, and record_error_at_line.
3582         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
3583         (ctype_class_new): Likewise.
3584         (ctype_map_new): Likewise.
3585         (set_one_default): Likewise.
3586         (set_class_defaults): Likewise.
3587         (translit_flatten): Likewise.
3588         (allocate_arrays): Use record_error, and record_verbose.
3589         * locale/programs/ld-identification.c: Don't include error.h.
3590         (indentation_finish): Use record_error and record_warning.
3591         * locale/programs/ld-measurement.c: Don't include error.h.
3592         (measurement_finish): Use record_error.
3593         * locale/programs/ld-messages.c
3594         (message_finish): Likewise.
3595         * locale/programs/ld-monetary.c
3596         (monetary_finish): Likewise.
3597         * locale/programs/ld-name.c (name_finish): Use record_error
3598         and record_warning.
3599         * locale/programs/ld-numeric.c
3600         (numeric_finish): Use record_error.
3601         * locale/programs/ld-paper.c: Don't include error.h.
3602         (paper_finish): Use record_error.
3603         * locale/programs/ld-telephone.c: Don't include error.h.
3604         (telephone_finish): Use record_error.
3605         * locale/programs/ld-time.c (time_finish): Likewise.
3606         * locale/programs/linereader.h (lr_error): Make inline func.
3607         * locale/programs/localedef.c: Define recorded_warning_count,
3608         and recorded_error_count.
3609         (main): Use record_error. Use recorded_error_count and
3610         recorded_warning_count to issue correct error returns.
3611         (add_to_readlist): Use record_error.
3612         (find_locale): Likewise.
3613         (load_locale): Likewise.
3614         * locale/programs/localedef.h: Remove be_quiet
3615         and WITH_CUR_LOCALE.
3616         * locale/programs/locarchive.c (compare_from_file): Use
3617         record_error.
3618         * locale/programs/locfile.c (write_locale_data): Use
3619         record_error.
3620         * locale/programs/repertoire.c: Dont include error.h.
3621         (repertoire_complain): Use record_error.
3622         * localedata/tst-fmon.sh: Expect failures from localedef.
3623         * localedata/tst-locale.sh: Likewise.
3624         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
3626         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
3627         (REPORTS): Likewise.
3628         (check): Likewise.
3629         (i18n): Rename to...
3630         (i18n_ctype): ...this.
3631         (i18n-report): Rename to...
3632         (i18n_ctype-report): ...this.
3633         * localedata/locales/i18n_ctype: Regenerate.
3634         * localedata/locales/i18n: copy i18n_ctype.
3636 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3638         * stdlib/strfroml.c: Include <bits/floatn.h>.
3639         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
3640         Define before include of <stdlib.h> and undefine afterwards, then
3641         define as weak alias.
3643         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
3644         Undefine and restore default definition.  Use
3645         libm_alias_ldouble_other.
3647 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
3649         [BZ #22153]
3650         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
3651         in coredumps.
3653 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
3655         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3656         Assign sym_map to be map for local symbols, as TLS relocations
3657         use sym_map to determine whether the symbol is defined and to
3658         extract the TLS information.
3659         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3660         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3662 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3664         [BZ #22189]
3665         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
3666         (math_force_eval): Add powerpc version.
3668         [BZ #22142]
3669         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
3670         -DBL_MAX.
3671         (do_test): Likewise.
3672         * stdio-common/tst-printf.sh: Likewise.
3673         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
3674         ifdef clause in order to set the carry bit right.  Replace r0 by
3675         0 without changing the behavior.
3677 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3679         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
3680         <libm-alias-ldouble.h>.
3681         (fabsl): Define using libm_alias_ldouble.
3682         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
3683         <libm-alias-ldouble.h>.
3684         (fabsl): Define using libm_alias_ldouble.
3686         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
3687         Remove conditional code.
3689         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
3690         Rename to __clog10_internal_l.
3691         (__clog10_internal_l): Define aliases using
3692         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
3693         with __clog10.
3695 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3697         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
3698         * benchtests/sincosf-inputs: New file.
3699         * benchtests/cosf-inputs: New file.
3700         * benchtests/sinf-inputs: New file.
3702 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3704         * posix/tst-spawn.c (do_test): Wait for both children.
3706 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3708         [BZ #22284]
3709         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
3710         tests-pie): Add tst-gmon-pie.
3711         (CFLAGS-tst-gmon-pie.c): New.
3712         (CRT-tst-gmon-pie): Likewise.
3713         (tst-gmon-pie-ENV): Likewise.
3714         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3715         ($(objpfx)tst-gmon-pie.out): Likewise.
3716         (clean-tst-gmon-pie-data): Likewise.
3717         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3718         * gmon/gmon.c [PIC]: Include <link.h>.
3719         [PIC] (callback): New function.
3720         (write_hist): Add an argument for load address.  Subtract load
3721         address from PCs.
3722         (write_call_graph): Likewise.
3723         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3724         it to write_hist and write_call_graph.
3725         * gmon/tst-gmon-pie.c: New file.
3727 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3729         * math/Makefile (test-types-basic): New variable.
3730         (test-types): Likewise.
3731         (libm-test-support): Use $(test-types) instead of $(types).
3732         (libm-tests-base-normal): Likewise.
3733         (libm-tests-base-finite): Likewise.
3734         (libm-tests-base-inline): Likewise.
3735         (generated): Likewise.
3736         ($(objpfx)libm-test-support-$(t).c): Likewise.
3737         (libm-tests-for-type iterator): Likewise.
3738         (libm-test-support iterator): Likewise.
3739         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3740         (ulp_idx): Use ULP_IDX.
3741         * math/test-ldouble.h: Include <float.h>.
3742         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3743         (ULP_IDX): New macro.
3744         (ULP_I_IDX): Likewise.
3745         * math/test-double.h (ULP_IDX): Likewise.
3746         (ULP_I_IDX): Likewise.
3747         * math/test-float.h (ULP_IDX): Likewise.
3748         (ULP_I_IDX): Likewise.
3749         * math/test-float128.h (ULP_IDX): Likewise.
3750         (ULP_I_IDX): Likewise.
3752 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3754         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3755         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3756         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3757         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3758         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3759         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3760         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3761         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3762         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3763         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3764         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3765         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3766         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3767         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3768         (SINGLE_THREAD_BY_GLOBAL): Define.
3769         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3770         Likewise.
3771         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3772         Likewise.
3773         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3774         Likewise.
3775         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3776         Likewise.
3777         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3778         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3779         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3780         Likewise.
3782 2017-10-11  Andreas Schwab  <schwab@suse.de>
3784         * nis/Makefile (aux): Remove.
3785         * nscd/Makefile (aux): Add nscd_hash.
3786         (nscd-modules): Likewise.
3787         ($(objpfx)nscd): Don't depend on libnsl.
3788         * nscd/nscd_hash.c: New file.
3789         * nscd/nscd_hash.h: Likewise.
3790         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3791         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3792         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3793         instead of <nis/rpcsvc/nis.h>.
3794         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3796 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3798         [BZ #22078]
3799         Avoid large NSS buffers with many addresses, aliases.
3800         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3801         using dynarrays and struct alloc_buffer.
3802         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3803         (tst-nss-files-hosts-multi): Link with -ldl.
3804         * nss/tst-nss-files-hosts-multi.c: New file.
3806 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3808         [BZ #18023]
3809         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3810         scratch_buffer.  Eliminate gotos.
3812 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3814         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3815         libm_alias_ldouble_other.
3816         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3817         undefine and redefine.
3818         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3819         (exp10l): Do not define here.
3820         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3821         (weak_alias): Undefine and redefine.
3822         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3823         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3824         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3825         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3827         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3828         [!__fma] (fma): Define using libm_alias_double.
3829         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3830         [!__fmaf] (fmaf): Define using libm_alias_float.
3831         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3832         (fmal): Define using libm_alias_ldouble.
3834 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3836         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3837         New macro.
3838         (libm_alias_double_other): Likewise.
3839         (libm_alias_double_r): Use libm_alias_double_other_r.
3840         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3841         New macro.
3842         (libm_alias_float_other): Likewise.
3843         (libm_alias_float_r): Use libm_alias_float_other_r.
3844         * sysdeps/generic/libm-alias-float128.h
3845         (libm_alias_float128_other_r): New macro.
3846         (libm_alias_float128_other): Likewise.
3847         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3848         * sysdeps/generic/libm-alias-ldouble.h
3849         (libm_alias_ldouble_other_r): New macro.
3850         (libm_alias_ldouble_other): Likewise.
3851         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3852         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3853         (libm_alias_double_other_r): New macro.
3854         (libm_alias_double_other): Likewise.
3855         (libm_alias_double_r): Use libm_alias_double_other_r.
3856         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3857         (libm_alias_ldouble_other_r): New macro.
3858         (libm_alias_ldouble_other): Likewise.
3859         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3860         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3861         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3862         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3863         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3864         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3865         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3866         * math/w_exp2f.c: Use libm_alias_float_other.
3867         * math/w_expf.c: Likewise.
3868         * math/w_log2f.c: Likewise.
3869         * math/w_logf.c: Likewise.
3870         * math/w_powf.c: Likewise.
3871         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3872         [!__exp2f]: Use libm_alias_float_other.
3873         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3874         [!__expf]: Use libm_alias_float_other.
3875         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3876         [!__log2f]: Use libm_alias_float_other.
3877         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3878         [!__logf]: Use libm_alias_float_other.
3879         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3880         [!__powf]: Use libm_alias_float_other.
3882 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3884         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3885         function.
3886         (_nss_files_gethostbyname3_r): Call it.
3888 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3890         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3891         error.  Remove default definition of declare_mgen_alias.
3892         [!declare_mgen_alias_r]: Likewise.
3893         * sysdeps/generic/math-type-macros-double.h
3894         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3895         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3896         (declare_mgen_alias_r): Likewise.
3897         * sysdeps/generic/math-type-macros-float128.h
3898         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3899         * sysdeps/generic/math-type-macros-ldouble.h
3900         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3901         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3902         macro.
3903         (declare_mgen_alias_r_s): Likewise.
3904         (declare_mgen_alias_r): Likewise.
3905         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3906         (lgamma_r): Define using libm_alias_double_r.
3907         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3908         (lgammaf_r): Define using libm_alias_float_r.
3909         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3910         (lgammal_r): Define using libm_alias_ldouble_r.
3911         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3912         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3914 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3916         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3917         extern declaration.
3919 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3921         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3923 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3925         [BZ #21326]
3926         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3927         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3928         * math/Makefile (test-math-cxx11): New test.
3929         * math/test-math-cxx11.cc: New file.
3931 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3933         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3935         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3936         call to allocate the slave pty file descriptor.
3938 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3940         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3941         [!__fma] (fma): Define using libm_alias_double.
3942         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3943         [!__fma] (fma): Define using libm_alias_double.
3945         * sysdeps/ieee754/float128/float128_private.h: Include
3946         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3947         (libm_alias_ldouble_r): Undefine and redefine.
3948         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3949         <libm-alias-ldouble.h>.
3950         (asinhl): Define using libm_alias_ldouble.
3951         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3952         <libm-alias-ldouble.h>.
3953         (atanl): Define using libm_alias_ldouble.
3954         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3955         <libm-alias-ldouble.h>.
3956         (cbrtl): Define using libm_alias_ldouble.
3957         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3958         <libm-alias-ldouble.h>.
3959         (ceill): Define using libm_alias_ldouble.
3960         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3961         <libm-alias-ldouble.h>.
3962         (copysignl): Define using libm_alias_ldouble.
3963         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3964         <libm-alias-ldouble.h>.
3965         (cosl): Define using libm_alias_ldouble.
3966         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3967         <libm-alias-ldouble.h>.
3968         (erfl): Define using libm_alias_ldouble.
3969         (erfcl): Likewise.
3970         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3971         <libm-alias-ldouble.h>.
3972         (expm1l): Define using libm_alias_ldouble.
3973         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3974         <libm-alias-ldouble.h>.
3975         (fabsl): Define using libm_alias_ldouble.
3976         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3977         <libm-alias-ldouble.h>.
3978         (floorl): Define using libm_alias_ldouble.
3979         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3980         <libm-alias-ldouble.h>.
3981         (fmal): Define using libm_alias_ldouble.
3982         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3983         <libm-alias-ldouble.h>.
3984         (frexpl): Define using libm_alias_ldouble.
3985         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3986         libm_alias_ldouble.
3987         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3988         <libm-alias-ldouble.h>.
3989         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3990         libm_alias_ldouble.
3991         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3992         <libm-alias-ldouble.h>.
3993         (getpayloadl): Define using libm_alias_ldouble.
3994         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3995         <libm-alias-ldouble.h>.
3996         (llrintl): Define using libm_alias_ldouble.
3997         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3998         <libm-alias-ldouble.h>.
3999         (llroundl): Define using libm_alias_ldouble.
4000         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
4001         <libm-alias-ldouble.h>.
4002         (logbl): Define using libm_alias_ldouble.
4003         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
4004         <libm-alias-ldouble.h>.
4005         (lrintl): Define using libm_alias_ldouble.
4006         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
4007         <libm-alias-ldouble.h>.
4008         (lroundl): Define using libm_alias_ldouble.
4009         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
4010         <libm-alias-ldouble.h>.
4011         (modfl): Define using libm_alias_ldouble.
4012         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
4013         <libm-alias-ldouble.h>.
4014         (nearbyintl): Define using libm_alias_ldouble.
4015         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
4016         <libm-alias-ldouble.h>.
4017         (nextafterl): Define using libm_alias_ldouble.
4018         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
4019         <libm-alias-ldouble.h>.
4020         (nextupl): Define using libm_alias_ldouble.
4021         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
4022         <libm-alias-ldouble.h>.
4023         (remquol): Define using libm_alias_ldouble.
4024         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
4025         <libm-alias-ldouble.h>.
4026         (rintl): Define using libm_alias_ldouble.
4027         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
4028         <libm-alias-ldouble.h>.
4029         (roundevenl): Define using libm_alias_ldouble.
4030         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
4031         <libm-alias-ldouble.h>.
4032         (roundl): Define using libm_alias_ldouble.
4033         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
4034         using libm_alias_ldouble.
4035         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
4036         <libm-alias-ldouble.h>.
4037         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
4038         Define using libm_alias_ldouble.
4039         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
4040         <libm-alias-ldouble.h>.
4041         (sincosl): Define using libm_alias_ldouble.
4042         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
4043         <libm-alias-ldouble.h>.
4044         (sinl): Define using libm_alias_ldouble.
4045         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
4046         <libm-alias-ldouble.h>.
4047         (tanhl): Define using libm_alias_ldouble.
4048         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
4049         <libm-alias-ldouble.h>.
4050         (tanl): Define using libm_alias_ldouble.
4051         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
4052         <libm-alias-ldouble.h>.
4053         (totalorderl): Define using libm_alias_ldouble.
4054         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
4055         <libm-alias-ldouble.h>.
4056         (totalordermagl): Define using libm_alias_ldouble.
4057         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
4058         <libm-alias-ldouble.h>.
4059         (truncl): Define using libm_alias_ldouble.
4060         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
4061         libm_alias_ldouble.
4062         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
4063         libm_alias_ldouble.
4064         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
4065         <libm-alias-ldouble.h>.
4066         (weak_alias): Do not undefine and redefine.
4067         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
4068         (copysignl): Define with long_double_symbol only if [IS_IN
4069         (libc)].
4070         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
4071         <libm-alias-ldouble.h>.
4072         (weak_alias): Do not undefine and redefine.
4073         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
4074         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
4075         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
4076         <libm-alias-ldouble.h>.
4077         (weak_alias): Do not undefine and redefine.
4078         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
4079         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
4080         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
4081         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
4082         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
4083         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
4084         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
4085         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
4086         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
4087         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
4088         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
4089         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
4090         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
4091         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
4092         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
4093         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
4094         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
4095         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
4096         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
4097         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
4098         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
4099         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
4100         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
4101         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
4102         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
4103         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
4105 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
4107         [BZ #22111]
4108         * malloc/malloc.c (tcache_shutting_down): Use bool type.
4109         (tcache_thread_freeres): Set tcache_shutting_down before
4110         freeing the tcache.
4111         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
4112         * malloc/tst-malloc-tcache-leak.c: New file.
4114 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4116         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
4117         back to powerpc32 file.
4118         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4119         (memrchr): Add __memrchr_power8 to ifunc list.
4120         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
4121         extra bytes for unaligned inputs.
4123 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
4125         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
4126         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
4127         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
4128         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
4129         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
4131 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
4133         * sysdeps/arm/libm-test-ulps: Update.
4135         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
4136         <libm-alias-ldouble.h>.
4137         (asinhl): Define using libm_alias_ldouble.
4138         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
4139         <libm-alias-ldouble.h>.
4140         (cbrtl): Define using libm_alias_ldouble.
4141         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
4142         <libm-alias-ldouble.h>.
4143         (copysignl): Define using libm_alias_ldouble.
4144         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
4145         <libm-alias-ldouble.h>.
4146         (cosl): Define using libm_alias_ldouble.
4147         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
4148         <libm-alias-ldouble.h>.
4149         (erfl): Define using libm_alias_ldouble.
4150         (erfcl): Likewise.
4151         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
4152         <libm-alias-ldouble.h>.
4153         (fmal): Define using libm_alias_ldouble.
4154         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
4155         <libm-alias-ldouble.h>.
4156         (frexpl): Define using libm_alias_ldouble.
4157         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
4158         libm_alias_ldouble.
4159         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
4160         <libm-alias-ldouble.h>.
4161         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
4162         libm_alias_ldouble.
4163         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
4164         <libm-alias-ldouble.h>.
4165         (getpayloadl): Define using libm_alias_ldouble.
4166         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
4167         <libm-alias-ldouble.h>.
4168         (llrintl): Define using libm_alias_ldouble.
4169         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
4170         <libm-alias-ldouble.h>.
4171         (llroundl): Define using libm_alias_ldouble.
4172         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
4173         <libm-alias-ldouble.h>.
4174         (lrintl): Define using libm_alias_ldouble.
4175         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
4176         <libm-alias-ldouble.h>.
4177         (lroundl): Define using libm_alias_ldouble.
4178         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
4179         <libm-alias-ldouble.h>.
4180         (modfl): Define using libm_alias_ldouble.
4181         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
4182         <libm-alias-ldouble.h>.
4183         (nextupl): Define using libm_alias_ldouble.
4184         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
4185         <libm-alias-ldouble.h>.
4186         (remquol): Define using libm_alias_ldouble.
4187         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
4188         <libm-alias-ldouble.h>.
4189         (roundevenl): Define using libm_alias_ldouble.
4190         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
4191         <libm-alias-ldouble.h>.
4192         (roundl): Define using libm_alias_ldouble.
4193         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
4194         using libm_alias_ldouble.
4195         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
4196         <libm-alias-ldouble.h>.
4197         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
4198         <libm-alias-ldouble.h>.
4199         (setpayloadsigl): Define using libm_alias_ldouble.
4200         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
4201         <libm-alias-ldouble.h>.
4202         (sincosl): Define using libm_alias_ldouble.
4203         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
4204         <libm-alias-ldouble.h>.
4205         (sinl): Define using libm_alias_ldouble.
4206         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
4207         <libm-alias-ldouble.h>.
4208         (tanhl): Define using libm_alias_ldouble.
4209         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
4210         <libm-alias-ldouble.h>.
4211         (tanl): Define using libm_alias_ldouble.
4212         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
4213         <libm-alias-ldouble.h>.
4214         (totalorderl): Define using libm_alias_ldouble.
4215         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
4216         <libm-alias-ldouble.h>.
4217         (totalordermagl): Define using libm_alias_ldouble.
4218         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
4219         libm_alias_ldouble.
4220         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
4221         libm_alias_ldouble.
4223 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4225         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4226         memmove_falkor.
4227         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4228         (__libc_ifunc_impl_list): Likewise.
4229         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
4230         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
4232         * benchtests/bench-memmove-walk.c: New file.
4233         * benchtests/Makefile (string-benchset): Add it.
4235         * benchtests/bench-memset-walk.c: New file.
4236         * benchtests/Makefile (string-benchset): Add it.
4238         * benchtests/bench-memcpy-walk.c: New file.
4239         * benchtests/Makefile (string-benchset): Add it.
4241 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4243         nscd: Eliminate compilation time dependency in the build output.
4244         * nscd/nscd_stat.c (STATDATA_VERSION)
4245         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
4246         (STATDATA_VERSION_FULL): New macro definitions.
4247         (compilation): Remove.
4248         (struct statdata): Adjust version member.
4249         (send_stats): Set version from STATDATA_VERSION_FULL.
4250         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
4252 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
4254         * configure.ac (--enable-add-ons): Remove option.
4255         (machine): Do not mention add-ons in comment.
4256         (LIBC_PRECONFIGURE): Likewise.
4257         (add_ons): Remove variable and sanity checks and logic to locate
4258         add-ons.
4259         (add_ons_automatic): Remove variable.
4260         (configured_add_ons): Likewise.
4261         (add_ons_sfx): Likewise.
4262         (add_ons_pfx): Likewise.
4263         (add_on_subdirs): Likewise.
4264         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
4265         consideration of add-ons in Implies handling.
4266         (sysdeps_add_ons): Likewise.
4267         * configure: Regenerated.
4268         * libidn/configure.ac: Remove.
4269         * libidn/configure: Likewise.
4270         * sysdeps/unix/inet/configure.ac: New file.
4271         * sysdeps/unix/inet/configure: New generated file.
4272         * sysdeps/unix/inet/Subdirs: Add libidn.
4273         * Makeconfig (sysdeps-srcdirs): Remove variable.
4274         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
4275         ($(common-objpfx)config.status): Do not depend on add-on files.
4276         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
4277         comment.
4278         (all-subdirs): Do not include $(add-on-subdirs).
4279         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
4280         * config.make.in (add-ons): Remove variable.
4281         (add-on-subdirs): Likewise.
4282         (sysdeps-add-ons): Likewise.
4283         * manual/Makefile (add-chapters): Remove.
4284         ($(objpfx)texis): Do not depend on $(add-chapters).
4285         (nonexamples): Do not handle $(add-chapters).
4286         (examples): Do not handle $(add-ons).
4287         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
4288         libc-texinfo.sh.
4289         * manual/install.texi (Installation): Do not mention add-ons.
4290         (--enable-add-ons): Do not document configure option.
4291         * INSTALL: Regenerated.
4292         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
4293         * manual/maint.texi (Hierarchy Conventions): Do not mention
4294         add-ons.
4295         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
4296         --enable-add-ons.
4297         * scripts/gen-sorted.awk: Do not handle Subdirs files from
4298         add-ons.
4299         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
4300         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
4302 2017-10-05  Andreas Schwab  <schwab@suse.de>
4304         [BZ #15142]
4305         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
4306         (_IO_flush_all_lockp): Always lock list_all_lock.
4307         (_IO_flush_all_linebuffered): Likewise.
4308         (_IO_unbuffer_all): Likewise.
4310 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4312         [BZ #15436]
4313         Do not flush stdio streams on abort.
4314         * stdlib/abort.c (fflush): Remove macro definition.
4315         (abort): Remove stages related to stdio flushing.
4317 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4319         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
4321 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
4323         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4325 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4327         * support/support_format_hostent.c (support_format_hostent): Add
4328         more error information for NETDB_INTERNAL.
4330 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4332         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
4333         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
4334         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
4335         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
4336         AC_DEFINE if multi-arch is enabled.
4337         * sysdeps/i386/configure: Regenerated.
4339 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4341         * Makeconfig (+link-static-before-libc): Use
4342         $(DEFAULT-LDFLAGS-$(@F)).
4343         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
4344         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
4345         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
4347 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4349         * elf/Makefile (tests): Add tst-main1.
4350         (modules-names): Add tst-main1mod.
4351         ($(objpfx)tst-main1): New.
4352         (CRT-tst-main1): Likewise.
4353         (LDFLAGS-tst-main1): Likewise.
4354         (LDLIBS-tst-main1): Likewise.
4355         (tst-main1mod.so-no-z-defs): Likewise.
4356         * elf/tst-main1.c: New file.
4357         * elf/tst-main1mod.c: Likewise.
4359 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4361         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
4363 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
4365         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
4366         (fma): Define using libm_alias_double.
4367         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
4368         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
4369         <math_ldbl_opt.h>.
4370         (fmal): Do not define as compat symbol here.
4371         * sysdeps/alpha/fpu/s_fma.c: New file.
4373 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4375         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
4377 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
4379         [BZ #22229]
4380         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
4381         <math_ldbl_opt.h>
4382         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
4383         and libc.
4384         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
4385         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4386         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
4387         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
4388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4389         Include <math_ldbl_opt.h>
4390         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
4391         and libc.
4392         (compat_symbol): Undefine and redefine.
4393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
4394         <math_ldbl_opt.h>
4395         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4396         (compat_symbol): Undefine and redefine.
4397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
4398         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
4399         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
4400         GLIBC_2_1 for libm.
4401         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
4402         GLIBC_2.0 copysignl symbol.
4403         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4404         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
4406         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
4408 2017-10-04  Florian Weimer  <fweimer@redhat.com>
4410         * scripts/check-local-headers.sh: Ignore nspr4 header file
4411         directory in addition to nspr.
4413 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
4415         [BZ #17956]
4416         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
4417         * configure: Regenerate.
4418         * crypt/Makefile (nss-cpp-flags): New variable.
4419         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
4420         (CPPFLAGS-md5-crypt.c): Use it.
4421         * scripts/check-local-headers.sh: Ignore nspr header file
4422         directory.
4424 2017-10-04  Andreas Schwab  <schwab@suse.de>
4426         * nis/Makefile (services): Remove compat.
4427         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
4428         ($(objpfx)libnss_compat.so): Remove rule.
4429         * nis/Versions (libnss_compat): Remove.
4430         * nss/Makefile (services): Add compat.
4431         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
4432         * nss/Versions (libnss_compat): Define.
4433         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
4434         Don't include <rpc/types.h>.  Replace bool_t by bool.
4435         * nss/nss_compat/compat-initgroups.c: Likewise.
4436         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
4437         instead of <rpcsrv/ypclnt.h>.
4438         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
4439         yp_get_default_domain.
4440         * nss/nss_compat/compat-pwd.c: Likewise.
4441         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
4442         yp_get_default_domain.
4443         * nss/nss_compat/nisdomain.c: New file.
4444         * nss/nss_compat/nisdomain.h: Likewise.
4446 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4448         [BZ #22244]
4449         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
4450         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4452 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4454         [BZ #22243]
4455         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
4456         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
4458 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4460         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
4461         "movl main@GOTOFF(%ebx), %eax".
4463 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4465         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
4466         allow undefined _DYNAMIC in PIE libc.a.
4467         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4468         Likewse.
4470 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4472         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
4473         check _DYNAMIC.
4475 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4477         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
4478         check _DYNAMIC.
4480 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4482         * math/test-math-iscanonical.cc (error): Replace bool with int.
4484 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4486         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
4487         (modf): Define using libm_alias_double, only if [!__modf].
4488         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
4489         <libm-alias-double.h>.
4490         (modf): Define using libm_alias_double, only if [!__modf].
4491         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
4492         compat symbol here.
4493         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
4494         (weak_alias): Do not undefine and redefine.
4495         (strong_alias): Likewise.
4496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
4497         (weak_alias): Likewise.
4498         (strong_alias): Likewise.
4500         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
4501         (logb): Define using libm_alias_double, only if [!__logb].
4502         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
4503         <libm-alias-double.h>.
4504         (logb): Define using libm_alias_double, only if [!__logb].
4505         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
4506         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
4507         (weak_alias): Do not undefine and redefine.
4508         (strong_alias): Likewise.
4509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
4510         (weak_alias): Likewise.
4511         (strong_alias): Likewise.
4513 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4515         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
4516         Check SHARED instead PIC.
4518 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4520         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
4521         [!__fmaf] (fmaf): Define using libm_alias_float.
4523         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
4524         (frexp): Define using libm_alias_double.
4525         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
4526         <libm-alias-double.h>.
4527         (frexp): Define using libm_alias_double.
4528         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
4529         compat symbol here.
4531 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4533         [BZ #22235]
4534         * math/math.h: Trivial fix for unbalanced parentheses in comment.
4535         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
4536         (CFLAGS-test-math-iscanonical.cc): New variable.
4537         * math/test-math-iscanonical.cc: New file.
4538         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
4539         Provide a C++ implementation based on function overloading,
4540         rather than using __MATH_TG, which uses C-only builtins.
4541         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
4542         Likewise.
4543         * sysdeps/powerpc/powerpc64le/Makefile
4544         (CFLAGS-test-math-iscanonical.cc): New variable.
4546 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4548         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
4549         (ceil): Define using libm_alias_double.
4550         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
4551         (floor): Define using libm_alias_double.
4552         * sysdeps/ieee754/dbl-64/s_llround.c: Include
4553         <libm-alias-double.h>.
4554         (llround): Define using libm_alias_double.
4555         * sysdeps/ieee754/dbl-64/s_lround.c: Include
4556         <libm-alias-double.h>.
4557         (lround): Define using libm_alias_double.
4558         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
4559         <libm-alias-double.h>.
4560         (nearbyint): Define using libm_alias_double.
4561         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
4562         <libm-alias-double.h>.
4563         (remquo): Define using libm_alias_double.
4564         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
4565         (rint): Define using libm_alias_double.
4566         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
4567         (round): Define using libm_alias_double.
4568         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
4569         (trunc): Define using libm_alias_double.
4570         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
4571         <libm-alias-double.h>.
4572         (ceil): Define using libm_alias_double.
4573         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
4574         <libm-alias-double.h>.
4575         (floor): Define using libm_alias_double.
4576         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
4577         <libm-alias-double.h>.
4578         (llround): Define using libm_alias_double.
4579         [_LP64] (lround): Likewise.
4580         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
4581         <libm-alias-double.h>.
4582         [!_LP64] (lround): Define using libm_alias_double.
4583         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
4584         <libm-alias-double.h>.
4585         (nearbyint): Define using libm_alias_double.
4586         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
4587         <libm-alias-double.h>.
4588         (remquo): Define using libm_alias_double.
4589         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
4590         <libm-alias-double.h>.
4591         (rint): Define using libm_alias_double.
4592         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
4593         <libm-alias-double.h>.
4594         (round): Define using libm_alias_double.
4595         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
4596         <libm-alias-double.h>.
4597         (trunc): Define using libm_alias_double.
4598         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
4599         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
4600         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
4601         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
4602         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
4603         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
4604         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
4605         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
4606         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
4608 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4610         * math/w_remainder.c: New file.
4611         * math/w_remainderf.c: New file.
4612         * math/w_remainderl.c: New file.
4614 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4616         * elf/rtld.c (BOOTSTRAP_MAP): New.
4617         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
4618         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4619         Likewise.
4620         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4621         Likewise.
4622         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4623         Likewise.
4625 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4627         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
4628         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
4629         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
4630         rtld_hidden_data_ver): Define to empty.
4631         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
4632         __assert_perror_fail): Likewise.
4633         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4634         (__rewinddir): Likewise.
4635         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4636         (__profile_frequency): Likewise.
4637         * include/setjmp.h (__sigsetjmp): Likewise.
4638         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
4639         __libc_sigaction): Likewise.
4640         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
4641         not set hidden attribute.
4642         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
4643         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
4644         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
4645         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
4646         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
4647         __fxstatat64): Likewise.
4648         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4649         (__uname): Likewise.
4650         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4651         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
4652         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
4653         (NO_RTLD_HIDDEN): Set.
4654         * sysdeps/mach/hurd/configure: Refresh.
4655         * config.h.in: Refresh.
4657 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
4659         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
4660         (atan): Define using libm_alias_double.
4661         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
4662         (tan): Define using libm_alias_double.
4663         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
4664         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
4666         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
4667         define as weak alias of __atan.  Do not define any aliases if
4668         [__atan].
4669         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
4670         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
4671         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
4672         as weak alias of __tan.  Do not define any aliases if [__tan].
4673         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
4674         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
4675         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
4676         __atan.
4677         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
4678         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
4679         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
4680         and define as weak alias of __atan.
4681         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
4682         __atan.
4683         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
4684         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
4685         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
4686         define as weak alias of __tan.
4688 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4690         * math/w_lgamma.c: New file.
4691         * math/w_lgammaf.c: New file.
4692         * math/w_lgammal.c: New file.
4694 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4696         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
4697         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
4698         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
4699         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
4700         * sysdeps/ieee754/flt-32/w_logf.c: New file.
4701         * sysdeps/ieee754/flt-32/w_powf.c: New file.
4702         * sysdeps/i386/fpu/w_log2f.c: New file.
4703         * sysdeps/i386/fpu/w_logf.c: New file.
4704         * sysdeps/i386/fpu/w_powf.c: New file.
4705         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
4706         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
4707         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
4709 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4710             H.J. Lu  <hongjiu.lu@intel.com>
4712         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4713         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4714         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4715         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4716         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4717         the new expf code.
4718         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4719         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4720         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4721         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4722         * sysdeps/i386/fpu/w_exp2f.c: New file.
4723         * sysdeps/i386/fpu/w_expf.c: New file.
4724         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4725         * sysdeps/x86_64/fpu/w_expf.c: New file.
4727 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4729         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4730         (log2f): Likewise.
4731         (powf): Likewise.
4732         * math/w_log2f.c: New file.
4733         * math/w_logf.c: New file.
4734         * math/w_powf.c: New file.
4735         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4736         * math/w_logf_compat.c (__logf_compat): Likewise.
4737         * math/w_powf_compat.c (__powf_compat): Likewise.
4738         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4739         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4740         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4741         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4742         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4743         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4744         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4745         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4746         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4747         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4748         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4749         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4750         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4751         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4752         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4754         Likewise.
4755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4756         Likewise.
4757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4758         Likewise.
4759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4760         Likewise.
4761         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4762         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4763         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4764         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4765         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4767         Likewise.
4768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4769         Likewise.
4770         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4771         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4772         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4774 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4776         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4777         (sysdep_routines): Add memrchr_power8.
4778         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4779         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4780         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4781         New file.
4782         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4783         (memrchr): Add __memrchr_power8 to ifunc list.
4784         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4786 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4788         [BZ #18822]
4789         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4790         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4791         libc_hidden_def.
4792         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4793         (__posix_fallocate64_l64): Likewise.
4795 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4797         [BZ #18822]
4798         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4799         (__sched_setaffinity_new): Add libc_hidden_proto and
4800         libc_hidden_def.
4802 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4804         [BZ #18822]
4805         * include/glob.h (__glob64): Add libc_hidden_proto.
4806         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4807         libc_hidden_def.
4809 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4811         [BZ #18822]
4812         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4813         attribute_hidden.
4815 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4817         [BZ #18822]
4818         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4820 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4822         [BZ #18822]
4823         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4824         libc_hidden_def.
4826 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4828         [BZ #18822]
4829         * csu/version.c (__libc_print_version): Add attribute_hidden.
4831 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4833         [BZ #18822]
4834         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4836 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4838         [BZ #18822]
4839         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4841 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4843         [BZ #18822]
4844         * nscd/nscd_helper.c (__nis_hash): New prototype.
4846 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4848         [BZ #18822]
4849         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4850         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4851         libc_hidden_def.
4852         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4853         * termios/tcgetattr.c (__tcgetattr): Likewise.
4855 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4857         [BZ #18822]
4858         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4859         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4860         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4861         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4862         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4864 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4866         [BZ #18822]
4867         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4869 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4871         [BZ #18822]
4872         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4873         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4875 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4877         [BZ #18822]
4878         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4880 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4882         [BZ #18822]
4883         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4884         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4886 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4888         [BZ #18822]
4889         * include/ifreq.h: New file.
4890         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4891         (__ifreq): Likewise.
4892         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4893         (__ifreq): Likewise.
4895 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4897         [BZ #18822]
4898         * include/idna.h: New file.
4899         * inet/getnameinfo.c: Include <idna.h> instead of
4900         <libidn/idna.h>.
4901         (__idna_to_unicode_lzlz): Removed.
4902         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4903         <libidn/idna.h>.
4904         (__idna_to_ascii_lz): Removed.
4905         (__idna_to_unicode_lzlz): Likewise.
4907 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4909         [BZ #18822]
4910         * include/plural-exp.h: New file.
4911         * intl/plural-exp.c: Include <plural-exp.h> instead of
4912         "plural-exp.h".
4914 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4916         [BZ #18822]
4917         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4918         "getsourcefilter.h".
4919         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4920         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4921         "getsourcefilter.h".
4922         (__get_sol): Removed.
4924 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4926         [BZ #18822]
4927         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4928         to ...
4929         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4933         [BZ #18822]
4934         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4935         attribute_hidden.
4937 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4939         [BZ #18822]
4940         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4942 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4944         [BZ #18822]
4945         * include/search.h (__tdestroy): Add libc_hidden_proto.
4946         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4948 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4950         [BZ #18822]
4951         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4953 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4955         [BZ #18822]
4956         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4957         attribute_hidden.
4959 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4961         [BZ #18822]
4962         * include/signal.h (__kill): Add libc_hidden_proto.
4963         (__sigblock): Likewise.
4964         (__sigprocmask): Likewise.
4965         (__sigaltstack): Likewise.
4966         * signal/kill.c (__kill): Add libc_hidden_def.
4967         * signal/sigblock.c (__sigblock): Likewise.
4968         * signal/sigprocmask.c (__sigprocmask): Likewise.
4969         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4970         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4971         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4972         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4973         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4974         Likewise.
4975         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4976         Likewise.
4977         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4978         (__sigprocmask): Likewise.
4979         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4980         Likewise.
4981         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4982         (__sigprocmask): Likewise.
4983         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4984         Likewise.
4986 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4988         [BZ #18822]
4989         * include/string.h (__strsep): Add libc_hidden_proto.
4990         * string/strsep.c (__strsep): Add libc_hidden_def.
4992 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4994         [BZ #18822]
4995         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4996         attribute_hidden.
4997         (__spawni): Likewise.
4999 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5001         [BZ #18822]
5002         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
5003         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
5004         libc_hidden_def.
5006 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5008         [BZ #18822]
5009         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
5011 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5013         [BZ #18822]
5014         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
5015         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
5016         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5017         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
5018         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
5019         Likewise.
5020         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
5021         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
5023 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5025         [BZ #18822]
5026         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
5027         (__dcigettext): Likewise.
5029 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5031         [BZ #18822]
5032         * include/sys/sysinfo.h (__get_nprocs_conf): Add
5033         libc_hidden_proto.
5034         (__get_nprocs): Likewise.
5035         (__get_phys_pages): Likewise.
5036         (__get_avphys_pages): Likewise.
5037         (__get_child_max): Add attribute_hidden.
5038         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
5039         (__get_nprocs): Likewise.
5040         (__get_phys_pages): Likewise.
5041         (__get_avphys_pages): Likewise.
5042         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
5043         libc_hidden_def.
5044         (__get_nprocs): Likewise.
5045         (__get_phys_pages): Likewise.
5046         (__get_avphys_pages): Likewise.
5047         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
5048         libc_hidden_def.
5049         (__get_nprocs_conf): Likewise.
5050         (__get_phys_pages): Likewise.
5051         (__get_avphys_pages): Likewise.
5053 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5055         [BZ #18822]
5056         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
5057         attribute_hidden.
5058         (__netlink_close): Likewise.
5059         (__netlink_free_handle): Likewise.
5060         (__netlink_request): Likewise.
5062 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5064         [BZ #18822]
5065         * include/rpc/rpc.h (__rpc_thread_variables): Add
5066         attribute_hidden.
5067         (__rpc_thread_svc_cleanup): Likewise.
5068         (__rpc_thread_clnt_cleanup): Likewise.
5069         (__rpc_thread_key_cleanup): Likewise.
5071 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5073         [BZ #18822]
5074         * include/sys/uio.h (__readv): Add libc_hidden_proto.
5075         (__writev): Likewise.
5076         * misc/readv.c (__readv): Add libc_hidden_def.
5077         * misc/writev.c (__writev): Likewise.
5078         * sysdeps/posix/readv.c (__readv): Likewise.
5079         * sysdeps/posix/writev.c (__writev): Likewise.
5080         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
5081         (__readv): Likewise.
5082         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
5083         (__writev): Likewise.
5085 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5087         [BZ #18822]
5088         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
5089         (__regcomp): Add libc_hidden_proto.
5090         (__regexec): Likewise.
5091         (__regfree): Likewise.
5092         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
5093         (__regfree): Likewise.
5094         * posix/regexec.c (__regexec): Likewise.
5096 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5098         [BZ #18822]
5099         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
5100         (__getutent): Likewise.
5101         (__getutid): Likewise.
5102         (__getutline): Likewise.
5103         (__pututline): Likewise.
5104         (__getutent_r): Likewise.
5105         (__getutid_r): Likewise.
5106         (__getutline_r): Likewise.
5107         (__utmpname): Add attribute_hidden.
5108         (__setutent): Likewise.
5109         (__endutent): Likewise.
5110         * login/getutent.c (__getutent): Add libc_hidden_def.
5111         * login/getutent_r.c (__getutent_r): Likewise.
5112         (__pututline): Likewise.
5113         * login/getutid.c (__getutid): Likewise.
5114         * login/getutid_r.c (__getutid_r): Likewise.
5115         * login/getutline.c (__getutline): Likewise.
5116         * login/getutline_r.c (__getutline_r): Likewise.
5117         * login/updwtmp.c (__updwtmp): Likewise.
5119 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5121         [BZ #18822]
5122         * include/dirent.h (__opendir): Always add attribute_hidden.
5123         (__fdopendir): Likewise.
5124         (__closedir): Likewise.
5125         (__readdir): Likewise.
5126         (__readdir64): Add libc_hidden_proto.
5127         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
5128         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
5129         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
5130         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
5131         New alias.
5133 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5135         [BZ #18822]
5136         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
5137         * include/netdb.h (__gethostbyaddr_r): Likewise.
5138         (__gethostbyname_r): Likewise.
5139         (__gethostbyname2_r): Likewise.
5140         (__getnetbyaddr_r): Likewise.
5141         (__getnetbyname_r): Likewise.
5142         (__getservbyname_r): Likewise.
5143         (__getservbyport_r): Likewise.
5144         (__getprotobyname_r): Likewise.
5145         (__getprotobynumber_r): Likewise.
5146         (__getnetgrent_r): Likewise.
5147         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
5148         (__getrpcbynumber_r): Likewise.
5149         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
5151 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5153         [BZ #18822]
5154         * include/stdio.h (__fcloseall): Add attribute_hidden.
5155         (__getline): Likewise.
5156         (__path_search): Likewise.
5157         (__gen_tempname): Likewise.
5158         (__libc_message): Likewise.
5159         (__flockfile): Likewise.
5160         (__funlockfile): Likewise.
5161         (__fxprintf): Likewise.
5162         (__fxprintf_nocancel): Likewise.
5164 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5166         [BZ #18822]
5167         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
5168         (__sgetsgent_r): Likewise.
5170 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5172         [BZ #18822]
5173         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
5174         (__statfs64): Likewise.
5175         (__fstatfs64): Likewise.
5176         * include/sys/statvfs.h (__statvfs64): Likewise.
5177         (__fstatvfs64): Likewise.
5178         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
5179         (__statfs_filesize_max): Likewise.
5180         (__statfs_symlinks): Likewise.
5181         (__statfs_chown_restricted): Likewise.
5183 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5185         [BZ #18822]
5186         * include/time.h (__tzstring): Add attribute_hidden.
5187         (__tzfile_read): Likewise.
5188         (__tzfile_compute): Likewise.
5189         (__tzfile_default): Likewise.
5190         (__tzset_parse_tz): Likewise.
5191         (__offtime): Likewise.
5192         (__asctime_r): Likewise.
5193         (__tzset): Likewise.
5194         (__tz_convert): Likewise.
5195         (__getdate_r): Likewise.
5196         (__getclktck): Likewise.
5198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5200         [BZ #18822]
5201         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
5202         (__nscd_unmap): Likewise.
5203         (__nscd_cache_search): Likewise.
5204         (__nscd_get_nl_timestamp): Likewise.
5205         (__nscd_getpwnam_r): Likewise.
5206         (__nscd_getpwuid_r): Likewise.
5207         (__nscd_getgrnam_r): Likewise.
5208         (__nscd_getgrgid_r): Likewise.
5209         (__nscd_gethostbyname_r): Likewise.
5210         (__nscd_gethostbyname2_r): Likewise.
5211         (__nscd_gethostbyaddr_r): Likewise.
5212         (__nscd_getai): Likewise.
5213         (__nscd_getgrouplist): Likewise.
5214         (__nscd_getservbyname_r): Likewise.
5215         (__nscd_getservbyport_r): Likewise.
5216         (__nscd_innetgr): Likewise.
5217         (__nscd_setnetgrent): Likewise.
5219 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5221         [BZ #18822]
5222         * include/gmp.h: Declare internal functions only if _ISOMAC is
5223         undefined.
5224         (__mpn_extract_double): Add attribute_hidden.
5225         (__mpn_extract_long_double): Likewise.
5226         (__mpn_extract_float128): Likewise.
5227         (__mpn_construct_float): Likewise.
5228         (__mpn_construct_double): Likewise.
5229         (__mpn_construct_long_double): Likewise.
5230         (__mpn_construct_float128): Likewise.
5231         (mpn_add_1): Likewise.
5232         (mpn_addmul_1): Likewise.
5233         (mpn_add_n): Likewise.
5234         (mpn_cmp): Likewise.
5235         (mpn_divrem): Likewise.
5236         (mpn_lshift): Likewise.
5237         (mpn_mul): Likewise.
5238         (mpn_mul_1): Likewise.
5239         (mpn_rshift): Likewise.
5240         (mpn_sub_1): Likewise.
5241         (mpn_submul_1): Likewise.
5242         (mpn_sub_n): Likewise.
5244 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5246         [BZ #18822]
5247         * include/wchar.h (__wcsnlen): Add attribute_hidden.
5248         (__wcscat): Likewise.
5249         (__btowc): Likewise.
5250         (__wcrtomb): Likewise.
5251         (__mbsrtowcs): Likewise.
5252         (__wcsrtombs): Likewise.
5253         (__mbsnrtowcs): Likewise.
5254         (__wcsnrtombs): Likewise.
5255         (__wcsncpy): Likewise.
5256         (__wcpncpy): Likewise.
5257         (__wmemcpy): Likewise.
5258         (__wmempcpy): Likewise.
5259         (__wmemmove): Likewise.
5260         (__wcschrnul): Likewise.
5261         (__vfwscanf): Likewise.
5262         (__vswprintf): Likewise.
5263         (__fwprintf): Likewise.
5264         (__vfwprintf): Likewise.
5266 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5268         [BZ #18822]
5269         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
5270         (__getgrgid_r): Likewise.
5271         (__getgrnam_r): Likewise.
5272         * include/pwd.h (__getpwuid_r): Likewise.
5273         (__getpwnam_r): Likewise.
5274         (__fgetpwent_r): Likewise.
5275         * include/shadow.h (__getspnam_r): Likewise.
5276         (__sgetspent_r): Likewise.
5277         (__fgetspent_r): Likewise.
5279 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5281         [BZ #18822]
5282         * include/unistd.h (__access): Add attribute_hidden.
5283         (__lseek64): Likewise.
5284         (__libc_pread64): Likewise.
5285         (__pipe2): Likewise.
5286         (__sleep): Likewise.
5287         (__chdir): Likewise.
5288         (__fchdir): Likewise.
5289         (__getcwd): Likewise.
5290         (__rmdir): Likewise.
5291         (__execvpe): Likewise.
5292         (__execve): Likewise.
5293         (__setsid): Likewise.
5294         (__getuid): Likewise.
5295         (__geteuid): Likewise.
5296         (__getgid): Likewise.
5297         (__getegid): Likewise.
5298         (__getgroups): Likewise.
5299         (__group_member): Likewise.
5300         (__ttyname_r): Likewise.
5301         (__isatty): Likewise.
5302         (__readlink): Likewise.
5303         (__unlink): Likewise.
5304         (__gethostname): Likewise.
5305         (__profil): Likewise.
5306         (__getdtablesize): Likewise.
5307         (__brk): Likewise.
5308         (__ftruncate): Likewise.
5309         (__ftruncate64): Likewise.
5311 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5313         [BZ #18822]
5314         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
5315         * argp/argp-fs-xinl.c: Likewise.
5316         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
5317         * argp/argp-parse.c: Include <argp.h>.
5318         * argp/argp-xinl.c: Likewise.
5319         * include/argp-fmtstream.h: New file.
5320         * include/argp.h (__argp_error): Add attribute_hidden.
5321         (__argp_failure): Likewise.
5322         (__argp_input): Likewise.
5323         (__argp_state_help): Likewise.
5325 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5327         [BZ #18822]
5328         * include/wchar.h (____wcstof_l_internal): New prototype.
5329         (____wcstod_l_internal): Likewise.
5330         (____wcstold_l_internal): Likewise.
5331         (____wcstol_l_internal): Likewise.
5332         (____wcstoul_l_internal): Likewise.
5333         (____wcstoll_l_internal): Likewise.
5334         (____wcstoull_l_internal): Likewise.
5335         (____wcstof128_l_internal): Likewise.
5336         * sysdeps/ieee754/float128/wcstof128.c
5337         (____wcstof128_l_internal): Removed.
5338         * sysdeps/ieee754/float128/wcstof128_l.c
5339         (____wcstof128_l_internal): Likewise.
5340         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
5341         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
5342         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
5343         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
5344         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
5345         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
5346         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
5347         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
5348         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
5349         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
5351 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5353         [BZ #18822]
5354         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
5355         instead of <sys/statvfs.h>.
5356         (__internal_statvfs): Removed.
5357         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
5358         instead of <sys/statvfs.h>.
5359         (__internal_statvfs64): Removed.
5360         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
5361         "internal_statvfs.h" instead of <sys/statvfs.h>.
5362         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
5363         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
5364         instead of <sys/statvfs.h>.
5365         (__internal_statvfs): Removed.
5366         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
5367         instead of <sys/statvfs.h>.
5368         (__internal_statvfs64): Removed.
5370 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5372         [BZ #18822]
5373         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
5374         (__gconv_close): Likewise.
5375         (__gconv): Likewise.
5376         (__gconv_find_transform): Likewise.
5377         (__gconv_lookup_cache): Likewise.
5378         (__gconv_compare_alias_cache): Likewise.
5379         (__gconv_load_cache): Likewise.
5380         (__gconv_get_path): Likewise.
5381         (__gconv_close_transform): Likewise.
5382         (__gconv_release_cache): Likewise.
5383         (__gconv_find_shlib): Likewise.
5384         (__gconv_release_shlib): Likewise.
5385         (__gconv_get_builtin_trans): Likewise.
5386         (__gconv_compare_alias): Likewise.
5387         * include/dlfcn.h (_dlerror_run): Likewise.
5388         * include/stdio.h (__fortify_fail_abort): Likewise.
5389         * include/time.h (__tz_compute): Likewise.
5390         (__strptime_internal): Likewise.
5391         * intl/gettextP.h (_nl_find_domain): Likewise.
5392         (_nl_load_domain): Likewise.
5393         (_nl_find_msg): Likewise.
5394         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
5395         (EXTRACT_PLURAL_EXPRESSION): Likewise.
5396         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
5397         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
5398         (__gai_find_request): Likewise.
5399         (__gai_remove_request): Likewise.
5400         (__gai_notify): Likewise.
5401         (__gai_notify_only): Likewise.
5402         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
5403         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
5404         (_dl_non_dynamic_init): Likewise.
5405         (_dl_aux_init): Likewise.
5406         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
5407         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
5408         Likewise.
5409         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
5410         (__wcsmbs_clone_conv): Likewise.
5411         (__wcsmbs_named_conv): Likewise.
5413 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5415         [BZ #18822]
5416         * include/stdlib.h (__random): Add attribute_hidden.
5417         (__random_r): Likewise.
5418         (__srandom_r): Likewise.
5419         (__initstate_r): Likewise.
5420         (__setstate_r): Likewise.
5421         (__erand48_r): Likewise.
5422         (__nrand48_r): Likewise.
5423         (__jrand48_r): Likewise.
5424         (__srand48_r): Likewise.
5425         (__seed48_r): Likewise.
5426         (__lcong48_r): Likewise.
5427         (__drand48_iterate): Likewise.
5428         (__setenv): Likewise.
5429         (__unsetenv): Likewise.
5430         (__clearenv): Likewise.
5431         (__ptsname_r): Likewise.
5432         (__posix_openpt): Likewise.
5433         (__add_to_environ): Likewise.
5434         (__realpath): Add libc_hidden_proto.
5435         (__ecvt_r): Likewise.
5436         (__fcvt_r): Likewise.
5437         (__qecvt_r): Likewise.
5438         (__qfcvt_r): Likewise.
5439         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
5440         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
5442 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5444         [BZ #18822]
5445         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
5446         * include/time.h (__mktime_internal): Likewise.
5447         * libio/iolibio.h (__fopen_internal): Likewise.
5449 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
5451         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
5452         pointer in frame.
5453         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
5454         Correct offset used to restore PIC register.
5456 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
5458         [BZ libc/22165]
5459         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
5460         code to load address of __getcontext_ret when generating PIC code.
5462 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5464         * elf/Makefile (tests-static-internal): Add
5465         tst-tls1-static-non-pie.
5466         (LDFLAGS-tst-tls1-static-non-pie): New.
5467         * elf/tst-tls1-static-non-pie.c: New file.
5469 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5471         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
5472         (asinh): Define using libm_alias_double.
5473         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
5474         (cbrt): Define using libm_alias_double.
5475         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
5476         <libm-alias-double.h>.
5477         (copysign): Define using libm_alias_double.
5478         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
5479         (erf): Define using libm_alias_double.
5480         (erfc): Likewise.
5481         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
5482         (expm1): Define using libm_alias_double.
5483         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
5484         (fabs): Define using libm_alias_double.
5485         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
5486         libm_alias_double.
5487         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
5488         <libm-alias-double.h>.
5489         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
5490         libm_alias_double.
5491         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
5492         <libm-alias-double.h>.
5493         (getpayload): Define using libm_alias_double.
5494         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
5495         <libm-alias-double.h>.
5496         (llrint): Define using libm_alias_double.
5497         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
5498         (lrint): Define using libm_alias_double.
5499         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
5500         <libm-alias-double.h>.
5501         (nextup): Define using libm_alias_double.
5502         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
5503         <libm-alias-double.h>.
5504         (roundeven): Define using libm_alias_double.
5505         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
5506         libm_alias_double.
5507         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
5508         <libm-alias-double.h>.
5509         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
5510         using libm_alias_double.
5511         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
5512         (cos): Define using libm_alias_double.
5513         (sin): Likewise.
5514         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
5515         <libm-alias-double.h>.
5516         (sincos): Define using libm_alias_double.
5517         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
5518         (tanh): Define using libm_alias_double.
5519         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
5520         <libm-alias-double.h>.
5521         (totalorder): Define using libm_alias_double.
5522         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
5523         <libm-alias-double.h>.
5524         (totalordermag): Define using libm_alias_double.
5525         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
5526         libm_alias_double.
5527         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
5528         libm_alias_double.
5529         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
5530         <libm-alias-double.h>.
5531         (getpayload): Define using libm_alias_double.
5532         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
5533         <libm-alias-double.h>.
5534         (roundeven): Define using libm_alias_double.
5535         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
5536         <libm-alias-double.h>.
5537         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
5538         <libm-alias-double.h>.
5539         (totalorder): Define using libm_alias_double.
5540         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
5541         <libm-alias-double.h>.
5542         (totalordermag): Define using libm_alias_double.
5543         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
5544         libc compat symbol here.
5545         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
5546         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
5547         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
5548         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
5549         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
5550         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
5551         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
5552         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
5553         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
5554         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
5556 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5558         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
5559         _dl_relocate_static_pie instead of _dl_start to compute load
5560         address in static PIE.  Return 0 if _DYNAMIC is undefined for
5561         static executable.
5563 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5565         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
5566         _DYNAMIC is undefined for static executable.
5568 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5570         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
5572 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5574         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5576 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5578         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
5579         (__ieee754_lgamma_r): Use fabs rather than __fabs.
5580         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
5581         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
5582         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
5583         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
5584         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
5585         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
5586         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
5587         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5588         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5589         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
5590         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5591         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5592         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5593         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5594         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
5596 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5598         * math/bits/cmathcalls.h (cimag): Remove inline.
5599         (creal): Remove inline.
5600         (conj): Remove inline.
5602 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5604         * math/Makefile (type-float-routines): Add e_powf_log2_data.
5605         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
5606         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
5607         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
5608         (issignalingf_inline): Likewise.
5609         (POWF_LOG2_TABLE_BITS): Likewise.
5610         (POWF_LOG2_POLY_ORDER): Likewise.
5611         (POWF_SCALE_BITS): Likewise.
5612         (POWF_SCALE): Likewise.
5613         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
5614         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
5615         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
5617 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5619         * math/Makefile (type-float-routines): Add e_log2f_data.
5620         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
5621         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
5622         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
5623         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
5624         * sysdeps/i386/fpu/e_log2f_data.c: New file.
5625         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
5626         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
5628 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5630         * math/Makefile (type-float-routines): Add e_logf_data.
5631         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
5632         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
5633         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
5634         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
5635         * sysdeps/i386/fpu/e_logf_data.c: New file.
5636         * sysdeps/ia64/fpu/e_logf_data.c: New file.
5637         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
5639 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5641         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
5642         undefined _DYNAMIC in PIE libc.a.
5643         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
5644         Likewse.
5646 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5648         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
5649         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
5650         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
5651         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
5652         (__signbit): Remove.
5653         (__signbitl): Remove.
5654         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
5655         (__signbit): Remove.
5656         (__signbitl): Remove.
5657         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
5658         (__signbit): Remove.
5659         (__signbitl): Remove.
5660         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
5661         (__signbit): Remove.
5662         (__signbitl): Remove.
5663         * sysdeps/tile/bits/mathinline.h: Delete file.
5664         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
5665         (__signbit): Remove.
5666         (__signbitl): Remove.
5668 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5670         * math/math.h: Improve handling of C99 isgreater macros.
5671         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
5672         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
5673         * sysdeps/powerpc/bits/mathinline.h: Likewise.
5674         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5675         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5677 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5679         * sysdeps/aarch64/libm-test-ulps: Update.
5681 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
5683         [BZ #22225]
5684         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5685         math_opt_barrier on argument when doing arithmetic on it.
5686         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5687         Likewise.  Use math_force_eval not math_opt_barrier after
5688         arithmetic.
5689         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
5690         math_opt_barrier on argument when doing arithmetic on it.
5691         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5692         Likewise.
5694 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5696         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
5697         libc_hidden_def.
5698         (__freeifaddrs): Likewise.
5700 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5702         * include/dirent.h (__dirfd): New declaration.
5703         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
5704         alias.
5705         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
5706         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
5707         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
5708         * include/unistd.h (__revoke): New declaration.
5709         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
5710         alias.
5711         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5712         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5713         revoke.
5714         * include/dirent.h (__seekdir): New declaration.
5715         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5716         redefine as weak alias.
5717         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5718         of seekdir.
5719         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5720         and use libc_hidden_def on them.
5721         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5722         them.
5723         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5724         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5725         instead of getifaddrs and freeifaddrs.
5727 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5729         [BZ #18822]
5730         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5731         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5732         (__dso_handle): Remove declaration.
5733         * dlfcn/tstatexit.c (__dso_handle): Removed.
5734         (main): Don't check __dso_handle.
5735         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5736         (main): Don't check __dso_handle.
5737         * include/dso_handle.h: New file.
5738         * malloc/mtrace.c: Include <dso_handle.h>.
5739         (mtrace): Pass __dso_handle directly.
5740         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5741         (__dso_handle): Remove declaration.
5742         (__pthread_atfork): Pass __dso_handle directly.
5743         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5744         (__dso_handle): Removed.
5745         * posix/wordexp-test.c: Include <dso_handle.h>.
5746         (__dso_handle): Remove declaration.
5747         (__app_register_atfork): Pass __dso_handle directly.
5748         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5749         (__dso_handle): Remove declaration.
5750         (at_quick_exit): Pass __dso_handle directly.
5751         * stdlib/atexit.c: Include <dso_handle.h>.
5752         (__dso_handle): Remove declaration.
5753         (atexit): Pass __dso_handle directly.
5754         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5755         (__dso_handle): Removed.
5757 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5759         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5760         using VDSO.
5762 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5764         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5765         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5766         values to correct default value for given type.
5768 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5770         [BZ #22101]
5771         * elf/Makefile (tests): Add tst-debug1.
5772         ($(objpfx)tst-debug1): New.
5773         ($(objpfx)tst-debug1.out): Likewise.
5774         ($(objpfx)tst-debug1mod1.so): Likewise.
5775         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5776         with p_filesz == 0.
5777         * elf/tst-debug1.c: New file.
5779 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5781         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5782         Define using __ifunc.
5784 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5786         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5787         exp2f() values.
5789 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5791         [BZ #22156]
5792         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5794 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5796         * resolv/Makefile (tests-internal): Fix typo in comment.
5798 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5800         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5802 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5804         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5805         Use an union instead of a max_align_t array for __space,
5806         so that __space is the same size on all platforms.
5807         * malloc/scratch_buffer_grow_preserve.c
5808         (__libc_scratch_buffer_grow_preserve): Likewise.
5810         [BZ #22183]
5811         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5812         version to 2.
5813         * posix/Makefile (routines): Add glob-lstat-compat and
5814         glob64-lstat-compat.
5815         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5816         * posix/glob-lstat-compat.c: New file.
5817         * posix/glob64-lstat-compat.c: Likewise.
5818         * posix/tst-glob_lstat_compat.c: Likewise.
5819         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5820         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5821         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5822         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5823         Likewise.
5824         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5825         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5826         * posix/glob.c (glob_lstat): New function.
5827         (glob): Rename to __glob and add versioned symbol to 2.27.
5828         (glob_in_dir): Use glob_lstat.
5829         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5830         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5831         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5832         2.27.
5833         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5834         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5835         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5836         gl_lstat on glob call.
5837         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5838         and glob64 symbols.
5839         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5840         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5841         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5842         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5843         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5844         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5845         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5846         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5847         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5848         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5849         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5850         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5852         Likewise.
5853         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5855         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5856         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5857         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5858         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5859         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5862         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5863         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5864         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5866 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5868         * configure.ac (AS): Require binutils 2.25 or later.
5869         * configure: Regenerated.
5871 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5873         [BZ #22207]
5874         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5875         VM size.
5877 2017-09-25  DJ Delorie  <dj@redhat.com>
5879         [BZ #22161]
5880         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5881         resetting timeout.
5883 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5885         * sysdeps/ieee754/dbl-64/sincos32.h
5886         [SINCCOS32_H]: Remove define.
5887         [SINCOS32_H]: Define.
5889 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5891         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5892         (exp2f): Likewise.
5893         * math/w_exp2f.c: New file.
5894         * math/w_expf.c: New file.
5895         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5896         * math/w_expf_compat.c (__expf_compat): Likewise.
5897         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5898         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5899         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5900         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5901         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5902         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5903         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5904         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5905         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5906         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5907         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5908         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5909         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5910         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5912         Likewise.
5913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5914         Likewise.
5915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5916         Likewise.
5917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5918         Likewise.
5919         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5920         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5921         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5922         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5923         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5924         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5925         Likewise.
5926         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5927         Likewise.
5928         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5929         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5930         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5932 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5934         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5935         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5936         (roundtoint, converttoint): Likewise.
5937         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5938         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5939         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5940         * sysdeps/ieee754/flt-32/math_config.h: New file.
5941         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5942         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5943         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5944         * sysdeps/i386/fpu/math_errf.c: New file.
5945         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5946         * sysdeps/ia64/fpu/math_errf.c: New file.
5947         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5948         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5950 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5952         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5953         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5954         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5955         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5956         to make sure that these symbols are defined.
5957         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5958         of <limits.h>
5959         (__need_NULL): Do not define.
5960         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5961         alignment.
5962         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5963         CMGROUP_MAX, cmsgcred): Do not define.
5964         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5965         NULL.
5966         * bits/socket.h: Likewise.
5967         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5968         __gettimeofday instead of gettimeofday.
5969         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5970         instead of settimeofday.
5972 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5974         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5975         (asinhf): Define using libm_alias_float.
5976         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5977         (atanf): Define using libm_alias_float.
5978         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5979         (cbrtf): Define using libm_alias_float.
5980         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5981         (ceilf): Define using libm_alias_float.
5982         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5983         <libm-alias-float.h>.
5984         (copysignf): Define using libm_alias_float.
5985         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5986         (cosf): Define using libm_alias_float.
5987         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5988         (erff): Define using libm_alias_float.
5989         (erfcf): Likewise.
5990         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5991         (expm1f): Define using libm_alias_float.
5992         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5993         (fabsf): Define using libm_alias_float.
5994         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5995         (floorf): Define using libm_alias_float.
5996         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5997         (frexpf): Define using libm_alias_float.
5998         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5999         libm_alias_float.
6000         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
6001         <libm-alias-float.h>.
6002         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
6003         libm_alias_float.
6004         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
6005         <libm-alias-float.h>.
6006         (getpayloadf): Define using libm_alias_float.
6007         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
6008         <libm-alias-float.h>.
6009         (llrintf): Define using libm_alias_float.
6010         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
6011         <libm-alias-float.h>.
6012         (llroundf): Define using libm_alias_float.
6013         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
6014         (logbf): Define using libm_alias_float.
6015         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
6016         (lrintf): Define using libm_alias_float.
6017         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
6018         (lroundf): Define using libm_alias_float.
6019         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
6020         (modff): Define using libm_alias_float.
6021         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
6022         <libm-alias-float.h>.
6023         (nearbyintf): Define using libm_alias_float.
6024         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
6025         <libm-alias-float.h>.
6026         (nextafterf): Define using libm_alias_float.
6027         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
6028         <libm-alias-float.h>.
6029         (nextupf): Define using libm_alias_float.
6030         * sysdeps/ieee754/flt-32/s_remquof.c: Include
6031         <libm-alias-float.h>.
6032         (remquof): Define using libm_alias_float.
6033         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
6034         (rintf): Define using libm_alias_float.
6035         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
6036         <libm-alias-float.h>.
6037         (roundevenf): Define using libm_alias_float.
6038         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
6039         (roundf): Define using libm_alias_float.
6040         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
6041         using libm_alias_float.
6042         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
6043         <libm-alias-float.h>.
6044         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
6045         Define using libm_alias_float.
6046         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
6047         <libm-alias-float.h>.
6048         (sincosf): Define using libm_alias_float.
6049         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
6050         (sinf): Define using libm_alias_float.
6051         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
6052         (tanf): Define using libm_alias_float.
6053         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
6054         (tanhf): Define using libm_alias_float.
6055         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
6056         <libm-alias-float.h>.
6057         (totalorderf): Define using libm_alias_float.
6058         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
6059         <libm-alias-float.h>.
6060         (totalordermagf): Define using libm_alias_float.
6061         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
6062         (truncf): Define using libm_alias_float.
6063         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
6064         libm_alias_float.
6065         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
6066         libm_alias_float.
6068 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6070         [BZ #22146]
6071         math/math.h: Let fpclassify use the builtin in C++ mode, even
6072         when optimazing for size.
6074 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
6076         * csu/Makefile (generated): Do not add version-info.h.
6077         (before-compile): Likewise.
6078         (all-Banner-files): Remove variable.
6079         ($(objpfx)version-info.h): Remove rule.
6080         * csu/version.c (banner): Do not include "version-info.h".
6081         * libidn/Banner: Remove.
6082         * manual/contrib.texi (Simon Josefsson): New entry.
6084 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6086         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6087         Remove conditionals on LDBL_MANT_DIG.
6088         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
6089         (__ieee754_lgammal_r): Likewise.
6091 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6093         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
6094         _Float128 and L().
6095         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
6096         _Float128 and L(). Replace _Float128 with long double and L(x)
6097         with xL, throughout the file.
6098         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6099         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
6100         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
6101         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
6103 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6105         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
6106         sysdeps/ieee754/ldbl-128ibm.
6107         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
6108         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
6109         of including it.  Keep _Float128 and L() intact.  These will be
6110         reviewed by a separate patch.
6111         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6112         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
6113         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
6114         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
6116 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
6119         (__finitef128): Define to __redirect___finitef128.
6120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
6121         (__isinff128): Define to __redirect___isinff128.
6122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
6123         (__isnanf128): Define to __redirect___isnanf128.
6125 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6127         * sysdeps/powerpc/powerpc64le/Makefile
6128         (CFLAGS-tst-strtod-nan-locale.c): New variable.
6129         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
6131 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
6132             Carlos O'Donell  <carlos@redhat.com>
6134         [BZ #22180]
6135         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
6136         * stdlib/test-dlclose-exit-race.c: New file.
6137         * stdlib/test-dlclose-exit-race-helper.c: New file.
6138         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
6140 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
6142         * crypt/Banner: Remove file.
6143         * nptl/Banner: Likewise.
6144         * resolv/Banner: Likewise.
6145         * soft-fp/Banner: Likewise.
6146         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
6147         ($(objpfx)version.d): Remove dependency on banner.h.
6148         ($(objpfx)version.os): Likewise.
6149         * nptl/version.c (banner): Do not include banner.h.
6150         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
6151         Jelinek and BIND code.
6153 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
6154             Carlos O'Donell  <carlos@redhat.com>
6156         * support/xdlfcn.h: New file.
6157         * support/xdlfcn.c: New file.
6158         * support/Makefile (libsupport-routines): Add xdlfcn.
6159         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
6161 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
6163         [BZ #20142]
6164         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6165         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
6166         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
6167         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
6168         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6169         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
6170         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
6171         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6173 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
6174             Ricky Zhou  <rickyz@google.com>
6175             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
6177         [BZ #14333]
6178         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
6179         Remove atomics.
6180         (__new_exitfn): Fail registration when we finished at_exit processing.
6181         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
6182         * stdlib/on_exit.c (__on_exit): Likewise.
6183         * stdlib/exit.c (__exit_funcs_done): New variable.
6184         (__run_exit_handlers): Use __exit_funcs_lock.
6185         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
6186         declarations.
6187         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
6188         (test-cxa_atexit-race, test-on_exit-race): New tests.
6189         * stdlib/test-atexit-race-common.c: New file.
6190         * stdlib/test-atexit-race.c: New file.
6191         * stdlib/test-at_quick_exit-race.c: New file.
6192         * stdlib/test-cxa_atexit-race.c: New file.
6193         * stdlib/test-on_exit-race.c: New file.
6195 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6197         * benchtests/Makefile: Add exp2f and log2f benchmarks.
6198         * benchtests/exp2f-inputs: Copy of expf-inputs.
6199         * benchtests/log2f-inputs: Copy of logf-inputs.
6201 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
6203         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
6204         Explicitly take address of first element of array arguments in
6205         call to INLINE_SYSCALL.
6207 2017-09-19  Andreas Schwab  <schwab@suse.de>
6209         [BZ #22134]
6210         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
6211         execveat first.
6212         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
6213         unimplemented.
6214         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
6215         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
6216         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6217         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
6218         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
6219         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
6220         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6221         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
6222         * posix/Makefile (tests): Add tst-fexecve.
6223         * posix/tst-fexecve.c: New file.
6225 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6227         * benchtests/Makefile: Add logf benchmark.
6228         * benchtests/logf-inputs: Add reduced trace from wrf_r.
6230 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6232         * benchtests/Makefile: Add expf benchmark.
6233         * benchtests/expf-inputs: Add reduced trace from wrf_r.
6235 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6237         * csu/Makefile: Add -funwind-tables to libc-start.c.
6238         * debug/Makefile: Add -funwind-tables to backtrace.c.
6239         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
6240         * sysdeps/arm/Makefile: Likewise.
6241         * sysdeps/i386/Makefile: Likewise.
6242         * sysdeps/m68k/Makefile: Likewise.
6243         * sysdeps/mips/Makefile: Likewise.
6244         * sysdeps/nios2/Makefile: Likewise.
6245         * sysdeps/sh/Makefile: Likewise.
6246         * sysdeps/sparc/Makefile: Likewise.
6248 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
6250         * benchtests/Makefile (bench-math): Add trunc and truncf.
6251         (CFLAGS-bench-trunc.c): New variable.
6252         (CFLAGS-bench-truncf.c): Likewise.
6253         * benchtests/trunc-inputs: New file.
6254         * benchtests/truncf-inputs: Likewise.
6256 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6258         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
6260 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
6262         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
6263         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
6264         redefine.
6265         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
6266         (exp10l): Define as weak alias.
6267         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
6268         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
6269         and redefine.
6270         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
6271         (remainderl): Define as weak alias.
6273         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
6274         (fmal): Define using libm_alias_ldouble.
6275         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
6276         (acoshl): Define using libm_alias_ldouble.
6277         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
6278         (acosl): Define using libm_alias_ldouble.
6279         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
6280         (asinl): Define using libm_alias_ldouble.
6281         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
6282         (atan2l): Define using libm_alias_ldouble.
6283         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
6284         (atanhl): Define using libm_alias_ldouble.
6285         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
6286         (coshl): Define using libm_alias_ldouble.
6287         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
6288         (exp10l): Define using libm_alias_ldouble.
6289         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
6290         (exp2l): Define using libm_alias_ldouble.
6291         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
6292         (expl): Define using libm_alias_ldouble.
6293         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
6294         (fmodl): Define using libm_alias_ldouble.
6295         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
6296         (hypotl): Define using libm_alias_ldouble.
6297         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
6298         (j0l): Define using libm_alias_ldouble.
6299         (y0l): Likewise.
6300         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
6301         (j1l): Define using libm_alias_ldouble.
6302         (y1l): Likewise.
6303         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
6304         (jnl): Define using libm_alias_ldouble.
6305         (ynl): Likewise.
6306         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
6307         (log10l): Define using libm_alias_ldouble.
6308         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
6309         (log2l): Define using libm_alias_ldouble.
6310         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
6311         (logl): Define using libm_alias_ldouble.
6312         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
6313         (powl): Define using libm_alias_ldouble.
6314         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
6315         (remainderl): Define using libm_alias_ldouble.
6316         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
6317         (sinhl): Define using libm_alias_ldouble.
6318         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
6319         (sqrtl): Define using libm_alias_ldouble.
6320         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
6321         (tgammal): Define using libm_alias_ldouble.
6322         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
6323         (exp10l): Do not use long_double_symbol here.
6324         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
6325         [LIBM_SVID_COMPAT] (remainderl): Likewise.
6326         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
6327         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6328         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6329         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6330         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6331         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6332         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6333         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6334         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6335         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6336         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6337         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6338         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6339         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6340         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6341         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6342         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6343         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6344         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6345         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6347 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
6349         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
6350         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
6352 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6354         * io/read.c (read): Add libc_hidden_weak.
6355         * sysdeps/mach/hurd/read.c (read): Likewise.
6356         * io/write.c (write): Likewise.
6357         * sysdeps/mach/hurd/write.c (write): Likewise.
6358         * io/pread64.c (__pread64): Likewise.
6359         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
6360         * posix/pread64.c (__pread64): Add libc_hidden_def.
6362 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6364         * benchtests/scripts/compare_strings.py: New option -g.
6365         (draw_graph): Print a message that a graph is being generated.
6366         (process_results): Generate graph only if -g is passed.
6367         (main): Process option -g.
6369         * benchtests/scripts/compare_strings.py (process_results):
6370         Better spacing for output.
6372         * benchtests/scripts/compare_strings.py: Use argparse.
6373         * benchtests/README: Document existence of compare_strings.py.
6375 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6377         * math/s_fma.c: Include <libm-alias-double.h>.
6378         (fma): Define using libm_alias_double.
6379         * math/s_nextafter.c: Include <libm-alias-double.h>.
6380         (nextafter): Define using libm_alias_double.
6381         * math/w_acos_compat.c: Include <libm-alias-double.h>.
6382         (acos): Define using libm_alias_double.
6383         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
6384         (aocsh): Define using libm_alias_double.
6385         * math/w_asin_compat.c: Include <libm-alias-double.h>.
6386         (asin): Define using libm_alias_double.
6387         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
6388         (atan2): Define using libm_alias_double.
6389         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
6390         (atanh): Define using libm_alias_double.
6391         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
6392         (cosh): Define using libm_alias_double.
6393         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
6394         (exp10): Define using libm_alias_double.
6395         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
6396         (exp2): Define using libm_alias_double.
6397         * math/w_exp_compat.c: Include <libm-alias-double.h>.
6398         (exp): Define using libm_alias_double.
6399         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
6400         (fmod): Define using libm_alias_double.
6401         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
6402         (hypot): Define using libm_alias_double.
6403         * math/w_j0_compat.c: Include <libm-alias-double.h>.
6404         (j0): Define using libm_alias_double.
6405         (y0): Likewise.
6406         * math/w_j1_compat.c: Include <libm-alias-double.h>.
6407         (j1): Define using libm_alias_double.
6408         (y1): Likewise.
6409         * math/w_jn_compat.c: Include <libm-alias-double.h>.
6410         (jn): Define using libm_alias_double.
6411         (yn): Likewise.
6412         * math/w_log10_compat.c: Include <libm-alias-double.h>.
6413         (log10): Define using libm_alias_double.
6414         * math/w_log2_compat.c: Include <libm-alias-double.h>.
6415         (log2): Define using libm_alias_double.
6416         * math/w_log_compat.c: Include <libm-alias-double.h>.
6417         (log): Define using libm_alias_double.
6418         * math/w_pow_compat.c: Include <libm-alias-double.h>.
6419         (pow): Define using libm_alias_double.
6420         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
6421         (remainder): Define using libm_alias_double.
6422         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
6423         (sinh): Define using libm_alias_double.
6424         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
6425         (sqrt): Define using libm_alias_double.
6426         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
6427         (tgamma): Define using libm_alias_double.
6428         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
6429         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
6430         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
6431         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
6432         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
6433         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
6434         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
6435         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
6436         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
6437         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
6438         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
6439         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
6440         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
6441         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
6442         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
6443         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
6444         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
6445         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
6446         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
6447         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
6448         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
6449         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
6450         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
6451         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
6452         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
6454         * math/e_acoshl.c: Remove.
6455         * math/e_acosl.c: Likewise.
6456         * math/e_asinl.c: Likewise.
6457         * math/e_atan2l.c: Likewise.
6458         * math/e_atanhl.c: Likewise.
6459         * math/e_coshl.c: Likewise.
6460         * math/e_expl.c: Likewise.
6461         * math/e_fmodl.c: Likewise.
6462         * math/e_gammal_r.c: Likewise.
6463         * math/e_hypotl.c: Likewise.
6464         * math/e_j0l.c: Likewise.
6465         * math/e_j1l.c: Likewise.
6466         * math/e_jnl.c: Likewise.
6467         * math/e_lgammal_r.c: Likewise.
6468         * math/e_log10l.c: Likewise.
6469         * math/e_log2l.c: Likewise.
6470         * math/e_logl.c: Likewise.
6471         * math/e_powl.c: Likewise.
6472         * math/e_rem_pio2l.c: Likewise.
6473         * math/e_sinhl.c: Likewise.
6474         * math/e_sqrtf128.c: Likewise.
6475         * math/e_sqrtl.c: Likewise.
6476         * math/k_cosl.c: Likewise.
6477         * math/k_sinl.c: Likewise.
6478         * math/k_tanl.c: Likewise.
6479         * math/s_asinhl.c: Likewise.
6480         * math/s_atanl.c: Likewise.
6481         * math/s_cbrtl.c: Likewise.
6482         * math/s_erfl.c: Likewise.
6483         * math/s_expm1l.c: Likewise.
6484         * math/s_log1pl.c: Likewise.
6485         * math/s_tanhl.c: Likewise.
6487 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6489         [BZ #21745]
6490         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
6491         [$(subdir) = math] (sysdep_calls): New variable.  Has the
6492         previous contents of sysdep_routines, but re-sorted..
6493         [$(subdir) = math] (sysdep_routines): Re-use the contents from
6494         sysdep_calls.
6495         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
6496         defined in sysdep_calls and replace by the respective m_* names.
6497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
6498         (compat_symbol): Undefine to avoid duplicated compat symbols in
6499         libc.
6501 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6503         * math/s_fmaf.c: Include <libm-alias-float.h>.
6504         (fmaf): Define using libm_alias_float.
6505         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
6506         (acosf): Define using libm_alias_float.
6507         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
6508         (acoshf): Define using libm_alias_float.
6509         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
6510         (asinf): Define using libm_alias_float.
6511         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
6512         (atan2f): Define using libm_alias_float.
6513         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
6514         (atanhf): Define using libm_alias_float.
6515         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
6516         (coshf): Define using libm_alias_float.
6517         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
6518         (exp10f): Define using libm_alias_float.
6519         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
6520         (fmodf): Define using libm_alias_float.
6521         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
6522         (hypotf): Define using libm_alias_float.
6523         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
6524         (j0f): Define using libm_alias_float.
6525         (y0f): Likewise.
6526         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
6527         (j1f): Define using libm_alias_float.
6528         (y1f): Likewise.
6529         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
6530         (jnf): Define using libm_alias_float.
6531         (ynf): Likewise.
6532         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
6533         (log10f): Define using libm_alias_float.
6534         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
6535         (log2f): Define using libm_alias_float.
6536         * math/w_logf_compat.c: Include <libm-alias-float.h>.
6537         (logf): Define using libm_alias_float.
6538         * math/w_powf_compat.c: Include <libm-alias-float.h>.
6539         (powf): Define using libm_alias_float.
6540         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
6541         (remainderf): Define using libm_alias_float.
6542         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
6543         (sinhf): Define using libm_alias_float.
6544         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
6545         (sqrtf): Define using libm_alias_float.
6546         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
6547         (tgammaf): Define using libm_alias_float.
6549 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6551         * include/math.h (roundeven): Change hidden_proto call to
6552         __roundeven.
6553         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
6554         alias.
6555         [NO_LONG_DOUBLE] (__j0l): New strong alias.
6556         (y0): Rename to __y0 and define as weak alias.
6557         [NO_LONG_DOUBLE] (__y0l): New strong alias.
6558         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
6559         alias.
6560         (y0f): Rename to __y0f and define as weak alias.
6561         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
6562         alias.
6563         [NO_LONG_DOUBLE] (__j1l): New strong alias.
6564         (y1): Rename to __y1 and define as weak alias.
6565         [NO_LONG_DOUBLE] (__y1l): New strong alias.
6566         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
6567         alias.
6568         (y1f): Rename to __y1f and define as weak alias.
6569         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
6570         alias.
6571         [NO_LONG_DOUBLE] (__jnl): New strong alias.
6572         (yn): Rename to __yn and define as weak alias.
6573         [NO_LONG_DOUBLE] (__ynl): New strong alias.
6574         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
6575         alias.
6576         (ynf): Rename to __ynf and define as weak alias.
6577         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
6578         (fromfp): Define as weak alias.
6579         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
6580         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
6581         (fromfpx): Define as weak alias.
6582         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
6583         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
6584         __getpayload and define as weak alias.
6585         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6586         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
6587         __roundeven and define as weak alias.
6588         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6589         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
6590         __setpayload.
6591         (setpayload): Define as weak alias.
6592         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
6593         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
6594         __setpayloadsig.
6595         (setpayloadsig): Define as weak alias.
6596         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
6597         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
6598         __totalorder and define as weak alias.
6599         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6600         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
6601         to __totalordermag and define as weak alias.
6602         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6603         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
6604         (ufromfp): Define as weak alias.
6605         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
6606         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
6607         __ufromfpx.
6608         (ufromfpx): Define as weak alias.
6609         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
6610         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
6611         Rename to __getpayload and define as weak alias.
6612         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6613         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
6614         Rename to __roundeven and define as weak alias.
6615         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6616         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
6617         Rename to __totalorder and define as weak alias.
6618         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6619         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
6620         (totalordermag): Rename to __totalordermag and define as weak
6621         alias.
6622         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6623         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
6624         macro.
6625         (__roundevenl): Likewise.
6626         (__totalorderl): Likewise.
6627         (__totalordermagl): Likewise
6628         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
6629         __fromfpf128.
6630         (fromfpf128): Define as weak alias.
6631         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
6632         __fromfpxf128.
6633         (fromfpxf128): Define as weak alias.
6634         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
6635         __setpayloadf128.
6636         (setpayloadf128): Define as weak alias.
6637         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
6638         __setpayloadsigf128.
6639         (setpayloadsigf128): Define as weak alias.
6640         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
6641         __ufromfpf128.
6642         (ufromfpf128): Define as weak alias.
6643         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
6644         __ufromfpxf128.
6645         (ufromfpxf128): Define as weak alias.
6646         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
6647         (fromfpf): Define as weak alias.
6648         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
6649         __fromfpxf.
6650         (fromfpxf): Define as weak alias.
6651         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
6652         __getpayloadf and define as weak alias.
6653         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
6654         __roundevenf and define as weak alias.
6655         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
6656         __setpayloadf.
6657         (setpayloadf): Define as weak alias.
6658         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
6659         __setpayloadsigf.
6660         (setpayloadsigf): Define as weak alias.
6661         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
6662         __totalorderf and define as weak alias.
6663         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
6664         Rename to __totalordermagf and define as weak alias.
6665         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
6666         __ufromfpf.
6667         (ufromfpf): Define as weak alias.
6668         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
6669         __ufromfpxf.
6670         (ufromfpxf): Define as weak alias.
6671         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
6672         __fromfpl.
6673         (fromfpl): Define as weak alias.
6674         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
6675         __fromfpxl.
6676         (fromfpxl): Define as weak alias.
6677         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
6678         to __getpayloadl and define as weak alias.
6679         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
6680         __roundevenl and define as weak alias.
6681         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
6682         __setpayloadl.
6683         (setpayloadl): Define as weak alias.
6684         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
6685         __setpayloadsigl.
6686         (setpayloadsigl): Define as weak alias.
6687         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
6688         to __totalorderl and define as weak alias.
6689         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
6690         Rename to __totalordermagl and define as weak alias.
6691         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
6692         __ufromfpl.
6693         (ufromfpl): Define as weak alias.
6694         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
6695         __ufromfpxl.
6696         (ufromfpxl): Define as weak alias.
6697         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
6698         __fromfpl.
6699         (fromfpl): Define as weak alias.
6700         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
6701         __fromfpxl.
6702         (fromfpxl): Define as weak alias.
6703         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
6704         Rename to __getpayloadl and define as weak alias.
6705         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
6706         to __roundevenl and define as weak alias.  Call __roundeven
6707         instead of roundeven.
6708         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
6709         __setpayloadl.
6710         (setpayloadl): Define as weak alias.
6711         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6712         __setpayloadsigl.
6713         (setpayloadsigl): Define as weak alias.
6714         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6715         Rename to __totalorderl and define as weak alias.
6716         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6717         Rename to __totalordermagl and define as weak alias.
6718         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6719         __ufromfpl.
6720         (ufromfpl): Define as weak alias.
6721         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6722         __ufromfpxl.
6723         (ufromfpxl): Define as weak alias.
6724         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6725         __fromfpl.
6726         (fromfpl): Define as weak alias.
6727         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6728         __fromfpxl.
6729         (fromfpxl): Define as weak alias.
6730         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6731         __getpayloadl and define as weak alias.
6732         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6733         __roundevenl and define as weak alias.
6734         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6735         __setpayloadl.
6736         (setpayloadl): Define as weak alias.
6737         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6738         __setpayloadsigl.
6739         (setpayloadsigl): Define as weak alias.
6740         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6741         __totalorderl and define as weak alias.
6742         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6743         Rename to __totalordermagl and define as weak alias.
6744         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6745         __ufromfpl.
6746         (ufromfpl): Define as weak alias.
6747         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6748         __ufromfpxl.
6749         (ufromfpxl): Define as weak alias.
6751 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6753         * benchtests/bench-string.h (realloc_bufs): New function.
6754         (test_init): Call it.
6755         * benchtests/bench-memset-large.c (do_test): Likewise.
6756         * benchtests/bench-memset.c (do_test): Likewise.
6758         * benchtests/bench-memset-large.c: Print output in JSON
6759         format.
6760         * benchtests/bench-memset.c: Likewise.
6762 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6764         [BZ #21084]
6765         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6766         * iconvdata/Makefile: Add IBM858.
6767         * iconvdata/gconv-modules: Likewise.
6768         * iconvdata/tst-tables.sh: Likewise.
6769         * iconvdata/ibm858.c: New file.
6770         * localedata/charmaps/IBM858: Likewise.
6772 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6774         [BZ #22023]
6775         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6776         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6778 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6780         [BZ #22112]
6781         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6782         and add tel_int_fmt.
6784 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6786         * sysdeps/generic/libm-alias-float128.h: New file.
6787         * sysdeps/generic/math-type-macros-float128.h: Include
6788         <libm-alias-float128.h>.
6789         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6791 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6793         * sysdeps/generic/libm-alias-ldouble.h: New file.
6794         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6795         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6796         * sysdeps/generic/math-type-macros-ldouble.h: Include
6797         <libm-alias-ldouble.h>.
6798         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6799         libm_alias_ldouble.
6801 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6803         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6804         * math/w_exp_compat.c: ... here.
6805         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6806         * math/w_expf_compat.c: ... here.
6807         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6808         * math/w_expl_compat.c: ... here.
6809         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6810         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6811         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6812         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6814 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6816         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6817         redefine.
6818         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6819         macro.
6820         (ldexpl): Only define as compat symbol for libc, not libm.
6821         (scalbnl): Define as compat symbol for libc here.
6822         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6823         define for [IS_IN (libc)].
6824         (__ldexpl_2): Remove alias.
6825         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6826         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6827         name in long_double_symbol call.
6828         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6829         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6830         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6831         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6832         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6833         Remove macro.
6834         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6835         Define as compat symbol.
6837 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6839         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6840         * sysdeps/unix/sysv/linux/alpha/Makefile
6841         [$(subdir) = csu] (sysdep_routines): Remove rule.
6843 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6845         * sysdeps/generic/libm-alias-double.h: New file.
6846         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6847         * sysdeps/generic/math-type-macros-double.h: Include
6848         <libm-alias-double.h>.
6849         [declare_mgen_alias] (declare_mgen_alias): Define to use
6850         libm_alias_double.
6851         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6852         (M_LIBM_NEED_COMPAT): Remove macro.
6853         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6854         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6855         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6856         code.
6857         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6858         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6859         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6860         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6861         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6862         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6863         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6864         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6865         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6866         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6867         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6868         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6869         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6870         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6871         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6872         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6873         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6874         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6875         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6876         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6877         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6878         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6879         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6880         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6881         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6882         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6883         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6884         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6885         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6886         macro.
6887         (declare_mgen_alias): New macro.
6888         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6889         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6891         (M_LIBM_NEED_COMPAT): Remove macro.
6892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6893         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6894         <first-versions.h>.
6895         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6896         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6898 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6900         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6901         (declare_mgen_alias_2): Remove.
6902         * sysdeps/generic/math-type-macros-double.h
6903         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6904         Likewise.
6905         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6906         alias.
6907         (ldexp): Define with declare_mgen_alias.
6908         (scalbn): Likewise.
6910 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6912         * grp/initgroups.c: Include config.h.
6913         (DEFAULT_CONFIG): New macro.
6914         (internal_getgrouplist): Use DEFAULT_CONFIG.
6915         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6916         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6917         (DEFAULT_DEFCONFIG): New macro.
6918         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6919         * nss/grp-lookup.c: Include config.h
6920         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6921         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6922         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6923         * manual/nss.texi: Update default values section.
6925 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6927         [BZ #21967]
6928         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6929         New.
6930         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6931         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6932         Handle MathVec_Prefer_No_AVX512.
6933         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6934         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6935         is set.
6937 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6939         * posix/sched_primax.c (__sched_get_priority_max): Add
6940         libc_hidden_def.
6941         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6942         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6943         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6944         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6945         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6946         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6947         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6948         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6949         Add aliases.
6951 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6953         * sysdeps/generic/libm-alias-float.h: New file.
6954         * sysdeps/generic/math-type-macros-float.h: Include
6955         <libm-alias-float.h>.
6956         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6958 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6960         [BZ #22093]
6961         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6962         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6963         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6964         (HWCAP_IMPORTANT): Likewise.
6965         (HWCAP_X86_64): New enum.
6966         (HWCAP_X86_AVX512_1): Updated.
6967         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6968         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6969         (modules-names): Add x86_64/tst-x86_64mod-1.
6970         (LDFLAGS-tst-x86_64mod-1.so): New.
6971         ($(objpfx)tst-x86_64-1): Likewise.
6972         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6973         (tst-x86_64-1-clean): Likewise.
6974         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6975         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6977 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6979         * po/sv.po: Update translations.
6980         * po/fr.po: Likewise.
6982 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6984         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6985         seconds.
6986         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6987         seconds.
6988         * elf/rtld-Rules: Fix $(error) use.
6990 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6992         [BZ #14925]
6993         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6994         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6995         * localedata/locales/bn_BD: “Bengali” was still used in some
6996         comments. Change it to “Bangla”.
6998 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
7000         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
7002 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
7004         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
7005         thunderx2t99p1 to list of cpu names.
7006         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7007         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
7009 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
7011         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
7012         Use strcmp instead of tunable_is_name.
7014 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
7016         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
7017         (F_GET_RW_HINT): New macro.
7018         [__USE_GNU] (F_SET_RW_HINT): Likewise.
7019         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
7020         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
7021         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
7022         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
7023         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
7024         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
7025         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
7026         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
7028         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
7029         (F_ADD_SEALS): New macro.
7030         [__USE_GNU] (F_GET_SEALS): Likewise.
7031         [__USE_GNU] (F_SEAL_SEAL): Likewise.
7032         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
7033         [__USE_GNU] (F_SEAL_GROW): Likewise.
7034         [__USE_GNU] (F_SEAL_WRITE): Likewise.
7036 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7038         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
7039         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
7040         * posix/glob_internal.h (__glob_pattern_type):
7041         * posix/glob.c (glob):
7042         * posix/glob_pattern_p.c (__glob_pattern_p):
7043         Use them.
7045         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
7046         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
7047         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
7048         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
7049         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
7051         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
7052         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
7053         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
7054         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7055         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
7056         * sysdeps/wordsize-64/glob.c: Likewise.
7057         * sysdeps/wordsize-64/glob64.c: Likewise.
7058         * sysdeps/wordsize-64/globfree.c: Likewise.
7059         * sysdeps/wordsize-64/globfree64.c: Likewise.
7060         * sysdeps/unix/sysv/linux/glob.c: New file.
7061         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
7062         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
7063         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
7064         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
7065         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
7066         adds !GLOB_NO_OLD_VERSION as an extra condition.
7067         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
7068         using relative path instead of absolute one.
7069         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
7070         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
7071         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
7072         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
7073         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
7074         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
7076         [BZ #1062]
7077         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
7078         (glob): Use the same scratch buffer for both getlogin_r and
7079         getpwnam_r.  Don’t require preallocation of the login name.  This
7080         simplifies storage allocation, and corrects the handling of
7081         long login names.
7083         [BZ #1062]
7084         * posix/glob.c (glob): Port recent patches to platforms
7085         lacking getpwnam_r.
7086         (glob): Fix longstanding misuse of errno after getpwnam_r, which
7087         returns an error number rather than setting errno.
7089         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
7090         instead of GCC extension.
7091         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
7092         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
7093         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
7095         [BZ #866]
7096         [BZ #1062]
7097         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
7098         * posix/bug-glob1.c: Remove file.
7099         * posix/tst-glob_symlinks.c: New file.
7100         * posix/glob.c (__lstat64): New macro.
7101         (is_dir): New function.
7102         (glob, glob_in_dir): Match symlinks even if they are dangling.
7103         (link_stat, link_exists_p): Remove.  All uses removed.
7105         [BZ #1062]
7106         [BZ #19971]
7107         * posix/glob.c (struct readdir_result): Remove skip_entry member.
7108         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
7109         All uses removed.
7111         [BZ #1062]
7112         CVE-2017-15671
7113         * posix/Makefile (routines): Add globfree, globfree64, and
7114         glob_pattern_p.
7115         * posix/flexmember.h: New file.
7116         * posix/glob_internal.h: Likewise.
7117         * posix/glob_pattern_p.c: Likewise.
7118         * posix/globfree.c: Likewise.
7119         * posix/globfree64.c: Likewise.
7120         * sysdeps/gnu/globfree64.c: Likewise.
7121         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
7122         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
7123         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
7124         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
7125         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
7126         * sysdeps/wordsize-64/globfree.c: Likewise.
7127         * sysdeps/wordsize-64/globfree64.c: Likewise.
7128         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
7129         [NDEBUG): Remove comments.
7130         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
7131         (dirent_type): New type.  Use uint_fast8_t not
7132         uint8_t, as C99 does not require uint8_t.
7133         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
7134         (struct readdir_result): Use dirent_type.  Do not define skip_entry
7135         unless it is needed; this saves a byte on platforms lacking d_ino.
7136         (readdir_result_type, readdir_result_skip_entry):
7137         New functions, replacing ...
7138         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
7139          these functions, which were removed.  This makes the callers
7140         easier to read.  All callers changed.
7141         (D_INO_TO_RESULT): Now empty if there is no d_ino.
7142         (size_add_wrapv, glob_use_alloca): New static functions.
7143         (glob, glob_in_dir): Check for size_t overflow in several places,
7144         and fix some size_t checks that were not quite right.
7145         Remove old code using SHELL since Bash no longer
7146         uses this.
7147         (glob, prefix_array): Separate MS code better.
7148         (glob_in_dir): Remove old Amiga and VMS code.
7149         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
7150         separate files.
7151         (glob_in_dir): Do not rely on undefined behavior in accessing
7152         struct members beyond their bounds.  Use a flexible array member
7153         instead
7154         (link_stat): Rename from link_exists2_p and return -1/0 instead of
7155         0/1.  Caller changed.
7156         (glob): Fix memory leaks.
7157         * posix/glob64 (globfree64): Move to separate file.
7158         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
7159         (globfree64): Remove hidden alias.
7160         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
7161         oldglob.
7162         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
7163         separate file.
7164         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
7165         define.
7166         Move compat code to separate file.
7167         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
7168         separate file.
7170 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7172         * resolv/tst-resolv-qtypes.c (domain): Changed to
7173         "const char domain[] =".
7175 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
7177         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7178         version to 3.1.6.
7180         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
7181         (TCP_MD5SIG_EXT): Likewise.
7182         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
7183         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
7184         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
7186         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
7188 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
7190         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
7192 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
7194         [BZ #22100]
7195         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
7197 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7199         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
7200         before assuming that the file is empty.  Avoid testing buffer content
7201         when nread == 0.
7203 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7205         [BZ #18858]
7206         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
7207         Remove define.
7208         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
7209         Likewise.
7210         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
7211         Likewise.
7212         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
7213         Likewise.
7214         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
7215         Likewise.
7216         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
7217         Likewise.
7218         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
7219         Likewise.
7221 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7223         * malloc/dynarray_emplace_enlarge.c
7224         (__libc_dynarray_emplace_enlarge): Add missing else.
7226 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7228         [BZ #22096]
7229         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
7230         case of failure to obtain the global conf object.
7232 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7234         [BZ #22095]
7235         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
7236         dynarray allocation failure.
7238 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7240         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
7241         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
7242         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
7243         New functions.
7244         (response): Call them.  Add 'p', '6' flag processing.
7245         (test_reverse): New function.
7246         (test_get2_any): Call it.
7247         (test_no_inet6): Add 'p' test.
7248         (test_inet6): Likewise.
7250 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7252         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
7253         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
7254         the QNAME.
7255         (test_gai): Adjust query names.  Add additional tests.
7256         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
7257         test_get2.  Adjust query names.  Add additional tests.
7258         (test_no_inet6): New function, extracted from threadfunc.
7259         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
7260         Add additional tests.
7262 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
7264         [BZ #22070]
7265         * localedata/unicode-gen/utf8_gen.py: Set the width for
7266         characters with Prepended_Concatenation_Mark property to 1
7267         * localedata/charmaps/UTF-8: Updated using the improved script.
7269 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
7271         [BZ #21750]
7272         * localedata/unicode-gen/utf8_gen.py: Improve the script to
7273         use the range notation for all ranges of neighbouring characters
7274         with the same width.
7276 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7278         * sysdeps/generic/math-type-macros-double.h: Include
7279         <math-svid-compat.h>.
7280         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7281         * sysdeps/generic/math-type-macros-float.h: Include
7282         <math-svid-compat.h>.
7283         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7284         * sysdeps/generic/math-type-macros-ldouble.h: Include
7285         <math-svid-compat.h>.
7286         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7287         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
7288         condition.
7289         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
7290         * math/w_acosf_compat.c: Likewise.
7291         * math/w_acosh_compat.c: Likewise.
7292         * math/w_acoshf_compat.c: Likewise.
7293         * math/w_acoshl_compat.c: Likewise.
7294         * math/w_acosl_compat.c: Likewise.
7295         * math/w_asin_compat.c: Likewise.
7296         * math/w_asinf_compat.c: Likewise.
7297         * math/w_asinl_compat.c: Likewise.
7298         * math/w_atan2_compat.c: Likewise.
7299         * math/w_atan2f_compat.c: Likewise.
7300         * math/w_atan2l_compat.c: Likewise.
7301         * math/w_atanh_compat.c: Likewise.
7302         * math/w_atanhf_compat.c: Likewise.
7303         * math/w_atanhl_compat.c: Likewise.
7304         * math/w_cosh_compat.c: Likewise.
7305         * math/w_coshf_compat.c: Likewise.
7306         * math/w_coshl_compat.c: Likewise.
7307         * math/w_exp10_compat.c: Likewise.
7308         * math/w_exp10f_compat.c: Likewise.
7309         * math/w_exp10l_compat.c: Likewise.
7310         * math/w_exp2_compat.c: Likewise.
7311         * math/w_exp2f_compat.c: Likewise.
7312         * math/w_exp2l_compat.c: Likewise.
7313         * math/w_fmod_compat.c: Likewise.
7314         * math/w_fmodf_compat.c: Likewise.
7315         * math/w_fmodl_compat.c: Likewise.
7316         * math/w_hypot_compat.c: Likewise.
7317         * math/w_hypotf_compat.c: Likewise.
7318         * math/w_hypotl_compat.c: Likewise.
7319         * math/w_j0_compat.c: Likewise.
7320         * math/w_j0f_compat.c: Likewise.
7321         * math/w_j0l_compat.c: Likewise.
7322         * math/w_j1_compat.c: Likewise.
7323         * math/w_j1f_compat.c: Likewise.
7324         * math/w_j1l_compat.c: Likewise.
7325         * math/w_jn_compat.c: Likewise.
7326         * math/w_jnf_compat.c: Likewise.
7327         * math/w_jnl_compat.c: Likewise.
7328         * math/w_lgamma_r_compat.c: Likewise.
7329         * math/w_lgammaf_r_compat.c: Likewise.
7330         * math/w_lgammal_r_compat.c: Likewise.
7331         * math/w_log10_compat.c: Likewise.
7332         * math/w_log10f_compat.c: Likewise.
7333         * math/w_log10l_compat.c: Likewise.
7334         * math/w_log2_compat.c: Likewise.
7335         * math/w_log2f_compat.c: Likewise.
7336         * math/w_log2l_compat.c: Likewise.
7337         * math/w_log_compat.c: Likewise.
7338         * math/w_logf_compat.c: Likewise.
7339         * math/w_logl_compat.c: Likewise.
7340         * math/w_pow_compat.c: Likewise.
7341         * math/w_powf_compat.c: Likewise.
7342         * math/w_powl_compat.c: Likewise.
7343         * math/w_remainder_compat.c: Likewise.
7344         * math/w_remainderf_compat.c: Likewise.
7345         * math/w_remainderl_compat.c: Likewise.
7346         * math/w_sinh_compat.c: Likewise.
7347         * math/w_sinhf_compat.c: Likewise.
7348         * math/w_sinhl_compat.c: Likewise.
7349         * math/w_sqrt_compat.c: Likewise.
7350         * math/w_sqrtf_compat.c: Likewise.
7351         * math/w_sqrtl_compat.c: Likewise.
7352         * math/w_tgamma_compat.c: Likewise.
7353         * math/w_tgammaf_compat.c: Likewise.
7354         * math/w_tgammal_compat.c: Likewise.
7355         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
7356         [LIBM_SVID_COMPAT].
7357         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
7358         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
7359         [LIBM_SVID_COMPAT].
7360         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
7361         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
7362         [LIBM_SVID_COMPAT].
7363         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
7364         * sysdeps/i386/fpu/w_sqrt.c: New file.
7365         * sysdeps/ia64/fpu/w_acos.c: Likewise.
7366         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
7367         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
7368         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
7369         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
7370         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
7371         * sysdeps/ia64/fpu/w_asin.c: Likewise.
7372         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
7373         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
7374         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
7375         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
7376         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
7377         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
7378         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
7379         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
7380         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
7381         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
7382         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
7383         * sysdeps/ia64/fpu/w_exp.c: Likewise.
7384         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
7385         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
7386         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
7387         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
7388         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
7389         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
7390         * sysdeps/ia64/fpu/w_expf.c: Likewise.
7391         * sysdeps/ia64/fpu/w_expl.c: Likewise.
7392         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
7393         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
7394         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
7395         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
7396         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
7397         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
7398         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
7399         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
7400         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
7401         * sysdeps/ia64/fpu/w_log.c: Likewise.
7402         * sysdeps/ia64/fpu/w_log10.c: Likewise.
7403         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
7404         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
7405         * sysdeps/ia64/fpu/w_log2.c: Likewise.
7406         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
7407         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
7408         * sysdeps/ia64/fpu/w_logf.c: Likewise.
7409         * sysdeps/ia64/fpu/w_logl.c: Likewise.
7410         * sysdeps/ia64/fpu/w_pow.c: Likewise.
7411         * sysdeps/ia64/fpu/w_powf.c: Likewise.
7412         * sysdeps/ia64/fpu/w_powl.c: Likewise.
7413         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
7414         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
7415         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
7416         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
7417         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
7418         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
7419         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
7420         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
7421         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
7422         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
7423         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
7424         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
7425         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
7426         [LIBM_SVID_COMPAT].
7427         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7428         * sysdeps/ieee754/k_standard.c: Likewise.
7429         * sysdeps/ieee754/k_standardf.c: Likewise.
7430         * sysdeps/ieee754/k_standardl.c: Likewise.
7431         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7432         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7433         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7434         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
7435         long_double_symbol call on [LIBM_SVID_COMPAT].
7436         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
7437         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
7438         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
7439         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
7440         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
7441         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
7442         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
7443         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
7444         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
7445         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
7446         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
7447         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7448         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
7449         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
7450         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
7451         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
7452         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
7453         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
7454         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
7455         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
7456         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
7457         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
7459 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
7461         * include/shlib-compat.h (TEST_COMPAT): New Macro.
7462         * malloc/tst-mallocstate.c: Convert from test-skeleton
7463         to test-driver.  Ifdef code using TEST_COMPAT macro.
7464         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
7465         * math/test-matherr.c: Likewise.
7467 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7469         [BZ #22086]
7470         * debug/pcprofiledump.c (main): Use byte-swapped mask when
7471         comparing word with byte-swapped constant.
7473 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
7475         [BZ #20498]
7476         * locale/iso-639.def: add Miskito.
7477         * localedata/SUPPORTED: Add miq_NI/UTF-8.
7478         * localedata/locales/miq_NI: New file.
7480 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
7482         [BZ #18822]
7483         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
7484         (__mkdir): Likewise.
7485         * io/chmod.c (__chmod): Add libc_hidden_def.
7486         * io/mkdir.c (__mkdir): Likewise.
7487         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
7488         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
7489         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
7490         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
7492 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7494         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7495         version to 4.13.
7497         [BZ #22082]
7498         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
7499         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
7501 2017-09-04  Florian Weimer  <fweimer@redhat.com>
7503         * math/math.h: Issue warning if log is defined.
7505 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7507         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7508         kernel version to 4.13.
7510 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7512         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
7513         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
7514         parameter.
7515         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
7516         just <bits/types.h>.
7517         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
7518         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
7519         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
7520         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
7521         * misc/preadv2.c: Include <errno.h>.
7522         * misc/preadv64v2.c: Include <errno.h>.
7523         * misc/pwritev2.c: Include <errno.h>.
7524         * misc/pwritev64v2.c: Include <errno.h>.
7525         * sysdeps/posix/preadv2.c: Include <errno.h>.
7526         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
7527         Fix <unistd.h> inclusion.
7528         * sysdeps/posix/pwritev2.c: Include <errno.h>.
7529         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
7530         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
7531         __strtoul_internal): New functions.
7532         * sysdeps/posix/pause.c: Include <sigsetops.h>.
7533         * sysdeps/posix/system.c: Include <sigsetops.h>.
7534         * sysdeps/mach/hurd/i386/Makefile
7535         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
7536         [$(subdir) = csu] (sysdep-only-routines): Likewise.
7537         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
7538         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
7539         __feraiseexcept_renamed to feraiseexcept instead of
7540         __GI_feraiseexcept.
7541         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
7542         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
7543         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
7544         RWF_NOWAIT): Define to 0 if undefined already.
7545         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
7546         boils down to 0.
7547         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
7548         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
7550 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7552         * manual/math.texi (pow10): Do not document.
7553         (pow10f): Likewise.
7554         (pow10l): Likewise.
7555         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
7556         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
7557         * math/libm-test-exp10.inc (pow10_test): Remove.
7558         (do_test): Do not call pow10.
7559         * math/w_exp10_compat.c (pow10): Make into compat symbol.
7560         [NO_LONG_DOUBLE] (pow10l): Likewise.
7561         * math/w_exp10f_compat.c (pow10f): Likewise.
7562         * math/w_exp10l_compat.c (pow10l): Likewise.
7563         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
7564         (pow10): Make into compat symbol.
7565         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
7566         (pow10f): Make into compat symbol.
7567         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
7568         (pow10l): Make into compat symbol.
7569         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
7570         pow10.
7571         (CFLAGS-nldbl-pow10.c): Remove variable..
7572         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
7573         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
7574         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
7575         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
7576         Undefine and redefine.
7577         (pow10l): Make into compat symbol.
7578         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
7579         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
7580         * sysdeps/arm/libm-test-ulps: Likewise.
7581         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
7582         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7583         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7584         * sysdeps/microblaze/libm-test-ulps: Likewise.
7585         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
7586         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7587         * sysdeps/nios2/libm-test-ulps: Likewise.
7588         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7589         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
7590         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7591         * sysdeps/sh/libm-test-ulps: Likewise.
7592         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7593         * sysdeps/tile/libm-test-ulps: Likewise.
7594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7596 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7598         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
7600 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7602         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
7603         "../ChangeLog.old/ChangeLog.8".
7604         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
7605         "../ChangeLog.old/ChangeLog.14".
7607 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7609         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
7610         Threads Library.
7612 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7614         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
7616 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7618         * csu/version.c (banner): Remove "by Roland McGrath et al.".
7619         * nptl/Banner: Remove "by Ulrich Drepper et al.".
7621 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7623         * stdlib/tst-atexit-common.c (do_test): Test support for at least
7624         32 atexit handlers.
7626 2017-09-01  Zack Weinberg  <zackw@panix.com>
7628         * math/math.h (HUGE_VAL): Improve commentary.
7630 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7631             Andreas Schwab  <schwab@suse.de>
7633         [BZ #21530]
7634         * include/stdio.h (__gen_tempfd): New function.
7635         * stdio-common/Makefile (routines): Add gentempfd.
7636         * stdio-common/gentempfd.c: New file.
7637         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
7638         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
7639         unnamed file first.
7641 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7643         [BZ #21915]
7644         [BZ #21922]
7645         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
7646         result to determine success or failure, not the errno value.
7647         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
7648         (tst-nss-files-hosts-erange): Link with -ldl.
7649         * nss/tst-nss-files-hosts-erange.c: New file.
7650         * nss/tst-resolv-basic.c (response): Handle nodata.example.
7651         (do_test): Add NO_DATA tests.
7652         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
7653         (do_test): Call it.
7655 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7657         [BZ #21922]
7658         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
7659         coming from gethostbyname2_r.
7661 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7663         * support/namespace.h (struct support_chroot_configuration): Add
7664         hosts, host_conf.
7665         (struct support_chroot): Add path_hosts, path_host_conf.
7666         * support/support_chroot.c (write_file): New function.
7667         (support_chroot_create): Call it to process /etc/resolv.conf,
7668         /etc/hosts, /etc/host.conf.
7669         (support_chroot_free): Update.
7671 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7673         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
7674         status indicates it is set.
7676 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7678         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
7679         function lookup failures more reliable.
7681 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7683         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
7684         (getcanonname): Likewise.
7685         (gaih_inet): Likewise.
7687 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7689         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
7690         (getcanonname): Likewise.
7691         (gaih_inet): Likewise.
7693 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7694             Richard Henderson <rth@twiddle.net>
7696         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
7697         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
7698         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
7699         (IREG_SIZE, OREG_SIZE): New macros.
7700         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
7701         (IREG_SIZE, OREG_SIZE): New macros.
7702         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
7703         (IREG_SIZE): New macro.
7704         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
7705         (IREG_SIZE): New macro.
7706         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
7707         New includes.
7708         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
7709         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7710         (__CONCATX): Handle exceptions correctly on large values that may
7711         set FE_INVALID.
7712         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7713         Initialize if not already set.
7714         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7716 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7718         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7719         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7720         Likewise.
7721         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7722         Likewise.
7723         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7724         Likewise.
7725         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7726         Likewise.
7727         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7728         Likewise.
7729         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7730         Likewise.
7731         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7732         Likewise.
7733         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7734         (NO_CANCELLATION): Likewise.
7735         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7736         Likewise.
7737         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7738         Likewise.
7739         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7740         Likewise.
7741         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7742         (NO_CANCELLATION): Likewise.
7743         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7744         (NO_CANCELLATION): Likewise.
7745         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7746         Likewise
7747         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7748         Likewise.
7749         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7750         Likewise.
7751         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7752         Likewise.
7753         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7754         hidden prototype.
7755         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7756         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7758 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7760         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7761         in resolver call.
7763 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7765         * include/libc-symbols.h (internal_function): Remove.
7767 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7769         * stdlib/fmtmsg.c (internal_addseverity): Remove
7770         internal_function.
7772 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7774         * stdio-common/printf_fp.c (group_number): Remove
7775         internal_function.
7776         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7778 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7780         * posix/fnmatch.c (internal_function): Remove definition.
7781         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7782         * posix/regcomp.c (peek_token, init_word_char)
7783         (duplicate_node_closure, fetch_token, peek_token)
7784         (peek_token_bracket, build_range_exp, build_collating_symbol):
7785         Likewise.
7786         * posix/regex_internal.c (re_string_construct_common)
7787         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7788         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7789         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7790         (re_string_translate_buffer, re_string_reconstruct)
7791         (re_string_peek_byte_case, re_string_fetch_byte_case)
7792         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7793         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7794         (re_node_set_add_intersect, re_node_set_init_union)
7795         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7796         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7797         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7798         (re_acquire_state_context): Likewise.
7799         * posix/regex_internal.h (internal_function): Remove definition.
7800         (re_string_realloc_buffers, build_wcs_buffer)
7801         (build_wcs_upper_buffer, build_upper_buffer)
7802         (re_string_translate_buffer, re_string_context_at)
7803         (re_string_char_size_at, re_string_wchar_at)
7804         (re_string_elem_size_at): Likewise.
7805         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7806         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7807         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7808         (re_search_internal, re_search_2_stub, re_search_stub)
7809         (re_copy_regs, prune_impossible_nodes, check_matching)
7810         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7811         (free_fail_stack_return, sift_states_iter_mb)
7812         (sift_states_backward, build_sifted_states)
7813         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7814         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7815         (check_subexp_limits, sift_states_bkref, merge_state_array)
7816         (find_recover_state, transit_state, merge_state_with_log)
7817         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7818         (transit_state_mb, transit_state_bkref, get_subexp)
7819         (get_subexp_sub, find_subexp_node, check_arrival)
7820         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7821         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7822         (check_node_accept_bytes, find_collation_sequence_value)
7823         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7824         (acquire_init_state_context, check_halt_node_context)
7825         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7826         (sub_epsilon_src_nodes): Likewise.
7827         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7828         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7829         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7830         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7831         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7832         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7833         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7834         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7835         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7836         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7837         (PREADV): Likewise.
7838         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7839         (PREADV): Likewise.
7840         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7841         (PWRITEV): Likewise.
7842         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7843         (PWRITEV): Likewise.
7844         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7845         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7847 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7849         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7850         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7851         Remove internal_function.
7852         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7853         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7854         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7855         (__deallocate_stack, __libc_pthread_init)
7856         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7857         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7858         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7859         Likewise.
7860         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7861         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7862         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7863         Likewise.
7864         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7865         (__pthread_mutex_unlock_usercnt): Likewise.
7867 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7869         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7870         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7871         (fts_safe_changedir): Remove internal_function.
7872         * io/ftw.c (internal_function): Remove definition.
7873         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7875 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7877         * inet/deadline.c (__deadline_current_time)
7878         (__deadline_from_timeval, __deadline_to_ms): Remove
7879         internal_function.
7880         * inet/getnameinfo.c (nrl_domainname): Likewise.
7881         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7882         * inet/inet6_option.c (add_pad): Likewise.
7883         * inet/net-internal.h (__deadline_current_time)
7884         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7885         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7886         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7887         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7889 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7891         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7892         include <bits/nan.h>.
7893         * math/Makefile (headers): Remove bits/nan.h.
7894         * bits/nan.h: Remove.
7895         * sysdeps/ieee754/bits/nan.h: Likewise.
7896         * sysdeps/mips/bits/nan.h: Likewise.
7898         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7899         not include <bits/inf.h>.
7900         * math/Makefile (headers): Remove bits/inf.h.
7901         * bits/inf.h: Remove.
7902         * sysdeps/ieee754/bits/inf.h: Likewise.
7904         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7905         bits/huge_vall.h or bits/huge_val_flt128.h.
7906         (HUGE_VAL): Define directly here.
7907         [__USE_ISOC99] (HUGE_VALF): Likewise.
7908         [__USE_ISOC99] (HUGE_VALL): Likewise.
7909         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7910         (HUGE_VAL_F128): Likewise.
7911         * math/Makefile (headers): Remove bits/huge_val.h,
7912         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7913         * bits/huge_val.h: Remove.
7914         * bits/huge_val_flt128.h: Likewise.
7915         * bits/huge_valf.h: Likewise.
7916         * bits/huge_vall.h: Likewise.
7917         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7918         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7919         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7920         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7921         * sysdeps/sh/bits/huge_val.h: Likewise.
7922         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7923         * sysdeps/x86/bits/huge_vall.h: Likewise.
7925 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7927         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7928         internal_function.
7929         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7930         Likewise.
7931         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7932         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7933         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7934         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7935         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7936         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7937         * elf/dl-libc.c (dlerror_run): Likewise.
7938         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7939         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7940         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7941         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7942         Likewise.
7943         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7944         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7945         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7946         * elf/dl-profile.c (_dl_start_profile): Likewise.
7947         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7948         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7949         Likewise.
7950         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7951         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7952         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7953         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7954         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7955         (_dl_allocate_tls_storage): Likewise.
7956         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7957         (_dl_check_all_versions): Likewise.
7958         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7959         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7960         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7961         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7962         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7963         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7964         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7965         internal_function from __dl_start.
7966         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7967         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7968         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7969         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7970         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7971         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7972         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7973         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7974         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7975         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7976         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7977         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7978         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7979         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7980         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7981         Likewise.
7982         (struct rtld_global_ro): Remove internal_function from the
7983         _dl_lookup_symbol_x member.
7984         (_dl_symbol_value): Remove.  No longer defined anywhere.
7985         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7986         internal_function.
7987         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7988         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7989         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7990         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7991         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7992         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7993         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7994         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7995         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7996         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7997         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7998         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
8000 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8002         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
8003         Remove internal_function.
8004         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
8005         Likewise.
8006         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
8007         Likewise.
8009 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8011         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
8012         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
8013         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
8015 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8017         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
8018         (__gai_enqueue_request): Remove internal_function.
8019         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
8020         (__gai_remove_request, __gai_notify, __gai_notify_only)
8021         (__gai_sigqueue): Likewise.
8022         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
8023         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
8024         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
8025         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8026         Likewise.
8028 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8030         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
8031         * include/dirent.h (__opendirat, __getdents, __getdents64)
8032         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
8033         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
8034         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8035         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
8036         Likewise.
8037         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
8039 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8041         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
8042         internal_function.
8043         (GETCWD_RETURN_TYPE): Likewise.
8045 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8047         * include/time.h (__tz_compute, __strptime_internal): Remove
8048         internal_function.
8049         * time/strptime_l.c (__strptime_internal): Likewise.
8050         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
8052 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8054         * iconv/gconv.c (__gconv): Remove internal_function.
8055         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
8056         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
8057         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
8058         (__gconv_release_cache): Likewise.
8059         * iconv/gconv_close.c (__gconv_close): Likewise.
8060         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
8061         (read_conf_file, __gconv_get_path): Likewise.
8062         * iconv/gconv_db.c (derivation_lookup, add_derivation)
8063         (__gconv_release_step, gen_steps, increment_counter)
8064         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
8065         (__gconv_close_transform, free_modules_db): Likewise.
8066         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
8067         Likewise.
8068         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
8069         (__gconv_find_transform, __gconv_lookup_cache)
8070         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
8071         (__gconv_close_transform, __gconv_release_cache)
8072         (__gconv_loaded_object, __gconv_release_shlib)
8073         (__gconv_compare_alias): Likewise.
8074         * iconv/gconv_open.c (__gconv_open): Likewise.
8075         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
8076         * iconv/iconvconfig.c (add_module): Likewise.
8077         * intl/dcigettext.c (plural_lookup, guess_category_value)
8078         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
8079         * intl/eval-plural.h (plural_eval): Likewise.
8080         * intl/finddomain.c (_nl_find_domain): Likewise.
8081         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
8082         (_nl_load_domain, _nl_find_msg): Likewise.
8083         (internal_function): Remove definition.
8084         * intl/loadinfo.h (internal_function): Likewise.
8085         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
8086         internal_function.
8087         * intl/localealias.c (internal_function): Remove definition.
8088         (read_alias_file): Remove internal_function.
8089         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
8090         * intl/plural-exp.h (internal_function): Remove definition.
8091         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
8092         internal_function.
8093         * intl/plural.c: Regenerate.
8094         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
8095         * locale/coll-lookup.c (__collidx_table_lookup)
8096         (__collseq_table_lookup): Likewise.
8097         * locale/coll-lookup.h (__collidx_table_lookup)
8098         (__collseq_table_lookup): Likewise.
8099         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
8100         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8101         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
8102         (_nl_unload_locale): Likewise.
8103         * locale/localeinfo.h (struct __locale_data): Remove
8104         internal_function from cleanup member.
8105         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
8106         (_nl_remove_locale, _nl_load_locale_from_archive)
8107         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
8108         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
8109         (_nl_cleanup_time): Remove internal_function.
8110         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
8111         (_nl_parse_alt_digit): Likewise.
8112         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
8113         (_nl_select_era_entry): Likewise.
8114         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
8115         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
8116         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
8117         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
8118         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
8120 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8122         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
8123         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
8124         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
8125         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
8126         Likewise.
8127         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
8128         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
8129         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
8130         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
8131         Likewise.
8132         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
8134 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8136         * misc/getttyent.c (skip, value): Remove internal_function.
8137         * misc/syslog.c (openlog_internal): Likewise.
8138         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
8140 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8142         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
8143         (__nss_rewrite_field): Remove internal_function.
8144         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8145         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8146         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8147         * nss/nsswitch.c (nss_parse_file, nss_getline)
8148         (nss_parse_service_list, nss_new_service): Likewise.
8149         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
8150         * nss/valid_field.c (__nss_valid_field): Likewise.
8151         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
8153 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8155         * malloc/arena.c (__malloc_fork_lock_parent)
8156         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
8157         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
8158         internal_function from defintions.
8159         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
8160         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
8161         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
8162         internal_function from declarations.
8163         * malloc/malloc.c (internal_function): Do not define.
8164         (mem2mem_check): Remove internal_function from declaration.
8165         (munmap_chunk, mremap_chunk): Remove internal_function.
8166         * malloc/mtrace.c (tr_where): Likewise.
8168 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8170         * include/rpc/pmap_clnt.h (__get_socket): Remove
8171         internal_function.
8172         * sunrpc/auth_des.c (synchronize): Likewise.
8173         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
8174         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
8175         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
8176         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
8177         (key_call): Likewise.
8178         * sunrpc/pm_getport.c (__get_socket): Likewise.
8179         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
8180         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
8181         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
8182         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
8183         (invalidate): Likewise.
8184         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
8185         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
8186         (set_input_fragment, get_input_bytes): Likewise.
8188 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8190         * malloc/malloc.c (_int_free): Remove locked variable and related
8191         asserts.
8193 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
8195         [BZ #22051]
8196         * Makerules (build-module-helper-objlist): Filter out
8197         $(elf-objpfx)sofini.os.
8198         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
8199         needed.
8201 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8203         * libio/fcloseall.c: Assume weak_alias is defined.
8204         * libio/feof.c: Likewise.
8205         * libio/fileno.c: Likewise.
8206         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
8207         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
8208         definitions.
8209         (_IO_file_open): Call __open directly.
8210         (_IO_new_file_sync): Assume ESPIPE is defined.
8211         (_IO_file_seekoff_maybe_mmap): Call __read directly.
8212         (_IO_new_file_write): Call __write directly.
8213         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
8214         * libio/ftello64.c (__ftello64): Assume EIO is defined.
8215         * libio/genops.c: Assume _LIBC is defined.
8216         (save_for_backup): Remove internal_function.
8217         * libio/getc.c: Assume weak_alias is defined.
8218         * libio/getwc.c: Likewise.
8219         * libio/iofclose.c: Assume _LIBC is defined.
8220         * libio/iofdopen.c: Likewise.
8221         (_IO_fcntl): Remove macro definition.
8222         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
8223         Call __fcntl directly.
8224         * libio/iofflush.c: Assume weak_alias is defined.
8225         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
8226         defined.
8227         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
8228         * libio/iofgets.c: Likewise.
8229         * libio/iofopen.c: Assume _LIBC is defined.
8230         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
8231         * libio/iofputs.c: Assume weak_alias is defined.
8232         * libio/iofread.c: Likewise.
8233         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
8234         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8235         * libio/ioftell.c: Assume weak_alias is defined.
8236         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
8237         * libio/iofwide.c: Assume _LIBC is defined.
8238         (_IO_fwide): Drop SHARED conditional because it is implied by
8239         SHLIB_COMPAT.
8240         * libio/iofwrite.c: Assume weak_alias is defined.
8241         * libio/iogetdelim.c: Likewise.
8242         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
8243         * libio/iogetwline.c (wmemcpy): Remove macro definition.
8244         (_IO_getwline): Call __wmemcpy directly.
8245         * libio/iopopen.c: Assume _LIBC is defined.
8246         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
8247         (_IO_close): Remove macro definitions.
8248         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
8249         _exit directly.
8250         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
8251         directly.
8252         * libio/ioputs.c: Assume weak_alias is defined.
8253         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
8254         * libio/iosetbuffer.c: Assume weak_alias is defined.
8255         * libio/iosetvbuf.c: Likewise.
8256         * libio/ioungetc.c: Likewise.
8257         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
8258         libc_hidden_def, libc_hidden_weak, NULL are defined.
8259         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
8260         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
8261         defined.
8262         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
8263         definitions.
8264         (_IO_old_file_init_internal): Drop SHARED conditional because it
8265         is implied by SHLIB_COMPAT.
8266         (_IO_old_file_fopen): Call __open directly.
8267         (_IO_old_file_sync): Assume ESPIPE is defined.
8268         (_IO_old_file_write): Call __write directly.
8269         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
8270         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
8271         Call __fcntl directly.
8272         * libio/oldiofgetpos.c: Assume weak_alias is defined.
8273         (_IO_old_fgetpos): Assume EIO is defined.
8274         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
8275         (_IO_old_fgetpos64): Assume EIO is defined.
8276         * libio/oldiofsetpos.c: Assume weak_alias is defined.
8277         (_IO_old_fsetpos): Assume EIO is defined.
8278         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
8279         (_IO_old_fsetpos64): Assume EIO is defined.
8280         * libio/oldiopopen.c:  Assume _LIBC is defined.
8281         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
8282         (_IO_close): Remove macro definitions.
8283         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
8284         directly.
8285         (_IO_old_proc_close): Call __close, __waitpid directly.
8286         * libio/put.c: Assume weak_alias is defined.
8287         * libio/stdfiles.c: Assume _LIBC is defined.
8288         * libio/stdio.c: Likewise.
8289         * libio/wfileops.c: Likewise.
8290         (_IO_wfile_sync): Assume ESPIPE is defined.
8291         * libio/wgenops.c: Assume _LIBC is defined.
8292         (save_for_wbackup): Remove internal_function.
8294 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8296         * malloc/malloc.c (top_check): Change return type to void.  Remove
8297         internal_function.
8298         * malloc/hooks.c (top_check): Likewise.
8299         (malloc_check, realloc_check, memalign_check): Adjust.
8301 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
8303         [BZ #21457]
8304         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8305         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
8306         sigcontext and namespace requirements.
8307         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8308         * sysdeps/m68k/sys/ucontext.h: Likewise.
8309         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
8310         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
8311         <bits/sigcontext.h>.
8312         (__ctx): Define earlier.
8313         (mcontext_t): Define structure contents rather than using struct
8314         sigcontext.
8315         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
8316         __glibc_reserved1 instead of __reserved.
8317         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
8318         <bits/sigcontext.h>.
8319         (__ctx): Define earlier.
8320         (mcontext_t): Define structure contents rather than using struct
8321         sigcontext.
8322         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
8323         mcontext_t instead of struct sigcontext.
8324         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
8325         <bits/sigcontext.h>.
8326         (__ctx): Define earlier.
8327         (mcontext_t): Define structure contents rather than using struct
8328         sigcontext.
8329         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
8330         <bits/sigcontext.h>.
8331         (__ctx): Define earlier.
8332         (mcontext_t): Define structure contents rather than using struct
8333         sigcontext.
8334         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
8335         mcontext_t instead of struct sigcontext.
8336         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
8337         mcontext_t instead of struct sigcontext.
8338         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
8339         <bits/sigcontext.h>.
8340         (__ctx): New macro.
8341         (struct __ia64_fpreg_mcontext): New type.
8342         (mcontext_t): Define structure contents rather than using struct
8343         sigcontext.
8344         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
8345         (uc_sigmask): Define using __ctx.
8346         (uc_stack): Likewise.
8347         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
8348         <bits/sigcontext.h>.
8349         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8350         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
8351         <bits/sigcontext.h>.
8352         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
8353         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
8354         <bits/sigcontext.h>.
8355         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
8356         <bits/sigcontext.h>.
8357         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
8358         <bits/sigcontext.h>.
8359         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
8360         <bits/sigcontext.h>.
8361         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
8362         <bits/sigcontext.h>.
8363         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
8364         <bits/sigcontext.h>.
8365         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
8366         <bits/sigcontext.h>.
8367         (__ctx): Define earlier.
8368         (mcontext_t): Define structure contents rather than using struct
8369         sigcontext.
8370         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
8371         <bits/sigcontext.h>.  Include <bits/types.h>.
8372         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
8373         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
8374         (test-xfail-XPG42/ucontext.h/conform): Likewise.
8375         (test-xfail-UNIX98/signal.h/conform): Likewise.
8376         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
8377         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
8378         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
8379         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
8380         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
8381         (test-xfail-POSIX2008/signal.h/conform): Likewise.
8382         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
8383         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
8384         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
8386 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8388         * malloc/dynarray_emplace_enlarge.c
8389         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
8390         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8391         * malloc/tst-dynarray.c (test_long_overflow): New function.
8392         (do_test): Call it.
8394 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8396         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
8397         (set_arena_corrupt): Remove definitions.
8398         (mtrim): Do not check for corrupt arena.
8399         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
8400         Likewise.
8402 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8404         [BZ #21754]
8405         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
8406         check_action.
8407         (ptmalloc_init): Do not set or use check_action.
8408         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
8409         call to malloc_printerr.  Remove return statement.
8410         (free_check): Likewise.  Remove arena unlock.
8411         (top_check): Update comment.  Adjust call to malloc_printerr.
8412         Remove heap repair code.
8413         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
8414         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
8415         (sysmalloc): Adjust call to malloc_printerr.
8416         (munmap_chunk, __libc_realloc): Likewise.  Remove return
8417         statement.
8418         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
8419         Remove errout label and corresponding gotos.
8420         (_int_free): Likewise.  Remove arena unlock.
8421         (do_set_mallopt_check): Do not set check_action.
8422         (malloc_printerr): Adjust parameter list.  Do not mark arena as
8423         corrupt.
8424         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
8425         comment.
8426         * manual/probes.texi (Memory Allocation Probes): Remove
8427         memory_mallopt_check_action.
8429 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
8431         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
8432         Use pointer to uint64_t instead of long int for sp.
8434 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8436         [BZ #21754]
8437         * malloc/malloc.c (malloc_printerr): Always terminate the process,
8438         without printing a backtrace.  Do not leak any information in the
8439         error message.
8440         * manual/memory.texi (Heap Consistency Checking): Update.
8441         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
8443 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8445         Do not scale NPTL tests with available number of CPUs.
8446         * nptl/tst-cond16.c (count): Set to constant value of 8.
8447         * nptl/tst-cond18.c (count): Likewise.
8449 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8451         [BZ #22035]
8452         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
8453         Define to take a second argument that is a macro that
8454         concatentates a suffix, not the suffix itself.
8455         (__CONCAT_d): New macro.
8456         (__CONCAT_f): Likewise.
8457         (__CONCAT_l): Likewise.
8459 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
8461         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
8462         by child.
8464 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8465             Aurelien Jarno  <aurelien@aurel32.net>
8466             Maciej W. Rozycki  <macro@imgtec.com>
8468         [BZ #21956]
8469         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
8470         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
8471         `mips16-syscall6' and `mips16-syscall7'.
8472         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
8473         (CFLAGS-mips16-syscall7.c): Remove.
8474         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
8475         Remove `__mips16_syscall5', `__mips16_syscall6' and
8476         `__mips16_syscall7'.
8477         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
8478         (__mips16_syscall0): Rename `__mips16_syscall_return' to
8479         `__mips_syscall_return'.
8480         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
8481         (__mips16_syscall1): Likewise.
8482         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
8483         (__mips16_syscall2): Likewise.
8484         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
8485         (__mips16_syscall3): Likewise.
8486         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
8487         (__mips16_syscall4): Likewise.
8488         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
8489         Remove.
8490         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
8491         Remove.
8492         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
8493         Remove.
8494         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
8495         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
8496         `__mips16_syscall5'.  Remove prototype.
8497         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
8498         `__mips16_syscall6'.  Remove prototype.
8499         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
8500         `__mips16_syscall7'.  Remove prototype.
8501         (__nomips16, __mips16_syscall_return): Move to...
8502         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
8503         (__nomips16, __mips_syscall_return): ... here.
8504         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
8505         `__mips16_syscall_return' to `__mips_syscall_return'.
8506         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
8507         `internal_syscall##nr'.
8508         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
8509         `internal_syscall##nr'.
8510         (FORCE_FRAME_POINTER): Remove.
8511         (__mips_syscall5): New prototype.
8512         (internal_syscall5): Rewrite to call `__mips_syscall5'.
8513         (__mips_syscall6): New prototype.
8514         (internal_syscall6): Rewrite to call `__mips_syscall6'.
8515         (__mips_syscall7): New prototype.
8516         (internal_syscall7): Rewrite to call `__mips_syscall7'.
8517         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
8518         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
8519         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
8520         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
8521         (sysdep_routines): Add libc-do-syscall.
8522         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
8523         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
8525 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8527         [BZ #21672]
8528         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
8529         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
8530         (advise_stack_range): New function.
8531         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
8532         stack non required to advise_stack_range at allocatestack.c
8534 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8536         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
8538 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8540         [BZ #22026]
8541         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
8542         __end_fct.  Mangle __end_fct after setting it to NULL.
8543         * iconv/Makefile (tests): Add tst-gconv-init-failure.
8544         (modules-names, modules-names-tests): Add
8545         tst-gconv-init-failure-mod.
8546         (gconv-modules): New target.
8547         (tst-gconv-init-failure-mod.so): Link against libsupport.
8548         (tst-gconv-init-failure): Depend on gconv-modules,
8549         tst-gconv-init-failure-mod.so.
8550         * iconv/tst-gconv-init-failure-mod.c: New file.
8551         * iconv/tst-gconv-init-failure.c: Likewise.
8552         * iconv/test-gconv-modules: Likewise.
8554 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8556         [BZ #22025]
8557         * iconv/gconv_db.c (free_derivation): Remove redundant
8558         parentheses.
8559         (gen_steps): Unconditionally mangle __btowc_fct after
8560         initialization.
8561         (increment_counter): Likewise.  Do not call init_fct for internal
8562         modules.
8564 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8566         [BZ #22028]
8567         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8568         (_MSUF_): Remove macro.
8569         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
8570         Likewise.
8571         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8572         (__REDIRFROM_X): New macro.
8573         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
8574         Likewise.
8575         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
8576         (__REDIRTO_X): Likewise.
8577         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
8578         arguments.
8579         (__MATH_REDIRCALL_2): Likewise.
8580         (__MATH_REDIRCALL_INTERNAL): Likewise.
8581         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8582         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
8583         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
8584         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8585         * math/test-finite-macros.c: New file.
8586         * math/Makefile (tests): Add test-finite-macros.
8587         (CFLAGS-test-finite-macros.c): New variable.
8589 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
8590             Jeff Law  <law@redhat.com>
8592         [BZ #22025]
8593         Mangle NULL pointers in iconv/gconv.
8594         * iconv/gconv_cache.c (find_module): Demangle init_fct before
8595         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
8596         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
8597         is non-NULL before demangling the end_fct.  Check for NULL
8598         end_fct after demangling.
8599         (__gconv_release_step): Demangle the end_fct before checking
8600         it for NULL.   Remove assert on __shlibc_handle != NULL.
8601         (gen_steps): Don't check btowc_fct for NULL before mangling.
8602         Demangle init_fct before checking for NULL.
8603         (increment_counter): Likewise.
8604         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
8605         end_fct for NULL before mangling.
8606         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
8607         for NULL.
8609 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
8611         [BZ #21971]
8612         * locale/iso-639.def: add Morisyen.
8614 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8616         [BZ #21930]
8617         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
8618         (iszero): New C++ implementation that does not use
8619         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
8620         signaling nans are enabled, since __builtin_types_compatible_p
8621         is a C-only feature.
8622         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
8623         defined, include ieee754_float128.h for access to the union and
8624         member ieee854_float128.ieee.
8625         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
8626         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
8627         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8628         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
8629         options of test-math-zero on powerpc64le.
8631 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
8633         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
8634         Change double to float.
8636 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
8638         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
8639         unconditional.
8640         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
8641         conditional code; define contents only for [LIBM_SVID_COMPAT].
8643 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8645         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
8646         (abi-lp64_be-options): Remove.
8647         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
8648         (abi-hard-options): Likewise.
8649         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
8650         (abi-o32_hard-options, abi-o32_soft_2008-options)
8651         (abi-o32_hard_2008-options, abi-n32_soft-options)
8652         (abi-n32_hard-options, abi-n32_soft_2008-options)
8653         (abi-n32_hard_2008-options, abi-n64_soft-options)
8654         (abi-n64_hard-options, abi-n64_soft_2008-options)
8655         (abi-n64_hard_2008-options): Likewise.
8656         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
8657         (abi-64-v1-options, abi-64-v2-options): Likewise.
8658         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
8659         (abi-64-options): Likewise.
8660         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
8661         (abi-64-options): Likewise.
8662         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
8663         (abi-64-options): Likewise.
8664         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
8665         (abi-64-options, abi-x32-options): Likewise.
8667 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8669         Store supported list of SYS_* system calls in the source tree.
8670         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8671         (bits/syscall.h): Generate from list file.
8672         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
8673         [$(subdir) = misc] (tests): Add tst-syscall-list.
8674         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
8675         [$(subdir) = misc] (tst-syscall-list-macros.list)
8676         [$(subdir) = misc] (tst-syscall-list-nr.list)
8677         (tst-syscall-list-sys.list): Helper targets for new
8678         tst-syscall-list test.
8679         [$(subdir) = misc] (tst-syscall-list.out): Run test script
8680         tst-syscall-list.sh.
8681         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
8682         target. Do not include bits/syscall.d.
8683         [$(subdir) = misc] (generated): Do not update.
8684         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
8685         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
8686         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
8687         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
8689 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
8691         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
8692         (tst-cxa_atexit, tst-on_exit): Likewise.
8693         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
8694         tst-cxa_atexit, and tst-on_exit.
8695         * stdlib/tst-atexit-common.c: New file.
8696         * stdlib/tst-atexit.c: New file.
8697         * stdlib/tst-at_quick_exit.c: New file.
8698         * stdlib/tst-cxa_atexit.c: New file.
8699         * stdlib/tst-on_exit.c: New file.
8701 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8703         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
8704         * mach/stack_chk_fail_local.c: New file.
8705         * hurd/stack_chk_fail_local.c: New file.
8706         * mach/Machrules ($(interface-library)-routines): Add
8707         stack_chk_fail_local.
8708         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
8709         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
8710         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8711         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8712         * hurd/Makefile (CFLAGS-hurdstartup.o,
8713         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8715 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8717         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8718         (index_cpu_*, index_arch_*): Removed.
8720 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8722         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8723         Use uint64_t instead of unsigned long.
8725 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8727         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8728         [__HAVE_DISTINCT_FLOAT128].
8730         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8731         of <bits/math-finite.h>.
8732         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8733         inclusion of <bits/math-finite.h>.
8734         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8735         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8736         __NO_LONG_DOUBLE_MATH].
8737         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8738         (__MATH_REDIRCALL_2): Likewise.
8739         (__MATH_REDIRCALL_INTERNAL): Likewise.
8740         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8741         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8742         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8745         Remove file.
8746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8747         Likewise.
8748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8749         Likewise.
8750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8751         Likewise.
8752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8753         Likewise.
8754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8755         Likewise.
8756         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8757         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8758         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8759         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8761         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8762         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8763         w_sqrtf_compat-ppc32.
8765 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8767         * math/math.h [defined __cplusplus] (issignaling): In the long
8768         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8769         is not defined.  Call __issignaling, otherwise.
8771 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8773         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8774         syscall definitions and replace __builtin_expect with __glibc_likely.
8775         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8776         syscall.
8777          (SYSCALL_CANCELLABLE): Removedefinition
8778         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8779         definition.
8780         (PSEUDO_END): Likewise.
8781         [IS_IN (libpthread)] (CENABLE): Likewise.
8782         [IS_IN (libpthread)] (CDISABLE): Likewise.
8783         [IS_IN (libc)] (CENABLE): Likewise.
8784         [IS_IN (libc)] (CENABLE): Likewise.
8785         [IS_IN (librt)] (CDISABLE): Likewise.
8786         [IS_IN (librt)] (CDISABLE): Likewise.
8787         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8788         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8789         definition.
8790         (PSEUDO_END): Likewise.
8791         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8792         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8793         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8794         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8795         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8796         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8797         (CENABLE): Likewise.
8798         (CDISABLE): Likewise.
8799         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8800         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8801         defintion.
8802         (PSEUDO_END): Likewise.
8803         [IS_IN (libpthread)] (CENABLE): Likewise.
8804         [IS_IN (libpthread)] (CDISABLE): Likewise.
8805         [IS_IN (libc)] (CENABLE): Likewise.
8806         [IS_IN (libc)] (CENABLE): Likewise.
8807         [IS_IN (librt)] (CDISABLE): Likewise.
8808         [IS_IN (librt)] (CDISABLE): Likewise.
8809         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8810         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8811         definition.
8812         (PSEUDO_END): Likewise.
8813         [IS_IN (libpthread)] (CENABLE): Likewise.
8814         [IS_IN (libpthread)] (CDISABLE): Likewise.
8815         [IS_IN (libc)] (CENABLE): Likewise.
8816         [IS_IN (libc)] (CENABLE): Likewise.
8817         [IS_IN (librt)] (CDISABLE): Likewise.
8818         [IS_IN (librt)] (CDISABLE): Likewise.
8819         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8820         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8821         definition.
8822         (PSEUDO_END): Likewise.
8823         [IS_IN (libpthread)] (CENABLE): Likewise.
8824         [IS_IN (libpthread)] (CDISABLE): Likewise.
8825         [IS_IN (libc)] (CENABLE): Likewise.
8826         [IS_IN (libc)] (CENABLE): Likewise.
8827         [IS_IN (librt)] (CDISABLE): Likewise.
8828         [IS_IN (librt)] (CDISABLE): Likewise.
8829         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8830         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8831         definition.
8832         (PSEUDO_END): Likewise.
8833         [IS_IN (libpthread)] (CENABLE): Likewise.
8834         [IS_IN (libpthread)] (CDISABLE): Likewise.
8835         [IS_IN (libc)] (CENABLE): Likewise.
8836         [IS_IN (libc)] (CENABLE): Likewise.
8837         [IS_IN (librt)] (CDISABLE): Likewise.
8838         [IS_IN (librt)] (CDISABLE): Likewise.
8839         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8840         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8841         definition.
8842         (PSEUDO_END): Likewise.
8843         [IS_IN (libpthread)] (CENABLE): Likewise.
8844         [IS_IN (libpthread)] (CDISABLE): Likewise.
8845         [IS_IN (libc)] (CENABLE): Likewise.
8846         [IS_IN (libc)] (CENABLE): Likewise.
8847         [IS_IN (librt)] (CDISABLE): Likewise.
8848         [IS_IN (librt)] (CDISABLE): Likewise.
8849         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8850         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8851         definition.
8852         (PSEUDO_END): Likewise.
8853         [IS_IN (libpthread)] (CENABLE): Likewise.
8854         [IS_IN (libpthread)] (CDISABLE): Likewise.
8855         [IS_IN (libc)] (CENABLE): Likewise.
8856         [IS_IN (libc)] (CENABLE): Likewise.
8857         [IS_IN (librt)] (CDISABLE): Likewise.
8858         [IS_IN (librt)] (CDISABLE): Likewise.
8859         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8860         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8861         Remove definition.
8862         (PSEUDO_END): Likewise.
8863         [IS_IN (libpthread)] (CENABLE): Likewise.
8864         [IS_IN (libpthread)] (CDISABLE): Likewise.
8865         [IS_IN (libc)] (CENABLE): Likewise.
8866         [IS_IN (libc)] (CENABLE): Likewise.
8867         [IS_IN (librt)] (CDISABLE): Likewise.
8868         [IS_IN (librt)] (CDISABLE): Likewise.
8869         (SINGLE_THREAD_P): Likewise.
8870         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8871         definition.
8872         (PSEUDO_END): Likewise.
8873         [IS_IN (libpthread)] (CENABLE): Likewise.
8874         [IS_IN (libpthread)] (CDISABLE): Likewise.
8875         [IS_IN (libc)] (CENABLE): Likewise.
8876         [IS_IN (libc)] (CENABLE): Likewise.
8877         [IS_IN (librt)] (CDISABLE): Likewise.
8878         [IS_IN (librt)] (CDISABLE): Likewise.
8879         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8880         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8881         definition.
8882         (PSEUDO_END): Likewise.
8883         [IS_IN (libpthread)] (CENABLE): Likewise.
8884         [IS_IN (libpthread)] (CDISABLE): Likewise.
8885         [IS_IN (libc)] (CENABLE): Likewise.
8886         [IS_IN (libc)] (CENABLE): Likewise.
8887         [IS_IN (librt)] (CDISABLE): Likewise.
8888         [IS_IN (librt)] (CDISABLE): Likewise.
8889         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8890         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8891         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8892         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8893         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8894         definition.
8895         (PSEUDO_END): Likewise.
8896         [IS_IN (libpthread)] (CENABLE): Likewise.
8897         [IS_IN (libpthread)] (CDISABLE): Likewise.
8898         [IS_IN (libc)] (CENABLE): Likewise.
8899         [IS_IN (libc)] (CENABLE): Likewise.
8900         [IS_IN (librt)] (CDISABLE): Likewise.
8901         [IS_IN (librt)] (CDISABLE): Likewise.
8902         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8903         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8904         definition.
8905         (PSEUDO_END): Likewise.
8906         [IS_IN (libpthread)] (CENABLE): Likewise.
8907         [IS_IN (libpthread)] (CDISABLE): Likewise.
8908         [IS_IN (libc)] (CENABLE): Likewise.
8909         [IS_IN (libc)] (CENABLE): Likewise.
8910         [IS_IN (librt)] (CDISABLE): Likewise.
8911         [IS_IN (librt)] (CDISABLE): Likewise.
8912         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8913         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8914         definition.
8915         (PSEUDO_END): Likewise.
8916         [IS_IN (libpthread)] (CENABLE): Likewise.
8917         [IS_IN (libpthread)] (CDISABLE): Likewise.
8918         [IS_IN (libc)] (CENABLE): Likewise.
8919         [IS_IN (libc)] (CENABLE): Likewise.
8920         [IS_IN (librt)] (CDISABLE): Likewise.
8921         [IS_IN (librt)] (CDISABLE): Likewise.
8922         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8923         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8924         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8925         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8926         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8927         definition.
8928         (PSEUDO_END): Likewise.
8929         [IS_IN (libpthread)] (CENABLE): Likewise.
8930         [IS_IN (libpthread)] (CDISABLE): Likewise.
8931         [IS_IN (libc)] (CENABLE): Likewise.
8932         [IS_IN (libc)] (CENABLE): Likewise.
8933         [IS_IN (librt)] (CDISABLE): Likewise.
8934         [IS_IN (librt)] (CDISABLE): Likewise.
8935         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8936         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8937         definition.
8938         (PSEUDO_END): Likewise.
8939         [IS_IN (libpthread)] (CENABLE): Likewise.
8940         [IS_IN (libpthread)] (CDISABLE): Likewise.
8941         [IS_IN (libc)] (CENABLE): Likewise.
8942         [IS_IN (libc)] (CENABLE): Likewise.
8943         [IS_IN (librt)] (CDISABLE): Likewise.
8944         [IS_IN (librt)] (CDISABLE): Likewise.
8945         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8947 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8949         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8951 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8953         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8955 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8957         [BZ #21982]
8958         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8959         middle and outer with size_t instead of int.  Repleace %d and
8960         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8961         "MAX (outer, nchars - 64)" to support unsigned outer and
8962         nchars.  Also exit loop when outer == 0.
8964 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8966         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8967         * include/signal.h (__sigsuspend_nocancel): Likewise.
8968         * include/time.h (__nanosleep_nocancel): Likewise.
8969         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8970         * login/utmp_file.c: Include non cancellable syscall header.
8971         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8972         prototype.
8974 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8976         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8977         .byte sequences with AVX512F instructions.
8978         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8979         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8980         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8981         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8982         Likewise.
8983         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8984         Likewise.
8986 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8987             Steve Ellcey  <sellcey@cavium.com>
8989         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8990         Use PTR_REG macro in cmp instruction.
8992 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8994         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8995         Change the return type of the ifunc resolver to match the return
8996         type of the target function.
8998 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9000         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
9001         (preadv64): Likewise.
9002         (pwrite64(: Likewise.
9003         (pwritev64): Likewise.
9005         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9006         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
9007         (LOAD_ARGS_0): Likewise.
9008         (LOAD_ARGS_1): Likewise.
9009         (LOAD_ARGS_2): Likewise.
9010         (LOAD_ARGS_3): Likewise.
9011         (LOAD_ARGS_4): Likewise.
9012         (LOAD_ARGS_5): Likewise.
9013         (LOAD_ARGS_6): Likewise.
9014         (LOAD_REGS_0): Likewise.
9015         (LOAD_REGS_1): Likewise.
9016         (LOAD_REGS_2): Likewise.
9017         (LOAD_REGS_3): Likewise.
9018         (LOAD_REGS_4): Likewise.
9019         (LOAD_REGS_5): Likewise.
9020         (LOAD_REGS_6): Likewise.
9021         (ASM_ARGS_0): Likewise.
9022         (ASM_ARGS_1): Likewise.
9023         (ASM_ARGS_2): Likewise.
9024         (ASM_ARGS_3): Likewise.
9025         (ASM_ARGS_4): Likewise.
9026         (ASM_ARGS_5): Likewise.
9027         (ASM_ARGS_6): Likewise.
9028         (LOAD_ARGS_TYPES_1): Likewise.
9029         (LOAD_ARGS_TYPES_2): Likewise.
9030         (LOAD_ARGS_TYPES_3): Likewise.
9031         (LOAD_ARGS_TYPES_4): Likewise.
9032         (LOAD_ARGS_TYPES_5): Likewise.
9033         (LOAD_ARGS_TYPES_6): Likewise.
9034         (LOAD_REGS_TYPES_1): Likewise.
9035         (LOAD_REGS_TYPES_2): Likewise.
9036         (LOAD_REGS_TYPES_3): Likewise.
9037         (LOAD_REGS_TYPES_4): Likewise.
9038         (LOAD_REGS_TYPES_5): Likewise.
9039         (LOAD_REGS_TYPES_6): Likewise.
9040         (TYPEFY): New define.
9041         (ARGIFY): Likewise.
9042         (internal_syscall0): Likewise.
9043         (internal_syscall1): Likewise.
9044         (internal_syscall2): Likewise.
9045         (internal_syscall3): Likewise.
9046         (internal_syscall4): Likewise.
9047         (internal_syscall5): Likewise.
9048         (internal_syscall6): Likewise.
9049         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
9050         (INTERNAL_SYSCALL_NCS): Remove define.
9051         (internal_syscall1): Add define.
9053 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9055         * math/w_remainder_compat.c: Remove duplicate inclusion of
9056         math-svid-compat.h.
9057         * math/w_remainderf_compat.c: Likewise.
9058         * math/w_remainderl_compat.c: Likewise.
9060 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9062         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9064 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
9066         [BZ #21684]
9067         * math/tgmath.h (__floating_type): Simplify definitions.
9068         (__real_integer_type): New macro.
9069         (__complex_integer_type): Likewise.
9070         (__expr_is_real): Likewise.
9071         (__tgmath_real_type_sub): Update comment to describe handling of
9072         complex types.
9073         (__tgmath_complex_type_sub): New macro.
9074         (__tgmath_complex_type): Likewise.
9075         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9076         (__TGMATH_CF128): Use __expr_is_real.
9077         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
9078         __expr_is_real.
9079         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9080         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
9081         * math/gen-tgmath-tests.py (Type.create_type): Create complex
9082         integer types.
9084 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9086         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
9087         macro.
9088         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
9089         alias.
9090         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
9091         Likewise.
9093         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
9094         nanosleep_not_cancel with __nanosleep_nocancel.
9095         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
9096         (__nanosleep_nocancel): New macro.
9097         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
9098         function.
9099         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
9100         macro.
9101         (__nanosleep_nocancel): New prototype.
9103         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
9104         pause_not_cancel with __pause_nocancel.
9105         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
9106         (__pause_nocancel): New macro.
9107         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
9108         macro.
9109         (__pause_nocancel): New prototype.
9110         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
9112 2017-08-22  Martin Sebor  <msebor@redhat.com>
9114         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
9115         to return a pointer to the same type as the target function.
9117 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
9119         [BZ #18822]
9120         [BZ #21986]
9121         * include/printf.h (__printf_fphex): Add attribute_hidden.
9122         (__guess_grouping): New prototype.
9123         * stdio-common/printf_fp.c (__guess_grouping): Removed.
9124         * stdio-common/reg-printf.c (__register_printf_specifier): Add
9125         libc_hidden_proto and libc_hidden_def.
9126         * stdlib/strfmon_l.c (__guess_grouping): Removed.
9127         (__vstrfmon_l): Remove the third argument passed to
9128         __guess_grouping.
9130 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9132         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
9133         definition for issignaling that does not rely on __MATH_TG,
9134         since __MATH_TG uses __builtin_types_compatible_p, which is only
9135         available in C mode.
9136         (CFLAGS-test-math-issignaling.cc): New variable.
9137         * math/Makefile [CXX] (tests): Add test-math-issignaling.
9138         * math/test-math-issignaling.cc: New test for C++ implementation
9139         of type-generic issignaling.
9140         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
9141         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
9142         options of test-math-issignaling on powerpc64le.
9144 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
9146         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9147         building libc.a.
9148         (hidden_proto): Likewise.
9149         (hidden_tls_proto): Likewise.
9150         (__hidden_proto): Likewise.
9152 2017-08-22  Florian Weimer  <fweimer@redhat.com>
9154         math: Statically link tests of internal functionality.
9155         * math/Makefile (tests): Remove atest-exp, atest-sincos,
9156         atest-exp2.
9157         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
9158         (gmp-objs): Remove assignment.
9159         (atest-exp, atest-sincos, atest-exp2): Remove targets.
9161 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
9163         [BZ #21987]
9164         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
9165         and copy to ...
9166         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
9167         ... here.
9168         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
9169         ... and here.
9171         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
9172         variable definitions above inclusion of ../Rules.
9174 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
9176         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
9177         case calling __builtin_unreachable.
9179 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9181         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
9182         __waitpid_nocancel.
9183         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
9184         (__waitpid_nocancel): New macro.
9185         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
9186         macro.
9187         (__waitpid_nocancel): Replace macro with a function.
9188         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
9189         function.
9191         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
9192         __fcntl_nocancel.
9193         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
9194         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
9196         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
9197         __writev_nocancel_nostatus.
9198         (write_call_graph): Likewise.
9199         (write_bb_counts): Likewise.
9200         * resolv/herror.c (herror): Likewise.
9201         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
9202         macro.
9203         (__writev_nocancel_nostatus): New macro.
9204         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
9205         Remove macro.
9206         (__writev_nocancel_nostatus): New function.
9208 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
9210         Revert:
9211         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9213         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9214         building libc.a.
9215         (hidden_proto): Likewise.
9216         (hidden_tls_proto): Likewise.
9217         (__hidden_proto): Likewise.
9219         [BZ #21973]
9220         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
9221         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
9222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
9223         Likewise.
9224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
9225         Likewise.
9226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9227         Likewise.
9228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
9229         Likewise.
9230         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
9231         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9232         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9233         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9234         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
9235         GLIBC_2.0 sqrtl symbol.
9237         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
9238         [__USE_MISC] (_LIB_VERSION): Likewise.
9239         [__USE_MISC] (struct exception): Likewise.
9240         [__USE_MISC] (matherr): Likewise.
9241         [__USE_MISC] (DOMAIN): Likewise.
9242         [__USE_MISC] (SING): Likewise.
9243         [__USE_MISC] (OVERFLOW): Likewise.
9244         [__USE_MISC] (UNDERFLOW): Likewise.
9245         [__USE_MISC] (TLOSS): Likewise.
9246         [__USE_MISC] (PLOSS): Likewise.
9247         [__USE_MISC] (HUGE): Likewise.
9248         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
9249         * math/math-svid-compat.h: New file.
9250         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
9251         and matherrl.
9252         * include/math.h [!_ISOMAC] (__matherr): Remove.
9253         * manual/arith.texi (FP Exceptions): Do not document matherr.
9254         * math/Makefile (tests): Change test-matherr to test-matherr-3.
9255         (tests-internal): New variable.
9256         (install-lib): Do not add libieee.a.
9257         (non-lib.a): Likewise.
9258         (extra-objs): Do not add libieee.a and ieee-math.o.
9259         (CPPFLAGS-s_lib_version.c): Remove variable.
9260         ($(objpfx)libieee.a): Remove rule.
9261         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
9262         * math/ieee-math.c: Remove.
9263         * math/libm-test-support.c (matherr): Remove.
9264         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
9265         and license notices.  Include <math-svid-compat.h> and
9266         <shlib-compat.h>.
9267         (matherr): Undefine as macro.  Use compat_symbol_reference.
9268         (_LIB_VERSION): Likewise.
9269         * math/test-matherr-2.c: New file.
9270         * math/test-matherr-3.c: Likewise.
9271         * sysdeps/generic/math_private.h (__kernel_standard): Remove
9272         declaration.
9273         (__kernel_standard_f): Likewise.
9274         (__kernel_standard_l): Likewise.
9275         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
9276         <math_private.h>.  Include <math-svid-compat.h>.
9277         (_LIB_VERSION): Undefine as macro.
9278         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
9279         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
9280         [LIBM_SVID_COMPAT], use compat_symbol.
9281         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
9282         <math_private.h>.  Include <math-svid-compat.h>.
9283         (matherr): Undefine as macro.
9284         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
9285         compat_symbol.
9286         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
9287         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
9288         compat_symbol_reference.
9289         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
9290         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
9291         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
9292         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
9293         (MATHERR_D): Remove declaration.
9294         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
9295         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
9296         [LIBM_BUILD] (pmatherrf): Likewise.
9297         [LIBM_BUILD] (pmatherr): Likewise.
9298         [LIBM_BUILD] (pmatherrl): Likewise.
9299         (DOMAIN): Likewise.
9300         (SING): Likewise.
9301         (OVERFLOW): Likewise.
9302         (UNDERFLOW): Likewise.
9303         (TLOSS): Likewise.
9304         (PLOSS): Likewise.
9305         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
9306         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
9307         compat_symbol.
9308         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
9309         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
9310         compat_symbol.
9311         * math/lgamma-compat.h: Include <math-svid-compat.h>.
9312         * math/w_acos_compat.c: Likewise.
9313         * math/w_acosf_compat.c: Likewise.
9314         * math/w_acosh_compat.c: Likewise.
9315         * math/w_acoshf_compat.c: Likewise.
9316         * math/w_acoshl_compat.c: Likewise.
9317         * math/w_acosl_compat.c: Likewise.
9318         * math/w_asin_compat.c: Likewise.
9319         * math/w_asinf_compat.c: Likewise.
9320         * math/w_asinl_compat.c: Likewise.
9321         * math/w_atan2_compat.c: Likewise.
9322         * math/w_atan2f_compat.c: Likewise.
9323         * math/w_atan2l_compat.c: Likewise.
9324         * math/w_atanh_compat.c: Likewise.
9325         * math/w_atanhf_compat.c: Likewise.
9326         * math/w_atanhl_compat.c: Likewise.
9327         * math/w_cosh_compat.c: Likewise.
9328         * math/w_coshf_compat.c: Likewise.
9329         * math/w_coshl_compat.c: Likewise.
9330         * math/w_exp10_compat.c: Likewise.
9331         * math/w_exp10f_compat.c: Likewise.
9332         * math/w_exp10l_compat.c: Likewise.
9333         * math/w_exp2_compat.c: Likewise.
9334         * math/w_exp2f_compat.c: Likewise.
9335         * math/w_exp2l_compat.c: Likewise.
9336         * math/w_fmod_compat.c: Likewise.
9337         * math/w_fmodf_compat.c: Likewise.
9338         * math/w_fmodl_compat.c: Likewise.
9339         * math/w_hypot_compat.c: Likewise.
9340         * math/w_hypotf_compat.c: Likewise.
9341         * math/w_hypotl_compat.c: Likewise.
9342         * math/w_j0_compat.c: Likewise.
9343         * math/w_j0f_compat.c: Likewise.
9344         * math/w_j0l_compat.c: Likewise.
9345         * math/w_j1_compat.c: Likewise.
9346         * math/w_j1f_compat.c: Likewise.
9347         * math/w_j1l_compat.c: Likewise.
9348         * math/w_jn_compat.c: Likewise.
9349         * math/w_jnf_compat.c: Likewise.
9350         * math/w_jnl_compat.c: Likewise.
9351         * math/w_lgamma_main.c: Likewise.
9352         * math/w_lgamma_r_compat.c: Likewise.
9353         * math/w_lgammaf_main.c: Likewise.
9354         * math/w_lgammaf_r_compat.c: Likewise.
9355         * math/w_lgammal_main.c: Likewise.
9356         * math/w_lgammal_r_compat.c: Likewise.
9357         * math/w_log10_compat.c: Likewise.
9358         * math/w_log10f_compat.c: Likewise.
9359         * math/w_log10l_compat.c: Likewise.
9360         * math/w_log2_compat.c: Likewise.
9361         * math/w_log2f_compat.c: Likewise.
9362         * math/w_log2l_compat.c: Likewise.
9363         * math/w_log_compat.c: Likewise.
9364         * math/w_logf_compat.c: Likewise.
9365         * math/w_logl_compat.c: Likewise.
9366         * math/w_pow_compat.c: Likewise.
9367         * math/w_powf_compat.c: Likewise.
9368         * math/w_powl_compat.c: Likewise.
9369         * math/w_remainder_compat.c: Likewise.
9370         * math/w_remainderf_compat.c: Likewise.
9371         * math/w_remainderl_compat.c: Likewise.
9372         * math/w_scalb_compat.c: Likewise.
9373         * math/w_scalbf_compat.c: Likewise.
9374         * math/w_scalbl_compat.c: Likewise.
9375         * math/w_sinh_compat.c: Likewise.
9376         * math/w_sinhf_compat.c: Likewise.
9377         * math/w_sinhl_compat.c: Likewise.
9378         * math/w_sqrt_compat.c: Likewise.
9379         * math/w_sqrtf_compat.c: Likewise.
9380         * math/w_sqrtl_compat.c: Likewise.
9381         * math/w_tgamma_compat.c: Likewise.
9382         * math/w_tgammaf_compat.c: Likewise.
9383         * math/w_tgammal_compat.c: Likewise.
9384         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
9385         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
9386         * sysdeps/ieee754/k_standard.c: Likewise.
9387         * sysdeps/ieee754/k_standardf.c: Likewise.
9388         * sysdeps/ieee754/k_standardl.c: Likewise.
9389         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
9390         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
9391         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
9392         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
9393         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
9394         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
9395         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
9396         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
9397         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
9398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
9399         Likewise.
9400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9401         Likewise.
9402         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
9403         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9404         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9405         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9407 2017-08-21  Florian Weimer  <fweimer@redhat.com>
9409         [BZ #21864]
9410         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
9411         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
9412         Move before inclusion of ../Rules.
9414 2017-08-21  Florian Weimer  <fweimer@redhat.com>
9416         [BZ #21972]
9417         * assert/assert.h (assert): Use static_cast (bool) for C++.
9418         Use the ternary operator in the warning branch for GNU C.
9419         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
9420         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
9421         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
9422         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
9423         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
9425 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9427         [BZ #18822]
9428         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9429         (__syscall_clock_gettime): Add attribute_hidden.
9430         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
9431         (__start_context): Likewise.
9433 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9435         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9436         building libc.a.
9437         (hidden_proto): Likewise.
9438         (hidden_tls_proto): Likewise.
9439         (__hidden_proto): Likewise.
9441 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9443         * include/libc-symbols.h (attribute_hidden): Enable hidden
9444         visibility in libc.a compiled with PIE.
9446 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9448         [BZ #18822]
9449         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
9450         Add attribute_hidden.
9452 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9454         [BZ #21864]
9455         * Makerules (all-nonlib): Add $(others-extras).
9456         * catgets/Makefile (others-extras): New.
9457         * elf/Makefile (others-extras): Likewise.
9458         * nss/Makefile (others-extras): Likewise.
9460 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9462         [BZ #18822]
9463         * csu/libc-start.c (__libc_multiple_libcs): Removed.
9464         * elf/dl-open.c: Include <libc-internal.h>.
9465         (__libc_multiple_libcs): Removed.
9466         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
9467         <hp-timing.h>.
9468         * include/libc-internal.h (__libc_multiple_libcs): New.
9469         * misc/sbrk.c: Include <libc-internal.h>.
9470         (__libc_multiple_libcs): Removed.
9472 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9474         [BZ #18822]
9475         * grp/initgroups.c (__nss_group_database): Removed.
9476         (__nss_initgroups_database): Likewise.
9477         * nscd/gai.c (__nss_hosts_database): Likewise.
9478         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
9479         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
9480         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
9481         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
9482         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
9483         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
9484         attribute_hidden.
9485         * nss/nsswitch.c (__nss_database_custom): Define only if
9486         USE_NSCD is defined.
9487         (__nss_configure_lookup): Use __nss_database_custom only if
9488         USE_NSCD is defined.
9489         * nss/nsswitch.h (__nss_database_custom): Declare only if
9490         USE_NSCD is defined.  Add attribute_hidden.
9491         (__nss_setent): Add attribute_hidden.
9492         (__nss_endent): Likewise.
9493         (__nss_getent_r): Likewise.
9494         (__nss_getent): Likewise.
9495         (DEFINE_DATABASE): Declare __nss_##arg##_database.
9497 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9499         [BZ #18822]
9500         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
9501         libc_hidden_proto and libc_hidden_def.
9503 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9505         [BZ #18822]
9506         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
9507         Add libc_hidden_proto.
9508         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
9509         Add libc_hidden_def.
9511 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9513         [BZ #21974]
9514         * gmon/Makefile (routines): Remove bb_init_func and
9515         bb_exit_func.
9516         (elide-routines.os): Removed.
9517         * gmon/bb_exit_func.c: Likewise.
9518         * gmon/bb_init_func.c: Likewise.
9519         * include/sys/gmon.h (__bb): Likewise.
9520         (__bb_init_func): Likewise.
9521         (__bb_exit_func): Likewise.
9522         * sysdeps/alpha/bb_init_func.S: Likewise.
9524 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9526         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
9527         * include/setjmp.h (____longjmp_chk): Here.  Add
9528         attribute_hidden.
9530 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9532         [BZ #18822]
9533         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
9534         attribute_hidden.
9535         (__strspn_sse2): Likewise.
9537 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9539         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
9540         (close_not_cancel_no_status): Likewise.
9541         (__close_nocancel): New macro.
9542         (__close_nocancel_nostatus): Likewise.
9543         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
9544         macro.
9545         (close_not_cancel): Likewise.
9546         (close_not_cancel_no_status): Likewise.
9547         (__close_nocancel): New prototype.
9548         (__close_nocancel_nostatus): New function.
9549         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
9550         * catgets/open_catalog.c (__open_catalog): Replace
9551         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
9552         * gmon/gmon.c (write_gmon): Likewise.
9553         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9554         * intl/loadmsgcat.c (close): Likewise.
9555         * io/ftw.c (open_dir_stream): Likewise.
9556         (ftw_startup): Likewise.
9557         * libio/fileops.c (_IO_file_open): Likewise.
9558         (_IO_file_close_mmap): Likewise.
9559         (_IO_file_close): Likewise.
9560         * libio/iopopen.c (_IO_dup2): Likewise.
9561         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9562         * locale/loadlocale.c (_nl_load_locale): Likewise.
9563         * login/utmp_file.c (pututline_file): Likewise.
9564         (endutent_file): Likewise.
9565         * misc/daemon.c (daemon): Likewise.
9566         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9567         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9568         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9569         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9570         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9571         * nscd/nscd_helper.c (open_socket): Likewise.
9572         (__nscd_open_socket): Likewise.
9573         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9574         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
9575         (__nscd_innetgr): Likewise.
9576         * nss/nss_db/db-open.c (internal_setent): Likewise.
9577         * resolv/res-close.c (__res_iclose): Likewise.
9578         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
9579         * sysdeps/posix/closedir.c (__closedir): Likewise.
9580         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
9581         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9582         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9583         (opendir_tail): Likewise.
9584         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9585         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
9586         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9587         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9588         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9589         (gethostid): Likewise.
9590         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9591         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9592         Likewise.
9593         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9594         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
9595         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9596         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9597         Likewise.
9598         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
9599         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
9600         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9601         Likewise.
9602         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
9603         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9604         Likewise.
9605         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9606         Likewise.
9607         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9608         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9609         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9610         __close_nocancel.
9612         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
9613         (openat_not_cancel_3): Likewise.
9614         (openat64_not_cancel_3): Likewise).
9615         (openat_not_cancel_3): Likewise).
9616         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
9617         macro.
9618         (openat_not_cancel_3): Likewise.
9619         (openat64_not_cancel): Likewise.
9620         (openat64_not_cancel_3): Likewise.
9621         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
9622         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
9623         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
9624         __open{64}_nocancel.
9625         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9626         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9627         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9629 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9631         [BZ #18822]
9632         * include/argz.h (__argz_create_sep): New function prototype.
9633         (__argz_append): Likewise.
9634         (__argz_add): Likewise.
9635         (__argz_add_sep): Likewise.
9636         (__argz_delete): Likewise.
9637         (__argz_insert): Likewise.
9638         (__argz_replace): Likewise.
9639         * string/argz.h (__argz_create_sep): Removed.
9640         (__argz_append): Likewise.
9641         (__argz_add): Likewise.
9642         (__argz_add_sep): Likewise.
9643         (__argz_delete): Likewise.
9644         (__argz_insert): Likewise.
9645         (__argz_replace): Likewise.
9647 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9649         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
9650         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
9651         (GNU_PROPERTY_STACK_SIZE): Likewie.
9652         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
9653         (GNU_PROPERTY_LOPROC): Likewise.
9654         (GNU_PROPERTY_HIPROC): Likewise.
9655         (GNU_PROPERTY_LOUSER): Likewise.
9656         (GNU_PROPERTY_HIUSER): Likewise.
9657         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
9658         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
9659         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
9660         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
9661         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
9662         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
9663         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
9664         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
9665         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
9666         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
9667         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
9668         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
9669         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
9670         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
9671         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
9672         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
9673         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
9674         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
9675         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
9676         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
9677         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
9678         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
9679         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
9681 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9683         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
9684         in C++ mode.
9686 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9688         [BZ #21930]
9689         * math/math.h (isinf): Check if in C or C++ mode before using
9690         __builtin_types_compatible_p, since this is a C mode feature.
9692 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9694         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
9695         (__write_nocancel): New macro.
9696         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
9697         Rewrite as a function prototype.
9698         (write_not_cancel): Remove macro.
9699         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
9700         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
9701         (write_gmon): Likewise.
9702         * libio/fileops.c (_IO_new_file_write): Likewise.
9703         * login/utmp_file.c (pututline_file): Likewise.
9704         (updwtmp_file): Likewise.
9705         * stdio-common/psiginfo.c (psiginfo): Likewise.
9706         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9707         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9708         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9709         Likewise.
9710         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9711         Likewise.
9713         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9714         (__read_nocancel): New macro.
9715         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9716         __read_nocancel.
9717         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9718         macro.
9719         (__read_nocancel): New prototype.
9720         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9721         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9722         with __read_nocancel.
9723         * intl/loadmsgcat.c (read): Likewise.
9724         * libio/fileops.c (_IO_file_read): Likewise.
9725         * locale/loadlocale.c (_nl_load_locale): Likewise.
9726         * login/utmp_file.c (getutent_r_file): Likewise.
9727         (internal_getut_r): Likewise.
9728         (getutline_r_file): Likewise.
9729         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9730         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9731         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9732         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9733         Likewise.
9734         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9735         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9736         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9737         Likewise.
9738         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9739         Likewise.
9740         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9741         Likewise.
9742         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9743         Likewise.
9744         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9746 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9748         [BZ #21966]
9749         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9750         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9751         usable.
9753 2017-08-17  DJ Delorie  <dj@redhat.com>
9755         * bug17079.c: Update to new test harness.
9756         * test-digits-dots.c: Likewise.
9757         * test-netdb.c: Likewise.
9758         * tst-field.c: Likewise.
9759         * tst-nss-getpwent.c: Likewise.
9760         * tst-nss-static.c: Likewise.
9761         * tst-nss-test1.c: Likewise.
9762         * tst-nss-test2.c: Likewise.
9763         * tst-nss-test3.c: Likewise.
9764         * tst-nss-test4.c: Likewise.
9765         * tst-nss-test5.c: Likewise.
9767 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9769         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9770         (open_not_cancel_2): Likewise.
9771         (open_nocancel): New macro.
9772         (open64_nocancel): Likewise.
9773         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9774         (open_not_cancel_2): Likewise.
9775         (__open_nocancel): New prototype.
9776         (__open64_nocancel): Likewise.
9777         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9778         __open_nocancel.
9779         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9780         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9781         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9782         with __open_nocancel.
9783         * csu/check_fds.c (check_one_fd): Likewise.
9784         * gmon/gmon.c (write_gmon): Likewise.
9785         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9786         * intl/loadmsgcat.c (open): Likewise.
9787         * libio/fileops.c (_IO_file_open): Likewise.
9788         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9789         * locale/loadlocale.c (_nl_load_locale): Likewise.
9790         * login/utmp_file.c (setutent_file): Likewise.
9791         * misc/daemon.c (daemon): Likewise.
9792         * nss/nss_db/db-open.c (internal_setent): Likewise.
9793         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9794         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9795         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9796         (__opendir): Likewise.
9797         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9798         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9799         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9800         (gethostid): Likewise.
9801         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9802         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9803         Likewise.
9804         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9805         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9806         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9807         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9808         Likewise.
9809         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9810         Likewise.
9811         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9812         Likewise.
9813         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9814         Likewise.
9815         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9816         Likewise.
9817         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9818         Likewise.
9819         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9820         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9822 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9824         * benchtests/bench-skeleton.c (main): Add support for
9825         latency benchmarking.
9826         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9828 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9830         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9831         the startup object.
9833 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9835         * include/sys/socket.h (__opensock): Remove internal_function.
9836         * socket/opensock.c (__opensock): Likewise.
9837         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9839 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9841         [BZ #21944]
9842         * signal/bits/types/__sigval_t.h: New file.
9843         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9844         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9845         and define sigval_t using __sigval_t.
9846         * include/bits/types/__sigval_t.h: New file.
9847         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9848         instead of <bits/types/__sigval_t.h>.
9849         (struct sigevent): Use __sigval_t instead of sigval_t.
9850         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9851         instead of <bits/types/__sigval_t.h>.
9852         (siginfo_t): Use __sigval_t instead of sigval_t.
9853         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9854         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9855         (struct sigevent): Use __sigval_t instead of sigval_t.
9856         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9857         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9858         (siginfo_t): Use __sigval_t instead of sigval_t.
9859         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9861 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9863         * NEWS: Remove "[Add new features here]" for 2.27.
9865 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9867         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9868         libc.so.
9870 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9872         * NEWS: Mention x86-64 FMA optimization.
9874 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9876         [BZ #21912]
9877         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9878         Add e_expf-fma.
9879         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9880         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9881         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9883 2017-08-16  Andreas Schwab  <schwab@suse.de>
9885         [BZ #16750]
9886         CVE-2009-5064
9887         * elf/ldd.bash.in: Never run file directly.
9889 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9891         [BZ #21955]
9892         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9893         (L(SP_INF_0)): Likewise.
9895 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9897         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9898         run-built-tests.
9900 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9902         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9903         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9904         BROKEN_THREAD_SIGNALS code.
9905         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9906         request_list): Remove caller_pid member used for
9907         BROKEN_THREAD_SIGNALS.
9908         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9909         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9910         Remove BROKEN_THREAD_SIGNALS support.
9911         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9912         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9914 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9916         * gmon/Makefile (tests): Add tst-gmon.
9917         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9918         Set.
9919         (tests-special): Add tst-gmon-prof.out.
9920         (tst-gmon.out): Depend on clean-tst-gmon-data.
9921         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9922         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9923         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9924         startup object.
9925         * aclocal.m4 (GPROF): Set and substitute.
9926         * config.amke.in (GPROF): Set.
9927         * configure: Regenerate.
9929 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9931         * elf/elf.h A (NT_PPC_TAR): New macro.
9932         (NT_PPC_PPR): Likewise.
9933         (NT_PPC_DSCR): Likewise.
9934         (NT_PPC_EBB): Likewise.
9935         (NT_PPC_PMU): Likewise.
9936         (NT_PPC_TM_CGPR): Likewise.
9937         (NT_PPC_TM_CFPR): Likewise.
9938         (NT_PPC_TM_CVMX): Likewise.
9939         (NT_PPC_TM_CVSX): Likewise.
9940         (NT_PPC_TM_SPR): Likewise.
9941         (NT_PPC_TM_CTAR): Likewise.
9942         (NT_PPC_TM_CPPR): Likewise.
9943         (NT_PPC_TM_CDSCR): Likewise.
9945 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9947         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9948         regparm (2) instead of internal_function.
9949         (_MCOUNT_DECL): Adjust.
9951 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9953         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9954         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9956 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9958         * conform/data/sys/wait.h-data (si_value): Do not expect for
9959         XPG42.
9961 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9963         [BZ #21962]
9964         NSS: Create stubs for accidentally exported lookup functions.
9965         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9966         Remove declaration.
9967         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9968         (ether_hostton): Call __nss_ethers_lookup2 instead.
9969         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9970         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9971         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9972         (setup): Call __nss_netgroup_lookup2 instead.
9973         * nss/Makefile (routines): Add compat-lookup.
9974         * nss/Versions (GLIBC_2.27): Add symbol version.
9975         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9976         (DB_COMPAT_FCT): Remove.
9977         * nss/compat-lookup.c: New file.
9978         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9979         from databases.def.
9980         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9981         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9982         (netname2user): Call __nss_publickey_lookup2 instead.
9983         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9984         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9985         instead.
9987 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9988             Sergei Trofimovich  <slyfox@inbox.ru>
9990         [BZ #21908]
9991         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9992         Rename to MMAP2_PAGE_UNIT.
9993         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9994         __OFF_T_MATCHES_OFF64_T is not defined.
9995         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9996         uint64_t.
9997         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9998         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
10000 2017-08-14  Florian Weimer  <fweimer@redhat.com>
10002         i386: Do not set internal_function.
10003         * config.h.in (USE_REGPARMS, internal_function): Remove.
10004         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
10005         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
10007 2017-08-14  Florian Weimer  <fweimer@redhat.com>
10009         * elf/dl-init.c (_dl_init): Remove internal_function.
10010         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
10011         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
10013 2017-08-14  Florian Weimer  <fweimer@redhat.com>
10015         * elf/rtld.c (_dl_start): Remove internal_function.
10016         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
10017         _dl_start.
10019 2017-08-14  Florian Weimer  <fweimer@redhat.com>
10021         * elf/dl-fini.c (_dl_fini): Remove internal_function
10022         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
10024 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
10026         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
10027         (bit_cpu_SHSTK): Likewise.
10028         (index_cpu_IBT): Likewise.
10029         (index_cpu_SHSTK): Likewise.
10030         (reg_IBT): Likewise.
10031         (reg_SHSTK): Likewise.
10032         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10033         Handle index_cpu_IBT and index_cpu_SHSTK.
10035 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
10037         [BZ #19982]
10038         * po/fr.po: Fix spelling mistake.
10040 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10042         * elf/dl-addr.c (_dl_addr): Remove internal_function.
10043         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
10044         (_dl_catch_error, _dl_receive_error): Likewise.
10045         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
10046         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
10047         (_dl_deallocate_tls): Likewise.
10048         * include/dlfcn.h (_dl_addr): Likewise.
10049         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
10050         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
10051         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
10052         Likewise.
10054 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10056         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
10057         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
10058         internal_function.
10059         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
10061 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10063         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
10064         internal_function.
10065         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
10066         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
10067         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
10068         internal_function from _dl_make_stack_executable_hook member.
10069         (_dl_make_stack_executable): Remove internal_function.
10070         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
10071         Likewise.
10072         * sysdeps/unix/sysv/linux/dl-execstack.c
10073         (_dl_make_stack_executable): Likewise.
10075 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10077         * sysdeps/unix/sysv/linux/netlinkaccess.h
10078         (__netlink_assert_response): Remove internal_function.
10079         * sysdeps/unix/sysv/linux/netlink_assert_response.c
10080         (__netlink_assert_response): Likewise.
10082 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10084         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
10085         internal_function.
10086         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
10088 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10090         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
10091         internal_function.
10092         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
10093         * inet/netgroup.h (__internal_setnetgrent)
10094         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
10095         * inet/getnetgrent_r.c (__internal_setnetgrent)
10096         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
10097         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
10098         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
10099         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
10100         * nss/nsswitch.h (db_lookup_function): Likewise.
10102 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10104         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
10105         Remove internal_function.
10106         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
10107         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
10108         message argument on the stack.
10109         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
10110         Likeweise.
10112 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
10114         Adapt test case data to the changes in the thousands
10115         separators.
10117         [BZ #20756]
10118         * localedata/tst-langinfo.sh: Adapt test case data.
10119         * stdlib/tst-strfmon_l.c: Likewise.
10120         * stdlib/tst-strtod4.c: Likewise.
10121         * stdlib/tst-strtod5i.c: Likewise.
10123 2017-08-11  Florian Weimer  <fweimer@redhat.com>
10125         [BZ #21242]
10126         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
10127         Suppress pedantic warning resulting from statement expression.
10128         (__ASSERT_FUNCTION): Add missing __extension__.
10130 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10132         * benchtests/bench-memmove-large.c: Print output in JSON
10133         format.
10134         * benchtests/bench-memmove.c: Likewise.
10136         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
10137         * benchtests/bench-memchr.c (do_one_test): Likewise.
10138         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
10139         * benchtests/bench-memcpy.c (do_one_test): Likewise.
10140         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
10141         * benchtests/bench-memmove.c (do_one_test): Likewise.
10142         * benchtests/bench-memset-large.c (do_one_test): Likewise.
10143         * benchtests/bench-memset.c (do_one_test): Likewise.
10144         * benchtests/bench-string.h (test_init): Remove memsets.
10146 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
10148         * manual/lang.texi
10149         (Computing the Width of an Integer Data Type): Rename section to
10150         "Width of an Integer Type".  Remove inaccurate statement regarding
10151         lack of C language facilities for determining width of integer
10152         types, and reorder content to improve flow and context of
10153         discussion.
10155 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
10157         * lang.texi (va_copy): Change standard from ISO to C99.
10158         (__va_copy): Add standard and header annotation.
10159         Update description for clarity of origins and current use.
10161 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10163         [BZ #21941]
10164         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
10165         xssqrtqp requires operands to be in Vector Registers
10166         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
10167         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
10168         (__ieee754_sqrtf128): Likewise.
10170 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10172         * sysdeps/aarch64/memcmp.S (memcmp):
10173         Rewrite of optimized memcmp.
10175 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10177         Introduce ld.so exceptions.
10178         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
10179         (_dl_exception_create, _dl_exception_create_format)
10180         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
10181         (_dl_catch_exception): Declare.
10182         (_dl_catch_error): Update comment.
10183         * elf/dl-error-skeleton.c (struct catch): Replace objname,
10184         errstring, malloced members with exception member.
10185         (_dl_out_of_memory): Remove.
10186         (fatal_error): New function, extracted from _dl_signal_error.
10187         (_dl_signal_exception, _dl_signal_cexception): New functions.
10188         (_dl_signal_error): Call _dl_exception_create to allocate an
10189         exception object.
10190         (_dl_catch_exception): New function, based on _dl_catch_error.
10191         (_dl_catch_error): Implement using _dl_catch_exception.
10192         * elf/dl-exception.c: New file.
10193         * elf/Makefile (dl-routines): Add dl-exception.
10194         (elide-routines.os): Likewise.
10195         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
10196         _dl_exception_create_format, _dl_exception_free.
10197         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
10198         _dl_signal_exception.
10199         * elf/dl-lookup.c (make_string): Remove.
10200         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
10201         _dl_signal_cexception, _dl_exception_free.
10202         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
10203         _dl_signal_exception.
10204         * elf/dl-sym.c (do_sym): Likewise.
10205         * elf/dl-version.c (make_string): Remove.
10206         (match_symbol): Use _dl_exception_create_format,
10207         _dl_signal_cexception, _dl_exception_free.
10208         (_dl_check_map_versions): Likewise.
10209         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
10210         _dl_catch_exception.
10211         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
10212         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
10213         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
10214         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
10215         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
10216         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
10217         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
10218         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
10219         Likewise.
10220         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
10221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
10222         (ld.so): Likewise.
10223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
10224         (ld.so): Likewise.
10225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
10226         Likewise.
10227         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
10228         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
10229         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
10230         Likewise.
10231         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
10232         Likewise.
10233         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
10235 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10237         * inet/net-internal.h (__inet6_scopeid_pton): Remove
10238         attribute_hidden, internal_function.
10239         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
10240         internal_function.
10242 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10244         * malloc/malloc.c (get_max_fast): Reimplement as an inline
10245         function which calls __builtin_unreachable.
10247 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
10249         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
10250         Indian monetary formatting
10251         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
10252         test cases.
10254 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
10256         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
10257         Fix typo in comment.
10259         [BZ #21928]
10260         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
10261         PTRACE_SEIZE_DEVEL): Remove.
10262         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
10263         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10264         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10265         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10266         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10268 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
10270         * posix/bits/types.h (__qaddr_t): Remove.
10272         [BZ #21457]
10273         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
10274         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10275         __glibc_reserved1.
10276         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
10277         (ucontext_t): Use __ctx with uc_flags.
10278         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
10279         (__ctxt): Likewise.
10280         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10281         __glibc_reserved1.
10282         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
10283         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10284         __glibc_reserved1.
10285         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
10286         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10287         __glibc_reserved1.
10288         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
10289         macro.
10290         (ucontext_t): Use __ctx with uc_flags.
10291         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
10292         (ucontext_t): Use __ctx with uc_flags.
10293         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
10294         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
10295         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
10296         (ucontext_t): Use __ctx with uc_flags.
10297         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
10298         undefine further down.
10299         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10300         __glibc_reserved1.
10301         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
10302         undefine further down.
10303         (ucontext_t): Use __ctx with uc_flags.
10304         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
10305         undefine further down.
10306         (ucontext_t): Use __ctx with uc_flags.
10307         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
10308         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
10309         Rename uc_pad to __glibc_reserved1.
10310         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
10311         undefine further down.
10312         (ucontext_t): Use __ctx with uc_flags.
10313         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
10314         further down.
10315         (ucontext_t): Use __ctx with uc_flags.
10316         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
10317         __ctx with uc_flags.
10318         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
10319         (ucontext_t): Use __ctx with uc_flags.
10320         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
10321         __ctx with uc_flags.
10323 2017-08-09  Florian Weimer  <fweimer@redhat.com>
10325         [BZ #21932]
10326         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
10327         before early return.
10329 2017-08-09  Andreas Schwab  <schwab@suse.de>
10331         [BZ #21041]
10332         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
10333         renamed alias.
10335         [BZ #21041]
10336         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
10337         tst-compat-forwarder.
10338         (modules-names): Add tst-compat-forwarder-mod.
10339         ($(objpfx)tst-compat-forwarder): Depend on
10340         $(objpfx)tst-compat-forwarder-mod.so.
10341         * nptl/tst-compat-forwarder.c: New file.
10342         * nptl/tst-compat-forwarder-mod.c: New file.
10344 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10346         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
10347         comments.
10349         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
10350         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10351         memcpy_falkor.
10352         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
10353         Bump.
10354         (__libc_ifunc_impl_list): Add __memcpy_falkor.
10355         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
10356         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
10357         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
10358         Add falkor.
10359         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
10360         New macro.
10362 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10364         [BZ #759]
10365         * manual/setjmp.texi (getcontex): Document uc_stack value
10366         compatibility differences.
10368 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
10370         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
10371         (old_malloc_hook): Likewise.
10372         (old_memalign_hook): Likewise.
10373         (old_realloc_hook): Likewise.
10374         (struct hdr): Likewise.
10375         (flood): Likewise.
10376         (freehook): Likewise.
10377         (mallochook): Likewise.
10378         (memalignhook): Likewise.
10379         (reallochook): Likewise.
10380         (mprobe): Likewise.
10381         * malloc/mtrace.c (mallwatch): Likewise.
10382         (tr_old_free_hook): Likewise.
10383         (tr_old_malloc_hook): Likewise.
10384         (tr_old_realloc_hook): Likewise.
10385         (tr_old_memalign_hook): Likewise.
10386         (tr_where): Likewise.
10387         (lock_and_info): Likewise.
10388         (tr_freehook): Likewise.
10389         (tr_mallochook): Likewise.
10390         (tr_reallochook): Likewise.
10391         (tr_memalignhook): Likewise.
10392         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
10393         * misc/mmap.c (__mmap): Likewise.
10394         * misc/mmap64.c (__mmap64): Likewise.
10395         * misc/mprotect.c (__mprotect): Likewise.
10396         * misc/msync.c (msync): Likewise.
10397         * misc/munmap.c (__munmap): Likewise.
10398         * posix/posix_madvise.c (posix_madvise): Likewise.
10399         * socket/send.c (__send): Likewise.
10400         * socket/sendto.c (__sendto): Likewise.
10401         * socket/setsockopt.c (__setsockopt): Likewise.
10402         * string/memcmp.c (__ptr_t): Remove macro.
10403         (MEMCMP): Use void * instead of ptr_t.
10404         * string/memrchr.c (__ptr_t): Remove macro.
10405         (__memrchr): Use void * instead of ptr_t.
10406         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
10407         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
10408         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
10409         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
10410         * sysdeps/mach/msync.c (msync): Likewise.
10411         * sysdeps/mach/munmap.c (__munmap): Likewise.
10412         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
10413         Likewise.
10414         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
10415         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
10416         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
10417         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
10418         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10419         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
10420         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
10421         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
10422         Likewise.
10423         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
10424         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
10425         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
10426         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
10427         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
10428         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
10429         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
10430         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
10431         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
10432         Likewise.
10433         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
10434         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
10435         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
10436         (MEMCMP): Use void * instead of ptr_t.
10437         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
10438         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
10440 2017-08-08  Florian Weimer  <fweimer@redhat.com>
10442         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
10443         return statement.
10445 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10447         [BZ #21913]
10448         * csu/libc-tls.c: Include <startup.h> first.
10449         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
10450         * elf/dl-tunables.c: Include <startup.h> first.
10451         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
10452         * sysdeps/generic/startup.h: New file.
10453         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
10454         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
10455         (I386_USE_SYSENTER): New.  Defined to 0.
10457 2017-08-08  Andreas Schwab  <schwab@suse.de>
10459         [BZ #21041]
10460         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
10461         * nptl/pt-system.c (system): Likewise.
10463 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10465         [BZ #21780]
10466         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
10467         EOPNOTSUPP.
10468         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
10469         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
10470         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
10471         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
10472         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
10473         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
10474         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
10476 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
10478         [BZ #21899]
10479         * bits/sigaction.h (struct sigaction): Define sa_handler and
10480         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
10481         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10482         [__USE_XOPEN_EXTENDED].
10483         (SA_RESTART): Likewise.
10484         (SA_NODEFER): Likewise.
10485         (SA_RESETHAND): Likewise.
10486         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
10487         (struct sigaction): Define sa_handler and sa_sigaction using union
10488         also for [__USE_XOPEN_EXTENDED].
10489         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10490         [__USE_XOPEN_EXTENDED].
10491         (SA_RESTART): Likewise.
10492         (SA_NODEFER): Likewise.
10493         (SA_RESETHAND): Likewise.
10494         * sysdeps/unix/sysv/linux/bits/sigaction.h
10495         (struct sigaction): Define sa_handler and sa_sigaction using union
10496         also for [__USE_XOPEN_EXTENDED].
10497         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10498         [__USE_XOPEN_EXTENDED].
10499         (SA_RESTART): Likewise.
10500         (SA_NODEFER): Likewise.
10501         (SA_RESETHAND): Likewise.
10502         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
10503         (struct sigaction): Define sa_handler and sa_sigaction using union
10504         also for [__USE_XOPEN_EXTENDED].
10505         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10506         [__USE_XOPEN_EXTENDED].
10507         (SA_RESTART): Likewise.
10508         (SA_NODEFER): Likewise.
10509         (SA_RESETHAND): Likewise.
10510         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
10511         (struct sigaction): Define sa_handler and sa_sigaction using union
10512         also for [__USE_XOPEN_EXTENDED].
10513         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10514         [__USE_XOPEN_EXTENDED].
10515         (SA_RESTART): Likewise.
10516         (SA_NODEFER): Likewise.
10517         (SA_RESETHAND): Likewise.
10518         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
10519         (struct sigaction): Define sa_handler and sa_sigaction using union
10520         also for [__USE_XOPEN_EXTENDED].
10521         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10522         [__USE_XOPEN_EXTENDED].
10523         (SA_RESTART): Likewise.
10524         (SA_NODEFER): Likewise.
10525         (SA_RESETHAND): Likewise.
10526         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
10527         (struct sigaction): Define sa_handler and sa_sigaction using union
10528         also for [__USE_XOPEN_EXTENDED].
10529         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10530         [__USE_XOPEN_EXTENDED].
10531         (SA_RESTART): Likewise.
10532         (SA_NODEFER): Likewise.
10533         (SA_RESETHAND): Likewise.
10534         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
10535         (struct sigaction): Define sa_handler and sa_sigaction using union
10536         also for [__USE_XOPEN_EXTENDED].
10537         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10538         [__USE_XOPEN_EXTENDED].
10539         (SA_RESTART): Likewise.
10540         (SA_NODEFER): Likewise.  Define directly rather than as alias.
10541         (SA_RESETHAND): Likewise.
10542         (SA_INTERRUPT): Define only for [__USE_MISC].
10543         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
10544         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
10545         [__USE_MISC].
10546         (SA_STACK): Define only for [__USE_MISC].
10547         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
10548         (struct sigaction): Define sa_handler and sa_sigaction using union
10549         also for [__USE_XOPEN_EXTENDED].
10550         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10551         [__USE_XOPEN_EXTENDED].
10552         (SA_RESTART): Likewise.
10553         (SA_NODEFER): Likewise.
10554         (SA_RESETHAND): Likewise.
10555         (SA_NOPTRACE): Define only for [__USE_MISC].
10557         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
10558         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
10559         (struct catalog_info): Likewise.
10560         * inet/htontest.c (lo): Likewise.
10561         (foo): Likewise.
10562         * inet/inet_lnaof.c (inet_lnaof): Likewise.
10563         * inet/inet_net.c (inet_network): Likewise.
10564         * inet/inet_netof.c (inet_netof): Likewise.
10565         * inet/rcmd.c (__ivaliduser): Likewise.
10566         (iruserok): Likewise.
10567         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
10568         * locale/programs/locale-spec.c (locale_special): Likewise.
10569         * nis/nis_findserv.c (struct findserv_req): Likewise.
10570         (__nis_findfastest_with_timeout): Likewise.
10571         * nss/test-netdb.c (test_network): Likewise.
10572         * resolv/inet_neta.c (inet_neta): Likewise.
10573         * resolv/ns_date.c (ns_datetosecs): Likewise.
10574         (SECS_PER_DAY): Likewise.
10575         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
10576         Likewise.
10577         * resolv/res_comp.c (__putlong): Likewise.
10578         (__putshort): Likewise.
10579         (_getlong): Likewise.
10580         (_getshort): Likewise.
10581         * resolv/res_debug.c (p_time): Likewise.
10582         (precsize_ntoa): Likewise.
10583         (precsize_aton): Likewise.
10584         (latlon2ul): Likewise.
10585         (loc_aton): Likewise.
10586         (loc_ntoa): Likewise.
10587         * resolv/res_hconf.c (struct netaddr): Likewise.
10588         (_res_hconf_reorder_addrs): Likewise.
10589         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
10590         (clnttcp_control): Likewise.
10591         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10592         (clntudp_control): Likewise.
10593         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
10594         (clntunix_control): Likewise.
10595         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
10596         * sunrpc/rpc/auth.h (union des_block): Likewise.
10597         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
10598         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
10599         (xdrrec_create): Likewise.
10600         (xdrrec_endofrecord): Likewise.
10601         (flush_out): Likewise.
10602         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
10603         (xdrstdio_putlong): Likewise.
10604         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
10605         Likewise.
10607         * misc/sys/cdefs.h (__long_double_t): Remove.
10608         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
10609         instead of __long_double_t,
10610         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
10612 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10614         * benchtests/scripts/compare_strings.py: Avoid display error when
10615         running on a text terminal.
10617         * benchtests/scripts/compare_strings.py (main): Add an
10618         optional -base option.
10619         (process_results): New argument base_func.
10621         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
10622         hardcoding memcpy.
10623         * benchtests/bench-memcpy-large.c (test_name): Likewise.
10624         * benchtests/bench-memcpy-random.c (test_name): Likewise.
10626 2017-08-07  Andreas Schwab  <schwab@suse.de>
10628         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
10629         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
10630         * intl/Makefile ($(objpfx)tst-gettext.out)
10631         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
10632         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
10633         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
10634         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
10635         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
10636         * posix/Makefile ($(objpfx)globtest.out)
10637         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
10638         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
10639         ($(objpfx)tst-printf.out): Likewise.
10640         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
10641         ($(objpfx)tst-setcontext3.out): Likewise.
10643 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10645         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10646         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
10647         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
10648         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
10649         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
10650         and mptan-fma.
10651         (CFLAGS-doasin-fma.c): New.
10652         (CFLAGS-dosincos-fma.c): Likewise.
10653         (CFLAGS-e_asin-fma.c): Likewise.
10654         (CFLAGS-e_atan2-fma.c): Likewise.
10655         (CFLAGS-e_exp-fma.c): Likewise.
10656         (CFLAGS-e_log-fma.c): Likewise.
10657         (CFLAGS-e_pow-fma.c): Likewise.
10658         (CFLAGS-halfulp-fma.c): Likewise.
10659         (CFLAGS-mpa-fma.c): Likewise.
10660         (CFLAGS-mpatan-fma.c): Likewise.
10661         (CFLAGS-mpatan2-fma.c): Likewise.
10662         (CFLAGS-mpexp-fma.c): Likewise.
10663         (CFLAGS-mplog-fma.c): Likewise.
10664         (CFLAGS-mpsqrt-fma.c): Likewise.
10665         (CFLAGS-mptan-fma.c): Likewise.
10666         (CFLAGS-s_atan-fma.c): Likewise.
10667         (CFLAGS-sincos32-fma.c): Likewise.
10668         (CFLAGS-slowexp-fma.c): Likewise.
10669         (CFLAGS-slowpow-fma.c): Likewise.
10670         (CFLAGS-s_sin-fma.c): Likewise.
10671         (CFLAGS-s_tan-fma.c): Likewise.
10672         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
10673         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
10674         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
10675         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
10676         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
10677         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10678         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
10679         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
10680         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
10681         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
10682         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
10683         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
10684         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
10685         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10686         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10687         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
10688         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
10689         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
10690         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
10691         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
10692         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
10693         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10694         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10695         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
10696         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10697         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10698         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10699         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
10700         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10701         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10702         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10704 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
10706         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
10707         (min_of_type_f): New macro.
10708         (min_of_type_): Likewise.
10709         (min_of_type_l): Likewise.
10710         (min_of_type_f128): Likewise.
10711         (min_of_type): Define using __MATH_TG and taking an expression
10712         argument.
10713         (math_check_force_underflow): Pass expression instead of type to
10714         min_of_type.
10715         (math_check_force_underflow_nonneg): Likewise.
10717 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10719         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10720         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10721         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10723 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10725         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10726         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10727         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10728         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10729         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10730         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10731         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10732         memmove_chk-nonshared and memset_chk-nonshared
10733         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10734         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10735         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10736         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10737         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10738         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10739         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10740         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10741         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10742         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10743         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10744         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10745         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10746         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10747         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10748         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10749         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10750         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10751         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10752         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10753         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10754         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10755         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10756         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10757         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10758         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10759         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10760         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10761         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10762         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10763         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10764         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10765         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10766         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10767         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10768         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10769         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10770         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10771         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10772         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10773         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10774         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10775         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10776         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10777         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10778         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10779         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10780         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10781         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10782         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10783         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10784         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10785         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10786         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10787         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10788         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10789         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10790         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10791         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10792         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10793         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10794         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10795         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10796         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10797         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10798         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10799         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10800         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10801         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10802         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10803         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10804         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10805         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10806         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10807         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10808         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10809         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10810         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10811         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10812         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10813         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10814         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10815         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10816         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10817         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10818         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10819         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10820         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10821         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10822         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10823         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10824         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10825         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10826         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10827         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10828         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10829         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10830         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10831         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10832         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10833         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10834         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10835         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10836         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10837         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10838         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10839         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10840         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10842 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10844         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10845         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10846         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10847         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10848         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10849         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10850         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10851         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10852         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10853         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10854         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10855         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10856         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10857         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10858         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10859         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10860         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10861         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10862         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10863         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10864         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10865         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10866         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10867         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10868         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10869         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10870         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10871         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10872         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10873         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10874         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10875         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10876         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10877         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10878         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10879         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10880         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10881         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10882         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10883         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10884         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10885         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10886         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10887         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10888         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10889         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10890         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10891         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10892         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10893         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10894         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10895         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10896         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10897         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10898         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10899         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10900         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10901         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10902         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10903         ...
10904         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10905         Don't include <sysdep.h> nor <init-arch.h>.
10906         (_ZGVbN2v_cos): Removed.
10907         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10908         ...
10909         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10910         Don't include <sysdep.h> nor <init-arch.h>.
10911         (_ZGVdN4v_cos): Removed.
10912         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10913         ...
10914         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10915         Don't include <sysdep.h> nor <init-arch.h>.
10916         (_ZGVeN8v_cos): Removed.
10917         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10918         ...
10919         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10920         Don't include <sysdep.h> nor <init-arch.h>.
10921         (_ZGVbN2v_exp): Removed.
10922         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10923         ...
10924         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10925         Don't include <sysdep.h> nor <init-arch.h>.
10926         (_ZGVdN4v_exp): Removed.
10927         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10928         ...
10929         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10930         Don't include <sysdep.h> nor <init-arch.h>.
10931         (_ZGVeN8v_exp): Removed.
10932         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10933         ...
10934         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10935         Don't include <sysdep.h> nor <init-arch.h>.
10936         (_ZGVbN2v_log): Removed.
10937         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10938         ...
10939         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10940         Don't include <sysdep.h> nor <init-arch.h>.
10941         (_ZGVdN4v_log): Removed.
10942         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10943         ...
10944         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10945         Don't include <sysdep.h> nor <init-arch.h>.
10946         (_ZGVeN8v_log): Removed.
10947         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10948         ...
10949         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10950         Don't include <sysdep.h> nor <init-arch.h>.
10951         (_ZGVbN2vv_pow): Removed.
10952         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10953         ...
10954         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10955         Don't include <sysdep.h> nor <init-arch.h>.
10956         (_ZGVdN4vv_pow): Removed.
10957         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10958         ...
10959         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10960         Don't include <sysdep.h> nor <init-arch.h>.
10961         (_ZGVeN8vv_pow): Removed.
10962         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10963         ...
10964         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10965         Don't include <sysdep.h> nor <init-arch.h>.
10966         (_ZGVbN2v_sin): Removed.
10967         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10968         ...
10969         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10970         Don't include <sysdep.h> nor <init-arch.h>.
10971         (_ZGVbN4v_sin): Removed.
10972         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10973         ...
10974         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10975         Don't include <sysdep.h> nor <init-arch.h>.
10976         (_ZGVbN8v_sin): Removed.
10977         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10978         ...
10979         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10980         Don't include <sysdep.h> nor <init-arch.h>.
10981         (_ZGVbN2vvv_sincos): Removed.
10982         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10983         ...
10984         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10985         Don't include <sysdep.h> nor <init-arch.h>.
10986         (_ZGVdN4vvv_sincos): Removed.
10987         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10988         ...
10989         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10990         Don't include <sysdep.h> nor <init-arch.h>.
10991         (_ZGVeN8vvv_sincos): Removed.
10992         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10993         ...
10994         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10995         Don't include <sysdep.h> nor <init-arch.h>.
10996         (_ZGVeN16v_cosf): Removed.
10997         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10998         ...
10999         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
11000         Don't include <sysdep.h> nor <init-arch.h>.
11001         (_ZGVbN4v_cosf): Removed.
11002         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
11003         ...
11004         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
11005         Don't include <sysdep.h> nor <init-arch.h>.
11006         (_ZGVdN8v_cosf): Removed.
11007         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
11008         ...
11009         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
11010         Don't include <sysdep.h> nor <init-arch.h>.
11011         (_ZGVeN16v_expf): Removed.
11012         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
11013         ...
11014         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
11015         Don't include <sysdep.h> nor <init-arch.h>.
11016         (_ZGVbN4v_expf): Removed.
11017         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
11018         ...
11019         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
11020         Don't include <sysdep.h> nor <init-arch.h>.
11021         (_ZGVdN8v_expf): Removed.
11022         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
11023         ...
11024         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
11025         Don't include <sysdep.h> nor <init-arch.h>.
11026         (_ZGVeN16v_logf): Removed.
11027         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
11028         ...
11029         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
11030         Don't include <sysdep.h> nor <init-arch.h>.
11031         (_ZGVbN4v_logf): Removed.
11032         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
11033         ...
11034         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
11035         Don't include <sysdep.h> nor <init-arch.h>.
11036         (_ZGVdN8v_logf): Removed.
11037         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
11038         ...
11039         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
11040         Don't include <sysdep.h> nor <init-arch.h>.
11041         (_ZGVeN16vv_powf): Removed.
11042         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
11043         ...
11044         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
11045         Don't include <sysdep.h> nor <init-arch.h>.
11046         (_ZGVbN4vv_powf): Removed.
11047         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
11048         ...
11049         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
11050         Don't include <sysdep.h> nor <init-arch.h>.
11051         (_ZGVdN8vv_powf): Removed.
11052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
11053         ...
11054         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
11055         Don't include <sysdep.h> nor <init-arch.h>.
11056         (_ZGVeN16vvv_sincosf): Removed.
11057         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
11058         ...
11059         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
11060         Don't include <sysdep.h> nor <init-arch.h>.
11061         (_ZGVbN4vvv_sincosf): Removed.
11062         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
11063         ...
11064         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
11065         Don't include <sysdep.h> nor <init-arch.h>.
11066         (_ZGVdN8vvv_sincosf): Removed.
11067         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
11068         ...
11069         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
11070         Don't include <sysdep.h> nor <init-arch.h>.
11071         (_ZGVeN16v_sinf): Removed.
11072         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
11073         ...
11074         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
11075         Don't include <sysdep.h> nor <init-arch.h>.
11076         (_ZGVbN4v_sinf): Removed.
11077         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
11078         ...
11079         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
11080         Don't include <sysdep.h> nor <init-arch.h>.
11081         (_ZGVdN8v_sinf): Removed.
11083 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11085         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11086         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
11087         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
11088         s_rint-sse4_1 and s_rintf-sse4_1.
11089         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
11090         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
11091         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
11092         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
11093         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
11094         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
11095         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
11096         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
11097         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
11098         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
11099         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
11100         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11101         (__ceil): Removed.
11102         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
11103         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
11104         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11105         (__ceilf): Removed.
11106         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
11107         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
11108         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11109         (__floor): Removed.
11110         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
11111         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
11112         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11113         (__floorf): Removed.
11114         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
11115         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
11116         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11117         (__nearbyint): Removed.
11118         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
11119         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
11120         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11121         (__nearbyintf): Removed.
11122         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
11123         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
11124         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11125         (__rint): Removed.
11126         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
11127         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
11128         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11129         (__rintf): Removed.
11131 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11133         * sysdeps/i386/start.S (_start): Check Check PIC instead of
11134         SHARED.  Avoid dynamic relocation against main in static PIE.
11136 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11138         [BZ #21815]
11139         * elf/Makefile (CFLAGS-tst-prelink.c): New.
11140         (LDFLAGS-tst-prelink): Likewise.
11142 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11144         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
11145         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
11146         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
11147         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
11148         (INTERNAL_SYSCALL_NCS): Likewise.
11149         (LOADARGS_1): Likewise.
11150         (LOADARGS_5): Likewise.
11151         (RESTOREARGS_1): Likewise.
11152         (RESTOREARGS_5): Likewise.
11154 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11156         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
11157         (MEMPCPY_SYMBOL): Likewise.
11158         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11159         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
11160         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
11161         in libc.a.
11162         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11163         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
11164         Likewise.
11165         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
11166         (__hidden_ver1): Don't use in libc.a.
11167         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
11168         (__mempcpy): Don't create a weak alias in libc.a.
11169         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
11170         libc.a.
11171         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
11172         (__hidden_ver1): Don't use in libc.a.
11174 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11176         * config.make.in (have-insert): New.
11177         * configure.ac (libc_cv_insert): New.  Set to yes if linker
11178         supports INSERT in linker script.
11179         (AC_SUBST(libc_cv_insert): New.
11180         * configure: Regenerated.
11181         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
11182         if $(have-insert) == yes.
11184 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11186         * elf/Makefile (tests): Add vismain only if
11187         $(have-protected-data) == yes.
11188         (tests-pie): Likewise.
11190 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11192         [BZ #21871]
11193         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11194         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
11196 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11198         [BZ #21790]
11199         * sysdeps/i386/i586/memset.S
11200         (__memset_zero_constant_len_parameter): Removed.
11201         * sysdeps/i386/i686/memset.S
11202         (__memset_zero_constant_len_parameter): Likewise.
11203         * sysdeps/i386/i686/multiarch/memset_chk.S
11204         (__memset_zero_constant_len_parameter): Likewise.
11205         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
11206         Likewise.
11208 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
11210         * stdlib/getentropy.c (getentropy): Change return type to int.
11212 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
11214         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
11216 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
11218         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
11219         u_intN_t.
11220         * math/s_nexttowardf.c (__nexttowardf): Likewise.
11221         * sysdeps/generic/math_private.h (ieee_double_shape_type):
11222         Likewise.
11223         (ieee_float_shape_type): Likewise.
11224         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
11225         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
11226         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
11227         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11228         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11229         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
11230         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
11231         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
11232         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11233         Likewise.
11234         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
11235         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11236         (__ieee754_yn): Likewise.
11237         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
11238         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
11239         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
11240         Likewise.
11241         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11242         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
11243         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
11244         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
11245         (__erfc): Likewise.
11246         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11247         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
11248         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
11249         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
11250         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
11251         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
11252         Likewise.
11253         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11254         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
11255         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11256         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
11257         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
11258         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
11259         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
11260         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
11261         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
11262         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
11263         (__issignaling): Likewise.
11264         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
11265         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
11266         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11267         Likewise.
11268         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11269         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
11270         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
11271         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
11272         Likewise.
11273         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
11274         Likewise.
11275         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
11276         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
11277         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
11278         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11279         (__erfcf): Likewise.
11280         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11281         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11282         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
11283         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
11284         Likewise.
11285         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
11286         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
11287         Likewise.
11288         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11289         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
11290         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11291         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
11292         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
11293         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
11294         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
11295         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
11296         Likewise.
11297         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
11298         Likewise.
11299         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11300         Likewise.
11301         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
11302         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11303         Likewise.
11304         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11305         Likewise.
11306         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11307         (__ieee754_ynl): Likewise.
11308         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11309         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
11310         Likewise.
11311         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
11312         Likewise.
11313         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11314         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
11315         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11316         Likewise.
11317         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11318         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
11319         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
11320         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
11321         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
11322         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11323         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
11324         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
11325         Likewise.
11326         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
11327         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
11328         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
11329         Likewise.
11330         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11331         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
11332         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11333         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
11334         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
11335         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
11336         Likewise.
11337         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
11338         Likewise.
11339         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11340         Likewise.
11341         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11342         Likewise.
11343         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
11344         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
11345         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11346         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
11347         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11348         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
11349         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
11350         Likewise.
11351         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11352         Likewise.
11353         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11354         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11355         Likewise.
11356         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11357         (__ieee754_remainderl): Likewise.
11358         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11359         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11360         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
11361         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
11362         Likewise.
11363         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
11364         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11365         Likewise.
11366         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11367         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
11368         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11369         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11370         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
11371         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11372         Likewise.
11373         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11374         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
11375         (__ieee754_y0l): Likewise.
11376         (pzero): Likewise.
11377         (qzero): Likewise.
11378         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11379         (__ieee754_y1l): Likewise.
11380         (pone): Likewise.
11381         (qone): Likewise.
11382         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11383         (__ieee754_ynl): Likewise.
11384         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
11385         (__ieee754_lgammal_r): Likewise.
11386         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
11387         Likewise.
11388         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11389         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
11390         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11391         (__erfcl): Likewise.
11392         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
11393         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
11394         Likewise.
11395         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11396         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
11397         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11398         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
11399         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
11400         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11401         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11402         Likewise.
11403         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
11404         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
11405         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
11406         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
11407         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11408         Likewise.
11409         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
11410         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
11411         Likewise.
11412         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
11413         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
11414         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
11415         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
11416         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11418 2017-08-03  Florian Weimer  <fweimer@redhat.com>
11420         [BZ #21885]
11421         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
11422         on memory allocation failure.
11424 2017-08-03  Alan Modra  <amodra@gmail.com>
11426         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
11427         tst-tlsopt-powerpc.c with function name change and no test harness.
11428         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
11429         Call tls_get_addr_opt_test.
11430         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
11431         (modules-names): Add mod-tlsopt-powerpc.
11432         (mod-tlsopt-powerpc.so-no-z-defs): Define.
11433         (tst-tlsopt-powerpc): Depend on .so.
11434         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
11435         define.  Expand use in TLS_GD and TLS_LD.
11437 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11439         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
11440         function.
11441         * sysdeps/posix/shm_open.c: Include <pthread.h>.
11443 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11445         [BZ #21686]
11446         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
11447         comparing size with that of double.
11448         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11449         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11450         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11451         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11452         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11453         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
11454         unsigned __int128 types.
11456 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
11458         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
11459         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
11460         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
11461         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
11462         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
11464 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11466         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
11468 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11470         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
11471         of SHARED.
11472         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
11473         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11474         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11475         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11476         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11477         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11478         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11480 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11482         [BZ #21685]
11483         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
11484         bit-field expressions passed to sizeof or typeof.
11485         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11486         (__TGMATH_F128): Likewise.
11487         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11488         (__TGMATH_CF128): Likewise.
11489         (__TGMATH_UNARY_REAL_ONLY): Likewise.
11490         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
11491         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
11492         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
11493         (__TGMATH_BINARY_REAL_ONLY): Likewise.
11494         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11495         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11496         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11497         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11498         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
11499         (__TGMATH_UNARY_REAL_IMAG): Likewise.
11500         (__TGMATH_UNARY_IMAG): Likewise.
11501         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
11502         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11503         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
11504         type.
11505         (define_vars_for_type): Handle bit_field type specially.
11506         (Tests.__init__): Declare structure with bit-field element.
11508 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11510         [BZ #21791]
11511         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
11512         (MEMCPY_CHK): Define only if SHARED is defined.
11513         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
11514         Likewise.
11515         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
11516         Likewise.
11518 See ChangeLog.18 for earlier changes.