sparc: Implement memcpy/mempcpy ifunc selection in C
[glibc.git] / ChangeLog
blob2b2baae0158b04b4ff943e68014c800a7d125d2f
1 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
4         file.
5         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
6         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
7         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
8         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
9         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
10         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
11         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
12         macro.
13         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
15         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
16         (sysdep_routines): Add memcpy-ultra1.
17         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
18         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
22         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23         (cfloat_versions): Take function argument without trailing 'f'.
24         Call libm_alias_float_other.
25         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26         * sysdeps/alpha/fpu/cargf.c: Likewise.
27         * sysdeps/alpha/fpu/cimagf.c: Likewise.
28         * sysdeps/alpha/fpu/conjf.c: Likewise.
29         * sysdeps/alpha/fpu/crealf.c: Likewise.
30         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
31         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
32         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
33         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
34         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
35         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
36         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
37         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
38         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
39         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
40         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
41         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
42         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
43         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
44         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
45         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
46         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
47         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
48         (clog10f): Use libm_alias_float_other.
49         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
50         (ceilf): Define using libm_alias_float.
51         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
52         (copysignf): Define using libm_alias_float.
53         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
54         (fabsf): Define using libm_alias_float.
55         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
56         (floorf): Define using libm_alias_float.
57         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
58         (fmaxf): Define using libm_alias_float.
59         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
60         (fminf): Define using libm_alias_float.
61         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
62         (lrintf): Define using libm_alias_float.
63         (llrintf): Likewise.
64         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
65         (lroundf): Define using libm_alias_float.
66         (llroundf): Likewise.
67         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
68         (rintf): Define using libm_alias_float.
69         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
70         (truncf): Define using libm_alias_float.
72         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
73         (ceilf): Define using libm_alias_float.
74         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
75         (floorf): Define using libm_alias_float.
76         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
77         (fmaf): Define using libm_alias_float.
78         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
79         (fmaxf): Define using libm_alias_float.
80         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
81         (fminf): Define using libm_alias_float.
82         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
83         (llrintf): Define using libm_alias_float.
84         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
85         (llroundf): Define using libm_alias_float.
86         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
87         (lrintf): Define using libm_alias_float.
88         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
89         (lroundf): Define using libm_alias_float.
90         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
91         <libm-alias-float.h>.
92         (nearbyintf): Define using libm_alias_float.
93         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
94         (rintf): Define using libm_alias_float.
95         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
96         (roundf): Define using libm_alias_float.
97         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
98         (truncf): Define using libm_alias_float.
100         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
101         (ceil): Define using libm_alias_double.
102         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
103         (copysign): Define using libm_alias_double.
104         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
105         (fabs): Define using libm_alias_double.
106         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
107         (floor): Define using libm_alias_double.
108         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
109         (fmax): Define using libm_alias_double.
110         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
111         (fmin): Define using libm_alias_double.
112         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
113         (lrint): Define using libm_alias_double.
114         (llrint): Likewise.
115         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
116         (lround): Define using libm_alias_double.
117         (llround): Likewise.
118         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
119         (rint): Define using libm_alias_double.
120         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
121         (trunc): Define using libm_alias_double.
123         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
124         (libm_alias_double_r): Add semicolon after weak_alias call.
126 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
128         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
129         (ceil): Define using libm_alias_double.
130         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
131         (floor): Define using libm_alias_double.
132         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
133         (fma): Define using libm_alias_double.
134         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
135         (fmax): Define using libm_alias_double.
136         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
137         (fmin): Define using libm_alias_double.
138         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
139         (llrint): Define using libm_alias_double.
140         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
141         (llround): Define using libm_alias_double.
142         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
143         (lrint): Define using libm_alias_double.
144         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
145         (lround): Define using libm_alias_double.
146         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
147         (nearbyint): Define using libm_alias_double.
148         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
149         (rint): Define using libm_alias_double.
150         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
151         (round): Define using libm_alias_double.
152         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
153         (trunc): Define using libm_alias_double.
155 2017-11-27  Florian Weimer  <fweimer@redhat.com>
157         * sysdeps/unix/sysv/linux/mlock2.c: New file.
158         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
159         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
160         (tests): Add tst-mlock2.
161         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
162         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
163         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
164         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
165         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
166         for mlock.  Document mlock2.
168 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
170         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
171         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
172         Likewise.
173         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
174         Likewise.
175         * sysdeps/x86/Makeconfig: New file.
176         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
177         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
178         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
179         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
180         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
181         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
182         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
183         Likewise.
184         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
185         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
186         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
187         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
188         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
189         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
190         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
191         * manual/math.texi (Mathematics): Document support for _Float64x.
192         * math/Versions (GLIBC_2.27): Add _Float64x functions.
193         * stdlib/Versions (GLIBC_2.27): Likewise.
194         * wcsmbs/Versions (GLIBC_2.27): Likewise.
195         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
196         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
197         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
198         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
199         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
200         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
201         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
202         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
203         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
204         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
205         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
207         Likewise.
208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
209         Likewise.
210         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
211         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
212         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
213         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
214         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
215         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
216         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
217         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
218         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
219         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
220         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
221         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
222         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
223         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
225 2017-11-27  Andreas Schwab  <schwab@suse.de>
227         * elf/Makefile (dl-routines): Add dl-sort-maps.
228         * elf/dl-sort-maps.c: New file.
229         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
230         (_dl_sort_maps): Declare.
231         * elf/dl-fini.c (_dl_sort_fini): Remove.
232         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
233         * elf/dl-close.c (_dl_close_worker): Likewise.
234         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
235         open-coding it.
236         * elf/dl-open.c (dl_open_worker): Likewise.
238 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
240         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
241         using libm_alias_float128.
242         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
243         Likewise.
244         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
245         Likewise.
246         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
247         (setpayloadsigf128): Likewise.
248         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
249         Likewise.
250         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
251         Likewise.
253         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
254         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
255         -mfloat128 to CFLAGS.
256         ($(foreach
257         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
258         Likewise.
259         (CFLAGS-libm-test-support-float64x.c): New variable.
260         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
261         $(f128-loader-link) to gnulib-tests.
263         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
264         (libm_alias_float128_other_r): If
265         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
266         alias.
267         (libm_alias_float128_r): Add semicolon after weak_alias call.
268         * sysdeps/generic/libm-alias-ldouble.h
269         (libm_alias_ldouble_other_r_f128): New macro.
270         (libm_alias_ldouble_other_r_f64x): Likewise.
271         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
272         and libm_alias_ldouble_other_r_f64x.
273         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
274         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
275         (libm_alias_ldouble_other_r_f128): New macro.
276         (libm_alias_ldouble_other_r_f64x): Likewise.
277         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
278         and libm_alias_ldouble_other_r_f64x.
280         * stdlib/strfroml.c: Always include <stdlib.h>.
281         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
282         undefine as macro and define as weak alias.
283         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
284         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
285         <stdlib.h>.
286         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
287         Define and later undefine as macro and define as weak alias.
289         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
290         Define and later undefine as macro.  Define as weak alias if
291         [!USE_WIDE_CHAR].
292         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
293         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
294         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
295         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
296         Define and later undefine as macro.  Define as weak alias if
297         [!USE_WIDE_CHAR].
298         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
299         Define and later undefine as macro.  Define as weak alias if
300         [USE_WIDE_CHAR].
301         * sysdeps/ieee754/float128/strtof128_l.c
302         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
303         Define and later undefine as macro.  Define as weak alias if
304         [!USE_WIDE_CHAR].
305         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
306         Define and later undefine as macro.  Define as weak alias if
307         [USE_WIDE_CHAR].
308         * sysdeps/ieee754/ldbl-128/strtold_l.c
309         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
310         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
311         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
312         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
313         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
314         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
315         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
316         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
317         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
318         * sysdeps/ieee754/ldbl-96/strtold_l.c
319         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
320         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
321         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
322         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
324         * math/test-float64x.h: New file.
325         * math/Makefile (type-float64x-yes): New variable.
326         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
328         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
329         function-like macro.
330         (min_of_type_): Likewise.
331         (min_of_type_l): Likewise.
332         (min_of_type_f128): Likewise.
333         (min_of_type): Pass () as last argument of __MATH_TG.
335         * stdlib/tst-strtod-round-skeleton.c
336         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
337         headers.
339         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
340         for combinations of long double with _Float64 and _Float64x.
342         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
343         (__DECL_SIMD_cosf32): Likewise.
344         (__DECL_SIMD_cosf64): Likewise.
345         (__DECL_SIMD_cosf32x): Likewise.
346         (__DECL_SIMD_cosf64x): Likewise.
347         (__DECL_SIMD_cosf128x): Likewise.
348         (__DECL_SIMD_sinf16): Likewise.
349         (__DECL_SIMD_sinf32): Likewise.
350         (__DECL_SIMD_sinf64): Likewise.
351         (__DECL_SIMD_sinf32x): Likewise.
352         (__DECL_SIMD_sinf64x): Likewise.
353         (__DECL_SIMD_sinf128x): Likewise.
354         (__DECL_SIMD_sincosf16): Likewise.
355         (__DECL_SIMD_sincosf32): Likewise.
356         (__DECL_SIMD_sincosf64): Likewise.
357         (__DECL_SIMD_sincosf32x): Likewise.
358         (__DECL_SIMD_sincosf64x): Likewise.
359         (__DECL_SIMD_sincosf128x): Likewise.
360         (__DECL_SIMD_logf16): Likewise.
361         (__DECL_SIMD_logf32): Likewise.
362         (__DECL_SIMD_logf64): Likewise.
363         (__DECL_SIMD_logf32x): Likewise.
364         (__DECL_SIMD_logf64x): Likewise.
365         (__DECL_SIMD_logf128x): Likewise.
366         (__DECL_SIMD_expf16): Likewise.
367         (__DECL_SIMD_expf32): Likewise.
368         (__DECL_SIMD_expf64): Likewise.
369         (__DECL_SIMD_expf32x): Likewise.
370         (__DECL_SIMD_expf64x): Likewise.
371         (__DECL_SIMD_expf128x): Likewise.
372         (__DECL_SIMD_powf16): Likewise.
373         (__DECL_SIMD_powf32): Likewise.
374         (__DECL_SIMD_powf64): Likewise.
375         (__DECL_SIMD_powf32x): Likewise.
376         (__DECL_SIMD_powf64x): Likewise.
377         (__DECL_SIMD_powf128x): Likewise.
379         * stdlib/Versions (libc): Move entries for wcstof128 and
380         wcstof128_l to ....
381         * wcsmbs/Versions (libc): ... here.
382         Include <float128-abi.h>.
384 2017-11-24  Florian Weimer  <fweimer@redhat.com>
386         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
387         bits/mman-shared.h.
388         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
389         <bits/mman-shared.h>.
390         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
391         to ...
392         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
393         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
394         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
395         <bits/mman-shared.h>.
397 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
399         [BZ #22457]
400         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
401         posix_memalign/free.
402         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
404 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
406         [BZ #22469]
407         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
408         and implement the collation rules for pl from CLDR on top of that.
409         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
410         of locales to be built for testing.
411         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
413 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
415         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
416         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
417         libm_alias_ldouble_other.
418         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
419         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
420         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
421         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
422         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
423         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
424         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
425         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
426         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
427         libm_alias_ldouble_r.
428         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
429         libm_alias_ldouble_other.
430         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
431         (log10l): Likewise.
432         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
433         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
434         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
435         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
436         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
437         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
438         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
439         (atan2l): Likewise.
440         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
441         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
442         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
443         libm_alias_ldouble.
444         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
445         (cosl): Likewise.
446         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
447         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
448         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
449         (expl): Likewise.
450         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
451         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
452         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
453         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
454         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
455         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
456         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
457         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
458         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
459         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
460         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
461         libm_alias_ldouble.
462         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
463         libm_alias_ldouble_other.
464         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
465         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
466         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
467         libm_alias_ldouble.
468         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
469         libm_alias_ldouble_other.
470         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
471         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
472         * sysdeps/ia64/fpu/w_lgammal_main.c
473         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
474         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
476 2017-11-23  Florian Weimer  <fweimer@redhat.com>
478         * malloc/malloc.c (tcache_thread_shutdown): Rename from
479         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
480         alike.  Remove freeres marker.
481         * malloc/arena.c (arena_thread_freeres): Call
482         tcache_thread_shutdown.
484 2017-11-23  Florian Weimer  <fweimer@redhat.com>
486         [BZ #22459]
487         Export nscd hash function as __nss_hash.
488         * include/nss.h (__nss_hash): Declare.
489         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
490         symbol.
491         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
492         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
493         of __nscd_hash.
494         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
495         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
496         * nss/Makefiles (routines): Add nss_hash.
497         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
498         * nss/nss_hash.c: Rename from nis/nis_hash.c.
499         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
500         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
502 2017-11-23  Florian Weimer  <fweimer@redhat.com>
504         [BZ #22478]
505         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
506         Return error code, not -1.
507         * signal/tst-sigwait-eintr.c: New file.
508         * signal/Makefile (tests): Add tst-sigwait-eintr.
510 2017-11-23  Florian Weimer  <fweimer@redhat.com>
512         Linux: Add memfd_create system call wrapper
513         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
514         tst-memfd_create.
515         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
516         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
517         [__USE_GNU] (memfd_create): Declare.
518         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
519         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
520         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
521         * sysdeps/unix/sysv/linux/**.abilist: Update.
522         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
524 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
526         * localedata/gen-locale.sh: Fix typo in variable name.
528         * resolv/res_debug.c (p_secstodate): Condition definition on
529         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
530         directly as __p_secstodate, and as a compat symbol.  Do not use
531         libresolv_hidden_def.
532         * resolv/resolv.h (p_secstodate): Remove macro and function
533         declaration.
534         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
535         using p_secstodate.
536         * include/resolv.h (__p_secstodate): Do not use
537         libresolv_hidden_proto.
538         * resolv/Makefile (tests): Move tst-p_secstodate to ....
539         (tests-internal): ... here.
540         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
541         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
542         and declare and use __p_secstodate and use compat_symbol_reference
543         in that case.
544         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
545         implementation returning 77.
547         [BZ #22463]
548         * resolv/res_debug.c: Include <libc-diag.h>.
549         (p_secstodate): Assert time_t at least as wide as u_long.  On
550         overflow, use integer seconds since the epoch as output, or use
551         "<overflow>" as output and set errno to EOVERFLOW if integer
552         seconds since the epoch would be 14 or more characters.
553         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
554         for sprintf call.
555         * resolv/tst-p_secstodate.c: New file.
556         * resolv/Makefile (tests): Add tst-p_secstodate.
557         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
559         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
560         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
561         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
563 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
565         * posix/regcomp.c (init_word_char): Add comments.
567 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
569         [BZ #22447]
570         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
571         strlen to compute length of ut_user and set trailing NUL byte of
572         result explicitly.
574 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
576         [BZ #15537]
577         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
578         using “copy "iso14651_t1"” and then implementing the
579         collation rules for lv from CLDR on top of that.
580         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
581         of locales to be built for testing.
582         * lv_LV.UTF-8.in: New file with test data to test the Latvian
583         sorting.
585 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
587         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
588         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
589         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
590         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
591         [__USE_MISC] (MADV_HWPOISON): New macro.
592         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
594 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
596         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
597         -Wmissing-braces on GCC 4.9.
599 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
601         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
602         * sysdeps/s390/s390-32/start.S (_start): Likewise
603         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
604         (thread_start): Likewise.
605         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
606         (thread_start): Likewise.
607         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
608         (__makecontext_ret): Likewise.
609         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
610         (__makecontext_ret): Likewise.
612 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
614         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
615         __wcschrnul): Remove attribute_hidden.
617 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
619         regex: don't assume uint64_t or uint32_t
620         This avoids -Werror=overflow errors for 32-bit systems in
621         the 64-bit case.  Problem reported by Joseph Myers in:
622         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
623         Also, when this code is used in Gnulib it ports to platforms
624         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
625         them, and on some 32-bit compilers there is no uint64_t.
626         Problem reported by Gianluigi Tiesi in:
627         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
628         * posix/regcomp.c (init_word_char): Don't assume that the types
629         uint64_t and uint32_t exist.  Adapted from Gnulib patch
630         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
631         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
633 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
635         * sysdeps/aarch64/memset-reg.h: New file.
636         * sysdeps/aarch64/memset.S: Use it.
637         (__memset): Rename to MEMSET macro.
638         [ZVA_MACRO]: Use zva_macro.
639         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
640         Add memset_generic and memset_falkor.
641         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
642         (__libc_ifunc_impl_list): Add memset ifuncs.
643         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
644         local variable zva_size.
645         * sysdeps/aarch64/multiarch/memset.c: New file.
646         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
647         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
648         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
649         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
650         (DCZID_DZP_MASK): New macro.
651         (DCZID_BS_MASK): Likewise.
652         (init_cpu_features): Read and set zva_size.
653         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
654         (struct cpu_features): New member zva_size.
656         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
657         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
658         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
660         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
661         backwards.  Fix timing computation.
662         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
663         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
664         on memset by N at a time.  Fix timing computation.
666 2017-11-20  Florian Weimer  <fweimer@redhat.com>
668         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
669         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
671 2017-11-19  Florian Weimer  <fweimer@redhat.com>
673         manual: Document mprotect
674         * manual/memory.texi (Memory Protection): New section.
675         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
676         documentation of PROT_* flags and reference the Memory Protection
677         section instead.
679 2017-11-19  Florian Weimer  <fweimer@redhat.com>
681         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
682         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
683         (Scatter-Gather): ... to here.  Remove misleading comment.
685 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
687         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
688         style.
690         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
691         when /proc/<pid>/setgroups does not exist.
693 2017-11-18  Florian Weimer  <fweimer@redhat.com>
695         * sysdeps/unix/sysv/linux/tst-ttyname.c
696         (become_root_in_mount_ns): Remove.
697         (do_in_chroot_1): Call support_enter_mount_namespace.
698         (do_in_chroot_2): Likewise.
699         (do_test): Call support_become_root early.
701 2017-11-18  Florian Weimer  <fweimer@redhat.com>
703         * support/namespace.h (support_enter_mount_namespace): Declare.
704         * support/support_enter_mount_namespace.c: New file.
705         * support/Makefile (libsupport-routines): Add
706         support_enter_mount_namespace.
708 2017-11-18  Florian Weimer  <fweimer@redhat.com>
710         * support/temp_file.c (support_create_temp_directory): Use
711         test_dir and do not rely on the presence of the XXXXXX suffix.
712         * support/temp_file.h (support_create_temp_directory): Update
713         comment.
714         * support/tst-xreadlink.c (do_test): Adjust.
715         * support/support_chroot.c (support_chroot_create): Likewise.
717 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
719         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
720         macro.
721         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
722         htm-no-suspend.
724 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
726         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
727         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
728         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
729         (ceill): Define using libm_alias_ldouble.
730         * sysdeps/x86_64/fpu/s_copysignl.S: Include
731         <libm-alias-ldouble.h>.
732         (copysignl): Define using libm_alias_ldouble.
733         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
734         (fabsl): Define using libm_alias_ldouble.
735         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
736         (floorl): Define using libm_alias_ldouble.
737         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
738         (fmaxl): Define using libm_alias_ldouble.
739         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
740         (fminl): Define using libm_alias_ldouble.
741         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
742         (llrintl): Define using libm_alias_ldouble.
743         (lrintl): Likewise.
744         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
745         <libm-alias-ldouble.h>.
746         (nearbyintl): Define using libm_alias_ldouble.
747         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
748         (truncl): Define using libm_alias_ldouble.
749         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
750         <libm-alias-ldouble.h>.
751         (lrintl): Define using libm_alias_ldouble.
753         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
754         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
755         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
756         (asinhl): Define using libm_alias_ldouble.
757         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
758         (atanl): Define using libm_alias_ldouble.
759         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
760         (cbrtl): Define using libm_alias_ldouble.
761         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
762         (ceill): Define using libm_alias_ldouble.
763         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
764         (copysignl): Define using libm_alias_ldouble.
765         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
766         (fabsl): Define using libm_alias_ldouble.
767         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
768         (floorl): Define using libm_alias_ldouble.
769         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
770         (fmaxl): Define using libm_alias_ldouble.
771         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
772         (fminl): Define using libm_alias_ldouble.
773         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
774         (frexpl): Define using libm_alias_ldouble.
775         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
776         (llrintl): Define using libm_alias_ldouble.
777         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
778         (logbl): Define using libm_alias_ldouble.
779         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
780         (lrintl): Define using libm_alias_ldouble.
781         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
782         (nearbyintl): Define using libm_alias_ldouble.
783         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
784         (nextafterl): Define using libm_alias_ldouble.
785         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
786         (remquol): Define using libm_alias_ldouble.
787         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
788         (rintl): Define using libm_alias_ldouble.
789         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
790         (truncl): Define using libm_alias_ldouble.
791         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
792         (fmaxl): Define using libm_alias_ldouble.
793         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
794         (fminl): Define using libm_alias_ldouble.
796         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
797         to C syntax instead of availability and properties of types.
798         * bits/floatn.h [!__ASSEMBLER]: Likewise.
799         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
800         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
801         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
802         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
803         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
805 2017-11-17  Florian Weimer  <fweimer@redhat.com>
807         support_become_root: Enable file creation in namespaces.
808         * support/support_become_root.c (setup_mapping): New function.
809         (support_become_root): Call it.
811 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
813         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
814         macro.
816 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
818         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
819         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
821 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
823         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
825         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
826         version to 4.14.
828 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
830         * INSTALL: Fix botched up regeneration.
832         * NEWS: Update sourceare link to https.
833         * configure.ac: Likewise.
834         * crypt/md5test-giant.c: Likewise.
835         * dlfcn/bug-atexit1.c: Likewise.
836         * dlfcn/bug-atexit2.c: Likewise.
837         * localedata/README: Likewise.
838         * malloc/tst-mallocfork.c: Likewise.
839         * manual/install.texi: Likewise.
840         * nptl/tst-pthread-getattr.c: Likewise.
841         * stdio-common/tst-fgets.c: Likewise.
842         * stdio-common/tst-fwrite.c: Likewise.
843         * sunrpc/Makefile: Likewise.
844         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
845         * wcsmbs/tst-mbrtowc2.c: Likewise.
846         * configure: Regenerate.
847         * INSTALL: Regenerate.
849 2017-11-15  Martin Sebor  <msebor@redhat.com>
851         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
852         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
853         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
855 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
857         [BZ #22145]
858         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
859         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
861         [BZ #22145]
862         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
863         Defer is_pty check until end of the function.
864         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
866         [BZ #22145]
867         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
868         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
869         (ttyname): Likewise.
870         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
871         (__ttyname_r): Likewise.
873         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
874         int to bool.
876         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
878         * manual/terminal.texi (Is It a Terminal):
879         Mention ENODEV for ttyname and ttyname_r.
881 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
883         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
884         constant and macro.
886         * sysdeps/unix/sysv/linux/bits/mman-linux.h
887         [__USE_MISC] (MADV_WIPEONFORK): New macro.
888         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
889         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
890         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
891         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
893 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
895         * signal/sigrelse.c (sigrelse): Optimize implementation.
897         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
898         (__sigpause): Rely on __sigsuspend to implement single thread
899         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
901 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
903         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
904         kernel version to 4.14.
906 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
908         [BZ #22442]
909         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
910         Check if ifname is too long.
912 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
914         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
916 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
918         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
919         was accidentally lost.
921 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
923         * localedata/locales/az_IR: Add standard copyright header.
925 2017-11-15  Florian Weimer  <fweimer@redhat.com>
927         [BZ #22439]
928         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
929         not just the top one.  Output a new "subheaps" statistic.
931 2017-11-15  Florian Weimer  <fweimer@redhat.com>
933         [BZ #22408]
934         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
935         under the per-arena lock.
936         * malloc/Makefile (tests): Add tst-malloc_info.
937         (tst-malloc_info): Link with libpthread.
938         * malloc/tst-malloc_info.c: New file.
940 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
942         [BZ #21660]
943         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
944         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
945         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
946         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
947         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
948         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
949         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
950         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
951         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
952         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
953         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
954         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
955         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
956         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
957         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
958         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
959         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
960         (__floating_type): Likewise.
961         (__real_integer_type): Likewise.
962         (__complex_integer_type): Likewise.
963         (__expr_is_real): Likewise.
964         (__tgmath_real_type_sub): Likewise.
965         (__tgmath_real_type): Likewise.
966         (__tgmath_complex_type_sub): Likewise.
967         (__tgmath_complex_type): Likewise.
968         (__TGMATH_F128): Likewise.
969         (__TGMATH_CF128): Likewise.
970         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
971         new macros.
972         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
973         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
974         Likewise.
975         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
976         Likewise.
977         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
978         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
979         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
980         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
981         Likewise.
982         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
983         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
984         Likewise.
985         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
986         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
987         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
988         Likewise.
989         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
990         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
991         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
992         (cimag): Likewise.
993         (creal): Likewise.
995 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
997         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
998         for stpncpy calls for GCC 8.
999         (test_strncat): Disable -Wstringop-truncation warning for strncat
1000         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
1001         strncat call for GCC 7.
1002         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
1003         calls for GCC 8.
1004         (test_memcmp): Use memcpy instead of strncpy for calls not copying
1005         trailing NUL.
1007         * string/bug-strncat1.c: Include <libc-diag.h>.
1008         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
1010 2017-11-13  Claude Paroz <claude@2xlibre.net>
1012         [BZ #22387]
1013         * localedata/locales/aa_DJ: Improved readibility by replacing
1014         <Uxxxx> sequences in the ASCII printable range by their ASCII
1015         character equivalents.
1016         * localedata/locales/aa_ER: Likewise.
1017         * localedata/locales/aa_ER@saaho: Likewise.
1018         * localedata/locales/aa_ET: Likewise.
1019         * localedata/locales/af_ZA: Likewise.
1020         * localedata/locales/agr_PE: Likewise.
1021         * localedata/locales/ak_GH: Likewise.
1022         * localedata/locales/am_ET: Likewise.
1023         * localedata/locales/anp_IN: Likewise.
1024         * localedata/locales/ar_AE: Likewise.
1025         * localedata/locales/ar_BH: Likewise.
1026         * localedata/locales/ar_DZ: Likewise.
1027         * localedata/locales/ar_EG: Likewise.
1028         * localedata/locales/ar_IN: Likewise.
1029         * localedata/locales/ar_IQ: Likewise.
1030         * localedata/locales/ar_JO: Likewise.
1031         * localedata/locales/ar_KW: Likewise.
1032         * localedata/locales/ar_LB: Likewise.
1033         * localedata/locales/ar_LY: Likewise.
1034         * localedata/locales/ar_MA: Likewise.
1035         * localedata/locales/ar_OM: Likewise.
1036         * localedata/locales/ar_QA: Likewise.
1037         * localedata/locales/ar_SA: Likewise.
1038         * localedata/locales/ar_SD: Likewise.
1039         * localedata/locales/ar_SS: Likewise.
1040         * localedata/locales/ar_SY: Likewise.
1041         * localedata/locales/ar_TN: Likewise.
1042         * localedata/locales/ar_YE: Likewise.
1043         * localedata/locales/as_IN: Likewise.
1044         * localedata/locales/ast_ES: Likewise.
1045         * localedata/locales/ayc_PE: Likewise.
1046         * localedata/locales/az_AZ: Likewise.
1047         * localedata/locales/az_IR: Likewise.
1048         * localedata/locales/be_BY: Likewise.
1049         * localedata/locales/be_BY@latin: Likewise.
1050         * localedata/locales/bem_ZM: Likewise.
1051         * localedata/locales/ber_DZ: Likewise.
1052         * localedata/locales/ber_MA: Likewise.
1053         * localedata/locales/bg_BG: Likewise.
1054         * localedata/locales/bhb_IN: Likewise.
1055         * localedata/locales/bho_IN: Likewise.
1056         * localedata/locales/bi_VU: Likewise.
1057         * localedata/locales/bn_BD: Likewise.
1058         * localedata/locales/bn_IN: Likewise.
1059         * localedata/locales/bo_CN: Likewise.
1060         * localedata/locales/bo_IN: Likewise.
1061         * localedata/locales/br_FR: Likewise.
1062         * localedata/locales/brx_IN: Likewise.
1063         * localedata/locales/bs_BA: Likewise.
1064         * localedata/locales/byn_ER: Likewise.
1065         * localedata/locales/ca_AD: Likewise.
1066         * localedata/locales/ca_ES: Likewise.
1067         * localedata/locales/ca_FR: Likewise.
1068         * localedata/locales/ca_IT: Likewise.
1069         * localedata/locales/ce_RU: Likewise.
1070         * localedata/locales/chr_US: Likewise.
1071         * localedata/locales/cmn_TW: Likewise.
1072         * localedata/locales/crh_UA: Likewise.
1073         * localedata/locales/cs_CZ: Likewise.
1074         * localedata/locales/csb_PL: Likewise.
1075         * localedata/locales/cv_RU: Likewise.
1076         * localedata/locales/cy_GB: Likewise.
1077         * localedata/locales/da_DK: Likewise.
1078         * localedata/locales/de_AT: Likewise.
1079         * localedata/locales/de_BE: Likewise.
1080         * localedata/locales/de_CH: Likewise.
1081         * localedata/locales/de_DE: Likewise.
1082         * localedata/locales/de_IT: Likewise.
1083         * localedata/locales/de_LI: Likewise.
1084         * localedata/locales/de_LU: Likewise.
1085         * localedata/locales/doi_IN: Likewise.
1086         * localedata/locales/dv_MV: Likewise.
1087         * localedata/locales/dz_BT: Likewise.
1088         * localedata/locales/el_CY: Likewise.
1089         * localedata/locales/el_GR: Likewise.
1090         * localedata/locales/en_AG: Likewise.
1091         * localedata/locales/en_AU: Likewise.
1092         * localedata/locales/en_BW: Likewise.
1093         * localedata/locales/en_CA: Likewise.
1094         * localedata/locales/en_DK: Likewise.
1095         * localedata/locales/en_GB: Likewise.
1096         * localedata/locales/en_HK: Likewise.
1097         * localedata/locales/en_IE: Likewise.
1098         * localedata/locales/en_IL: Likewise.
1099         * localedata/locales/en_IN: Likewise.
1100         * localedata/locales/en_NG: Likewise.
1101         * localedata/locales/en_NZ: Likewise.
1102         * localedata/locales/en_PH: Likewise.
1103         * localedata/locales/en_SG: Likewise.
1104         * localedata/locales/en_US: Likewise.
1105         * localedata/locales/en_ZA: Likewise.
1106         * localedata/locales/en_ZM: Likewise.
1107         * localedata/locales/en_ZW: Likewise.
1108         * localedata/locales/eo: Likewise.
1109         * localedata/locales/es_AR: Likewise.
1110         * localedata/locales/es_BO: Likewise.
1111         * localedata/locales/es_CL: Likewise.
1112         * localedata/locales/es_CO: Likewise.
1113         * localedata/locales/es_CR: Likewise.
1114         * localedata/locales/es_CU: Likewise.
1115         * localedata/locales/es_DO: Likewise.
1116         * localedata/locales/es_EC: Likewise.
1117         * localedata/locales/es_ES: Likewise.
1118         * localedata/locales/es_GT: Likewise.
1119         * localedata/locales/es_HN: Likewise.
1120         * localedata/locales/es_MX: Likewise.
1121         * localedata/locales/es_NI: Likewise.
1122         * localedata/locales/es_PA: Likewise.
1123         * localedata/locales/es_PE: Likewise.
1124         * localedata/locales/es_PR: Likewise.
1125         * localedata/locales/es_PY: Likewise.
1126         * localedata/locales/es_SV: Likewise.
1127         * localedata/locales/es_US: Likewise.
1128         * localedata/locales/es_UY: Likewise.
1129         * localedata/locales/es_VE: Likewise.
1130         * localedata/locales/et_EE: Likewise.
1131         * localedata/locales/eu_ES: Likewise.
1132         * localedata/locales/eu_ES@euro: Likewise.
1133         * localedata/locales/fa_IR: Likewise.
1134         * localedata/locales/ff_SN: Likewise.
1135         * localedata/locales/fi_FI: Likewise.
1136         * localedata/locales/fil_PH: Likewise.
1137         * localedata/locales/fo_FO: Likewise.
1138         * localedata/locales/fr_BE: Likewise.
1139         * localedata/locales/fr_CA: Likewise.
1140         * localedata/locales/fr_CH: Likewise.
1141         * localedata/locales/fr_FR: Likewise.
1142         * localedata/locales/fr_LU: Likewise.
1143         * localedata/locales/fur_IT: Likewise.
1144         * localedata/locales/fy_DE: Likewise.
1145         * localedata/locales/fy_NL: Likewise.
1146         * localedata/locales/ga_IE: Likewise.
1147         * localedata/locales/gd_GB: Likewise.
1148         * localedata/locales/gez_ER: Likewise.
1149         * localedata/locales/gez_ET: Likewise.
1150         * localedata/locales/gl_ES: Likewise.
1151         * localedata/locales/gu_IN: Likewise.
1152         * localedata/locales/gv_GB: Likewise.
1153         * localedata/locales/ha_NG: Likewise.
1154         * localedata/locales/hak_TW: Likewise.
1155         * localedata/locales/he_IL: Likewise.
1156         * localedata/locales/hi_IN: Likewise.
1157         * localedata/locales/hif_FJ: Likewise.
1158         * localedata/locales/hne_IN: Likewise.
1159         * localedata/locales/hr_HR: Likewise.
1160         * localedata/locales/hsb_DE: Likewise.
1161         * localedata/locales/ht_HT: Likewise.
1162         * localedata/locales/hu_HU: Likewise.
1163         * localedata/locales/hy_AM: Likewise.
1164         * localedata/locales/i18n: Likewise.
1165         * localedata/locales/ia_FR: Likewise.
1166         * localedata/locales/id_ID: Likewise.
1167         * localedata/locales/ig_NG: Likewise.
1168         * localedata/locales/ik_CA: Likewise.
1169         * localedata/locales/is_IS: Likewise.
1170         * localedata/locales/it_CH: Likewise.
1171         * localedata/locales/it_IT: Likewise.
1172         * localedata/locales/iu_CA: Likewise.
1173         * localedata/locales/ja_JP: Likewise.
1174         * localedata/locales/ka_GE: Likewise.
1175         * localedata/locales/kk_KZ: Likewise.
1176         * localedata/locales/kl_GL: Likewise.
1177         * localedata/locales/kn_IN: Likewise.
1178         * localedata/locales/ko_KR: Likewise.
1179         * localedata/locales/kok_IN: Likewise.
1180         * localedata/locales/ks_IN: Likewise.
1181         * localedata/locales/ks_IN@devanagari: Likewise.
1182         * localedata/locales/ku_TR: Likewise.
1183         * localedata/locales/kw_GB: Likewise.
1184         * localedata/locales/ky_KG: Likewise.
1185         * localedata/locales/lb_LU: Likewise.
1186         * localedata/locales/lg_UG: Likewise.
1187         * localedata/locales/li_BE: Likewise.
1188         * localedata/locales/li_NL: Likewise.
1189         * localedata/locales/lij_IT: Likewise.
1190         * localedata/locales/ln_CD: Likewise.
1191         * localedata/locales/lo_LA: Likewise.
1192         * localedata/locales/lt_LT: Likewise.
1193         * localedata/locales/lv_LV: Likewise.
1194         * localedata/locales/lzh_TW: Likewise.
1195         * localedata/locales/mag_IN: Likewise.
1196         * localedata/locales/mai_IN: Likewise.
1197         * localedata/locales/mg_MG: Likewise.
1198         * localedata/locales/mhr_RU: Likewise.
1199         * localedata/locales/mi_NZ: Likewise.
1200         * localedata/locales/mk_MK: Likewise.
1201         * localedata/locales/ml_IN: Likewise.
1202         * localedata/locales/mn_MN: Likewise.
1203         * localedata/locales/mni_IN: Likewise.
1204         * localedata/locales/mr_IN: Likewise.
1205         * localedata/locales/ms_MY: Likewise.
1206         * localedata/locales/mt_MT: Likewise.
1207         * localedata/locales/my_MM: Likewise.
1208         * localedata/locales/nan_TW: Likewise.
1209         * localedata/locales/nan_TW@latin: Likewise.
1210         * localedata/locales/nb_NO: Likewise.
1211         * localedata/locales/nds_DE: Likewise.
1212         * localedata/locales/nds_NL: Likewise.
1213         * localedata/locales/ne_NP: Likewise.
1214         * localedata/locales/nhn_MX: Likewise.
1215         * localedata/locales/niu_NU: Likewise.
1216         * localedata/locales/niu_NZ: Likewise.
1217         * localedata/locales/nl_AW: Likewise.
1218         * localedata/locales/nl_BE: Likewise.
1219         * localedata/locales/nl_NL: Likewise.
1220         * localedata/locales/nn_NO: Likewise.
1221         * localedata/locales/nr_ZA: Likewise.
1222         * localedata/locales/nso_ZA: Likewise.
1223         * localedata/locales/oc_FR: Likewise.
1224         * localedata/locales/om_ET: Likewise.
1225         * localedata/locales/om_KE: Likewise.
1226         * localedata/locales/or_IN: Likewise.
1227         * localedata/locales/os_RU: Likewise.
1228         * localedata/locales/pa_IN: Likewise.
1229         * localedata/locales/pa_PK: Likewise.
1230         * localedata/locales/pap_AW: Likewise.
1231         * localedata/locales/pap_CW: Likewise.
1232         * localedata/locales/pl_PL: Likewise.
1233         * localedata/locales/ps_AF: Likewise.
1234         * localedata/locales/pt_BR: Likewise.
1235         * localedata/locales/pt_PT: Likewise.
1236         * localedata/locales/quz_PE: Likewise.
1237         * localedata/locales/raj_IN: Likewise.
1238         * localedata/locales/ro_RO: Likewise.
1239         * localedata/locales/ru_RU: Likewise.
1240         * localedata/locales/ru_UA: Likewise.
1241         * localedata/locales/rw_RW: Likewise.
1242         * localedata/locales/sa_IN: Likewise.
1243         * localedata/locales/sat_IN: Likewise.
1244         * localedata/locales/sc_IT: Likewise.
1245         * localedata/locales/sd_IN: Likewise.
1246         * localedata/locales/sd_IN@devanagari: Likewise.
1247         * localedata/locales/se_NO: Likewise.
1248         * localedata/locales/sgs_LT: Likewise.
1249         * localedata/locales/shs_CA: Likewise.
1250         * localedata/locales/si_LK: Likewise.
1251         * localedata/locales/sid_ET: Likewise.
1252         * localedata/locales/sk_SK: Likewise.
1253         * localedata/locales/sl_SI: Likewise.
1254         * localedata/locales/sm_WS: Likewise.
1255         * localedata/locales/so_DJ: Likewise.
1256         * localedata/locales/so_ET: Likewise.
1257         * localedata/locales/so_KE: Likewise.
1258         * localedata/locales/so_SO: Likewise.
1259         * localedata/locales/sq_AL: Likewise.
1260         * localedata/locales/sq_MK: Likewise.
1261         * localedata/locales/sr_ME: Likewise.
1262         * localedata/locales/sr_RS: Likewise.
1263         * localedata/locales/sr_RS@latin: Likewise.
1264         * localedata/locales/ss_ZA: Likewise.
1265         * localedata/locales/st_ZA: Likewise.
1266         * localedata/locales/sv_FI: Likewise.
1267         * localedata/locales/sv_SE: Likewise.
1268         * localedata/locales/sw_KE: Likewise.
1269         * localedata/locales/sw_TZ: Likewise.
1270         * localedata/locales/szl_PL: Likewise.
1271         * localedata/locales/ta_IN: Likewise.
1272         * localedata/locales/ta_LK: Likewise.
1273         * localedata/locales/tcy_IN: Likewise.
1274         * localedata/locales/te_IN: Likewise.
1275         * localedata/locales/tg_TJ: Likewise.
1276         * localedata/locales/th_TH: Likewise.
1277         * localedata/locales/the_NP: Likewise.
1278         * localedata/locales/ti_ER: Likewise.
1279         * localedata/locales/ti_ET: Likewise.
1280         * localedata/locales/tig_ER: Likewise.
1281         * localedata/locales/tk_TM: Likewise.
1282         * localedata/locales/tl_PH: Likewise.
1283         * localedata/locales/tn_ZA: Likewise.
1284         * localedata/locales/to_TO: Likewise.
1285         * localedata/locales/tpi_PG: Likewise.
1286         * localedata/locales/tr_CY: Likewise.
1287         * localedata/locales/tr_TR: Likewise.
1288         * localedata/locales/ts_ZA: Likewise.
1289         * localedata/locales/tt_RU: Likewise.
1290         * localedata/locales/tt_RU@iqtelif: Likewise.
1291         * localedata/locales/ug_CN: Likewise.
1292         * localedata/locales/uk_UA: Likewise.
1293         * localedata/locales/unm_US: Likewise.
1294         * localedata/locales/ur_IN: Likewise.
1295         * localedata/locales/ur_PK: Likewise.
1296         * localedata/locales/uz_UZ: Likewise.
1297         * localedata/locales/uz_UZ@cyrillic: Likewise.
1298         * localedata/locales/ve_ZA: Likewise.
1299         * localedata/locales/vi_VN: Likewise.
1300         * localedata/locales/wa_BE: Likewise.
1301         * localedata/locales/wae_CH: Likewise.
1302         * localedata/locales/wal_ET: Likewise.
1303         * localedata/locales/wo_SN: Likewise.
1304         * localedata/locales/xh_ZA: Likewise.
1305         * localedata/locales/yi_US: Likewise.
1306         * localedata/locales/yo_NG: Likewise.
1307         * localedata/locales/yue_HK: Likewise.
1308         * localedata/locales/yuw_PG: Likewise.
1309         * localedata/locales/zh_CN: Likewise.
1310         * localedata/locales/zh_HK: Likewise.
1311         * localedata/locales/zh_SG: Likewise.
1312         * localedata/locales/zh_TW: Likewise.
1313         * localedata/locales/zu_ZA: Likewise.
1315 2017-11-13  Florian Weimer  <fweimer@redhat.com>
1317         * support/next_to_fault.h, support/next_to_fault.c: New files.
1318         * support/Makefile (libsupport-routines): Add next_to_fault.
1319         * resolv/tst-inet_pton.c (struct next_to_fault)
1320         (next_to_fault_allocate, next_to_fault_free): Remove.
1321         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
1323 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1325         * elf/dl-support.c: Include <dl-procruntime.c>.
1326         * include/link.h: Include <link_map.h>.
1327         * sysdeps/generic/dl-procruntime.c: New file.
1328         * sysdeps/generic/link_map.h: Likewise.
1329         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
1330         the writable ld.so namespace.
1332 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1334         timezone: pacify GCC -Wstringop-truncation
1335         Problem reported by Martin Sebor in:
1336         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
1337         * timezone/zic.c (writezone): Use memcpy, not strncpy.
1339 2017-11-12  Florian Weimer  <fweimer@redhat.com>
1341         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
1342         tst-xreadlink.
1343         (tests): Add tst-xreadlink.
1344         * support/support.h (xstrndup): Declare.
1345         * support/xunistd.h (xunlink, xreadlink): Declare.
1346         * support/temp_file.h (support_create_temp_directory): Declare.
1347         * support/temp_file.c (support_create_temp_directory): New function.
1348         * support/support_chroot.c (support_chroot_create): Use it.
1349         * support/xreadlink.c: New file.
1350         * support/xstrndup.c: Likewise.
1351         * support/xunlink.c: Likewise.
1352         * support/tst-xreadlink.c: Likewise.
1354 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
1356         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
1358 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1360         [BZ #22409]
1361         [BZ #22412]
1362         * resolv/res_comp.c (printable_string, binary_hnok)
1363         (binary_leading_dash): New functions.
1364         (res_hnok): Reimplement using these functions and ns_name_pton.
1365         (res_ownok): Likewise.
1366         (res_mailok): Reimplement using printable_string, ns_name_pton and
1367         binary_hnok.
1368         (res_dnok): Reimplement using printable_string and ns_name_pton.
1369         * resolv/tst-res_hnok.c (tests): Add additional tests.
1370         (LETTERDIGITS, PRINTABLE): Define.
1371         (do_test): Adjust one_char results.
1373 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1375         [BZ #22413]
1376         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
1377         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
1379 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1381         * resolv/tst-ns_name_pton.c: New file.
1382         * resolv/Makefile (tests): Add tst-ns_name_pton.
1383         (tst-ns_name_pton): Link against libresolv.
1385 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1387         * resolv/tst-res_hnok.c: New file.
1388         * resolv/Makefile (tests): Add tst-res_hnok.
1389         (tst-res_hnok): Link against libresolv.
1391 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1393         * resolv/tst-resolv-network.c: Use test framework instead explicit
1394         main function.
1396 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1398         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
1399         <jmp_buf-macros.h>.
1400         [!_ISOMAC] (STR_HELPER): New.
1401         [!_ISOMAC] (STR): Likewise.
1402         [!_ISOMAC] (TEST_SIZE): Likewise.
1403         [!_ISOMAC] (TEST_ALIGN): Likewise.
1404         [!_ISOMAC] (TEST_OFFSET): Likewise.
1405         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
1406         field offsets of jmp_buf as well as sigjmp_buf.
1407         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
1408         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
1409         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
1410         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
1411         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
1412         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
1413         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
1414         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
1415         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
1416         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
1417         Likewise.
1418         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
1419         Likewise.
1420         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
1421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
1422         Likewise.
1423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
1424         Likewise.
1425         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
1426         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
1427         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
1428         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
1429         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
1430         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
1431         Likewise.
1432         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
1433         Likewise.
1434         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
1435         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
1436         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
1438 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
1440         * include/float.h
1441         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1442         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
1443         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1444         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
1445         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1446         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
1447         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1448         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
1449         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1450         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
1451         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1452         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
1453         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1454         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
1455         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1456         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
1457         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1458         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
1459         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1460         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
1461         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1462         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
1463         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1464         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
1465         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1466         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
1467         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1468         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
1469         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1470         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
1471         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1472         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
1473         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1474         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
1475         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1476         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
1477         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1478         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
1479         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1480         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
1481         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1482         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
1483         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1484         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
1485         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1486         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
1487         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1488         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
1489         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1490         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
1491         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1492         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
1493         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1494         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
1495         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1496         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
1497         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1498         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
1499         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1500         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
1501         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1502         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
1503         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1504         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
1505         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1506         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
1507         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1508         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
1509         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1510         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
1511         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1512         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
1513         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1514         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
1515         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1516         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
1517         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1518         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
1519         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1520         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
1521         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1522         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
1523         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1524         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
1525         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1526         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
1527         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1528         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
1530         * stdlib/tst-strtod.h (F16): New macro.
1531         (F32): Likewise.
1532         (F64): Likewise.
1533         (F32X): Likewise.
1534         (F64X): Likewise.
1535         (F128X): Likewise.
1536         (IF_FLOAT16): Likewise.
1537         (IF_FLOAT32): Likewise.
1538         (IF_FLOAT64): Likewise.
1539         (IF_FLOAT32X): Likewise.
1540         (IF_FLOAT64X): Likewise.
1541         (IF_FLOAT128X): Likewise.
1542         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
1543         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
1544         (STRTOD_TEST_FOREACH): Likewise.
1545         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
1546         (CHOOSE_f64): Likewise.
1547         (CHOOSE_f32x): Likewise.
1548         (CHOOSE_f64x): Likewise.
1550 2017-11-07  Andreas Schwab  <schwab@suse.de>
1552         * nptl/Makefile (tests-internal): Remove tst-typesizes.
1554 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
1556         [BZ #22403]
1557         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
1558         to be escaped.
1559         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
1560         to be escaped.
1562 2017-11-07  Claude Paroz <claude@2xlibre.net>
1564         [BZ #22403]
1565         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
1566         to be escaped.
1567         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
1568         to be escaped.
1569         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
1570         to be escaped.
1572 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1574         [BZ #22298]
1575         * nptl/allocatestack.c (allocate_stack): Check if
1576         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
1577         __PTHREAD_MUTEX_HAVE_PREV is defined.
1578         * nptl/descr.h (pthread): Likewise.
1579         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
1580         Likewise.
1581         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1582         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1583         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
1584         * sysdeps/nptl/bits/thread-shared-types.h
1585         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1586         defines.
1587         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
1588         of __WORDSIZE for internal layout.
1589         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
1590         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
1591         instead of __WORDSIZE whether to use an union for __spins and __list
1592         fields.
1593         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
1594         case.
1595         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
1596         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1597         defines.
1598         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
1599         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1600         Likewise.
1601         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
1602         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1603         Likewise.
1604         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
1605         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1606         Likewise.
1607         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
1608         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1609         Likewise.
1610         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
1611         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1612         Likewise.
1613         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
1614         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1615         Likewise.
1616         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
1617         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1618         Likewise.
1619         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
1620         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1621         Likewise.
1622         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
1623         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1624         Likewise.
1625         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
1626         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1627         Likewise.
1628         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
1629         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1630         Likewise.
1631         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
1632         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1633         Likewise.
1634         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
1635         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1636         Likewise.
1637         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
1638         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1639         Likewise.
1641         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
1642         New macros.
1643         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
1644         checks for expected input type size.
1645         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
1646         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
1647         Likewise.
1648         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
1649         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
1650         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
1651         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1652         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
1653         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
1654         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
1655         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
1656         superflous runtime assert check.
1657         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
1658         Likewise.
1659         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
1660         Likewise.
1661         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
1662         Likewise.
1663         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
1664         Likewise.
1665         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
1666         Likewise.
1667         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
1668         Likewise.
1669         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
1670         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
1671         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
1672         Likewise.
1673         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
1674         Likewise.
1675         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
1676         Likewise.
1677         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
1678         Likewise.
1679         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
1680         Likewise.
1681         * nptl/pthread_attr_setinheritsched.c
1682         (__pthread_attr_setinheritsched): Likewise.
1683         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1684         Likewise.
1685         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
1686         Likewise.
1687         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1688         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1689         __old_pthread_attr_setstack): Likewise.
1690         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1691         Likewise.
1692         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1693         Likewise.
1694         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1695         Likewise.
1696         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1697         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1698         Likewise.
1699         * nptl/tst-typesizes.c: Remove file.
1701         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1702         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1703         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1704         checks for internal pthread_mutex_t offsets.
1705         * sysdeps/aarch64/nptl/pthread-offsets.h
1706         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1707         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1708         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1709         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1710         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1711         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1712         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1713         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1714         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1715         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1716         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1717         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1718         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1719         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1720         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1721         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1722         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1723         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1725 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1727         * bits/mman-linux.h: Move ...
1728         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1729         comment.
1730         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1731         outdated comment.
1733 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1735         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1736         Redefine STRNLEN as __strnlen_power8.
1738 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1740         * signal/sighold.c (sighold): Optimize implementation.
1742         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1743         __NR_rt_sigqueueinfo.
1745         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1746         __sigtimedwait.
1747         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1748         assume __NR_rt_sigtimedwait.
1749         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1750         and add LIBC_CANCEL_HANDLED for cancellation marking.
1751         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1753         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1754         (sysdeps_routines): Add memchr_noneon.
1755         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1756         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1757         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1758         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1759         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1760         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1761         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1763         * sysdeps/arm/arm-ifunc.h: New file.
1764         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1765         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1766         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1767         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1768         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1769         (__memcpy_neon): Avoid create hidden alias.
1770         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1771         (__memcpy_vfp): Likewise.
1772         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1773         (sysdep_routines): Add memcpy_arm.
1774         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1776 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1778         [BZ #22362]
1779         * Makerules (make-link-multidir): New.
1780         * config.make.in (multidir): New.
1781         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1782         * configure: Regenerated.
1783         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1784         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1785         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1786         New target.
1788 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1790         [BZ #22402]
1791         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1792         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1794 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1796         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1797         to be escaped.
1799 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1801         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1803 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1805         * math/math.h [__HAVE_DISTINCT_FLOAT16
1806         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1807         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1808         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1809         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1810         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1811         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1812         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1813         (__MATH_TG_F32): New macro.
1814         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1815         (__MATH_TG_F64X): Likewise.
1816         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1817         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1819 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1821         * po/de.po: Update translations.
1822         * po/ru.po: Likewise.
1824 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1826         * manual/filesys.texi (Hard Links): Document linkat.
1828 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1830         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1831         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1832         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1833         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1834         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1835         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1836         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1837         the same as _Float128.
1838         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1839         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1840         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1842         * stdlib/stdlib.h
1843         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1844         Declare.
1845         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1846         Likewise.
1847         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1848         Likewise.
1849         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1850         (strtof32x): Likewise.
1851         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1852         (strtof64x): Likewise.
1853         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1854         (strtof128x): Likewise.
1855         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1856         (strfromf16): Likewise.
1857         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1858         (strfromf32): Likewise.
1859         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1860         (strfromf64): Likewise.
1861         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1862         (strfromf32x): Likewise.
1863         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1864         (strfromf64x): Likewise.
1865         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1866         (strfromf128x): Likewise.
1867         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1868         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1869         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1870         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1871         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1872         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1874 2017-11-03  Richard Henderson  <rth@twiddle.net>
1876         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1878 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1880         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1882 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1884         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1885         DT_TLSDESC_GOT initialization.
1886         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1887         (_dl_tlsdesc_resolve_hold): Likewise.
1888         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1889         (_dl_tlsdesc_resolve_hold): Likewise.
1890         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1891         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1893 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1895         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1897 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1899         [BZ #18572]
1900         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1901         non-lazily for R_ARM_TLS_DESC.
1903 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1905         [BZ #17078]
1906         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1907         R_ARM_TLS_DESC case.
1908         (elf_machine_lazy_rel): Remove the prelink check.
1910 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1912         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1913         DT_TLSDESC_GOT initialization.
1914         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1915         (_dl_tlsdesc_resolve_rela): Likewise.
1916         (_dl_tlsdesc_resolve_hold): Likewise.
1917         (_dl_tlsdesc_undefweak): Remove ldar.
1918         (_dl_tlsdesc_dynamic): Likewise.
1919         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1920         (_dl_tlsdesc_resolve_rela): Likewise.
1921         (_dl_tlsdesc_resolve_hold): Likewise.
1922         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1923         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1924         (_dl_tlsdesc_resolve_rela): Likewise.
1925         (_dl_tlsdesc_resolve_hold): Likewise.
1927 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1929         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1930         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1932 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1934         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1935         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1937 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1939         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1940         Declare.
1941         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1942         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1943         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1944         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1945         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1946         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1947         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1948         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1949         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1950         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1951         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1953 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1955         [BZ #22382]
1956         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1957         * localedata/locales/tpi_PG: Add standard header.
1959 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1961         test-errno-linux: quotactl can fail with EPERM in containers.
1962         * sysdeps/unix/sysv/linux/test-errno-linux.c
1963         (LIST, LIST_FORWARD): New macros.
1964         (check_error_in_list): New function.
1965         (test_wrp_rv): Accept list of permitted error codes.
1966         (test_wrp_rv2): Remove.
1967         (test_wrp): Call test_wrp_rv with list of error codes.
1968         (test_wrp2): Accept list of error codes.
1969         (do_test): Adjust.  Allow EPERM for quotactl.
1971 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1973         * stdio-common/bug16.c (do_test): Use array_length.
1974         * stdio-common/errlist.c (_sys_nerr): Likewise.
1975         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1976         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1977         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1978         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1979         (do_test): Use array_length.
1980         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1981         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1982         * stdio-common/tst-printf-round.c (do_test): Likewise.
1983         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1984         (CHECK): Use array_length.
1985         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1986         * stdio-common/tstscanf.c (main): Likewise.
1987         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1989 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1991         Add array_length and array_end macros.
1992         * include/array_length.h: New file.
1994 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1996         [BZ #22332]
1997         * posix/tst-glob-tilde.c (do_noescape): New variable.
1998         (one_test): Process it.
1999         (do_test): Set do_noescape.  Add unescaping test case.
2001 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
2003         * math/complex.h
2004         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
2005         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
2006         with appropriate macros defined and undefined.
2007         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
2008         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2009         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
2010         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2011         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
2012         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2013         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
2014         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2015         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
2016         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2018         * math/complex.h
2019         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
2020         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
2021         that for long double.  Do not condition define and undefine of
2022         _Mdouble_complex_ on [__CFLOAT128].
2024 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
2026         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
2027         of <sysdeps/generic/sysdep.h>.
2028         (ALIGNARG): Removed.
2029         (ASM_SIZE_DIRECTIVE): Likewise.
2030         (ENTRY): Likewise.
2031         (END): Likewise.
2032         (ENTRY_CHK): Likewise.
2033         (END_CHK): Likewise.
2034         (syscall_error): Likewise.
2035         (mcount): Likewise.
2036         (PSEUDO_END): Likewise.
2037         (L): Likewise.
2038         (atom_text_section): Likewise.
2039         * sysdeps/x86/sysdep.h: New file.
2040         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
2041         of <sysdeps/generic/sysdep.h>.
2042         (ALIGNARG): Removed.
2043         (ASM_SIZE_DIRECTIVE): Likewise.
2044         (ENTRY): Likewise.
2045         (END): Likewise.
2046         (ENTRY_CHK): Likewise.
2047         (END_CHK): Likewise.
2048         (syscall_error): Likewise.
2049         (mcount): Likewise.
2050         (PSEUDO_END): Likewise.
2051         (L): Likewise.
2052         (atom_text_section): Likewise.
2054 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
2056         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
2057         category of LC_CTYPE set to "i18n:2012".
2058         * localedata/locales/i18n_ctype: Regenerate.
2060 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
2062         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
2063         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2064         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2065         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2067         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
2068         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
2069         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2070         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
2072 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
2074         * math/complex.h
2075         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
2076         New macro.
2077         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
2078         Likewise.
2079         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
2080         Likewise.
2081         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2082         (CMPLXF32X): Likewise.
2083         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2084         (CMPLXF64X): Likewise.
2085         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2086         (CMPLXF128X): Likewise.
2088         * math/math.h
2089         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
2090         (__MATH_EVAL_FMT2): Define to add 0.0f.
2092 2017-10-31  Alan Modra  <amodra@gmail.com>
2094         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
2095         include sysdep.h.
2096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
2097         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
2098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
2099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
2100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
2101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
2102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
2103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
2104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
2105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
2106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
2107         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
2108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
2109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
2110         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
2111         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
2112         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
2113         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
2114         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
2115         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
2116         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
2117         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
2118         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
2119         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
2120         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
2121         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
2122         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
2123         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
2124         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
2125         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
2126         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
2127         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
2128         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
2129         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
2130         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
2131         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
2132         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
2133         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
2134         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
2135         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
2136         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
2137         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
2138         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
2139         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
2140         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
2141         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
2142         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
2143         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
2144         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
2145         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
2146         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
2147         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
2148         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
2149         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
2150         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
2151         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
2152         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
2153         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
2154         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
2155         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
2156         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
2157         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
2158         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
2159         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
2160         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
2161         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
2162         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
2163         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
2164         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
2166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
2167         include sysdep.h and math_ldbl_opt.h.
2169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
2170         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
2171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
2172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
2173         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
2174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
2175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
2178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
2179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
2180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
2181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
2182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
2183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
2184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
2185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
2187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
2188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
2189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
2190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
2191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
2192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
2193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
2194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
2196 2017-10-31  Alan Modra  <amodra@gmail.com>
2198         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
2199         string/strncase_l.c, not string/strncase.c.
2200         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
2201         (libc_hidden_def): Redefine.
2203 2017-10-31  Alan Modra  <amodra@gmail.com>
2205         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
2206         (__STRCMP, STRCMP, __strcasecmp_l): Define.
2207         (__strcasecmp): Don't define.
2209 2017-10-31  Alan Modra  <amodra@gmail.com>
2211         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
2212         IS_IN (libc).
2213         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
2214         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
2215         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
2217 2017-10-31  Alan Modra  <amodra@gmail.com>
2219         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
2220         USE_AS_STPNCPY.
2222 2017-10-31  Alan Modra  <amodra@gmail.com>
2224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
2225         Redefine only when SHARED.
2227 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
2229         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2230         Include <bits/math-finite.h> with appropriate macros defined and
2231         undefined.
2232         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2233         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2234         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2235         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2236         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2238         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
2239         [!_Mlong_double_] (_Mlong_double_): Likewise.
2240         [!_Mfloat16_] (_Mfloat16_): Likewise.
2241         [!_Mfloat32_] (_Mfloat32_): Likewise.
2242         [!_Mfloat64_] (_Mfloat64_): Likewise.
2243         [!_Mfloat128_] (_Mfloat128_): Likewise.
2244         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
2245         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
2246         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
2247         (_Mdouble_): Define without indirection through those macros.
2248         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
2249         [!_Mfloat128_] (_Mfloat128_): Likewise.
2250         [_Mlong_double_] (_Mlong_double_): Likewise.
2251         (_Mdouble_): Define without indirection through those macros.
2252         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
2253         not add -D_Mlong_double_=double.
2254         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
2255         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
2257 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2259         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
2261 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2263         * sysdeps/x86/libc-start.c: Reformat.
2265 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2267         [BZ #22353]
2268         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
2269         (1): Renamed to ...
2270         (L(Src0)): This.
2271         (L(Src1)): New.
2272         (L(Src2)): Likewise.
2273         (L(1)): Renamed to ...
2274         (L(Src3)): This.
2276 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
2278         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
2279         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
2280         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
2281         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
2282         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
2283         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
2284         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
2285         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
2286         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
2287         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
2288         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
2289         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
2290         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
2291         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
2292         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
2293         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
2294         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
2295         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
2296         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
2297         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
2298         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
2299         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
2300         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
2301         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
2302         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
2303         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
2304         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
2305         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
2306         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
2307         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
2308         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
2309         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
2310         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
2311         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
2312         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
2313         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
2314         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
2315         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
2316         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
2317         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
2318         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
2319         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
2320         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
2321         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
2322         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
2323         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
2324         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
2325         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
2326         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
2327         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
2328         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
2329         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
2330         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
2331         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
2332         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
2333         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
2334         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
2335         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
2336         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
2337         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
2338         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
2339         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
2340         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
2341         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
2342         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
2343         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
2345 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2347         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
2348         always defined.
2349         * io/tst-mkdirat.c (do_test): Likewise.
2350         * io/tst-mkfifoat.c (do_test): Likewise.
2351         * io/tst-mknodat.c (do_test): Likewise.
2352         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
2353         * locale/programs/locale.c (select_dirs): Likewise.
2354         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
2355         * posix/bug-glob2.c (my_readdir): Likewise.
2356         * posix/tst-dir.c (main): Likewise.
2357         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
2358         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
2360 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2362         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
2363         just __USE_GNU.
2365 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2367         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
2368         Convert to support/test-driver.c.
2369         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
2370         New macro parameters.
2371         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
2372         * posix/tst-gnuglob.c: New file.
2373         * posix/tst-gnuglob64.c: Likewise.
2374         * posix/Makefile (tests): Add tst-gnuglob64.
2376 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
2378         [BZ #19485]
2379         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
2380         and use a better translation for March in “mon”.
2381         * localedata/locales/csb_PL: Use more ASCII to improve the
2382         readability of the source.
2384 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
2386         [BZ #13953]
2387         * localedata/locales/km_KH: Use ASCII as much
2388         as possible for better readability of the source and
2389         remove useless comments.
2390         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
2391         was commented out and apparently wrong anyway because it was
2392         using Lao characters. If Buddhist era should be used
2393         for km_KH, a native speaker should write the correct formaat
2394         for Khmer.
2395         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
2396         (According to CLDR, the first weekday for Cambodia is Sunday).
2397         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
2398         (These were using Lao characters which must be wrong. If we get
2399         the correct data from a native speaker, we could add it back, until
2400         then it is better not to have name_mr and name_mrs at all than
2401         having it wrong).
2403 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
2405         * locale/loadlocale.c: Correct size of
2406         _nl_value_type_LC_<category> arrays.
2408 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
2410         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2411         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
2412         with appropriate macros defined and undefined.
2413         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2414         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2415         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2416         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2417         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2419 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2421         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
2422         "-O2 -march=i586".
2424 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2426         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
2427         with lowercase letters to make it agree with CLDR.
2429 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2431         [BZ #15260]
2432         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
2433         first letters of yesstr and nostr in yesexpr and noexpr,
2434         not for the full words.
2435         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2436         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
2437         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
2438         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
2439         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
2440         first letters of yesstr and nostr in yesexpr and noexpr,
2441         until now only English was matched in yesexpr and noexpr.
2442         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
2443         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
2444         fil but not for tl. As tl and fil are very similar, using fil
2445         is probably better than using English.
2447 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
2449         [BZ #21706]
2450         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
2451         in yesstr and nostr.
2453 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
2455         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2456         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
2457         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
2458         Likewise.
2459         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
2460         Likewise.
2461         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
2462         Likewise.
2463         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
2464         Likewise.
2465         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2466         (SNANF128X): Likewise.
2468         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2469         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
2470         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2471         (HUGE_VAL_F32): Likewise.
2472         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2473         (HUGE_VAL_F64): Likewise.
2474         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2475         (HUGE_VAL_F32X): Likewise.
2476         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2477         (HUGE_VAL_F64X): Likewise.
2478         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2479         (HUGE_VAL_F128X): Likewise.
2481 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2483         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
2484         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
2485         for the br_FR locale.
2487 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2489         [BZ #21706]
2490         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
2492 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
2494         * locale/programs/record-status.h: Define globals, and function
2495         prototypes. Move function bodies...
2496         * locale/programs/record-status.c: ... to here. New file.
2497         * iconv/Makefile (iconv_prog-modules): Add record-status.
2498         * locale/Makefile (lib-modules): Likewise.
2499         * iconv/iconv_prog.c: Remove verbose.
2500         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
2501         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
2502         record a warning about ASCII compatibility.
2503         * locale/programs/ld-monetary.c (monetary_finish): If
2504         warn_int_curr_symbol is true then record a warning about the symbol
2505         not being in our ISO 4217 list.
2506         * locale/programs/locale.c: Include record-status.h. Remove verbose.
2507         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
2508         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
2509         (OPT_NO_WARN): Define.
2510         (OPT_WARN): Define.
2511         (options): Add entry for --no-warnings, and --warnings.
2512         (set_warnings): New function to enable/disable warnings.
2513         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
2514         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
2515         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
2516         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
2517         Pass flags to generate_locale.
2518         (generate_locale): Accept new flag argument and pass it to localedef
2519         invocation.
2520         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
2521         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
2523         * localedata/Makefile (test-input-data): Use full file name.
2524         * localedata/da_DK.in: Rename to...
2525         * localedata/da_DK.ISO-8859-1.in: ...this.
2526         * localedata/de_DE.in: Rename to...
2527         * localedata/de_DE.ISO-8859-1.in: ...this.
2528         * localedata/en_US.in: Rename to...
2529         * localedata/en_US.ISO-8859-1.in: ...this.
2530         * localedata/fr_FR.in: Rename to...
2531         * localedata/fr_FR.UTF-8.in: ... this.
2532         * localedata/hr_HR.in: Rename to...
2533         * localedata/hr_HR.ISO-8859-2.in: ...this.
2534         * localedata/hu_HU.in: Rename to...
2535         * localedata/hu_HU.UTF-8.in: ...this.
2536         * localedata/si_LK.in: Rename to...
2537         * localedata/si_LK.UTF-8.in: ...this.
2538         * localedata/sv_SE.in: Rename to...
2539         * localedata/sv_SE.ISO-8859-1.in: ...this.
2540         * localedata/tr_TR.in: Rename to...
2541         * localedata/tr_TR.UTF-8.in: ...this.
2542         * localedata/uk_UA.in: Rename to...
2543         * localedata/uk_UA.UTF-8.in: ...this.
2544         * localedata/sort-test.sh: Test file is locale name with the
2545         suffix.
2547         * localedata/unicode-gen/Makefile (check_i18n): Rename to
2548         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
2549         file.
2550         * localedata/locales/i18n_ctype: Regenerate.
2551         * localedata/locales/tr_TR: Likewise.
2552         * localedata/locales/translit_circle: Likewise.
2553         * localedata/locales/translit_cjk_compat: Likewise.
2554         * localedata/locales/translit_combining: Likewise.
2555         * localedata/locales/translit_compat: Likewise.
2556         * localedata/locales/translit_font: Likewise.
2557         * localedata/locales/translit_fraction: Likewise.
2559 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2561         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
2562         lxvd2x/stxvd2x with lvx/stvx.
2563         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
2565 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2567         * include/alloc_buffer.h: Replace "if if " with "if " in
2568         comments.
2569         * sysdeps/mips/memcpy.S: Likkewise.
2570         * sysdeps/mips/memset.S: Likewise.
2571         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
2572         Likewise.
2573         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
2574         Likewise.
2575         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
2576         Likewise.
2578 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2580         [BZ #15261]
2581         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
2582         yesexpr and noexpr.
2583         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2584         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2585         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2586         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2587         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2588         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2589         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2591 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2593         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
2594         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2595         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2596         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2597         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2598         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
2599         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2600         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2601         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2602         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2603         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2604         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2606 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2608         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
2609         as possible for better readability of the source.
2610         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
2611         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
2612         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
2613         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
2614         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
2615         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
2616         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
2617         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
2618         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2619         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
2620         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
2621         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
2622         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
2623         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
2624         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
2625         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
2626         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
2627         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
2628         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
2629         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
2630         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
2631         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
2632         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
2633         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
2634         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
2635         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
2636         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
2637         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
2638         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
2639         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
2640         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
2641         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2642         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
2643         * localedata/locales/en_US (LC_MESSAGES): Likewise.
2644         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
2645         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
2646         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
2647         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
2648         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
2649         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
2650         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
2651         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
2652         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
2653         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
2654         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
2655         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
2656         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
2657         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
2658         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
2659         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
2660         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
2661         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
2662         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
2663         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2664         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2665         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
2666         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
2667         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2668         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
2669         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
2670         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
2671         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
2672         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
2673         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
2674         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
2675         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
2676         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
2677         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
2678         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
2679         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
2680         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
2681         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
2682         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
2683         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
2684         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2685         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
2686         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2687         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2688         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2689         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2690         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2691         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2692         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2693         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2694         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2695         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2696         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2697         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2698         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2699         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2700         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2701         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2702         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2703         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2704         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2705         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2706         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2707         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2708         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2709         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2710         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2711         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2712         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2713         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2714         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2715         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2716         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2717         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2718         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2719         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2720         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2721         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2722         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2723         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2724         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2725         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2726         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2727         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2728         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2729         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2730         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2731         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2732         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2733         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2734         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2735         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2736         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2737         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2738         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2739         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2740         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2741         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2742         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2743         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2744         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2745         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2746         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2747         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2748         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2749         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2750         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2751         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2752         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2753         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2754         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2755         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2756         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2757         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2758         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2759         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2760         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2761         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2762         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2763         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2764         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2765         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2766         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2767         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2768         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2769         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2770         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2771         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2772         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2773         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2774         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2775         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2776         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2777         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2778         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2779         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2780         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2781         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2782         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2783         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2785 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2787         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2788         (Use first letters of yesstr and nostr correctly instead of using
2789         full words).
2791 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2793         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2794         (Use first letters of yesstr and nostr correctly).
2796 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2798         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2799         also check for the first characters of yesstr and nostr.
2800         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2801         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2803 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2805         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2806         also check for Chinese characters.
2808 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2810         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2811         match also for the contents of yesstr and nostr. As the first letter
2812         of yesstr and nostr is equal, checking only for the first letter
2813         is not enough.
2815 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2817         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2818         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2820 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2822         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2823         of main contributor.
2825 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2827         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2828         instead of using English.
2830 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2832         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2833         by including the first letters of nostr and yesexpr in the regexp.
2834         Also make it more readable by using ASCII where possible.
2836 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2838         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2839         the first letter of nostr in the regexp. It agrees with CLDR now.
2840         Also make it more readable by using ASCII where possible.
2842 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2844         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2845         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2846         these strings contain a U+17D6 (which somewhat looks like a colon)
2847         instead of a real colon to separate the full words for “yes”
2848         and “no” from the single letter responses.
2850 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2852         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2853         it agree with CLDR (include the first letter of yesstr).
2854         Also make it more readable by using ASCII where possible.
2856 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2858         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2859         and improve yesexpr and noexpr. The yesstr and nostr apparently
2860         came from CLDR. And CLDR has a bug there: these strings contain
2861         a U+0903 (which looks like a colon) instead of a real colon
2862         to separate the full words for “yes” and “no” from the single
2863         letter responses.
2865 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2867         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2868         letters of the full yesstr and nostr in yesexpr and noexpr.
2870 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2872         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2873         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2874         * localedata/locales/an_ES: Make source more readable by using ASCII
2875         where possible.
2877 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2879         [BZ #20952]
2880         * localedata/locales/yuw_PG: New file.
2881         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2882         * locale/iso-639.def: Add Yau (Uruwa).
2884 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2886         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2888 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2890         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2891         (__libc_realloc): Likewise.
2892         (_mid_memalign): Likewise.
2893         (__libc_calloc): Likewise.
2895 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2897         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2898         by adding the generic +1 and -0 as in all other locales.
2899         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2900         day names and make it more readable by using ASCII where possible.
2902 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2904         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2905         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2907 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2909         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2910         WNOHANG in waitpid call.
2912 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2914         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2915         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2917         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2918         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2919         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2920         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2921         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2922         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2923         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2924         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2925         variables.
2927 2017-10-23  Michael Collison  <michael.collison@arm.com>
2929         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2930         with __builtin_sqrt.
2931         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2932         with __builtin_sqrtf.
2933         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2934         with __builtin_ceil.
2935         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2936         with __builtin_ceilf.
2937         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2938         with __builtin_floor.
2939         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2940         with __builtin_floorf.
2941         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2942         with __builtin_fma.
2943         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2944         with __builtin_fmaf.
2945         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2946         with __builtin_fmax.
2947         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2948         with __builtin_fmaxf.
2949         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2950         with __builtin_fmin.
2951         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2952         with __builtin_fminf.
2953         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2954         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2955         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2956         with builtin_rint and conversion to int.
2957         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2958         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2959         with builtin_llround.
2960         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2961         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2962         with builtin_rint and conversion to long int.
2963         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2964         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2965         with builtin_lround.
2966         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2967         with builtin_lroundf.
2968         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2969         statements with __builtin_nearbyint.
2970         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2971         statements with __builtin_nearbyintf.
2972         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2973         with __builtin_rint.
2974         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2975         with __builtin_rintf.
2976         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2977         with __builtin_round.
2978         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2979         with __builtin_roundf.
2980         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2981         with __builtin_trunc.
2982         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2983         with __builtin_truncf.
2984         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2985         and s_l[l]round[f].c too.
2987 2017-10-23  Alan Modra  <amodra@gmail.com>
2989         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2990         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2992 2017-10-23  Alan Modra  <amodra@gmail.com>
2994         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2995         Move LR save and frame setup/teardown and LR restore to
2996         immediately around memset call.  Provide cfi.
2998 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3000         * sysdeps/i386/fpu/e_powf.S: Removed.
3001         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
3002         * sysdeps/i386/fpu/w_powf.c: Likewise.
3003         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
3004         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3005         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3006         Add e_powf-sse2.
3007         (CFLAGS-e_powf-sse2.c): New.
3008         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
3009         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
3011 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3013         * sysdeps/i386/fpu/e_log2f.S: Removed.
3014         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
3015         * sysdeps/i386/fpu/w_log2f.c: Likewise.
3016         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
3017         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3018         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3019         Add e_log2f-sse2.
3020         (CFLAGS-e_log2f-sse2.c): New.
3021         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
3022         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
3024 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3026         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3027         Add e_powf-fma.
3028         (CFLAGS-e_powf-fma.c): New.
3029         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
3030         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
3032 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3034         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3035         Add e_log2f-fma.
3036         (CFLAGS-e_log2f-fma.c): New.
3037         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
3038         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
3040 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3042         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3043         Add e_logf-fma.
3044         (CFLAGS-e_logf-fma.c): New.
3045         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
3046         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
3048 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3050         * sysdeps/i386/fpu/e_logf.S: Removed.
3051         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
3052         * sysdeps/i386/fpu/w_logf.c: Likewise.
3053         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
3054         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
3055         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3056         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3057         Add e_logf-sse2.
3058         (CFLAGS-e_logf-sse2.c): New.
3059         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
3060         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
3062 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3064         * sysdeps/i386/fpu/e_exp2f.S: Removed.
3065         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
3066         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
3067         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3068         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3069         Add e_exp2f-sse2.
3070         (CFLAGS-e_exp2f-sse2.c): New.
3071         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
3072         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
3074 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3076         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3077         Add e_exp2f-fma.
3078         (CFLAGS-e_exp2f-fma.c): New.
3079         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
3080         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
3082 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3084         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
3085         * sysdeps/i386/fpu/e_expf.S: Likewise.
3086         * sysdeps/i386/fpu/math_errf.c: Likewise.
3087         * sysdeps/i386/fpu/w_expf.c: Likewise.
3088         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
3089         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3090         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
3091         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
3092         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3093         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
3094         Remove e_expf-ia32.
3095         (CFLAGS-e_expf-sse2.c): New.
3096         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
3097         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
3099 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
3101         * sysdeps/x86_64/fpu/e_expf.S: Removed.
3102         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
3103         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
3104         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
3105         e_expf.c.
3106         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
3107         New.
3108         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
3109         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
3110         Renamed to ...
3111         (__redirect_expf): This.
3112         (SYMBOL_NAME): Changed to expf.
3113         (__ieee754_expf): Renamed to ...
3114         (__expf): This.
3115         (__GI___expf): This.
3116         (__ieee754_expf): Add strong_alias.
3117         (__expf_finite): Likewise.
3118         (__expf): New.
3119         Include <sysdeps/ieee754/flt-32/e_expf.c>.
3121 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
3123         [BZ #22332]
3124         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
3125         unescaping.
3127 2017-10-21  Florian Weimer  <fweimer@redhat.com>
3129         * posix/Makefile (tests): Add tst-glob-tilde.
3130         (tests-special): Add tst-glob-tilde-mem.out
3131         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
3132         (tst-glob-tilde-mem.out): Add mtrace check.
3133         * posix/tst-glob-tilde.c: New file.
3135 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
3137         * bits/floatn-common.h: New file.
3138         * math/Makefile (headers): Add bits/floatn-common.h.
3139         * bits/floatn.h: Include <bits/floatn-common.h>.
3140         * sysdeps/ia64/bits/floatn.h: Likewise.
3141         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
3142         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
3143         * sysdeps/powerpc/bits/floatn.h: Likewise.
3144         * sysdeps/x86/bits/floatn.h: Likewise.
3146 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3148         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
3149         indicates whether compiler emits an warning for alias for
3150         functions with incompatible types.
3152         [BZ #22273]
3153         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
3154         the auxiliary process is terminated by a signal before calling _exit
3155         or execve.
3157 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3159         [BZ #21265]
3160         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
3161         New.
3162         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
3163         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
3164         and bit_arch_XSAVEC_Usable if needed.
3165         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
3166         and bit_arch_Use_dl_runtime_resolve_opt.
3167         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
3168         Removed.
3169         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
3170         (bit_arch_Prefer_No_AVX512): Updated.
3171         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
3172         (bit_arch_XSAVEC_Usable): New.
3173         (STATE_SAVE_OFFSET): Likewise.
3174         (STATE_SAVE_MASK): Likewise.
3175         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
3176         (cpu_features): Add xsave_state_size and xsave_state_full_size.
3177         (index_arch_Use_dl_runtime_resolve_opt): Removed.
3178         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
3179         (index_arch_XSAVEC_Usable): New.
3180         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3181         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
3182         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
3183         is enabled.
3184         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3185         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
3186         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
3187         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
3188         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
3189         _dl_runtime_resolve_xsavec.
3190         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
3191         Removed.
3192         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
3193         instead of VEC_SIZE.
3194         (REGISTER_SAVE_BND0): Removed.
3195         (REGISTER_SAVE_BND1): Likewise.
3196         (REGISTER_SAVE_BND3): Likewise.
3197         (REGISTER_SAVE_RAX): Always defined to 0.
3198         (VMOV): Removed.
3199         (_dl_runtime_resolve_avx): Likewise.
3200         (_dl_runtime_resolve_avx_slow): Likewise.
3201         (_dl_runtime_resolve_avx_opt): Likewise.
3202         (_dl_runtime_resolve_avx512): Likewise.
3203         (_dl_runtime_resolve_avx512_opt): Likewise.
3204         (_dl_runtime_resolve_sse): Likewise.
3205         (_dl_runtime_resolve_sse_vex): Likewise.
3206         (USE_FXSAVE): New.
3207         (_dl_runtime_resolve_fxsave): Likewise.
3208         (USE_XSAVE): Likewise.
3209         (_dl_runtime_resolve_xsave): Likewise.
3210         (USE_XSAVEC): Likewise.
3211         (_dl_runtime_resolve_xsavec): Likewise.
3212         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
3213         Removed.
3214         (_dl_runtime_resolve_avx512_opt): Likewise.
3215         (_dl_runtime_resolve_avx): Likewise.
3216         (_dl_runtime_resolve_avx_opt): Likewise.
3217         (_dl_runtime_resolve_sse): Likewise.
3218         (_dl_runtime_resolve_sse_vex): Likewise.
3219         (_dl_runtime_resolve_fxsave): New.
3220         (_dl_runtime_resolve_xsave): Likewise.
3221         (_dl_runtime_resolve_xsavec): Likewise.
3223 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
3225         [BZ #22320]
3226         CVE-2017-15670
3227         * posix/glob.c (__glob): Fix one-byte overflow.
3229 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3231         * malloc/malloc.c (sysdep-cancel.h): Add include.
3233 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3235         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
3237 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
3239         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
3240         (tests): Remove $(objpfx)ga_test depdendency.
3241         * resolv/ga_test.c: Remove file.
3243 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
3245         [BZ #18812]
3246         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
3247         * localedata/locales/kab_DZ: New file.
3249 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3251         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
3252         _dl_relocate_static_pie instead of _dl_start to compute load
3253         address in static PIE.
3255 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3257         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
3259 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
3261         [BZ #13605]
3262         * localedata/SUPPORTED: Add shn_MM/UTF-8.
3263         * localedata/locales/shn_MM: New file.
3265 2017-10-20  Florian Weimer  <fweimer@redhat.com>
3267         [BZ #22321]
3268         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
3269         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
3270         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
3271         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
3272         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
3273         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
3275 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
3277         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3279 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
3281         * sysdeps/mips/ieee754/bits/floatn.h: New file.
3283         [BZ #22322]
3284         * sysdeps/mips/bits/long-double.h: Move to ....
3285         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
3287 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
3289         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
3291 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
3292             H.J. Lu  <hongjiu.lu@intel.com>
3294         [BZ #22299]
3295         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3296         GLRO(dl_platform) to NULL.
3297         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
3298         (modules-names): Add tst-platformmod-1 and
3299         x86_64/tst-platformmod-2.
3300         (CFLAGS-tst-platform-1.c): New.
3301         (CFLAGS-tst-platformmod-1.c): Likewise.
3302         (CFLAGS-tst-platformmod-2.c): Likewise.
3303         (LDFLAGS-tst-platformmod-2.so): Likewise.
3304         ($(objpfx)tst-platform-1): Likewise.
3305         ($(objpfx)tst-platform-1.out): Likewise.
3306         (tst-platform-1-ENV): Likewise.
3307         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
3308         * sysdeps/x86_64/tst-platform-1.c: New file.
3309         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
3310         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
3312 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
3314         [BZ #13994]
3315         * locale/iso-639.def: Add Karbi.
3316         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
3317         * localedata/locales/mjw_IN: New file.
3319 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
3321         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
3322         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
3323         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
3324         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
3325         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
3326         (libm_alias_ldouble_other_r): Also create _Float128 alias.
3327         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
3328         <bits/floatn.h>.
3329         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
3330         (libm_alias_ldouble_other_r): Also create _Float128 alias.
3331         * manual/math.texi (Mathematics): Document additional architecture
3332         support for _Float128.
3333         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
3334         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3335         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3336         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3337         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3338         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3339         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3340         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3341         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3342         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3343         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3344         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3345         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3346         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3347         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3349 2017-10-18  Renlin Li  <renlin.li@arm.com>
3351         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
3352         _DYNAMIC symbol to calculate load address.
3354 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
3356         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
3357         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
3358         summary bits.
3359         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
3360         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
3362 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
3364         [BZ #16777]
3365         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
3366         and improve readability by using more ASCII.
3367         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
3368         and improve readability by using more ASCII.
3370 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
3372         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
3373         not all targets support atomics on bool.
3375 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
3377         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
3378         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
3379         __f128.
3380         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3381         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
3382         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3383         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
3384         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3385         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
3387 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3389         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
3390         defines.
3392 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3394         [BZ #22159]
3395         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
3396         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
3397         (do_check_remalloced_chunk): Fix build bug.
3398         (do_check_malloc_state): Add assert that checks arena->top.
3399         (malloc_consolidate): Remove initialization.
3400         (int_mallinfo): Remove call to malloc_consolidate.
3401          (__libc_mallopt): Clarify why malloc_consolidate is needed.
3403 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3405         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
3406         (have_fastchunks): Remove.
3407         (clear_fastchunks): Remove.
3408         (set_fastchunks): Remove.
3409         (malloc_state): Add have_fastchunks.
3410         (malloc_init_state): Use have_fastchunks.
3411         (do_check_malloc_state): Remove incorrect invariant checks.
3412         (_int_malloc): Use have_fastchunks.
3413         (_int_free): Likewise.
3414         (malloc_consolidate): Likewise.
3416 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3418         * malloc/malloc.c (tcache_put): Inline.
3419         (tcache_get): Inline.
3421 2017-10-17  Jordi Mallach  <jordi@gnu.org>
3423         Aurelien Jarno  <aurelien@aurel32.net>
3424         [BZ #2522]
3425         * localedata/locales/ca_ES@valencia: New file.
3426         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
3428 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
3430         [BZ #22296]
3431         * math/math.h: Let signbit use the builtin in C++ mode with gcc
3432         < 6.x
3434 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3436         * scripts/build-many-glibcs.py (Context.add_all_configs):
3437         Add arm-linux-gnueabihf multiarch extra_glibcs.
3439         * sysdeps/generic/ifunc-init.h: New file.
3440         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
3442 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
3444         [BZ #22019]
3445         * localedata/locales/el_GR: Set n_cs_precedes to 0.
3446         * localedata/locales/el_CY: copy "el_GR" because it is identical.
3447         * stdlib/tst-strfmon_l.c: adapt test case.
3449 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3451         * sysdeps/generic/float128-abi.h: New file.
3452         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
3453         non-__prefixed symbols to ....
3454         * math/Versions: ... here.  Include <float128-abi.h>.
3455         * stdlib/Versions ... and here.  Include <float128-abi.h>
3457 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3459         * version.h (VERSION): Switch to ".9000" as the development
3460         version suffix.
3462 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3464         [BZ #22050]
3465         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
3466         compat_symbol_reference to access non-default version.
3468 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3470         * malloc/Makefile (others-extras): Set to mcheck-init.o.
3472 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
3474         * include/shlib-compat.h (compat_symbol_reference): Update
3475         comment.
3477 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3479         * math/Makefile (test-types): Add
3480         $(type-float128-$(float128-alias-fcts)).
3481         * math/test-float128.h (TYPE_STR): Define conditional on
3482         [FLT128_MANT_DIG == LDBL_MANT_DIG].
3483         (ULP_IDX): Likewise.
3484         (ULP_I_IDX): Likewise.
3486         * stdlib/strtold.c: Include <bits/floatn.h>
3487         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
3488         and later undefine as macro.  Define as weak alias if
3489         [!USE_WIDE_CHAR].
3490         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
3491         and later undefine as macro.  Define as weak alias if
3492         [USE_WIDE_CHAR].
3493         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
3494         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
3495         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3496         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3497         Define and later undefine as macro.  Define as weak alias if
3498         [USE_WIDE_CHAR].
3499         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
3500         <bits/floatn.h>.
3501         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
3502         Define and later undefine as macro.  Define as weak alias if
3503         [!USE_WIDE_CHAR].
3504         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3505         Define and later undefine as macro.  Define as weak alias if
3506         [USE_WIDE_CHAR].
3508 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
3510         * localedata/collate-test.c (allocate_arrays): Don't use \n in
3511         record_verbose messages.
3513 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3515         [BZ #22052]
3516         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
3517         to silence -O3 -Wall warning with GCC 7.
3519 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
3521         * Makeconfig (+link-static-before-libc): Use the first of
3522         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
3523         * gmon/Makefile (tests): Add tst-gmon-static.
3524         (tests-static): Likewise.
3525         (CFLAGS-tst-gmon-static.c): New.
3526         (CRT-tst-gmon-static): Likewise.
3527         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
3528         (tst-gmon-static-ENV): Likewise.
3529         (tests-special): Likewise.
3530         ($(objpfx)tst-gmon-static.out): Likewise.
3531         (clean-tst-gmon-static-data): Likewise.
3532         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
3533         * gmon/tst-gmon-static-gprof.sh: New file.
3534         * gmon/tst-gmon-static.c: Likewise.
3536 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
3538         [BZ #22295]
3539         * locale/programs/linereader.c (get_string): Don't warn on
3540         non-symbolic character.
3542         [BZ #22294]
3543         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
3544         int_curr_symbol.
3546         [BZ #22292]
3547         * locale/programs/record-status.h: New file
3548         * locale/programs/locale.c: Add comment.
3549         * locale/programs/charmap-dir.c: Don't include error.h.
3550         (charmap_opendir): Use record_error.
3551         * locale/programs/charmap.c: Don't include error.h.
3552         (charmap_read): Use record_error, and record_warning.
3553         (parse_charmap): Likewise.
3554         * locale/programs/ld-address.c: Don't include error.h.
3555         (address_finish): Use record_error, and record_warning.
3556         * locale/programs/ld-collate.c: Don't include error.h.
3557         (collate_finish): Use record_error, and record_error_at_line.
3558         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
3559         (ctype_class_new): Likewise.
3560         (ctype_map_new): Likewise.
3561         (set_one_default): Likewise.
3562         (set_class_defaults): Likewise.
3563         (translit_flatten): Likewise.
3564         (allocate_arrays): Use record_error, and record_verbose.
3565         * locale/programs/ld-identification.c: Don't include error.h.
3566         (indentation_finish): Use record_error and record_warning.
3567         * locale/programs/ld-measurement.c: Don't include error.h.
3568         (measurement_finish): Use record_error.
3569         * locale/programs/ld-messages.c
3570         (message_finish): Likewise.
3571         * locale/programs/ld-monetary.c
3572         (monetary_finish): Likewise.
3573         * locale/programs/ld-name.c (name_finish): Use record_error
3574         and record_warning.
3575         * locale/programs/ld-numeric.c
3576         (numeric_finish): Use record_error.
3577         * locale/programs/ld-paper.c: Don't include error.h.
3578         (paper_finish): Use record_error.
3579         * locale/programs/ld-telephone.c: Don't include error.h.
3580         (telephone_finish): Use record_error.
3581         * locale/programs/ld-time.c (time_finish): Likewise.
3582         * locale/programs/linereader.h (lr_error): Make inline func.
3583         * locale/programs/localedef.c: Define recorded_warning_count,
3584         and recorded_error_count.
3585         (main): Use record_error. Use recorded_error_count and
3586         recorded_warning_count to issue correct error returns.
3587         (add_to_readlist): Use record_error.
3588         (find_locale): Likewise.
3589         (load_locale): Likewise.
3590         * locale/programs/localedef.h: Remove be_quiet
3591         and WITH_CUR_LOCALE.
3592         * locale/programs/locarchive.c (compare_from_file): Use
3593         record_error.
3594         * locale/programs/locfile.c (write_locale_data): Use
3595         record_error.
3596         * locale/programs/repertoire.c: Dont include error.h.
3597         (repertoire_complain): Use record_error.
3598         * localedata/tst-fmon.sh: Expect failures from localedef.
3599         * localedata/tst-locale.sh: Likewise.
3600         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
3602         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
3603         (REPORTS): Likewise.
3604         (check): Likewise.
3605         (i18n): Rename to...
3606         (i18n_ctype): ...this.
3607         (i18n-report): Rename to...
3608         (i18n_ctype-report): ...this.
3609         * localedata/locales/i18n_ctype: Regenerate.
3610         * localedata/locales/i18n: copy i18n_ctype.
3612 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3614         * stdlib/strfroml.c: Include <bits/floatn.h>.
3615         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
3616         Define before include of <stdlib.h> and undefine afterwards, then
3617         define as weak alias.
3619         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
3620         Undefine and restore default definition.  Use
3621         libm_alias_ldouble_other.
3623 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
3625         [BZ #22153]
3626         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
3627         in coredumps.
3629 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
3631         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3632         Assign sym_map to be map for local symbols, as TLS relocations
3633         use sym_map to determine whether the symbol is defined and to
3634         extract the TLS information.
3635         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3636         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3638 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3640         [BZ #22189]
3641         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
3642         (math_force_eval): Add powerpc version.
3644         [BZ #22142]
3645         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
3646         -DBL_MAX.
3647         (do_test): Likewise.
3648         * stdio-common/tst-printf.sh: Likewise.
3649         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
3650         ifdef clause in order to set the carry bit right.  Replace r0 by
3651         0 without changing the behavior.
3653 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3655         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
3656         <libm-alias-ldouble.h>.
3657         (fabsl): Define using libm_alias_ldouble.
3658         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
3659         <libm-alias-ldouble.h>.
3660         (fabsl): Define using libm_alias_ldouble.
3662         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
3663         Remove conditional code.
3665         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
3666         Rename to __clog10_internal_l.
3667         (__clog10_internal_l): Define aliases using
3668         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
3669         with __clog10.
3671 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3673         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
3674         * benchtests/sincosf-inputs: New file.
3675         * benchtests/cosf-inputs: New file.
3676         * benchtests/sinf-inputs: New file.
3678 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3680         * posix/tst-spawn.c (do_test): Wait for both children.
3682 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3684         [BZ #22284]
3685         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
3686         tests-pie): Add tst-gmon-pie.
3687         (CFLAGS-tst-gmon-pie.c): New.
3688         (CRT-tst-gmon-pie): Likewise.
3689         (tst-gmon-pie-ENV): Likewise.
3690         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3691         ($(objpfx)tst-gmon-pie.out): Likewise.
3692         (clean-tst-gmon-pie-data): Likewise.
3693         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3694         * gmon/gmon.c [PIC]: Include <link.h>.
3695         [PIC] (callback): New function.
3696         (write_hist): Add an argument for load address.  Subtract load
3697         address from PCs.
3698         (write_call_graph): Likewise.
3699         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3700         it to write_hist and write_call_graph.
3701         * gmon/tst-gmon-pie.c: New file.
3703 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3705         * math/Makefile (test-types-basic): New variable.
3706         (test-types): Likewise.
3707         (libm-test-support): Use $(test-types) instead of $(types).
3708         (libm-tests-base-normal): Likewise.
3709         (libm-tests-base-finite): Likewise.
3710         (libm-tests-base-inline): Likewise.
3711         (generated): Likewise.
3712         ($(objpfx)libm-test-support-$(t).c): Likewise.
3713         (libm-tests-for-type iterator): Likewise.
3714         (libm-test-support iterator): Likewise.
3715         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3716         (ulp_idx): Use ULP_IDX.
3717         * math/test-ldouble.h: Include <float.h>.
3718         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3719         (ULP_IDX): New macro.
3720         (ULP_I_IDX): Likewise.
3721         * math/test-double.h (ULP_IDX): Likewise.
3722         (ULP_I_IDX): Likewise.
3723         * math/test-float.h (ULP_IDX): Likewise.
3724         (ULP_I_IDX): Likewise.
3725         * math/test-float128.h (ULP_IDX): Likewise.
3726         (ULP_I_IDX): Likewise.
3728 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3730         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3731         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3732         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3733         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3734         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3735         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3736         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3737         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3738         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3739         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3740         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3741         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3742         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3743         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3744         (SINGLE_THREAD_BY_GLOBAL): Define.
3745         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3746         Likewise.
3747         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3748         Likewise.
3749         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3750         Likewise.
3751         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3752         Likewise.
3753         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3754         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3755         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3756         Likewise.
3758 2017-10-11  Andreas Schwab  <schwab@suse.de>
3760         * nis/Makefile (aux): Remove.
3761         * nscd/Makefile (aux): Add nscd_hash.
3762         (nscd-modules): Likewise.
3763         ($(objpfx)nscd): Don't depend on libnsl.
3764         * nscd/nscd_hash.c: New file.
3765         * nscd/nscd_hash.h: Likewise.
3766         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3767         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3768         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3769         instead of <nis/rpcsvc/nis.h>.
3770         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3772 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3774         [BZ #22078]
3775         Avoid large NSS buffers with many addresses, aliases.
3776         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3777         using dynarrays and struct alloc_buffer.
3778         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3779         (tst-nss-files-hosts-multi): Link with -ldl.
3780         * nss/tst-nss-files-hosts-multi.c: New file.
3782 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3784         [BZ #18023]
3785         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3786         scratch_buffer.  Eliminate gotos.
3788 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3790         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3791         libm_alias_ldouble_other.
3792         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3793         undefine and redefine.
3794         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3795         (exp10l): Do not define here.
3796         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3797         (weak_alias): Undefine and redefine.
3798         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3799         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3800         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3801         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3803         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3804         [!__fma] (fma): Define using libm_alias_double.
3805         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3806         [!__fmaf] (fmaf): Define using libm_alias_float.
3807         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3808         (fmal): Define using libm_alias_ldouble.
3810 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3812         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3813         New macro.
3814         (libm_alias_double_other): Likewise.
3815         (libm_alias_double_r): Use libm_alias_double_other_r.
3816         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3817         New macro.
3818         (libm_alias_float_other): Likewise.
3819         (libm_alias_float_r): Use libm_alias_float_other_r.
3820         * sysdeps/generic/libm-alias-float128.h
3821         (libm_alias_float128_other_r): New macro.
3822         (libm_alias_float128_other): Likewise.
3823         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3824         * sysdeps/generic/libm-alias-ldouble.h
3825         (libm_alias_ldouble_other_r): New macro.
3826         (libm_alias_ldouble_other): Likewise.
3827         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3828         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3829         (libm_alias_double_other_r): New macro.
3830         (libm_alias_double_other): Likewise.
3831         (libm_alias_double_r): Use libm_alias_double_other_r.
3832         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3833         (libm_alias_ldouble_other_r): New macro.
3834         (libm_alias_ldouble_other): Likewise.
3835         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3836         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3837         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3838         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3839         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3840         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3841         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3842         * math/w_exp2f.c: Use libm_alias_float_other.
3843         * math/w_expf.c: Likewise.
3844         * math/w_log2f.c: Likewise.
3845         * math/w_logf.c: Likewise.
3846         * math/w_powf.c: Likewise.
3847         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3848         [!__exp2f]: Use libm_alias_float_other.
3849         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3850         [!__expf]: Use libm_alias_float_other.
3851         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3852         [!__log2f]: Use libm_alias_float_other.
3853         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3854         [!__logf]: Use libm_alias_float_other.
3855         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3856         [!__powf]: Use libm_alias_float_other.
3858 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3860         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3861         function.
3862         (_nss_files_gethostbyname3_r): Call it.
3864 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3866         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3867         error.  Remove default definition of declare_mgen_alias.
3868         [!declare_mgen_alias_r]: Likewise.
3869         * sysdeps/generic/math-type-macros-double.h
3870         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3871         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3872         (declare_mgen_alias_r): Likewise.
3873         * sysdeps/generic/math-type-macros-float128.h
3874         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3875         * sysdeps/generic/math-type-macros-ldouble.h
3876         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3877         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3878         macro.
3879         (declare_mgen_alias_r_s): Likewise.
3880         (declare_mgen_alias_r): Likewise.
3881         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3882         (lgamma_r): Define using libm_alias_double_r.
3883         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3884         (lgammaf_r): Define using libm_alias_float_r.
3885         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3886         (lgammal_r): Define using libm_alias_ldouble_r.
3887         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3888         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3890 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3892         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3893         extern declaration.
3895 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3897         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3899 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3901         [BZ #21326]
3902         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3903         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3904         * math/Makefile (test-math-cxx11): New test.
3905         * math/test-math-cxx11.cc: New file.
3907 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3909         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3911         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3912         call to allocate the slave pty file descriptor.
3914 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3916         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3917         [!__fma] (fma): Define using libm_alias_double.
3918         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3919         [!__fma] (fma): Define using libm_alias_double.
3921         * sysdeps/ieee754/float128/float128_private.h: Include
3922         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3923         (libm_alias_ldouble_r): Undefine and redefine.
3924         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3925         <libm-alias-ldouble.h>.
3926         (asinhl): Define using libm_alias_ldouble.
3927         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3928         <libm-alias-ldouble.h>.
3929         (atanl): Define using libm_alias_ldouble.
3930         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3931         <libm-alias-ldouble.h>.
3932         (cbrtl): Define using libm_alias_ldouble.
3933         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3934         <libm-alias-ldouble.h>.
3935         (ceill): Define using libm_alias_ldouble.
3936         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3937         <libm-alias-ldouble.h>.
3938         (copysignl): Define using libm_alias_ldouble.
3939         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3940         <libm-alias-ldouble.h>.
3941         (cosl): Define using libm_alias_ldouble.
3942         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3943         <libm-alias-ldouble.h>.
3944         (erfl): Define using libm_alias_ldouble.
3945         (erfcl): Likewise.
3946         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3947         <libm-alias-ldouble.h>.
3948         (expm1l): Define using libm_alias_ldouble.
3949         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3950         <libm-alias-ldouble.h>.
3951         (fabsl): Define using libm_alias_ldouble.
3952         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3953         <libm-alias-ldouble.h>.
3954         (floorl): Define using libm_alias_ldouble.
3955         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3956         <libm-alias-ldouble.h>.
3957         (fmal): Define using libm_alias_ldouble.
3958         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3959         <libm-alias-ldouble.h>.
3960         (frexpl): Define using libm_alias_ldouble.
3961         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3962         libm_alias_ldouble.
3963         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3964         <libm-alias-ldouble.h>.
3965         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3966         libm_alias_ldouble.
3967         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3968         <libm-alias-ldouble.h>.
3969         (getpayloadl): Define using libm_alias_ldouble.
3970         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3971         <libm-alias-ldouble.h>.
3972         (llrintl): Define using libm_alias_ldouble.
3973         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3974         <libm-alias-ldouble.h>.
3975         (llroundl): Define using libm_alias_ldouble.
3976         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3977         <libm-alias-ldouble.h>.
3978         (logbl): Define using libm_alias_ldouble.
3979         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3980         <libm-alias-ldouble.h>.
3981         (lrintl): Define using libm_alias_ldouble.
3982         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3983         <libm-alias-ldouble.h>.
3984         (lroundl): Define using libm_alias_ldouble.
3985         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3986         <libm-alias-ldouble.h>.
3987         (modfl): Define using libm_alias_ldouble.
3988         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3989         <libm-alias-ldouble.h>.
3990         (nearbyintl): Define using libm_alias_ldouble.
3991         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3992         <libm-alias-ldouble.h>.
3993         (nextafterl): Define using libm_alias_ldouble.
3994         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3995         <libm-alias-ldouble.h>.
3996         (nextupl): Define using libm_alias_ldouble.
3997         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3998         <libm-alias-ldouble.h>.
3999         (remquol): Define using libm_alias_ldouble.
4000         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
4001         <libm-alias-ldouble.h>.
4002         (rintl): Define using libm_alias_ldouble.
4003         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
4004         <libm-alias-ldouble.h>.
4005         (roundevenl): Define using libm_alias_ldouble.
4006         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
4007         <libm-alias-ldouble.h>.
4008         (roundl): Define using libm_alias_ldouble.
4009         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
4010         using libm_alias_ldouble.
4011         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
4012         <libm-alias-ldouble.h>.
4013         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
4014         Define using libm_alias_ldouble.
4015         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
4016         <libm-alias-ldouble.h>.
4017         (sincosl): Define using libm_alias_ldouble.
4018         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
4019         <libm-alias-ldouble.h>.
4020         (sinl): Define using libm_alias_ldouble.
4021         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
4022         <libm-alias-ldouble.h>.
4023         (tanhl): Define using libm_alias_ldouble.
4024         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
4025         <libm-alias-ldouble.h>.
4026         (tanl): Define using libm_alias_ldouble.
4027         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
4028         <libm-alias-ldouble.h>.
4029         (totalorderl): Define using libm_alias_ldouble.
4030         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
4031         <libm-alias-ldouble.h>.
4032         (totalordermagl): Define using libm_alias_ldouble.
4033         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
4034         <libm-alias-ldouble.h>.
4035         (truncl): Define using libm_alias_ldouble.
4036         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
4037         libm_alias_ldouble.
4038         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
4039         libm_alias_ldouble.
4040         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
4041         <libm-alias-ldouble.h>.
4042         (weak_alias): Do not undefine and redefine.
4043         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
4044         (copysignl): Define with long_double_symbol only if [IS_IN
4045         (libc)].
4046         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
4047         <libm-alias-ldouble.h>.
4048         (weak_alias): Do not undefine and redefine.
4049         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
4050         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
4051         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
4052         <libm-alias-ldouble.h>.
4053         (weak_alias): Do not undefine and redefine.
4054         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
4055         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
4056         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
4057         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
4058         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
4059         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
4060         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
4061         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
4062         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
4063         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
4064         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
4065         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
4066         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
4067         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
4068         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
4069         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
4070         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
4071         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
4072         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
4073         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
4074         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
4075         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
4076         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
4077         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
4078         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
4079         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
4081 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
4083         [BZ #22111]
4084         * malloc/malloc.c (tcache_shutting_down): Use bool type.
4085         (tcache_thread_freeres): Set tcache_shutting_down before
4086         freeing the tcache.
4087         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
4088         * malloc/tst-malloc-tcache-leak.c: New file.
4090 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4092         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
4093         back to powerpc32 file.
4094         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4095         (memrchr): Add __memrchr_power8 to ifunc list.
4096         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
4097         extra bytes for unaligned inputs.
4099 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
4101         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
4102         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
4103         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
4104         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
4105         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
4107 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
4109         * sysdeps/arm/libm-test-ulps: Update.
4111         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
4112         <libm-alias-ldouble.h>.
4113         (asinhl): Define using libm_alias_ldouble.
4114         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
4115         <libm-alias-ldouble.h>.
4116         (cbrtl): Define using libm_alias_ldouble.
4117         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
4118         <libm-alias-ldouble.h>.
4119         (copysignl): Define using libm_alias_ldouble.
4120         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
4121         <libm-alias-ldouble.h>.
4122         (cosl): Define using libm_alias_ldouble.
4123         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
4124         <libm-alias-ldouble.h>.
4125         (erfl): Define using libm_alias_ldouble.
4126         (erfcl): Likewise.
4127         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
4128         <libm-alias-ldouble.h>.
4129         (fmal): Define using libm_alias_ldouble.
4130         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
4131         <libm-alias-ldouble.h>.
4132         (frexpl): Define using libm_alias_ldouble.
4133         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
4134         libm_alias_ldouble.
4135         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
4136         <libm-alias-ldouble.h>.
4137         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
4138         libm_alias_ldouble.
4139         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
4140         <libm-alias-ldouble.h>.
4141         (getpayloadl): Define using libm_alias_ldouble.
4142         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
4143         <libm-alias-ldouble.h>.
4144         (llrintl): Define using libm_alias_ldouble.
4145         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
4146         <libm-alias-ldouble.h>.
4147         (llroundl): Define using libm_alias_ldouble.
4148         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
4149         <libm-alias-ldouble.h>.
4150         (lrintl): Define using libm_alias_ldouble.
4151         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
4152         <libm-alias-ldouble.h>.
4153         (lroundl): Define using libm_alias_ldouble.
4154         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
4155         <libm-alias-ldouble.h>.
4156         (modfl): Define using libm_alias_ldouble.
4157         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
4158         <libm-alias-ldouble.h>.
4159         (nextupl): Define using libm_alias_ldouble.
4160         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
4161         <libm-alias-ldouble.h>.
4162         (remquol): Define using libm_alias_ldouble.
4163         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
4164         <libm-alias-ldouble.h>.
4165         (roundevenl): Define using libm_alias_ldouble.
4166         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
4167         <libm-alias-ldouble.h>.
4168         (roundl): Define using libm_alias_ldouble.
4169         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
4170         using libm_alias_ldouble.
4171         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
4172         <libm-alias-ldouble.h>.
4173         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
4174         <libm-alias-ldouble.h>.
4175         (setpayloadsigl): Define using libm_alias_ldouble.
4176         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
4177         <libm-alias-ldouble.h>.
4178         (sincosl): Define using libm_alias_ldouble.
4179         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
4180         <libm-alias-ldouble.h>.
4181         (sinl): Define using libm_alias_ldouble.
4182         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
4183         <libm-alias-ldouble.h>.
4184         (tanhl): Define using libm_alias_ldouble.
4185         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
4186         <libm-alias-ldouble.h>.
4187         (tanl): Define using libm_alias_ldouble.
4188         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
4189         <libm-alias-ldouble.h>.
4190         (totalorderl): Define using libm_alias_ldouble.
4191         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
4192         <libm-alias-ldouble.h>.
4193         (totalordermagl): Define using libm_alias_ldouble.
4194         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
4195         libm_alias_ldouble.
4196         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
4197         libm_alias_ldouble.
4199 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4201         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4202         memmove_falkor.
4203         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4204         (__libc_ifunc_impl_list): Likewise.
4205         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
4206         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
4208         * benchtests/bench-memmove-walk.c: New file.
4209         * benchtests/Makefile (string-benchset): Add it.
4211         * benchtests/bench-memset-walk.c: New file.
4212         * benchtests/Makefile (string-benchset): Add it.
4214         * benchtests/bench-memcpy-walk.c: New file.
4215         * benchtests/Makefile (string-benchset): Add it.
4217 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4219         nscd: Eliminate compilation time dependency in the build output.
4220         * nscd/nscd_stat.c (STATDATA_VERSION)
4221         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
4222         (STATDATA_VERSION_FULL): New macro definitions.
4223         (compilation): Remove.
4224         (struct statdata): Adjust version member.
4225         (send_stats): Set version from STATDATA_VERSION_FULL.
4226         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
4228 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
4230         * configure.ac (--enable-add-ons): Remove option.
4231         (machine): Do not mention add-ons in comment.
4232         (LIBC_PRECONFIGURE): Likewise.
4233         (add_ons): Remove variable and sanity checks and logic to locate
4234         add-ons.
4235         (add_ons_automatic): Remove variable.
4236         (configured_add_ons): Likewise.
4237         (add_ons_sfx): Likewise.
4238         (add_ons_pfx): Likewise.
4239         (add_on_subdirs): Likewise.
4240         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
4241         consideration of add-ons in Implies handling.
4242         (sysdeps_add_ons): Likewise.
4243         * configure: Regenerated.
4244         * libidn/configure.ac: Remove.
4245         * libidn/configure: Likewise.
4246         * sysdeps/unix/inet/configure.ac: New file.
4247         * sysdeps/unix/inet/configure: New generated file.
4248         * sysdeps/unix/inet/Subdirs: Add libidn.
4249         * Makeconfig (sysdeps-srcdirs): Remove variable.
4250         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
4251         ($(common-objpfx)config.status): Do not depend on add-on files.
4252         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
4253         comment.
4254         (all-subdirs): Do not include $(add-on-subdirs).
4255         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
4256         * config.make.in (add-ons): Remove variable.
4257         (add-on-subdirs): Likewise.
4258         (sysdeps-add-ons): Likewise.
4259         * manual/Makefile (add-chapters): Remove.
4260         ($(objpfx)texis): Do not depend on $(add-chapters).
4261         (nonexamples): Do not handle $(add-chapters).
4262         (examples): Do not handle $(add-ons).
4263         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
4264         libc-texinfo.sh.
4265         * manual/install.texi (Installation): Do not mention add-ons.
4266         (--enable-add-ons): Do not document configure option.
4267         * INSTALL: Regenerated.
4268         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
4269         * manual/maint.texi (Hierarchy Conventions): Do not mention
4270         add-ons.
4271         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
4272         --enable-add-ons.
4273         * scripts/gen-sorted.awk: Do not handle Subdirs files from
4274         add-ons.
4275         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
4276         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
4278 2017-10-05  Andreas Schwab  <schwab@suse.de>
4280         [BZ #15142]
4281         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
4282         (_IO_flush_all_lockp): Always lock list_all_lock.
4283         (_IO_flush_all_linebuffered): Likewise.
4284         (_IO_unbuffer_all): Likewise.
4286 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4288         [BZ #15436]
4289         Do not flush stdio streams on abort.
4290         * stdlib/abort.c (fflush): Remove macro definition.
4291         (abort): Remove stages related to stdio flushing.
4293 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4295         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
4297 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
4299         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4301 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4303         * support/support_format_hostent.c (support_format_hostent): Add
4304         more error information for NETDB_INTERNAL.
4306 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4308         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
4309         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
4310         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
4311         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
4312         AC_DEFINE if multi-arch is enabled.
4313         * sysdeps/i386/configure: Regenerated.
4315 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4317         * Makeconfig (+link-static-before-libc): Use
4318         $(DEFAULT-LDFLAGS-$(@F)).
4319         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
4320         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
4321         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
4323 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4325         * elf/Makefile (tests): Add tst-main1.
4326         (modules-names): Add tst-main1mod.
4327         ($(objpfx)tst-main1): New.
4328         (CRT-tst-main1): Likewise.
4329         (LDFLAGS-tst-main1): Likewise.
4330         (LDLIBS-tst-main1): Likewise.
4331         (tst-main1mod.so-no-z-defs): Likewise.
4332         * elf/tst-main1.c: New file.
4333         * elf/tst-main1mod.c: Likewise.
4335 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4337         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
4339 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
4341         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
4342         (fma): Define using libm_alias_double.
4343         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
4344         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
4345         <math_ldbl_opt.h>.
4346         (fmal): Do not define as compat symbol here.
4347         * sysdeps/alpha/fpu/s_fma.c: New file.
4349 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4351         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
4353 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
4355         [BZ #22229]
4356         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
4357         <math_ldbl_opt.h>
4358         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
4359         and libc.
4360         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
4361         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4362         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
4363         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
4364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4365         Include <math_ldbl_opt.h>
4366         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
4367         and libc.
4368         (compat_symbol): Undefine and redefine.
4369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
4370         <math_ldbl_opt.h>
4371         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4372         (compat_symbol): Undefine and redefine.
4373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
4374         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
4375         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
4376         GLIBC_2_1 for libm.
4377         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
4378         GLIBC_2.0 copysignl symbol.
4379         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4380         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
4382         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
4384 2017-10-04  Florian Weimer  <fweimer@redhat.com>
4386         * scripts/check-local-headers.sh: Ignore nspr4 header file
4387         directory in addition to nspr.
4389 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
4391         [BZ #17956]
4392         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
4393         * configure: Regenerate.
4394         * crypt/Makefile (nss-cpp-flags): New variable.
4395         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
4396         (CPPFLAGS-md5-crypt.c): Use it.
4397         * scripts/check-local-headers.sh: Ignore nspr header file
4398         directory.
4400 2017-10-04  Andreas Schwab  <schwab@suse.de>
4402         * nis/Makefile (services): Remove compat.
4403         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
4404         ($(objpfx)libnss_compat.so): Remove rule.
4405         * nis/Versions (libnss_compat): Remove.
4406         * nss/Makefile (services): Add compat.
4407         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
4408         * nss/Versions (libnss_compat): Define.
4409         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
4410         Don't include <rpc/types.h>.  Replace bool_t by bool.
4411         * nss/nss_compat/compat-initgroups.c: Likewise.
4412         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
4413         instead of <rpcsrv/ypclnt.h>.
4414         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
4415         yp_get_default_domain.
4416         * nss/nss_compat/compat-pwd.c: Likewise.
4417         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
4418         yp_get_default_domain.
4419         * nss/nss_compat/nisdomain.c: New file.
4420         * nss/nss_compat/nisdomain.h: Likewise.
4422 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4424         [BZ #22244]
4425         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
4426         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4428 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4430         [BZ #22243]
4431         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
4432         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
4434 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4436         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
4437         "movl main@GOTOFF(%ebx), %eax".
4439 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4441         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
4442         allow undefined _DYNAMIC in PIE libc.a.
4443         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4444         Likewse.
4446 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4448         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
4449         check _DYNAMIC.
4451 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4453         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
4454         check _DYNAMIC.
4456 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4458         * math/test-math-iscanonical.cc (error): Replace bool with int.
4460 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4462         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
4463         (modf): Define using libm_alias_double, only if [!__modf].
4464         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
4465         <libm-alias-double.h>.
4466         (modf): Define using libm_alias_double, only if [!__modf].
4467         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
4468         compat symbol here.
4469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
4470         (weak_alias): Do not undefine and redefine.
4471         (strong_alias): Likewise.
4472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
4473         (weak_alias): Likewise.
4474         (strong_alias): Likewise.
4476         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
4477         (logb): Define using libm_alias_double, only if [!__logb].
4478         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
4479         <libm-alias-double.h>.
4480         (logb): Define using libm_alias_double, only if [!__logb].
4481         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
4482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
4483         (weak_alias): Do not undefine and redefine.
4484         (strong_alias): Likewise.
4485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
4486         (weak_alias): Likewise.
4487         (strong_alias): Likewise.
4489 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4491         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
4492         Check SHARED instead PIC.
4494 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4496         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
4497         [!__fmaf] (fmaf): Define using libm_alias_float.
4499         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
4500         (frexp): Define using libm_alias_double.
4501         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
4502         <libm-alias-double.h>.
4503         (frexp): Define using libm_alias_double.
4504         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
4505         compat symbol here.
4507 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4509         [BZ #22235]
4510         * math/math.h: Trivial fix for unbalanced parentheses in comment.
4511         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
4512         (CFLAGS-test-math-iscanonical.cc): New variable.
4513         * math/test-math-iscanonical.cc: New file.
4514         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
4515         Provide a C++ implementation based on function overloading,
4516         rather than using __MATH_TG, which uses C-only builtins.
4517         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
4518         Likewise.
4519         * sysdeps/powerpc/powerpc64le/Makefile
4520         (CFLAGS-test-math-iscanonical.cc): New variable.
4522 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4524         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
4525         (ceil): Define using libm_alias_double.
4526         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
4527         (floor): Define using libm_alias_double.
4528         * sysdeps/ieee754/dbl-64/s_llround.c: Include
4529         <libm-alias-double.h>.
4530         (llround): Define using libm_alias_double.
4531         * sysdeps/ieee754/dbl-64/s_lround.c: Include
4532         <libm-alias-double.h>.
4533         (lround): Define using libm_alias_double.
4534         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
4535         <libm-alias-double.h>.
4536         (nearbyint): Define using libm_alias_double.
4537         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
4538         <libm-alias-double.h>.
4539         (remquo): Define using libm_alias_double.
4540         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
4541         (rint): Define using libm_alias_double.
4542         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
4543         (round): Define using libm_alias_double.
4544         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
4545         (trunc): Define using libm_alias_double.
4546         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
4547         <libm-alias-double.h>.
4548         (ceil): Define using libm_alias_double.
4549         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
4550         <libm-alias-double.h>.
4551         (floor): Define using libm_alias_double.
4552         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
4553         <libm-alias-double.h>.
4554         (llround): Define using libm_alias_double.
4555         [_LP64] (lround): Likewise.
4556         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
4557         <libm-alias-double.h>.
4558         [!_LP64] (lround): Define using libm_alias_double.
4559         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
4560         <libm-alias-double.h>.
4561         (nearbyint): Define using libm_alias_double.
4562         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
4563         <libm-alias-double.h>.
4564         (remquo): Define using libm_alias_double.
4565         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
4566         <libm-alias-double.h>.
4567         (rint): Define using libm_alias_double.
4568         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
4569         <libm-alias-double.h>.
4570         (round): Define using libm_alias_double.
4571         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
4572         <libm-alias-double.h>.
4573         (trunc): Define using libm_alias_double.
4574         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
4575         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
4576         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
4577         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
4578         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
4579         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
4580         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
4581         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
4582         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
4584 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4586         * math/w_remainder.c: New file.
4587         * math/w_remainderf.c: New file.
4588         * math/w_remainderl.c: New file.
4590 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4592         * elf/rtld.c (BOOTSTRAP_MAP): New.
4593         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
4594         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4595         Likewise.
4596         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4597         Likewise.
4598         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4599         Likewise.
4601 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4603         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
4604         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
4605         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
4606         rtld_hidden_data_ver): Define to empty.
4607         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
4608         __assert_perror_fail): Likewise.
4609         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4610         (__rewinddir): Likewise.
4611         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4612         (__profile_frequency): Likewise.
4613         * include/setjmp.h (__sigsetjmp): Likewise.
4614         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
4615         __libc_sigaction): Likewise.
4616         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
4617         not set hidden attribute.
4618         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
4619         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
4620         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
4621         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
4622         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
4623         __fxstatat64): Likewise.
4624         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4625         (__uname): Likewise.
4626         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4627         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
4628         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
4629         (NO_RTLD_HIDDEN): Set.
4630         * sysdeps/mach/hurd/configure: Refresh.
4631         * config.h.in: Refresh.
4633 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
4635         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
4636         (atan): Define using libm_alias_double.
4637         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
4638         (tan): Define using libm_alias_double.
4639         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
4640         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
4642         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
4643         define as weak alias of __atan.  Do not define any aliases if
4644         [__atan].
4645         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
4646         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
4647         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
4648         as weak alias of __tan.  Do not define any aliases if [__tan].
4649         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
4650         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
4651         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
4652         __atan.
4653         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
4654         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
4655         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
4656         and define as weak alias of __atan.
4657         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
4658         __atan.
4659         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
4660         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
4661         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
4662         define as weak alias of __tan.
4664 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4666         * math/w_lgamma.c: New file.
4667         * math/w_lgammaf.c: New file.
4668         * math/w_lgammal.c: New file.
4670 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4672         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
4673         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
4674         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
4675         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
4676         * sysdeps/ieee754/flt-32/w_logf.c: New file.
4677         * sysdeps/ieee754/flt-32/w_powf.c: New file.
4678         * sysdeps/i386/fpu/w_log2f.c: New file.
4679         * sysdeps/i386/fpu/w_logf.c: New file.
4680         * sysdeps/i386/fpu/w_powf.c: New file.
4681         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
4682         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
4683         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
4685 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4686             H.J. Lu  <hongjiu.lu@intel.com>
4688         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4689         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4690         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4691         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4692         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4693         the new expf code.
4694         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4695         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4696         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4697         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4698         * sysdeps/i386/fpu/w_exp2f.c: New file.
4699         * sysdeps/i386/fpu/w_expf.c: New file.
4700         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4701         * sysdeps/x86_64/fpu/w_expf.c: New file.
4703 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4705         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4706         (log2f): Likewise.
4707         (powf): Likewise.
4708         * math/w_log2f.c: New file.
4709         * math/w_logf.c: New file.
4710         * math/w_powf.c: New file.
4711         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4712         * math/w_logf_compat.c (__logf_compat): Likewise.
4713         * math/w_powf_compat.c (__powf_compat): Likewise.
4714         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4715         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4716         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4717         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4718         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4719         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4720         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4721         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4722         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4723         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4724         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4725         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4726         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4727         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4728         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4730         Likewise.
4731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4732         Likewise.
4733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4734         Likewise.
4735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4736         Likewise.
4737         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4738         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4739         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4740         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4741         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4743         Likewise.
4744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4745         Likewise.
4746         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4747         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4748         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4750 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4752         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4753         (sysdep_routines): Add memrchr_power8.
4754         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4755         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4756         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4757         New file.
4758         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4759         (memrchr): Add __memrchr_power8 to ifunc list.
4760         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4762 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4764         [BZ #18822]
4765         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4766         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4767         libc_hidden_def.
4768         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4769         (__posix_fallocate64_l64): Likewise.
4771 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4773         [BZ #18822]
4774         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4775         (__sched_setaffinity_new): Add libc_hidden_proto and
4776         libc_hidden_def.
4778 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4780         [BZ #18822]
4781         * include/glob.h (__glob64): Add libc_hidden_proto.
4782         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4783         libc_hidden_def.
4785 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4787         [BZ #18822]
4788         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4789         attribute_hidden.
4791 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4793         [BZ #18822]
4794         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4798         [BZ #18822]
4799         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4800         libc_hidden_def.
4802 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4804         [BZ #18822]
4805         * csu/version.c (__libc_print_version): Add attribute_hidden.
4807 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4809         [BZ #18822]
4810         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4812 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4814         [BZ #18822]
4815         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4817 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4819         [BZ #18822]
4820         * nscd/nscd_helper.c (__nis_hash): New prototype.
4822 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4824         [BZ #18822]
4825         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4826         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4827         libc_hidden_def.
4828         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4829         * termios/tcgetattr.c (__tcgetattr): Likewise.
4831 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4833         [BZ #18822]
4834         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4835         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4836         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4837         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4838         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4840 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4842         [BZ #18822]
4843         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4845 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4847         [BZ #18822]
4848         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4849         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4851 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4853         [BZ #18822]
4854         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4856 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4858         [BZ #18822]
4859         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4860         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4862 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4864         [BZ #18822]
4865         * include/ifreq.h: New file.
4866         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4867         (__ifreq): Likewise.
4868         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4869         (__ifreq): Likewise.
4871 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4873         [BZ #18822]
4874         * include/idna.h: New file.
4875         * inet/getnameinfo.c: Include <idna.h> instead of
4876         <libidn/idna.h>.
4877         (__idna_to_unicode_lzlz): Removed.
4878         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4879         <libidn/idna.h>.
4880         (__idna_to_ascii_lz): Removed.
4881         (__idna_to_unicode_lzlz): Likewise.
4883 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4885         [BZ #18822]
4886         * include/plural-exp.h: New file.
4887         * intl/plural-exp.c: Include <plural-exp.h> instead of
4888         "plural-exp.h".
4890 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4892         [BZ #18822]
4893         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4894         "getsourcefilter.h".
4895         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4896         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4897         "getsourcefilter.h".
4898         (__get_sol): Removed.
4900 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4902         [BZ #18822]
4903         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4904         to ...
4905         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4907 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4909         [BZ #18822]
4910         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4911         attribute_hidden.
4913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4915         [BZ #18822]
4916         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4918 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4920         [BZ #18822]
4921         * include/search.h (__tdestroy): Add libc_hidden_proto.
4922         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4924 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4926         [BZ #18822]
4927         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4929 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4931         [BZ #18822]
4932         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4933         attribute_hidden.
4935 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4937         [BZ #18822]
4938         * include/signal.h (__kill): Add libc_hidden_proto.
4939         (__sigblock): Likewise.
4940         (__sigprocmask): Likewise.
4941         (__sigaltstack): Likewise.
4942         * signal/kill.c (__kill): Add libc_hidden_def.
4943         * signal/sigblock.c (__sigblock): Likewise.
4944         * signal/sigprocmask.c (__sigprocmask): Likewise.
4945         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4946         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4947         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4948         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4949         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4950         Likewise.
4951         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4952         Likewise.
4953         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4954         (__sigprocmask): Likewise.
4955         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4956         Likewise.
4957         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4958         (__sigprocmask): Likewise.
4959         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4960         Likewise.
4962 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4964         [BZ #18822]
4965         * include/string.h (__strsep): Add libc_hidden_proto.
4966         * string/strsep.c (__strsep): Add libc_hidden_def.
4968 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4970         [BZ #18822]
4971         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4972         attribute_hidden.
4973         (__spawni): Likewise.
4975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4977         [BZ #18822]
4978         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4979         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4980         libc_hidden_def.
4982 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4984         [BZ #18822]
4985         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4987 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4989         [BZ #18822]
4990         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4991         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4992         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4993         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4994         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4995         Likewise.
4996         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4997         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4999 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5001         [BZ #18822]
5002         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
5003         (__dcigettext): Likewise.
5005 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5007         [BZ #18822]
5008         * include/sys/sysinfo.h (__get_nprocs_conf): Add
5009         libc_hidden_proto.
5010         (__get_nprocs): Likewise.
5011         (__get_phys_pages): Likewise.
5012         (__get_avphys_pages): Likewise.
5013         (__get_child_max): Add attribute_hidden.
5014         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
5015         (__get_nprocs): Likewise.
5016         (__get_phys_pages): Likewise.
5017         (__get_avphys_pages): Likewise.
5018         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
5019         libc_hidden_def.
5020         (__get_nprocs): Likewise.
5021         (__get_phys_pages): Likewise.
5022         (__get_avphys_pages): Likewise.
5023         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
5024         libc_hidden_def.
5025         (__get_nprocs_conf): Likewise.
5026         (__get_phys_pages): Likewise.
5027         (__get_avphys_pages): Likewise.
5029 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5031         [BZ #18822]
5032         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
5033         attribute_hidden.
5034         (__netlink_close): Likewise.
5035         (__netlink_free_handle): Likewise.
5036         (__netlink_request): Likewise.
5038 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5040         [BZ #18822]
5041         * include/rpc/rpc.h (__rpc_thread_variables): Add
5042         attribute_hidden.
5043         (__rpc_thread_svc_cleanup): Likewise.
5044         (__rpc_thread_clnt_cleanup): Likewise.
5045         (__rpc_thread_key_cleanup): Likewise.
5047 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5049         [BZ #18822]
5050         * include/sys/uio.h (__readv): Add libc_hidden_proto.
5051         (__writev): Likewise.
5052         * misc/readv.c (__readv): Add libc_hidden_def.
5053         * misc/writev.c (__writev): Likewise.
5054         * sysdeps/posix/readv.c (__readv): Likewise.
5055         * sysdeps/posix/writev.c (__writev): Likewise.
5056         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
5057         (__readv): Likewise.
5058         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
5059         (__writev): Likewise.
5061 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5063         [BZ #18822]
5064         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
5065         (__regcomp): Add libc_hidden_proto.
5066         (__regexec): Likewise.
5067         (__regfree): Likewise.
5068         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
5069         (__regfree): Likewise.
5070         * posix/regexec.c (__regexec): Likewise.
5072 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5074         [BZ #18822]
5075         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
5076         (__getutent): Likewise.
5077         (__getutid): Likewise.
5078         (__getutline): Likewise.
5079         (__pututline): Likewise.
5080         (__getutent_r): Likewise.
5081         (__getutid_r): Likewise.
5082         (__getutline_r): Likewise.
5083         (__utmpname): Add attribute_hidden.
5084         (__setutent): Likewise.
5085         (__endutent): Likewise.
5086         * login/getutent.c (__getutent): Add libc_hidden_def.
5087         * login/getutent_r.c (__getutent_r): Likewise.
5088         (__pututline): Likewise.
5089         * login/getutid.c (__getutid): Likewise.
5090         * login/getutid_r.c (__getutid_r): Likewise.
5091         * login/getutline.c (__getutline): Likewise.
5092         * login/getutline_r.c (__getutline_r): Likewise.
5093         * login/updwtmp.c (__updwtmp): Likewise.
5095 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5097         [BZ #18822]
5098         * include/dirent.h (__opendir): Always add attribute_hidden.
5099         (__fdopendir): Likewise.
5100         (__closedir): Likewise.
5101         (__readdir): Likewise.
5102         (__readdir64): Add libc_hidden_proto.
5103         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
5104         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
5105         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
5106         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
5107         New alias.
5109 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5111         [BZ #18822]
5112         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
5113         * include/netdb.h (__gethostbyaddr_r): Likewise.
5114         (__gethostbyname_r): Likewise.
5115         (__gethostbyname2_r): Likewise.
5116         (__getnetbyaddr_r): Likewise.
5117         (__getnetbyname_r): Likewise.
5118         (__getservbyname_r): Likewise.
5119         (__getservbyport_r): Likewise.
5120         (__getprotobyname_r): Likewise.
5121         (__getprotobynumber_r): Likewise.
5122         (__getnetgrent_r): Likewise.
5123         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
5124         (__getrpcbynumber_r): Likewise.
5125         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
5127 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5129         [BZ #18822]
5130         * include/stdio.h (__fcloseall): Add attribute_hidden.
5131         (__getline): Likewise.
5132         (__path_search): Likewise.
5133         (__gen_tempname): Likewise.
5134         (__libc_message): Likewise.
5135         (__flockfile): Likewise.
5136         (__funlockfile): Likewise.
5137         (__fxprintf): Likewise.
5138         (__fxprintf_nocancel): Likewise.
5140 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5142         [BZ #18822]
5143         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
5144         (__sgetsgent_r): Likewise.
5146 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5148         [BZ #18822]
5149         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
5150         (__statfs64): Likewise.
5151         (__fstatfs64): Likewise.
5152         * include/sys/statvfs.h (__statvfs64): Likewise.
5153         (__fstatvfs64): Likewise.
5154         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
5155         (__statfs_filesize_max): Likewise.
5156         (__statfs_symlinks): Likewise.
5157         (__statfs_chown_restricted): Likewise.
5159 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5161         [BZ #18822]
5162         * include/time.h (__tzstring): Add attribute_hidden.
5163         (__tzfile_read): Likewise.
5164         (__tzfile_compute): Likewise.
5165         (__tzfile_default): Likewise.
5166         (__tzset_parse_tz): Likewise.
5167         (__offtime): Likewise.
5168         (__asctime_r): Likewise.
5169         (__tzset): Likewise.
5170         (__tz_convert): Likewise.
5171         (__getdate_r): Likewise.
5172         (__getclktck): Likewise.
5174 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5176         [BZ #18822]
5177         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
5178         (__nscd_unmap): Likewise.
5179         (__nscd_cache_search): Likewise.
5180         (__nscd_get_nl_timestamp): Likewise.
5181         (__nscd_getpwnam_r): Likewise.
5182         (__nscd_getpwuid_r): Likewise.
5183         (__nscd_getgrnam_r): Likewise.
5184         (__nscd_getgrgid_r): Likewise.
5185         (__nscd_gethostbyname_r): Likewise.
5186         (__nscd_gethostbyname2_r): Likewise.
5187         (__nscd_gethostbyaddr_r): Likewise.
5188         (__nscd_getai): Likewise.
5189         (__nscd_getgrouplist): Likewise.
5190         (__nscd_getservbyname_r): Likewise.
5191         (__nscd_getservbyport_r): Likewise.
5192         (__nscd_innetgr): Likewise.
5193         (__nscd_setnetgrent): Likewise.
5195 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5197         [BZ #18822]
5198         * include/gmp.h: Declare internal functions only if _ISOMAC is
5199         undefined.
5200         (__mpn_extract_double): Add attribute_hidden.
5201         (__mpn_extract_long_double): Likewise.
5202         (__mpn_extract_float128): Likewise.
5203         (__mpn_construct_float): Likewise.
5204         (__mpn_construct_double): Likewise.
5205         (__mpn_construct_long_double): Likewise.
5206         (__mpn_construct_float128): Likewise.
5207         (mpn_add_1): Likewise.
5208         (mpn_addmul_1): Likewise.
5209         (mpn_add_n): Likewise.
5210         (mpn_cmp): Likewise.
5211         (mpn_divrem): Likewise.
5212         (mpn_lshift): Likewise.
5213         (mpn_mul): Likewise.
5214         (mpn_mul_1): Likewise.
5215         (mpn_rshift): Likewise.
5216         (mpn_sub_1): Likewise.
5217         (mpn_submul_1): Likewise.
5218         (mpn_sub_n): Likewise.
5220 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5222         [BZ #18822]
5223         * include/wchar.h (__wcsnlen): Add attribute_hidden.
5224         (__wcscat): Likewise.
5225         (__btowc): Likewise.
5226         (__wcrtomb): Likewise.
5227         (__mbsrtowcs): Likewise.
5228         (__wcsrtombs): Likewise.
5229         (__mbsnrtowcs): Likewise.
5230         (__wcsnrtombs): Likewise.
5231         (__wcsncpy): Likewise.
5232         (__wcpncpy): Likewise.
5233         (__wmemcpy): Likewise.
5234         (__wmempcpy): Likewise.
5235         (__wmemmove): Likewise.
5236         (__wcschrnul): Likewise.
5237         (__vfwscanf): Likewise.
5238         (__vswprintf): Likewise.
5239         (__fwprintf): Likewise.
5240         (__vfwprintf): Likewise.
5242 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5244         [BZ #18822]
5245         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
5246         (__getgrgid_r): Likewise.
5247         (__getgrnam_r): Likewise.
5248         * include/pwd.h (__getpwuid_r): Likewise.
5249         (__getpwnam_r): Likewise.
5250         (__fgetpwent_r): Likewise.
5251         * include/shadow.h (__getspnam_r): Likewise.
5252         (__sgetspent_r): Likewise.
5253         (__fgetspent_r): Likewise.
5255 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5257         [BZ #18822]
5258         * include/unistd.h (__access): Add attribute_hidden.
5259         (__lseek64): Likewise.
5260         (__libc_pread64): Likewise.
5261         (__pipe2): Likewise.
5262         (__sleep): Likewise.
5263         (__chdir): Likewise.
5264         (__fchdir): Likewise.
5265         (__getcwd): Likewise.
5266         (__rmdir): Likewise.
5267         (__execvpe): Likewise.
5268         (__execve): Likewise.
5269         (__setsid): Likewise.
5270         (__getuid): Likewise.
5271         (__geteuid): Likewise.
5272         (__getgid): Likewise.
5273         (__getegid): Likewise.
5274         (__getgroups): Likewise.
5275         (__group_member): Likewise.
5276         (__ttyname_r): Likewise.
5277         (__isatty): Likewise.
5278         (__readlink): Likewise.
5279         (__unlink): Likewise.
5280         (__gethostname): Likewise.
5281         (__profil): Likewise.
5282         (__getdtablesize): Likewise.
5283         (__brk): Likewise.
5284         (__ftruncate): Likewise.
5285         (__ftruncate64): Likewise.
5287 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5289         [BZ #18822]
5290         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
5291         * argp/argp-fs-xinl.c: Likewise.
5292         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
5293         * argp/argp-parse.c: Include <argp.h>.
5294         * argp/argp-xinl.c: Likewise.
5295         * include/argp-fmtstream.h: New file.
5296         * include/argp.h (__argp_error): Add attribute_hidden.
5297         (__argp_failure): Likewise.
5298         (__argp_input): Likewise.
5299         (__argp_state_help): Likewise.
5301 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5303         [BZ #18822]
5304         * include/wchar.h (____wcstof_l_internal): New prototype.
5305         (____wcstod_l_internal): Likewise.
5306         (____wcstold_l_internal): Likewise.
5307         (____wcstol_l_internal): Likewise.
5308         (____wcstoul_l_internal): Likewise.
5309         (____wcstoll_l_internal): Likewise.
5310         (____wcstoull_l_internal): Likewise.
5311         (____wcstof128_l_internal): Likewise.
5312         * sysdeps/ieee754/float128/wcstof128.c
5313         (____wcstof128_l_internal): Removed.
5314         * sysdeps/ieee754/float128/wcstof128_l.c
5315         (____wcstof128_l_internal): Likewise.
5316         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
5317         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
5318         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
5319         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
5320         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
5321         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
5322         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
5323         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
5324         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
5325         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
5327 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5329         [BZ #18822]
5330         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
5331         instead of <sys/statvfs.h>.
5332         (__internal_statvfs): Removed.
5333         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
5334         instead of <sys/statvfs.h>.
5335         (__internal_statvfs64): Removed.
5336         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
5337         "internal_statvfs.h" instead of <sys/statvfs.h>.
5338         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
5339         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
5340         instead of <sys/statvfs.h>.
5341         (__internal_statvfs): Removed.
5342         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
5343         instead of <sys/statvfs.h>.
5344         (__internal_statvfs64): Removed.
5346 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5348         [BZ #18822]
5349         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
5350         (__gconv_close): Likewise.
5351         (__gconv): Likewise.
5352         (__gconv_find_transform): Likewise.
5353         (__gconv_lookup_cache): Likewise.
5354         (__gconv_compare_alias_cache): Likewise.
5355         (__gconv_load_cache): Likewise.
5356         (__gconv_get_path): Likewise.
5357         (__gconv_close_transform): Likewise.
5358         (__gconv_release_cache): Likewise.
5359         (__gconv_find_shlib): Likewise.
5360         (__gconv_release_shlib): Likewise.
5361         (__gconv_get_builtin_trans): Likewise.
5362         (__gconv_compare_alias): Likewise.
5363         * include/dlfcn.h (_dlerror_run): Likewise.
5364         * include/stdio.h (__fortify_fail_abort): Likewise.
5365         * include/time.h (__tz_compute): Likewise.
5366         (__strptime_internal): Likewise.
5367         * intl/gettextP.h (_nl_find_domain): Likewise.
5368         (_nl_load_domain): Likewise.
5369         (_nl_find_msg): Likewise.
5370         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
5371         (EXTRACT_PLURAL_EXPRESSION): Likewise.
5372         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
5373         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
5374         (__gai_find_request): Likewise.
5375         (__gai_remove_request): Likewise.
5376         (__gai_notify): Likewise.
5377         (__gai_notify_only): Likewise.
5378         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
5379         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
5380         (_dl_non_dynamic_init): Likewise.
5381         (_dl_aux_init): Likewise.
5382         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
5383         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
5384         Likewise.
5385         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
5386         (__wcsmbs_clone_conv): Likewise.
5387         (__wcsmbs_named_conv): Likewise.
5389 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5391         [BZ #18822]
5392         * include/stdlib.h (__random): Add attribute_hidden.
5393         (__random_r): Likewise.
5394         (__srandom_r): Likewise.
5395         (__initstate_r): Likewise.
5396         (__setstate_r): Likewise.
5397         (__erand48_r): Likewise.
5398         (__nrand48_r): Likewise.
5399         (__jrand48_r): Likewise.
5400         (__srand48_r): Likewise.
5401         (__seed48_r): Likewise.
5402         (__lcong48_r): Likewise.
5403         (__drand48_iterate): Likewise.
5404         (__setenv): Likewise.
5405         (__unsetenv): Likewise.
5406         (__clearenv): Likewise.
5407         (__ptsname_r): Likewise.
5408         (__posix_openpt): Likewise.
5409         (__add_to_environ): Likewise.
5410         (__realpath): Add libc_hidden_proto.
5411         (__ecvt_r): Likewise.
5412         (__fcvt_r): Likewise.
5413         (__qecvt_r): Likewise.
5414         (__qfcvt_r): Likewise.
5415         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
5416         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
5418 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5420         [BZ #18822]
5421         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
5422         * include/time.h (__mktime_internal): Likewise.
5423         * libio/iolibio.h (__fopen_internal): Likewise.
5425 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
5427         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
5428         pointer in frame.
5429         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
5430         Correct offset used to restore PIC register.
5432 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
5434         [BZ libc/22165]
5435         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
5436         code to load address of __getcontext_ret when generating PIC code.
5438 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5440         * elf/Makefile (tests-static-internal): Add
5441         tst-tls1-static-non-pie.
5442         (LDFLAGS-tst-tls1-static-non-pie): New.
5443         * elf/tst-tls1-static-non-pie.c: New file.
5445 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5447         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
5448         (asinh): Define using libm_alias_double.
5449         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
5450         (cbrt): Define using libm_alias_double.
5451         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
5452         <libm-alias-double.h>.
5453         (copysign): Define using libm_alias_double.
5454         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
5455         (erf): Define using libm_alias_double.
5456         (erfc): Likewise.
5457         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
5458         (expm1): Define using libm_alias_double.
5459         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
5460         (fabs): Define using libm_alias_double.
5461         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
5462         libm_alias_double.
5463         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
5464         <libm-alias-double.h>.
5465         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
5466         libm_alias_double.
5467         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
5468         <libm-alias-double.h>.
5469         (getpayload): Define using libm_alias_double.
5470         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
5471         <libm-alias-double.h>.
5472         (llrint): Define using libm_alias_double.
5473         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
5474         (lrint): Define using libm_alias_double.
5475         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
5476         <libm-alias-double.h>.
5477         (nextup): Define using libm_alias_double.
5478         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
5479         <libm-alias-double.h>.
5480         (roundeven): Define using libm_alias_double.
5481         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
5482         libm_alias_double.
5483         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
5484         <libm-alias-double.h>.
5485         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
5486         using libm_alias_double.
5487         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
5488         (cos): Define using libm_alias_double.
5489         (sin): Likewise.
5490         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
5491         <libm-alias-double.h>.
5492         (sincos): Define using libm_alias_double.
5493         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
5494         (tanh): Define using libm_alias_double.
5495         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
5496         <libm-alias-double.h>.
5497         (totalorder): Define using libm_alias_double.
5498         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
5499         <libm-alias-double.h>.
5500         (totalordermag): Define using libm_alias_double.
5501         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
5502         libm_alias_double.
5503         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
5504         libm_alias_double.
5505         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
5506         <libm-alias-double.h>.
5507         (getpayload): Define using libm_alias_double.
5508         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
5509         <libm-alias-double.h>.
5510         (roundeven): Define using libm_alias_double.
5511         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
5512         <libm-alias-double.h>.
5513         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
5514         <libm-alias-double.h>.
5515         (totalorder): Define using libm_alias_double.
5516         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
5517         <libm-alias-double.h>.
5518         (totalordermag): Define using libm_alias_double.
5519         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
5520         libc compat symbol here.
5521         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
5522         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
5523         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
5524         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
5525         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
5526         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
5527         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
5528         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
5529         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
5530         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
5532 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5534         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
5535         _dl_relocate_static_pie instead of _dl_start to compute load
5536         address in static PIE.  Return 0 if _DYNAMIC is undefined for
5537         static executable.
5539 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5541         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
5542         _DYNAMIC is undefined for static executable.
5544 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5546         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
5548 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5550         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5552 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5554         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
5555         (__ieee754_lgamma_r): Use fabs rather than __fabs.
5556         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
5557         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
5558         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
5559         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
5560         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
5561         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
5562         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
5563         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5564         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5565         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
5566         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5567         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5568         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5569         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5570         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
5572 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5574         * math/bits/cmathcalls.h (cimag): Remove inline.
5575         (creal): Remove inline.
5576         (conj): Remove inline.
5578 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5580         * math/Makefile (type-float-routines): Add e_powf_log2_data.
5581         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
5582         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
5583         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
5584         (issignalingf_inline): Likewise.
5585         (POWF_LOG2_TABLE_BITS): Likewise.
5586         (POWF_LOG2_POLY_ORDER): Likewise.
5587         (POWF_SCALE_BITS): Likewise.
5588         (POWF_SCALE): Likewise.
5589         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
5590         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
5591         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
5593 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5595         * math/Makefile (type-float-routines): Add e_log2f_data.
5596         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
5597         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
5598         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
5599         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
5600         * sysdeps/i386/fpu/e_log2f_data.c: New file.
5601         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
5602         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
5604 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5606         * math/Makefile (type-float-routines): Add e_logf_data.
5607         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
5608         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
5609         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
5610         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
5611         * sysdeps/i386/fpu/e_logf_data.c: New file.
5612         * sysdeps/ia64/fpu/e_logf_data.c: New file.
5613         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
5615 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5617         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
5618         undefined _DYNAMIC in PIE libc.a.
5619         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
5620         Likewse.
5622 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5624         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
5625         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
5626         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
5627         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
5628         (__signbit): Remove.
5629         (__signbitl): Remove.
5630         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
5631         (__signbit): Remove.
5632         (__signbitl): Remove.
5633         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
5634         (__signbit): Remove.
5635         (__signbitl): Remove.
5636         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
5637         (__signbit): Remove.
5638         (__signbitl): Remove.
5639         * sysdeps/tile/bits/mathinline.h: Delete file.
5640         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
5641         (__signbit): Remove.
5642         (__signbitl): Remove.
5644 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5646         * math/math.h: Improve handling of C99 isgreater macros.
5647         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
5648         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
5649         * sysdeps/powerpc/bits/mathinline.h: Likewise.
5650         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5651         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5653 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5655         * sysdeps/aarch64/libm-test-ulps: Update.
5657 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
5659         [BZ #22225]
5660         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5661         math_opt_barrier on argument when doing arithmetic on it.
5662         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5663         Likewise.  Use math_force_eval not math_opt_barrier after
5664         arithmetic.
5665         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
5666         math_opt_barrier on argument when doing arithmetic on it.
5667         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5668         Likewise.
5670 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5672         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
5673         libc_hidden_def.
5674         (__freeifaddrs): Likewise.
5676 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5678         * include/dirent.h (__dirfd): New declaration.
5679         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
5680         alias.
5681         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
5682         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
5683         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
5684         * include/unistd.h (__revoke): New declaration.
5685         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
5686         alias.
5687         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5688         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5689         revoke.
5690         * include/dirent.h (__seekdir): New declaration.
5691         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5692         redefine as weak alias.
5693         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5694         of seekdir.
5695         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5696         and use libc_hidden_def on them.
5697         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5698         them.
5699         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5700         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5701         instead of getifaddrs and freeifaddrs.
5703 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5705         [BZ #18822]
5706         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5707         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5708         (__dso_handle): Remove declaration.
5709         * dlfcn/tstatexit.c (__dso_handle): Removed.
5710         (main): Don't check __dso_handle.
5711         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5712         (main): Don't check __dso_handle.
5713         * include/dso_handle.h: New file.
5714         * malloc/mtrace.c: Include <dso_handle.h>.
5715         (mtrace): Pass __dso_handle directly.
5716         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5717         (__dso_handle): Remove declaration.
5718         (__pthread_atfork): Pass __dso_handle directly.
5719         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5720         (__dso_handle): Removed.
5721         * posix/wordexp-test.c: Include <dso_handle.h>.
5722         (__dso_handle): Remove declaration.
5723         (__app_register_atfork): Pass __dso_handle directly.
5724         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5725         (__dso_handle): Remove declaration.
5726         (at_quick_exit): Pass __dso_handle directly.
5727         * stdlib/atexit.c: Include <dso_handle.h>.
5728         (__dso_handle): Remove declaration.
5729         (atexit): Pass __dso_handle directly.
5730         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5731         (__dso_handle): Removed.
5733 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5735         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5736         using VDSO.
5738 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5740         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5741         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5742         values to correct default value for given type.
5744 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5746         [BZ #22101]
5747         * elf/Makefile (tests): Add tst-debug1.
5748         ($(objpfx)tst-debug1): New.
5749         ($(objpfx)tst-debug1.out): Likewise.
5750         ($(objpfx)tst-debug1mod1.so): Likewise.
5751         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5752         with p_filesz == 0.
5753         * elf/tst-debug1.c: New file.
5755 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5757         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5758         Define using __ifunc.
5760 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5762         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5763         exp2f() values.
5765 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5767         [BZ #22156]
5768         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5770 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5772         * resolv/Makefile (tests-internal): Fix typo in comment.
5774 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5776         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5778 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5780         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5781         Use an union instead of a max_align_t array for __space,
5782         so that __space is the same size on all platforms.
5783         * malloc/scratch_buffer_grow_preserve.c
5784         (__libc_scratch_buffer_grow_preserve): Likewise.
5786         [BZ #22183]
5787         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5788         version to 2.
5789         * posix/Makefile (routines): Add glob-lstat-compat and
5790         glob64-lstat-compat.
5791         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5792         * posix/glob-lstat-compat.c: New file.
5793         * posix/glob64-lstat-compat.c: Likewise.
5794         * posix/tst-glob_lstat_compat.c: Likewise.
5795         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5796         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5797         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5798         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5799         Likewise.
5800         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5801         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5802         * posix/glob.c (glob_lstat): New function.
5803         (glob): Rename to __glob and add versioned symbol to 2.27.
5804         (glob_in_dir): Use glob_lstat.
5805         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5806         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5807         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5808         2.27.
5809         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5810         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5811         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5812         gl_lstat on glob call.
5813         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5814         and glob64 symbols.
5815         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5816         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5817         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5818         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5819         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5820         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5821         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5822         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5823         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5824         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5825         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5826         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5828         Likewise.
5829         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5831         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5832         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5833         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5834         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5835         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5836         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5837         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5838         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5839         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5840         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5842 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5844         * configure.ac (AS): Require binutils 2.25 or later.
5845         * configure: Regenerated.
5847 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5849         [BZ #22207]
5850         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5851         VM size.
5853 2017-09-25  DJ Delorie  <dj@redhat.com>
5855         [BZ #22161]
5856         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5857         resetting timeout.
5859 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5861         * sysdeps/ieee754/dbl-64/sincos32.h
5862         [SINCCOS32_H]: Remove define.
5863         [SINCOS32_H]: Define.
5865 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5867         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5868         (exp2f): Likewise.
5869         * math/w_exp2f.c: New file.
5870         * math/w_expf.c: New file.
5871         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5872         * math/w_expf_compat.c (__expf_compat): Likewise.
5873         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5874         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5875         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5876         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5877         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5878         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5879         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5880         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5881         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5882         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5883         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5884         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5885         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5886         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5888         Likewise.
5889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5890         Likewise.
5891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5892         Likewise.
5893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5894         Likewise.
5895         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5896         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5897         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5898         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5899         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5900         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5901         Likewise.
5902         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5903         Likewise.
5904         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5905         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5906         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5908 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5910         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5911         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5912         (roundtoint, converttoint): Likewise.
5913         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5914         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5915         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5916         * sysdeps/ieee754/flt-32/math_config.h: New file.
5917         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5918         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5919         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5920         * sysdeps/i386/fpu/math_errf.c: New file.
5921         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5922         * sysdeps/ia64/fpu/math_errf.c: New file.
5923         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5924         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5926 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5928         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5929         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5930         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5931         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5932         to make sure that these symbols are defined.
5933         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5934         of <limits.h>
5935         (__need_NULL): Do not define.
5936         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5937         alignment.
5938         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5939         CMGROUP_MAX, cmsgcred): Do not define.
5940         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5941         NULL.
5942         * bits/socket.h: Likewise.
5943         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5944         __gettimeofday instead of gettimeofday.
5945         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5946         instead of settimeofday.
5948 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5950         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5951         (asinhf): Define using libm_alias_float.
5952         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5953         (atanf): Define using libm_alias_float.
5954         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5955         (cbrtf): Define using libm_alias_float.
5956         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5957         (ceilf): Define using libm_alias_float.
5958         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5959         <libm-alias-float.h>.
5960         (copysignf): Define using libm_alias_float.
5961         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5962         (cosf): Define using libm_alias_float.
5963         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5964         (erff): Define using libm_alias_float.
5965         (erfcf): Likewise.
5966         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5967         (expm1f): Define using libm_alias_float.
5968         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5969         (fabsf): Define using libm_alias_float.
5970         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5971         (floorf): Define using libm_alias_float.
5972         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5973         (frexpf): Define using libm_alias_float.
5974         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5975         libm_alias_float.
5976         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5977         <libm-alias-float.h>.
5978         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5979         libm_alias_float.
5980         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5981         <libm-alias-float.h>.
5982         (getpayloadf): Define using libm_alias_float.
5983         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5984         <libm-alias-float.h>.
5985         (llrintf): Define using libm_alias_float.
5986         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5987         <libm-alias-float.h>.
5988         (llroundf): Define using libm_alias_float.
5989         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5990         (logbf): Define using libm_alias_float.
5991         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5992         (lrintf): Define using libm_alias_float.
5993         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5994         (lroundf): Define using libm_alias_float.
5995         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5996         (modff): Define using libm_alias_float.
5997         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5998         <libm-alias-float.h>.
5999         (nearbyintf): Define using libm_alias_float.
6000         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
6001         <libm-alias-float.h>.
6002         (nextafterf): Define using libm_alias_float.
6003         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
6004         <libm-alias-float.h>.
6005         (nextupf): Define using libm_alias_float.
6006         * sysdeps/ieee754/flt-32/s_remquof.c: Include
6007         <libm-alias-float.h>.
6008         (remquof): Define using libm_alias_float.
6009         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
6010         (rintf): Define using libm_alias_float.
6011         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
6012         <libm-alias-float.h>.
6013         (roundevenf): Define using libm_alias_float.
6014         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
6015         (roundf): Define using libm_alias_float.
6016         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
6017         using libm_alias_float.
6018         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
6019         <libm-alias-float.h>.
6020         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
6021         Define using libm_alias_float.
6022         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
6023         <libm-alias-float.h>.
6024         (sincosf): Define using libm_alias_float.
6025         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
6026         (sinf): Define using libm_alias_float.
6027         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
6028         (tanf): Define using libm_alias_float.
6029         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
6030         (tanhf): Define using libm_alias_float.
6031         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
6032         <libm-alias-float.h>.
6033         (totalorderf): Define using libm_alias_float.
6034         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
6035         <libm-alias-float.h>.
6036         (totalordermagf): Define using libm_alias_float.
6037         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
6038         (truncf): Define using libm_alias_float.
6039         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
6040         libm_alias_float.
6041         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
6042         libm_alias_float.
6044 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6046         [BZ #22146]
6047         math/math.h: Let fpclassify use the builtin in C++ mode, even
6048         when optimazing for size.
6050 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
6052         * csu/Makefile (generated): Do not add version-info.h.
6053         (before-compile): Likewise.
6054         (all-Banner-files): Remove variable.
6055         ($(objpfx)version-info.h): Remove rule.
6056         * csu/version.c (banner): Do not include "version-info.h".
6057         * libidn/Banner: Remove.
6058         * manual/contrib.texi (Simon Josefsson): New entry.
6060 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6062         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6063         Remove conditionals on LDBL_MANT_DIG.
6064         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
6065         (__ieee754_lgammal_r): Likewise.
6067 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6069         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
6070         _Float128 and L().
6071         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
6072         _Float128 and L(). Replace _Float128 with long double and L(x)
6073         with xL, throughout the file.
6074         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6075         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
6076         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
6077         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
6079 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6081         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
6082         sysdeps/ieee754/ldbl-128ibm.
6083         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
6084         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
6085         of including it.  Keep _Float128 and L() intact.  These will be
6086         reviewed by a separate patch.
6087         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6088         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
6089         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
6090         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
6092 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
6095         (__finitef128): Define to __redirect___finitef128.
6096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
6097         (__isinff128): Define to __redirect___isinff128.
6098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
6099         (__isnanf128): Define to __redirect___isnanf128.
6101 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6103         * sysdeps/powerpc/powerpc64le/Makefile
6104         (CFLAGS-tst-strtod-nan-locale.c): New variable.
6105         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
6107 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
6108             Carlos O'Donell  <carlos@redhat.com>
6110         [BZ #22180]
6111         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
6112         * stdlib/test-dlclose-exit-race.c: New file.
6113         * stdlib/test-dlclose-exit-race-helper.c: New file.
6114         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
6116 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
6118         * crypt/Banner: Remove file.
6119         * nptl/Banner: Likewise.
6120         * resolv/Banner: Likewise.
6121         * soft-fp/Banner: Likewise.
6122         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
6123         ($(objpfx)version.d): Remove dependency on banner.h.
6124         ($(objpfx)version.os): Likewise.
6125         * nptl/version.c (banner): Do not include banner.h.
6126         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
6127         Jelinek and BIND code.
6129 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
6130             Carlos O'Donell  <carlos@redhat.com>
6132         * support/xdlfcn.h: New file.
6133         * support/xdlfcn.c: New file.
6134         * support/Makefile (libsupport-routines): Add xdlfcn.
6135         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
6137 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
6139         [BZ #20142]
6140         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6141         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
6142         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
6143         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
6144         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6145         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
6146         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
6147         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6149 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
6150             Ricky Zhou  <rickyz@google.com>
6151             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
6153         [BZ #14333]
6154         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
6155         Remove atomics.
6156         (__new_exitfn): Fail registration when we finished at_exit processing.
6157         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
6158         * stdlib/on_exit.c (__on_exit): Likewise.
6159         * stdlib/exit.c (__exit_funcs_done): New variable.
6160         (__run_exit_handlers): Use __exit_funcs_lock.
6161         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
6162         declarations.
6163         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
6164         (test-cxa_atexit-race, test-on_exit-race): New tests.
6165         * stdlib/test-atexit-race-common.c: New file.
6166         * stdlib/test-atexit-race.c: New file.
6167         * stdlib/test-at_quick_exit-race.c: New file.
6168         * stdlib/test-cxa_atexit-race.c: New file.
6169         * stdlib/test-on_exit-race.c: New file.
6171 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6173         * benchtests/Makefile: Add exp2f and log2f benchmarks.
6174         * benchtests/exp2f-inputs: Copy of expf-inputs.
6175         * benchtests/log2f-inputs: Copy of logf-inputs.
6177 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
6179         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
6180         Explicitly take address of first element of array arguments in
6181         call to INLINE_SYSCALL.
6183 2017-09-19  Andreas Schwab  <schwab@suse.de>
6185         [BZ #22134]
6186         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
6187         execveat first.
6188         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
6189         unimplemented.
6190         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
6191         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
6192         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6193         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
6194         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
6195         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
6196         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6197         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
6198         * posix/Makefile (tests): Add tst-fexecve.
6199         * posix/tst-fexecve.c: New file.
6201 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6203         * benchtests/Makefile: Add logf benchmark.
6204         * benchtests/logf-inputs: Add reduced trace from wrf_r.
6206 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6208         * benchtests/Makefile: Add expf benchmark.
6209         * benchtests/expf-inputs: Add reduced trace from wrf_r.
6211 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6213         * csu/Makefile: Add -funwind-tables to libc-start.c.
6214         * debug/Makefile: Add -funwind-tables to backtrace.c.
6215         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
6216         * sysdeps/arm/Makefile: Likewise.
6217         * sysdeps/i386/Makefile: Likewise.
6218         * sysdeps/m68k/Makefile: Likewise.
6219         * sysdeps/mips/Makefile: Likewise.
6220         * sysdeps/nios2/Makefile: Likewise.
6221         * sysdeps/sh/Makefile: Likewise.
6222         * sysdeps/sparc/Makefile: Likewise.
6224 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
6226         * benchtests/Makefile (bench-math): Add trunc and truncf.
6227         (CFLAGS-bench-trunc.c): New variable.
6228         (CFLAGS-bench-truncf.c): Likewise.
6229         * benchtests/trunc-inputs: New file.
6230         * benchtests/truncf-inputs: Likewise.
6232 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6234         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
6236 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
6238         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
6239         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
6240         redefine.
6241         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
6242         (exp10l): Define as weak alias.
6243         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
6244         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
6245         and redefine.
6246         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
6247         (remainderl): Define as weak alias.
6249         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
6250         (fmal): Define using libm_alias_ldouble.
6251         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
6252         (acoshl): Define using libm_alias_ldouble.
6253         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
6254         (acosl): Define using libm_alias_ldouble.
6255         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
6256         (asinl): Define using libm_alias_ldouble.
6257         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
6258         (atan2l): Define using libm_alias_ldouble.
6259         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
6260         (atanhl): Define using libm_alias_ldouble.
6261         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
6262         (coshl): Define using libm_alias_ldouble.
6263         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
6264         (exp10l): Define using libm_alias_ldouble.
6265         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
6266         (exp2l): Define using libm_alias_ldouble.
6267         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
6268         (expl): Define using libm_alias_ldouble.
6269         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
6270         (fmodl): Define using libm_alias_ldouble.
6271         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
6272         (hypotl): Define using libm_alias_ldouble.
6273         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
6274         (j0l): Define using libm_alias_ldouble.
6275         (y0l): Likewise.
6276         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
6277         (j1l): Define using libm_alias_ldouble.
6278         (y1l): Likewise.
6279         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
6280         (jnl): Define using libm_alias_ldouble.
6281         (ynl): Likewise.
6282         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
6283         (log10l): Define using libm_alias_ldouble.
6284         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
6285         (log2l): Define using libm_alias_ldouble.
6286         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
6287         (logl): Define using libm_alias_ldouble.
6288         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
6289         (powl): Define using libm_alias_ldouble.
6290         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
6291         (remainderl): Define using libm_alias_ldouble.
6292         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
6293         (sinhl): Define using libm_alias_ldouble.
6294         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
6295         (sqrtl): Define using libm_alias_ldouble.
6296         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
6297         (tgammal): Define using libm_alias_ldouble.
6298         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
6299         (exp10l): Do not use long_double_symbol here.
6300         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
6301         [LIBM_SVID_COMPAT] (remainderl): Likewise.
6302         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
6303         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6304         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6305         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6306         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6307         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6308         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6309         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6310         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6311         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6312         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6313         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6314         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6315         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6316         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6317         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6318         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6319         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6320         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6321         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6323 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
6325         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
6326         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
6328 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6330         * io/read.c (read): Add libc_hidden_weak.
6331         * sysdeps/mach/hurd/read.c (read): Likewise.
6332         * io/write.c (write): Likewise.
6333         * sysdeps/mach/hurd/write.c (write): Likewise.
6334         * io/pread64.c (__pread64): Likewise.
6335         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
6336         * posix/pread64.c (__pread64): Add libc_hidden_def.
6338 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6340         * benchtests/scripts/compare_strings.py: New option -g.
6341         (draw_graph): Print a message that a graph is being generated.
6342         (process_results): Generate graph only if -g is passed.
6343         (main): Process option -g.
6345         * benchtests/scripts/compare_strings.py (process_results):
6346         Better spacing for output.
6348         * benchtests/scripts/compare_strings.py: Use argparse.
6349         * benchtests/README: Document existence of compare_strings.py.
6351 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6353         * math/s_fma.c: Include <libm-alias-double.h>.
6354         (fma): Define using libm_alias_double.
6355         * math/s_nextafter.c: Include <libm-alias-double.h>.
6356         (nextafter): Define using libm_alias_double.
6357         * math/w_acos_compat.c: Include <libm-alias-double.h>.
6358         (acos): Define using libm_alias_double.
6359         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
6360         (aocsh): Define using libm_alias_double.
6361         * math/w_asin_compat.c: Include <libm-alias-double.h>.
6362         (asin): Define using libm_alias_double.
6363         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
6364         (atan2): Define using libm_alias_double.
6365         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
6366         (atanh): Define using libm_alias_double.
6367         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
6368         (cosh): Define using libm_alias_double.
6369         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
6370         (exp10): Define using libm_alias_double.
6371         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
6372         (exp2): Define using libm_alias_double.
6373         * math/w_exp_compat.c: Include <libm-alias-double.h>.
6374         (exp): Define using libm_alias_double.
6375         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
6376         (fmod): Define using libm_alias_double.
6377         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
6378         (hypot): Define using libm_alias_double.
6379         * math/w_j0_compat.c: Include <libm-alias-double.h>.
6380         (j0): Define using libm_alias_double.
6381         (y0): Likewise.
6382         * math/w_j1_compat.c: Include <libm-alias-double.h>.
6383         (j1): Define using libm_alias_double.
6384         (y1): Likewise.
6385         * math/w_jn_compat.c: Include <libm-alias-double.h>.
6386         (jn): Define using libm_alias_double.
6387         (yn): Likewise.
6388         * math/w_log10_compat.c: Include <libm-alias-double.h>.
6389         (log10): Define using libm_alias_double.
6390         * math/w_log2_compat.c: Include <libm-alias-double.h>.
6391         (log2): Define using libm_alias_double.
6392         * math/w_log_compat.c: Include <libm-alias-double.h>.
6393         (log): Define using libm_alias_double.
6394         * math/w_pow_compat.c: Include <libm-alias-double.h>.
6395         (pow): Define using libm_alias_double.
6396         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
6397         (remainder): Define using libm_alias_double.
6398         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
6399         (sinh): Define using libm_alias_double.
6400         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
6401         (sqrt): Define using libm_alias_double.
6402         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
6403         (tgamma): Define using libm_alias_double.
6404         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
6405         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
6406         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
6407         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
6408         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
6409         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
6410         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
6411         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
6412         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
6413         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
6414         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
6415         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
6416         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
6417         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
6418         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
6419         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
6420         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
6421         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
6422         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
6423         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
6424         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
6425         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
6426         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
6427         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
6428         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
6430         * math/e_acoshl.c: Remove.
6431         * math/e_acosl.c: Likewise.
6432         * math/e_asinl.c: Likewise.
6433         * math/e_atan2l.c: Likewise.
6434         * math/e_atanhl.c: Likewise.
6435         * math/e_coshl.c: Likewise.
6436         * math/e_expl.c: Likewise.
6437         * math/e_fmodl.c: Likewise.
6438         * math/e_gammal_r.c: Likewise.
6439         * math/e_hypotl.c: Likewise.
6440         * math/e_j0l.c: Likewise.
6441         * math/e_j1l.c: Likewise.
6442         * math/e_jnl.c: Likewise.
6443         * math/e_lgammal_r.c: Likewise.
6444         * math/e_log10l.c: Likewise.
6445         * math/e_log2l.c: Likewise.
6446         * math/e_logl.c: Likewise.
6447         * math/e_powl.c: Likewise.
6448         * math/e_rem_pio2l.c: Likewise.
6449         * math/e_sinhl.c: Likewise.
6450         * math/e_sqrtf128.c: Likewise.
6451         * math/e_sqrtl.c: Likewise.
6452         * math/k_cosl.c: Likewise.
6453         * math/k_sinl.c: Likewise.
6454         * math/k_tanl.c: Likewise.
6455         * math/s_asinhl.c: Likewise.
6456         * math/s_atanl.c: Likewise.
6457         * math/s_cbrtl.c: Likewise.
6458         * math/s_erfl.c: Likewise.
6459         * math/s_expm1l.c: Likewise.
6460         * math/s_log1pl.c: Likewise.
6461         * math/s_tanhl.c: Likewise.
6463 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6465         [BZ #21745]
6466         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
6467         [$(subdir) = math] (sysdep_calls): New variable.  Has the
6468         previous contents of sysdep_routines, but re-sorted..
6469         [$(subdir) = math] (sysdep_routines): Re-use the contents from
6470         sysdep_calls.
6471         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
6472         defined in sysdep_calls and replace by the respective m_* names.
6473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
6474         (compat_symbol): Undefine to avoid duplicated compat symbols in
6475         libc.
6477 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6479         * math/s_fmaf.c: Include <libm-alias-float.h>.
6480         (fmaf): Define using libm_alias_float.
6481         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
6482         (acosf): Define using libm_alias_float.
6483         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
6484         (acoshf): Define using libm_alias_float.
6485         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
6486         (asinf): Define using libm_alias_float.
6487         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
6488         (atan2f): Define using libm_alias_float.
6489         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
6490         (atanhf): Define using libm_alias_float.
6491         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
6492         (coshf): Define using libm_alias_float.
6493         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
6494         (exp10f): Define using libm_alias_float.
6495         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
6496         (fmodf): Define using libm_alias_float.
6497         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
6498         (hypotf): Define using libm_alias_float.
6499         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
6500         (j0f): Define using libm_alias_float.
6501         (y0f): Likewise.
6502         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
6503         (j1f): Define using libm_alias_float.
6504         (y1f): Likewise.
6505         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
6506         (jnf): Define using libm_alias_float.
6507         (ynf): Likewise.
6508         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
6509         (log10f): Define using libm_alias_float.
6510         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
6511         (log2f): Define using libm_alias_float.
6512         * math/w_logf_compat.c: Include <libm-alias-float.h>.
6513         (logf): Define using libm_alias_float.
6514         * math/w_powf_compat.c: Include <libm-alias-float.h>.
6515         (powf): Define using libm_alias_float.
6516         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
6517         (remainderf): Define using libm_alias_float.
6518         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
6519         (sinhf): Define using libm_alias_float.
6520         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
6521         (sqrtf): Define using libm_alias_float.
6522         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
6523         (tgammaf): Define using libm_alias_float.
6525 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6527         * include/math.h (roundeven): Change hidden_proto call to
6528         __roundeven.
6529         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
6530         alias.
6531         [NO_LONG_DOUBLE] (__j0l): New strong alias.
6532         (y0): Rename to __y0 and define as weak alias.
6533         [NO_LONG_DOUBLE] (__y0l): New strong alias.
6534         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
6535         alias.
6536         (y0f): Rename to __y0f and define as weak alias.
6537         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
6538         alias.
6539         [NO_LONG_DOUBLE] (__j1l): New strong alias.
6540         (y1): Rename to __y1 and define as weak alias.
6541         [NO_LONG_DOUBLE] (__y1l): New strong alias.
6542         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
6543         alias.
6544         (y1f): Rename to __y1f and define as weak alias.
6545         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
6546         alias.
6547         [NO_LONG_DOUBLE] (__jnl): New strong alias.
6548         (yn): Rename to __yn and define as weak alias.
6549         [NO_LONG_DOUBLE] (__ynl): New strong alias.
6550         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
6551         alias.
6552         (ynf): Rename to __ynf and define as weak alias.
6553         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
6554         (fromfp): Define as weak alias.
6555         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
6556         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
6557         (fromfpx): Define as weak alias.
6558         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
6559         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
6560         __getpayload and define as weak alias.
6561         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6562         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
6563         __roundeven and define as weak alias.
6564         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6565         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
6566         __setpayload.
6567         (setpayload): Define as weak alias.
6568         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
6569         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
6570         __setpayloadsig.
6571         (setpayloadsig): Define as weak alias.
6572         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
6573         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
6574         __totalorder and define as weak alias.
6575         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6576         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
6577         to __totalordermag and define as weak alias.
6578         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6579         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
6580         (ufromfp): Define as weak alias.
6581         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
6582         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
6583         __ufromfpx.
6584         (ufromfpx): Define as weak alias.
6585         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
6586         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
6587         Rename to __getpayload and define as weak alias.
6588         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6589         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
6590         Rename to __roundeven and define as weak alias.
6591         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6592         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
6593         Rename to __totalorder and define as weak alias.
6594         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6595         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
6596         (totalordermag): Rename to __totalordermag and define as weak
6597         alias.
6598         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6599         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
6600         macro.
6601         (__roundevenl): Likewise.
6602         (__totalorderl): Likewise.
6603         (__totalordermagl): Likewise
6604         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
6605         __fromfpf128.
6606         (fromfpf128): Define as weak alias.
6607         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
6608         __fromfpxf128.
6609         (fromfpxf128): Define as weak alias.
6610         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
6611         __setpayloadf128.
6612         (setpayloadf128): Define as weak alias.
6613         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
6614         __setpayloadsigf128.
6615         (setpayloadsigf128): Define as weak alias.
6616         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
6617         __ufromfpf128.
6618         (ufromfpf128): Define as weak alias.
6619         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
6620         __ufromfpxf128.
6621         (ufromfpxf128): Define as weak alias.
6622         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
6623         (fromfpf): Define as weak alias.
6624         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
6625         __fromfpxf.
6626         (fromfpxf): Define as weak alias.
6627         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
6628         __getpayloadf and define as weak alias.
6629         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
6630         __roundevenf and define as weak alias.
6631         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
6632         __setpayloadf.
6633         (setpayloadf): Define as weak alias.
6634         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
6635         __setpayloadsigf.
6636         (setpayloadsigf): Define as weak alias.
6637         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
6638         __totalorderf and define as weak alias.
6639         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
6640         Rename to __totalordermagf and define as weak alias.
6641         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
6642         __ufromfpf.
6643         (ufromfpf): Define as weak alias.
6644         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
6645         __ufromfpxf.
6646         (ufromfpxf): Define as weak alias.
6647         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
6648         __fromfpl.
6649         (fromfpl): Define as weak alias.
6650         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
6651         __fromfpxl.
6652         (fromfpxl): Define as weak alias.
6653         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
6654         to __getpayloadl and define as weak alias.
6655         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
6656         __roundevenl and define as weak alias.
6657         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
6658         __setpayloadl.
6659         (setpayloadl): Define as weak alias.
6660         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
6661         __setpayloadsigl.
6662         (setpayloadsigl): Define as weak alias.
6663         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
6664         to __totalorderl and define as weak alias.
6665         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
6666         Rename to __totalordermagl and define as weak alias.
6667         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
6668         __ufromfpl.
6669         (ufromfpl): Define as weak alias.
6670         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
6671         __ufromfpxl.
6672         (ufromfpxl): Define as weak alias.
6673         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
6674         __fromfpl.
6675         (fromfpl): Define as weak alias.
6676         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
6677         __fromfpxl.
6678         (fromfpxl): Define as weak alias.
6679         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
6680         Rename to __getpayloadl and define as weak alias.
6681         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
6682         to __roundevenl and define as weak alias.  Call __roundeven
6683         instead of roundeven.
6684         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
6685         __setpayloadl.
6686         (setpayloadl): Define as weak alias.
6687         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6688         __setpayloadsigl.
6689         (setpayloadsigl): Define as weak alias.
6690         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6691         Rename to __totalorderl and define as weak alias.
6692         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6693         Rename to __totalordermagl and define as weak alias.
6694         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6695         __ufromfpl.
6696         (ufromfpl): Define as weak alias.
6697         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6698         __ufromfpxl.
6699         (ufromfpxl): Define as weak alias.
6700         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6701         __fromfpl.
6702         (fromfpl): Define as weak alias.
6703         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6704         __fromfpxl.
6705         (fromfpxl): Define as weak alias.
6706         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6707         __getpayloadl and define as weak alias.
6708         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6709         __roundevenl and define as weak alias.
6710         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6711         __setpayloadl.
6712         (setpayloadl): Define as weak alias.
6713         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6714         __setpayloadsigl.
6715         (setpayloadsigl): Define as weak alias.
6716         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6717         __totalorderl and define as weak alias.
6718         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6719         Rename to __totalordermagl and define as weak alias.
6720         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6721         __ufromfpl.
6722         (ufromfpl): Define as weak alias.
6723         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6724         __ufromfpxl.
6725         (ufromfpxl): Define as weak alias.
6727 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6729         * benchtests/bench-string.h (realloc_bufs): New function.
6730         (test_init): Call it.
6731         * benchtests/bench-memset-large.c (do_test): Likewise.
6732         * benchtests/bench-memset.c (do_test): Likewise.
6734         * benchtests/bench-memset-large.c: Print output in JSON
6735         format.
6736         * benchtests/bench-memset.c: Likewise.
6738 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6740         [BZ #21084]
6741         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6742         * iconvdata/Makefile: Add IBM858.
6743         * iconvdata/gconv-modules: Likewise.
6744         * iconvdata/tst-tables.sh: Likewise.
6745         * iconvdata/ibm858.c: New file.
6746         * localedata/charmaps/IBM858: Likewise.
6748 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6750         [BZ #22023]
6751         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6752         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6754 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6756         [BZ #22112]
6757         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6758         and add tel_int_fmt.
6760 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6762         * sysdeps/generic/libm-alias-float128.h: New file.
6763         * sysdeps/generic/math-type-macros-float128.h: Include
6764         <libm-alias-float128.h>.
6765         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6767 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6769         * sysdeps/generic/libm-alias-ldouble.h: New file.
6770         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6771         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6772         * sysdeps/generic/math-type-macros-ldouble.h: Include
6773         <libm-alias-ldouble.h>.
6774         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6775         libm_alias_ldouble.
6777 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6779         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6780         * math/w_exp_compat.c: ... here.
6781         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6782         * math/w_expf_compat.c: ... here.
6783         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6784         * math/w_expl_compat.c: ... here.
6785         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6786         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6787         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6788         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6790 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6792         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6793         redefine.
6794         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6795         macro.
6796         (ldexpl): Only define as compat symbol for libc, not libm.
6797         (scalbnl): Define as compat symbol for libc here.
6798         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6799         define for [IS_IN (libc)].
6800         (__ldexpl_2): Remove alias.
6801         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6802         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6803         name in long_double_symbol call.
6804         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6805         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6806         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6807         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6808         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6809         Remove macro.
6810         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6811         Define as compat symbol.
6813 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6815         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6816         * sysdeps/unix/sysv/linux/alpha/Makefile
6817         [$(subdir) = csu] (sysdep_routines): Remove rule.
6819 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6821         * sysdeps/generic/libm-alias-double.h: New file.
6822         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6823         * sysdeps/generic/math-type-macros-double.h: Include
6824         <libm-alias-double.h>.
6825         [declare_mgen_alias] (declare_mgen_alias): Define to use
6826         libm_alias_double.
6827         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6828         (M_LIBM_NEED_COMPAT): Remove macro.
6829         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6830         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6831         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6832         code.
6833         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6834         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6835         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6836         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6837         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6838         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6839         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6840         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6841         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6842         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6843         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6844         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6845         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6846         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6847         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6848         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6849         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6850         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6851         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6852         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6853         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6854         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6855         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6856         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6857         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6858         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6859         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6860         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6861         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6862         macro.
6863         (declare_mgen_alias): New macro.
6864         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6865         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6867         (M_LIBM_NEED_COMPAT): Remove macro.
6868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6869         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6870         <first-versions.h>.
6871         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6872         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6874 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6876         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6877         (declare_mgen_alias_2): Remove.
6878         * sysdeps/generic/math-type-macros-double.h
6879         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6880         Likewise.
6881         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6882         alias.
6883         (ldexp): Define with declare_mgen_alias.
6884         (scalbn): Likewise.
6886 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6888         * grp/initgroups.c: Include config.h.
6889         (DEFAULT_CONFIG): New macro.
6890         (internal_getgrouplist): Use DEFAULT_CONFIG.
6891         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6892         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6893         (DEFAULT_DEFCONFIG): New macro.
6894         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6895         * nss/grp-lookup.c: Include config.h
6896         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6897         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6898         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6899         * manual/nss.texi: Update default values section.
6901 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6903         [BZ #21967]
6904         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6905         New.
6906         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6907         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6908         Handle MathVec_Prefer_No_AVX512.
6909         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6910         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6911         is set.
6913 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6915         * posix/sched_primax.c (__sched_get_priority_max): Add
6916         libc_hidden_def.
6917         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6918         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6919         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6920         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6921         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6922         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6923         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6924         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6925         Add aliases.
6927 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6929         * sysdeps/generic/libm-alias-float.h: New file.
6930         * sysdeps/generic/math-type-macros-float.h: Include
6931         <libm-alias-float.h>.
6932         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6934 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6936         [BZ #22093]
6937         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6938         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6939         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6940         (HWCAP_IMPORTANT): Likewise.
6941         (HWCAP_X86_64): New enum.
6942         (HWCAP_X86_AVX512_1): Updated.
6943         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6944         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6945         (modules-names): Add x86_64/tst-x86_64mod-1.
6946         (LDFLAGS-tst-x86_64mod-1.so): New.
6947         ($(objpfx)tst-x86_64-1): Likewise.
6948         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6949         (tst-x86_64-1-clean): Likewise.
6950         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6951         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6953 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6955         * po/sv.po: Update translations.
6956         * po/fr.po: Likewise.
6958 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6960         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6961         seconds.
6962         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6963         seconds.
6964         * elf/rtld-Rules: Fix $(error) use.
6966 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6968         [BZ #14925]
6969         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6970         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6971         * localedata/locales/bn_BD: “Bengali” was still used in some
6972         comments. Change it to “Bangla”.
6974 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6976         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6978 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6980         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6981         thunderx2t99p1 to list of cpu names.
6982         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6983         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6985 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6987         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6988         Use strcmp instead of tunable_is_name.
6990 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6992         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6993         (F_GET_RW_HINT): New macro.
6994         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6995         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6996         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6997         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6998         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6999         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
7000         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
7001         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
7002         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
7004         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
7005         (F_ADD_SEALS): New macro.
7006         [__USE_GNU] (F_GET_SEALS): Likewise.
7007         [__USE_GNU] (F_SEAL_SEAL): Likewise.
7008         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
7009         [__USE_GNU] (F_SEAL_GROW): Likewise.
7010         [__USE_GNU] (F_SEAL_WRITE): Likewise.
7012 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7014         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
7015         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
7016         * posix/glob_internal.h (__glob_pattern_type):
7017         * posix/glob.c (glob):
7018         * posix/glob_pattern_p.c (__glob_pattern_p):
7019         Use them.
7021         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
7022         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
7023         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
7024         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
7025         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
7026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
7027         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
7028         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
7029         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
7030         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7031         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
7032         * sysdeps/wordsize-64/glob.c: Likewise.
7033         * sysdeps/wordsize-64/glob64.c: Likewise.
7034         * sysdeps/wordsize-64/globfree.c: Likewise.
7035         * sysdeps/wordsize-64/globfree64.c: Likewise.
7036         * sysdeps/unix/sysv/linux/glob.c: New file.
7037         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
7038         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
7039         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
7040         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
7041         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
7042         adds !GLOB_NO_OLD_VERSION as an extra condition.
7043         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
7044         using relative path instead of absolute one.
7045         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
7046         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
7047         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
7048         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
7049         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
7050         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
7052         [BZ #1062]
7053         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
7054         (glob): Use the same scratch buffer for both getlogin_r and
7055         getpwnam_r.  Don’t require preallocation of the login name.  This
7056         simplifies storage allocation, and corrects the handling of
7057         long login names.
7059         [BZ #1062]
7060         * posix/glob.c (glob): Port recent patches to platforms
7061         lacking getpwnam_r.
7062         (glob): Fix longstanding misuse of errno after getpwnam_r, which
7063         returns an error number rather than setting errno.
7065         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
7066         instead of GCC extension.
7067         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
7068         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
7069         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
7071         [BZ #866]
7072         [BZ #1062]
7073         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
7074         * posix/bug-glob1.c: Remove file.
7075         * posix/tst-glob_symlinks.c: New file.
7076         * posix/glob.c (__lstat64): New macro.
7077         (is_dir): New function.
7078         (glob, glob_in_dir): Match symlinks even if they are dangling.
7079         (link_stat, link_exists_p): Remove.  All uses removed.
7081         [BZ #1062]
7082         [BZ #19971]
7083         * posix/glob.c (struct readdir_result): Remove skip_entry member.
7084         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
7085         All uses removed.
7087         [BZ #1062]
7088         CVE-2017-15671
7089         * posix/Makefile (routines): Add globfree, globfree64, and
7090         glob_pattern_p.
7091         * posix/flexmember.h: New file.
7092         * posix/glob_internal.h: Likewise.
7093         * posix/glob_pattern_p.c: Likewise.
7094         * posix/globfree.c: Likewise.
7095         * posix/globfree64.c: Likewise.
7096         * sysdeps/gnu/globfree64.c: Likewise.
7097         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
7098         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
7099         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
7100         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
7101         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
7102         * sysdeps/wordsize-64/globfree.c: Likewise.
7103         * sysdeps/wordsize-64/globfree64.c: Likewise.
7104         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
7105         [NDEBUG): Remove comments.
7106         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
7107         (dirent_type): New type.  Use uint_fast8_t not
7108         uint8_t, as C99 does not require uint8_t.
7109         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
7110         (struct readdir_result): Use dirent_type.  Do not define skip_entry
7111         unless it is needed; this saves a byte on platforms lacking d_ino.
7112         (readdir_result_type, readdir_result_skip_entry):
7113         New functions, replacing ...
7114         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
7115          these functions, which were removed.  This makes the callers
7116         easier to read.  All callers changed.
7117         (D_INO_TO_RESULT): Now empty if there is no d_ino.
7118         (size_add_wrapv, glob_use_alloca): New static functions.
7119         (glob, glob_in_dir): Check for size_t overflow in several places,
7120         and fix some size_t checks that were not quite right.
7121         Remove old code using SHELL since Bash no longer
7122         uses this.
7123         (glob, prefix_array): Separate MS code better.
7124         (glob_in_dir): Remove old Amiga and VMS code.
7125         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
7126         separate files.
7127         (glob_in_dir): Do not rely on undefined behavior in accessing
7128         struct members beyond their bounds.  Use a flexible array member
7129         instead
7130         (link_stat): Rename from link_exists2_p and return -1/0 instead of
7131         0/1.  Caller changed.
7132         (glob): Fix memory leaks.
7133         * posix/glob64 (globfree64): Move to separate file.
7134         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
7135         (globfree64): Remove hidden alias.
7136         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
7137         oldglob.
7138         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
7139         separate file.
7140         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
7141         define.
7142         Move compat code to separate file.
7143         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
7144         separate file.
7146 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7148         * resolv/tst-resolv-qtypes.c (domain): Changed to
7149         "const char domain[] =".
7151 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
7153         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7154         version to 3.1.6.
7156         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
7157         (TCP_MD5SIG_EXT): Likewise.
7158         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
7159         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
7160         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
7162         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
7164 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
7166         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
7168 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
7170         [BZ #22100]
7171         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
7173 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7175         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
7176         before assuming that the file is empty.  Avoid testing buffer content
7177         when nread == 0.
7179 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7181         [BZ #18858]
7182         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
7183         Remove define.
7184         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
7185         Likewise.
7186         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
7187         Likewise.
7188         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
7189         Likewise.
7190         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
7191         Likewise.
7192         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
7193         Likewise.
7194         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
7195         Likewise.
7197 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7199         * malloc/dynarray_emplace_enlarge.c
7200         (__libc_dynarray_emplace_enlarge): Add missing else.
7202 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7204         [BZ #22096]
7205         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
7206         case of failure to obtain the global conf object.
7208 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7210         [BZ #22095]
7211         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
7212         dynarray allocation failure.
7214 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7216         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
7217         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
7218         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
7219         New functions.
7220         (response): Call them.  Add 'p', '6' flag processing.
7221         (test_reverse): New function.
7222         (test_get2_any): Call it.
7223         (test_no_inet6): Add 'p' test.
7224         (test_inet6): Likewise.
7226 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7228         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
7229         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
7230         the QNAME.
7231         (test_gai): Adjust query names.  Add additional tests.
7232         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
7233         test_get2.  Adjust query names.  Add additional tests.
7234         (test_no_inet6): New function, extracted from threadfunc.
7235         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
7236         Add additional tests.
7238 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
7240         [BZ #22070]
7241         * localedata/unicode-gen/utf8_gen.py: Set the width for
7242         characters with Prepended_Concatenation_Mark property to 1
7243         * localedata/charmaps/UTF-8: Updated using the improved script.
7245 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
7247         [BZ #21750]
7248         * localedata/unicode-gen/utf8_gen.py: Improve the script to
7249         use the range notation for all ranges of neighbouring characters
7250         with the same width.
7252 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7254         * sysdeps/generic/math-type-macros-double.h: Include
7255         <math-svid-compat.h>.
7256         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7257         * sysdeps/generic/math-type-macros-float.h: Include
7258         <math-svid-compat.h>.
7259         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7260         * sysdeps/generic/math-type-macros-ldouble.h: Include
7261         <math-svid-compat.h>.
7262         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7263         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
7264         condition.
7265         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
7266         * math/w_acosf_compat.c: Likewise.
7267         * math/w_acosh_compat.c: Likewise.
7268         * math/w_acoshf_compat.c: Likewise.
7269         * math/w_acoshl_compat.c: Likewise.
7270         * math/w_acosl_compat.c: Likewise.
7271         * math/w_asin_compat.c: Likewise.
7272         * math/w_asinf_compat.c: Likewise.
7273         * math/w_asinl_compat.c: Likewise.
7274         * math/w_atan2_compat.c: Likewise.
7275         * math/w_atan2f_compat.c: Likewise.
7276         * math/w_atan2l_compat.c: Likewise.
7277         * math/w_atanh_compat.c: Likewise.
7278         * math/w_atanhf_compat.c: Likewise.
7279         * math/w_atanhl_compat.c: Likewise.
7280         * math/w_cosh_compat.c: Likewise.
7281         * math/w_coshf_compat.c: Likewise.
7282         * math/w_coshl_compat.c: Likewise.
7283         * math/w_exp10_compat.c: Likewise.
7284         * math/w_exp10f_compat.c: Likewise.
7285         * math/w_exp10l_compat.c: Likewise.
7286         * math/w_exp2_compat.c: Likewise.
7287         * math/w_exp2f_compat.c: Likewise.
7288         * math/w_exp2l_compat.c: Likewise.
7289         * math/w_fmod_compat.c: Likewise.
7290         * math/w_fmodf_compat.c: Likewise.
7291         * math/w_fmodl_compat.c: Likewise.
7292         * math/w_hypot_compat.c: Likewise.
7293         * math/w_hypotf_compat.c: Likewise.
7294         * math/w_hypotl_compat.c: Likewise.
7295         * math/w_j0_compat.c: Likewise.
7296         * math/w_j0f_compat.c: Likewise.
7297         * math/w_j0l_compat.c: Likewise.
7298         * math/w_j1_compat.c: Likewise.
7299         * math/w_j1f_compat.c: Likewise.
7300         * math/w_j1l_compat.c: Likewise.
7301         * math/w_jn_compat.c: Likewise.
7302         * math/w_jnf_compat.c: Likewise.
7303         * math/w_jnl_compat.c: Likewise.
7304         * math/w_lgamma_r_compat.c: Likewise.
7305         * math/w_lgammaf_r_compat.c: Likewise.
7306         * math/w_lgammal_r_compat.c: Likewise.
7307         * math/w_log10_compat.c: Likewise.
7308         * math/w_log10f_compat.c: Likewise.
7309         * math/w_log10l_compat.c: Likewise.
7310         * math/w_log2_compat.c: Likewise.
7311         * math/w_log2f_compat.c: Likewise.
7312         * math/w_log2l_compat.c: Likewise.
7313         * math/w_log_compat.c: Likewise.
7314         * math/w_logf_compat.c: Likewise.
7315         * math/w_logl_compat.c: Likewise.
7316         * math/w_pow_compat.c: Likewise.
7317         * math/w_powf_compat.c: Likewise.
7318         * math/w_powl_compat.c: Likewise.
7319         * math/w_remainder_compat.c: Likewise.
7320         * math/w_remainderf_compat.c: Likewise.
7321         * math/w_remainderl_compat.c: Likewise.
7322         * math/w_sinh_compat.c: Likewise.
7323         * math/w_sinhf_compat.c: Likewise.
7324         * math/w_sinhl_compat.c: Likewise.
7325         * math/w_sqrt_compat.c: Likewise.
7326         * math/w_sqrtf_compat.c: Likewise.
7327         * math/w_sqrtl_compat.c: Likewise.
7328         * math/w_tgamma_compat.c: Likewise.
7329         * math/w_tgammaf_compat.c: Likewise.
7330         * math/w_tgammal_compat.c: Likewise.
7331         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
7332         [LIBM_SVID_COMPAT].
7333         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
7334         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
7335         [LIBM_SVID_COMPAT].
7336         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
7337         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
7338         [LIBM_SVID_COMPAT].
7339         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
7340         * sysdeps/i386/fpu/w_sqrt.c: New file.
7341         * sysdeps/ia64/fpu/w_acos.c: Likewise.
7342         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
7343         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
7344         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
7345         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
7346         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
7347         * sysdeps/ia64/fpu/w_asin.c: Likewise.
7348         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
7349         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
7350         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
7351         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
7352         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
7353         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
7354         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
7355         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
7356         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
7357         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
7358         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
7359         * sysdeps/ia64/fpu/w_exp.c: Likewise.
7360         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
7361         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
7362         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
7363         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
7364         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
7365         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
7366         * sysdeps/ia64/fpu/w_expf.c: Likewise.
7367         * sysdeps/ia64/fpu/w_expl.c: Likewise.
7368         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
7369         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
7370         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
7371         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
7372         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
7373         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
7374         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
7375         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
7376         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
7377         * sysdeps/ia64/fpu/w_log.c: Likewise.
7378         * sysdeps/ia64/fpu/w_log10.c: Likewise.
7379         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
7380         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
7381         * sysdeps/ia64/fpu/w_log2.c: Likewise.
7382         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
7383         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
7384         * sysdeps/ia64/fpu/w_logf.c: Likewise.
7385         * sysdeps/ia64/fpu/w_logl.c: Likewise.
7386         * sysdeps/ia64/fpu/w_pow.c: Likewise.
7387         * sysdeps/ia64/fpu/w_powf.c: Likewise.
7388         * sysdeps/ia64/fpu/w_powl.c: Likewise.
7389         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
7390         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
7391         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
7392         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
7393         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
7394         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
7395         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
7396         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
7397         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
7398         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
7399         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
7400         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
7401         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
7402         [LIBM_SVID_COMPAT].
7403         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7404         * sysdeps/ieee754/k_standard.c: Likewise.
7405         * sysdeps/ieee754/k_standardf.c: Likewise.
7406         * sysdeps/ieee754/k_standardl.c: Likewise.
7407         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7408         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7409         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7410         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
7411         long_double_symbol call on [LIBM_SVID_COMPAT].
7412         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
7413         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
7414         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
7415         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
7416         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
7417         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
7418         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
7419         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
7420         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
7421         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
7422         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
7423         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7424         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
7425         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
7426         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
7427         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
7428         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
7429         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
7430         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
7431         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
7432         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
7433         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
7435 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
7437         * include/shlib-compat.h (TEST_COMPAT): New Macro.
7438         * malloc/tst-mallocstate.c: Convert from test-skeleton
7439         to test-driver.  Ifdef code using TEST_COMPAT macro.
7440         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
7441         * math/test-matherr.c: Likewise.
7443 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7445         [BZ #22086]
7446         * debug/pcprofiledump.c (main): Use byte-swapped mask when
7447         comparing word with byte-swapped constant.
7449 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
7451         [BZ #20498]
7452         * locale/iso-639.def: add Miskito.
7453         * localedata/SUPPORTED: Add miq_NI/UTF-8.
7454         * localedata/locales/miq_NI: New file.
7456 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
7458         [BZ #18822]
7459         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
7460         (__mkdir): Likewise.
7461         * io/chmod.c (__chmod): Add libc_hidden_def.
7462         * io/mkdir.c (__mkdir): Likewise.
7463         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
7464         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
7465         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
7466         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
7468 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7470         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7471         version to 4.13.
7473         [BZ #22082]
7474         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
7475         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
7477 2017-09-04  Florian Weimer  <fweimer@redhat.com>
7479         * math/math.h: Issue warning if log is defined.
7481 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7483         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7484         kernel version to 4.13.
7486 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7488         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
7489         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
7490         parameter.
7491         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
7492         just <bits/types.h>.
7493         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
7494         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
7495         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
7496         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
7497         * misc/preadv2.c: Include <errno.h>.
7498         * misc/preadv64v2.c: Include <errno.h>.
7499         * misc/pwritev2.c: Include <errno.h>.
7500         * misc/pwritev64v2.c: Include <errno.h>.
7501         * sysdeps/posix/preadv2.c: Include <errno.h>.
7502         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
7503         Fix <unistd.h> inclusion.
7504         * sysdeps/posix/pwritev2.c: Include <errno.h>.
7505         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
7506         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
7507         __strtoul_internal): New functions.
7508         * sysdeps/posix/pause.c: Include <sigsetops.h>.
7509         * sysdeps/posix/system.c: Include <sigsetops.h>.
7510         * sysdeps/mach/hurd/i386/Makefile
7511         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
7512         [$(subdir) = csu] (sysdep-only-routines): Likewise.
7513         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
7514         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
7515         __feraiseexcept_renamed to feraiseexcept instead of
7516         __GI_feraiseexcept.
7517         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
7518         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
7519         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
7520         RWF_NOWAIT): Define to 0 if undefined already.
7521         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
7522         boils down to 0.
7523         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
7524         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
7526 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7528         * manual/math.texi (pow10): Do not document.
7529         (pow10f): Likewise.
7530         (pow10l): Likewise.
7531         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
7532         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
7533         * math/libm-test-exp10.inc (pow10_test): Remove.
7534         (do_test): Do not call pow10.
7535         * math/w_exp10_compat.c (pow10): Make into compat symbol.
7536         [NO_LONG_DOUBLE] (pow10l): Likewise.
7537         * math/w_exp10f_compat.c (pow10f): Likewise.
7538         * math/w_exp10l_compat.c (pow10l): Likewise.
7539         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
7540         (pow10): Make into compat symbol.
7541         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
7542         (pow10f): Make into compat symbol.
7543         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
7544         (pow10l): Make into compat symbol.
7545         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
7546         pow10.
7547         (CFLAGS-nldbl-pow10.c): Remove variable..
7548         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
7549         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
7550         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
7551         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
7552         Undefine and redefine.
7553         (pow10l): Make into compat symbol.
7554         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
7555         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
7556         * sysdeps/arm/libm-test-ulps: Likewise.
7557         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
7558         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7559         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7560         * sysdeps/microblaze/libm-test-ulps: Likewise.
7561         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
7562         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7563         * sysdeps/nios2/libm-test-ulps: Likewise.
7564         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7565         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
7566         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7567         * sysdeps/sh/libm-test-ulps: Likewise.
7568         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7569         * sysdeps/tile/libm-test-ulps: Likewise.
7570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7572 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7574         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
7576 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7578         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
7579         "../ChangeLog.old/ChangeLog.8".
7580         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
7581         "../ChangeLog.old/ChangeLog.14".
7583 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7585         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
7586         Threads Library.
7588 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7590         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
7592 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7594         * csu/version.c (banner): Remove "by Roland McGrath et al.".
7595         * nptl/Banner: Remove "by Ulrich Drepper et al.".
7597 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7599         * stdlib/tst-atexit-common.c (do_test): Test support for at least
7600         32 atexit handlers.
7602 2017-09-01  Zack Weinberg  <zackw@panix.com>
7604         * math/math.h (HUGE_VAL): Improve commentary.
7606 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7607             Andreas Schwab  <schwab@suse.de>
7609         [BZ #21530]
7610         * include/stdio.h (__gen_tempfd): New function.
7611         * stdio-common/Makefile (routines): Add gentempfd.
7612         * stdio-common/gentempfd.c: New file.
7613         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
7614         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
7615         unnamed file first.
7617 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7619         [BZ #21915]
7620         [BZ #21922]
7621         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
7622         result to determine success or failure, not the errno value.
7623         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
7624         (tst-nss-files-hosts-erange): Link with -ldl.
7625         * nss/tst-nss-files-hosts-erange.c: New file.
7626         * nss/tst-resolv-basic.c (response): Handle nodata.example.
7627         (do_test): Add NO_DATA tests.
7628         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
7629         (do_test): Call it.
7631 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7633         [BZ #21922]
7634         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
7635         coming from gethostbyname2_r.
7637 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7639         * support/namespace.h (struct support_chroot_configuration): Add
7640         hosts, host_conf.
7641         (struct support_chroot): Add path_hosts, path_host_conf.
7642         * support/support_chroot.c (write_file): New function.
7643         (support_chroot_create): Call it to process /etc/resolv.conf,
7644         /etc/hosts, /etc/host.conf.
7645         (support_chroot_free): Update.
7647 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7649         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
7650         status indicates it is set.
7652 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7654         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
7655         function lookup failures more reliable.
7657 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7659         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
7660         (getcanonname): Likewise.
7661         (gaih_inet): Likewise.
7663 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7665         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
7666         (getcanonname): Likewise.
7667         (gaih_inet): Likewise.
7669 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7670             Richard Henderson <rth@twiddle.net>
7672         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
7673         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
7674         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
7675         (IREG_SIZE, OREG_SIZE): New macros.
7676         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
7677         (IREG_SIZE, OREG_SIZE): New macros.
7678         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
7679         (IREG_SIZE): New macro.
7680         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
7681         (IREG_SIZE): New macro.
7682         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
7683         New includes.
7684         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
7685         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7686         (__CONCATX): Handle exceptions correctly on large values that may
7687         set FE_INVALID.
7688         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7689         Initialize if not already set.
7690         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7692 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7694         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7695         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7696         Likewise.
7697         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7698         Likewise.
7699         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7700         Likewise.
7701         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7702         Likewise.
7703         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7704         Likewise.
7705         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7706         Likewise.
7707         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7708         Likewise.
7709         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7710         (NO_CANCELLATION): Likewise.
7711         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7712         Likewise.
7713         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7714         Likewise.
7715         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7716         Likewise.
7717         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7718         (NO_CANCELLATION): Likewise.
7719         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7720         (NO_CANCELLATION): Likewise.
7721         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7722         Likewise
7723         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7724         Likewise.
7725         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7726         Likewise.
7727         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7728         Likewise.
7729         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7730         hidden prototype.
7731         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7732         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7734 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7736         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7737         in resolver call.
7739 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7741         * include/libc-symbols.h (internal_function): Remove.
7743 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7745         * stdlib/fmtmsg.c (internal_addseverity): Remove
7746         internal_function.
7748 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7750         * stdio-common/printf_fp.c (group_number): Remove
7751         internal_function.
7752         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7754 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7756         * posix/fnmatch.c (internal_function): Remove definition.
7757         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7758         * posix/regcomp.c (peek_token, init_word_char)
7759         (duplicate_node_closure, fetch_token, peek_token)
7760         (peek_token_bracket, build_range_exp, build_collating_symbol):
7761         Likewise.
7762         * posix/regex_internal.c (re_string_construct_common)
7763         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7764         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7765         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7766         (re_string_translate_buffer, re_string_reconstruct)
7767         (re_string_peek_byte_case, re_string_fetch_byte_case)
7768         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7769         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7770         (re_node_set_add_intersect, re_node_set_init_union)
7771         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7772         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7773         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7774         (re_acquire_state_context): Likewise.
7775         * posix/regex_internal.h (internal_function): Remove definition.
7776         (re_string_realloc_buffers, build_wcs_buffer)
7777         (build_wcs_upper_buffer, build_upper_buffer)
7778         (re_string_translate_buffer, re_string_context_at)
7779         (re_string_char_size_at, re_string_wchar_at)
7780         (re_string_elem_size_at): Likewise.
7781         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7782         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7783         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7784         (re_search_internal, re_search_2_stub, re_search_stub)
7785         (re_copy_regs, prune_impossible_nodes, check_matching)
7786         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7787         (free_fail_stack_return, sift_states_iter_mb)
7788         (sift_states_backward, build_sifted_states)
7789         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7790         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7791         (check_subexp_limits, sift_states_bkref, merge_state_array)
7792         (find_recover_state, transit_state, merge_state_with_log)
7793         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7794         (transit_state_mb, transit_state_bkref, get_subexp)
7795         (get_subexp_sub, find_subexp_node, check_arrival)
7796         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7797         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7798         (check_node_accept_bytes, find_collation_sequence_value)
7799         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7800         (acquire_init_state_context, check_halt_node_context)
7801         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7802         (sub_epsilon_src_nodes): Likewise.
7803         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7804         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7805         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7806         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7807         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7808         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7809         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7810         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7811         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7812         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7813         (PREADV): Likewise.
7814         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7815         (PREADV): Likewise.
7816         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7817         (PWRITEV): Likewise.
7818         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7819         (PWRITEV): Likewise.
7820         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7821         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7823 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7825         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7826         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7827         Remove internal_function.
7828         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7829         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7830         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7831         (__deallocate_stack, __libc_pthread_init)
7832         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7833         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7834         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7835         Likewise.
7836         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7837         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7838         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7839         Likewise.
7840         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7841         (__pthread_mutex_unlock_usercnt): Likewise.
7843 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7845         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7846         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7847         (fts_safe_changedir): Remove internal_function.
7848         * io/ftw.c (internal_function): Remove definition.
7849         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7851 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7853         * inet/deadline.c (__deadline_current_time)
7854         (__deadline_from_timeval, __deadline_to_ms): Remove
7855         internal_function.
7856         * inet/getnameinfo.c (nrl_domainname): Likewise.
7857         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7858         * inet/inet6_option.c (add_pad): Likewise.
7859         * inet/net-internal.h (__deadline_current_time)
7860         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7861         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7862         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7863         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7865 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7867         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7868         include <bits/nan.h>.
7869         * math/Makefile (headers): Remove bits/nan.h.
7870         * bits/nan.h: Remove.
7871         * sysdeps/ieee754/bits/nan.h: Likewise.
7872         * sysdeps/mips/bits/nan.h: Likewise.
7874         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7875         not include <bits/inf.h>.
7876         * math/Makefile (headers): Remove bits/inf.h.
7877         * bits/inf.h: Remove.
7878         * sysdeps/ieee754/bits/inf.h: Likewise.
7880         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7881         bits/huge_vall.h or bits/huge_val_flt128.h.
7882         (HUGE_VAL): Define directly here.
7883         [__USE_ISOC99] (HUGE_VALF): Likewise.
7884         [__USE_ISOC99] (HUGE_VALL): Likewise.
7885         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7886         (HUGE_VAL_F128): Likewise.
7887         * math/Makefile (headers): Remove bits/huge_val.h,
7888         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7889         * bits/huge_val.h: Remove.
7890         * bits/huge_val_flt128.h: Likewise.
7891         * bits/huge_valf.h: Likewise.
7892         * bits/huge_vall.h: Likewise.
7893         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7894         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7895         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7896         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7897         * sysdeps/sh/bits/huge_val.h: Likewise.
7898         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7899         * sysdeps/x86/bits/huge_vall.h: Likewise.
7901 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7903         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7904         internal_function.
7905         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7906         Likewise.
7907         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7908         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7909         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7910         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7911         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7912         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7913         * elf/dl-libc.c (dlerror_run): Likewise.
7914         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7915         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7916         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7917         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7918         Likewise.
7919         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7920         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7921         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7922         * elf/dl-profile.c (_dl_start_profile): Likewise.
7923         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7924         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7925         Likewise.
7926         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7927         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7928         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7929         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7930         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7931         (_dl_allocate_tls_storage): Likewise.
7932         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7933         (_dl_check_all_versions): Likewise.
7934         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7935         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7936         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7937         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7938         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7939         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7940         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7941         internal_function from __dl_start.
7942         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7943         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7944         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7945         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7946         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7947         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7948         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7949         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7950         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7951         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7952         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7953         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7954         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7955         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7956         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7957         Likewise.
7958         (struct rtld_global_ro): Remove internal_function from the
7959         _dl_lookup_symbol_x member.
7960         (_dl_symbol_value): Remove.  No longer defined anywhere.
7961         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7962         internal_function.
7963         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7964         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7965         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7966         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7967         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7968         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7969         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7970         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7971         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7972         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7973         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7974         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7976 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7978         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7979         Remove internal_function.
7980         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7981         Likewise.
7982         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7983         Likewise.
7985 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7987         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7988         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7989         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7991 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7993         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7994         (__gai_enqueue_request): Remove internal_function.
7995         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7996         (__gai_remove_request, __gai_notify, __gai_notify_only)
7997         (__gai_sigqueue): Likewise.
7998         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7999         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
8000         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
8001         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8002         Likewise.
8004 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8006         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
8007         * include/dirent.h (__opendirat, __getdents, __getdents64)
8008         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
8009         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
8010         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8011         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
8012         Likewise.
8013         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
8015 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8017         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
8018         internal_function.
8019         (GETCWD_RETURN_TYPE): Likewise.
8021 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8023         * include/time.h (__tz_compute, __strptime_internal): Remove
8024         internal_function.
8025         * time/strptime_l.c (__strptime_internal): Likewise.
8026         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
8028 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8030         * iconv/gconv.c (__gconv): Remove internal_function.
8031         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
8032         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
8033         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
8034         (__gconv_release_cache): Likewise.
8035         * iconv/gconv_close.c (__gconv_close): Likewise.
8036         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
8037         (read_conf_file, __gconv_get_path): Likewise.
8038         * iconv/gconv_db.c (derivation_lookup, add_derivation)
8039         (__gconv_release_step, gen_steps, increment_counter)
8040         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
8041         (__gconv_close_transform, free_modules_db): Likewise.
8042         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
8043         Likewise.
8044         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
8045         (__gconv_find_transform, __gconv_lookup_cache)
8046         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
8047         (__gconv_close_transform, __gconv_release_cache)
8048         (__gconv_loaded_object, __gconv_release_shlib)
8049         (__gconv_compare_alias): Likewise.
8050         * iconv/gconv_open.c (__gconv_open): Likewise.
8051         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
8052         * iconv/iconvconfig.c (add_module): Likewise.
8053         * intl/dcigettext.c (plural_lookup, guess_category_value)
8054         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
8055         * intl/eval-plural.h (plural_eval): Likewise.
8056         * intl/finddomain.c (_nl_find_domain): Likewise.
8057         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
8058         (_nl_load_domain, _nl_find_msg): Likewise.
8059         (internal_function): Remove definition.
8060         * intl/loadinfo.h (internal_function): Likewise.
8061         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
8062         internal_function.
8063         * intl/localealias.c (internal_function): Remove definition.
8064         (read_alias_file): Remove internal_function.
8065         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
8066         * intl/plural-exp.h (internal_function): Remove definition.
8067         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
8068         internal_function.
8069         * intl/plural.c: Regenerate.
8070         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
8071         * locale/coll-lookup.c (__collidx_table_lookup)
8072         (__collseq_table_lookup): Likewise.
8073         * locale/coll-lookup.h (__collidx_table_lookup)
8074         (__collseq_table_lookup): Likewise.
8075         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
8076         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8077         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
8078         (_nl_unload_locale): Likewise.
8079         * locale/localeinfo.h (struct __locale_data): Remove
8080         internal_function from cleanup member.
8081         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
8082         (_nl_remove_locale, _nl_load_locale_from_archive)
8083         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
8084         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
8085         (_nl_cleanup_time): Remove internal_function.
8086         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
8087         (_nl_parse_alt_digit): Likewise.
8088         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
8089         (_nl_select_era_entry): Likewise.
8090         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
8091         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
8092         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
8093         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
8094         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
8096 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8098         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
8099         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
8100         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
8101         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
8102         Likewise.
8103         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
8104         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
8105         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
8106         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
8107         Likewise.
8108         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
8110 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8112         * misc/getttyent.c (skip, value): Remove internal_function.
8113         * misc/syslog.c (openlog_internal): Likewise.
8114         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
8116 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8118         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
8119         (__nss_rewrite_field): Remove internal_function.
8120         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8121         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8122         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8123         * nss/nsswitch.c (nss_parse_file, nss_getline)
8124         (nss_parse_service_list, nss_new_service): Likewise.
8125         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
8126         * nss/valid_field.c (__nss_valid_field): Likewise.
8127         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
8129 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8131         * malloc/arena.c (__malloc_fork_lock_parent)
8132         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
8133         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
8134         internal_function from defintions.
8135         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
8136         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
8137         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
8138         internal_function from declarations.
8139         * malloc/malloc.c (internal_function): Do not define.
8140         (mem2mem_check): Remove internal_function from declaration.
8141         (munmap_chunk, mremap_chunk): Remove internal_function.
8142         * malloc/mtrace.c (tr_where): Likewise.
8144 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8146         * include/rpc/pmap_clnt.h (__get_socket): Remove
8147         internal_function.
8148         * sunrpc/auth_des.c (synchronize): Likewise.
8149         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
8150         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
8151         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
8152         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
8153         (key_call): Likewise.
8154         * sunrpc/pm_getport.c (__get_socket): Likewise.
8155         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
8156         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
8157         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
8158         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
8159         (invalidate): Likewise.
8160         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
8161         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
8162         (set_input_fragment, get_input_bytes): Likewise.
8164 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8166         * malloc/malloc.c (_int_free): Remove locked variable and related
8167         asserts.
8169 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
8171         [BZ #22051]
8172         * Makerules (build-module-helper-objlist): Filter out
8173         $(elf-objpfx)sofini.os.
8174         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
8175         needed.
8177 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8179         * libio/fcloseall.c: Assume weak_alias is defined.
8180         * libio/feof.c: Likewise.
8181         * libio/fileno.c: Likewise.
8182         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
8183         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
8184         definitions.
8185         (_IO_file_open): Call __open directly.
8186         (_IO_new_file_sync): Assume ESPIPE is defined.
8187         (_IO_file_seekoff_maybe_mmap): Call __read directly.
8188         (_IO_new_file_write): Call __write directly.
8189         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
8190         * libio/ftello64.c (__ftello64): Assume EIO is defined.
8191         * libio/genops.c: Assume _LIBC is defined.
8192         (save_for_backup): Remove internal_function.
8193         * libio/getc.c: Assume weak_alias is defined.
8194         * libio/getwc.c: Likewise.
8195         * libio/iofclose.c: Assume _LIBC is defined.
8196         * libio/iofdopen.c: Likewise.
8197         (_IO_fcntl): Remove macro definition.
8198         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
8199         Call __fcntl directly.
8200         * libio/iofflush.c: Assume weak_alias is defined.
8201         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
8202         defined.
8203         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
8204         * libio/iofgets.c: Likewise.
8205         * libio/iofopen.c: Assume _LIBC is defined.
8206         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
8207         * libio/iofputs.c: Assume weak_alias is defined.
8208         * libio/iofread.c: Likewise.
8209         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
8210         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8211         * libio/ioftell.c: Assume weak_alias is defined.
8212         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
8213         * libio/iofwide.c: Assume _LIBC is defined.
8214         (_IO_fwide): Drop SHARED conditional because it is implied by
8215         SHLIB_COMPAT.
8216         * libio/iofwrite.c: Assume weak_alias is defined.
8217         * libio/iogetdelim.c: Likewise.
8218         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
8219         * libio/iogetwline.c (wmemcpy): Remove macro definition.
8220         (_IO_getwline): Call __wmemcpy directly.
8221         * libio/iopopen.c: Assume _LIBC is defined.
8222         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
8223         (_IO_close): Remove macro definitions.
8224         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
8225         _exit directly.
8226         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
8227         directly.
8228         * libio/ioputs.c: Assume weak_alias is defined.
8229         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
8230         * libio/iosetbuffer.c: Assume weak_alias is defined.
8231         * libio/iosetvbuf.c: Likewise.
8232         * libio/ioungetc.c: Likewise.
8233         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
8234         libc_hidden_def, libc_hidden_weak, NULL are defined.
8235         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
8236         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
8237         defined.
8238         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
8239         definitions.
8240         (_IO_old_file_init_internal): Drop SHARED conditional because it
8241         is implied by SHLIB_COMPAT.
8242         (_IO_old_file_fopen): Call __open directly.
8243         (_IO_old_file_sync): Assume ESPIPE is defined.
8244         (_IO_old_file_write): Call __write directly.
8245         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
8246         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
8247         Call __fcntl directly.
8248         * libio/oldiofgetpos.c: Assume weak_alias is defined.
8249         (_IO_old_fgetpos): Assume EIO is defined.
8250         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
8251         (_IO_old_fgetpos64): Assume EIO is defined.
8252         * libio/oldiofsetpos.c: Assume weak_alias is defined.
8253         (_IO_old_fsetpos): Assume EIO is defined.
8254         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
8255         (_IO_old_fsetpos64): Assume EIO is defined.
8256         * libio/oldiopopen.c:  Assume _LIBC is defined.
8257         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
8258         (_IO_close): Remove macro definitions.
8259         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
8260         directly.
8261         (_IO_old_proc_close): Call __close, __waitpid directly.
8262         * libio/put.c: Assume weak_alias is defined.
8263         * libio/stdfiles.c: Assume _LIBC is defined.
8264         * libio/stdio.c: Likewise.
8265         * libio/wfileops.c: Likewise.
8266         (_IO_wfile_sync): Assume ESPIPE is defined.
8267         * libio/wgenops.c: Assume _LIBC is defined.
8268         (save_for_wbackup): Remove internal_function.
8270 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8272         * malloc/malloc.c (top_check): Change return type to void.  Remove
8273         internal_function.
8274         * malloc/hooks.c (top_check): Likewise.
8275         (malloc_check, realloc_check, memalign_check): Adjust.
8277 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
8279         [BZ #21457]
8280         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8281         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
8282         sigcontext and namespace requirements.
8283         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8284         * sysdeps/m68k/sys/ucontext.h: Likewise.
8285         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
8286         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
8287         <bits/sigcontext.h>.
8288         (__ctx): Define earlier.
8289         (mcontext_t): Define structure contents rather than using struct
8290         sigcontext.
8291         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
8292         __glibc_reserved1 instead of __reserved.
8293         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
8294         <bits/sigcontext.h>.
8295         (__ctx): Define earlier.
8296         (mcontext_t): Define structure contents rather than using struct
8297         sigcontext.
8298         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
8299         mcontext_t instead of struct sigcontext.
8300         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
8301         <bits/sigcontext.h>.
8302         (__ctx): Define earlier.
8303         (mcontext_t): Define structure contents rather than using struct
8304         sigcontext.
8305         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
8306         <bits/sigcontext.h>.
8307         (__ctx): Define earlier.
8308         (mcontext_t): Define structure contents rather than using struct
8309         sigcontext.
8310         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
8311         mcontext_t instead of struct sigcontext.
8312         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
8313         mcontext_t instead of struct sigcontext.
8314         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
8315         <bits/sigcontext.h>.
8316         (__ctx): New macro.
8317         (struct __ia64_fpreg_mcontext): New type.
8318         (mcontext_t): Define structure contents rather than using struct
8319         sigcontext.
8320         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
8321         (uc_sigmask): Define using __ctx.
8322         (uc_stack): Likewise.
8323         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
8324         <bits/sigcontext.h>.
8325         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8326         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
8327         <bits/sigcontext.h>.
8328         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
8329         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
8330         <bits/sigcontext.h>.
8331         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
8332         <bits/sigcontext.h>.
8333         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
8334         <bits/sigcontext.h>.
8335         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
8336         <bits/sigcontext.h>.
8337         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
8338         <bits/sigcontext.h>.
8339         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
8340         <bits/sigcontext.h>.
8341         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
8342         <bits/sigcontext.h>.
8343         (__ctx): Define earlier.
8344         (mcontext_t): Define structure contents rather than using struct
8345         sigcontext.
8346         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
8347         <bits/sigcontext.h>.  Include <bits/types.h>.
8348         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
8349         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
8350         (test-xfail-XPG42/ucontext.h/conform): Likewise.
8351         (test-xfail-UNIX98/signal.h/conform): Likewise.
8352         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
8353         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
8354         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
8355         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
8356         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
8357         (test-xfail-POSIX2008/signal.h/conform): Likewise.
8358         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
8359         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
8360         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
8362 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8364         * malloc/dynarray_emplace_enlarge.c
8365         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
8366         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8367         * malloc/tst-dynarray.c (test_long_overflow): New function.
8368         (do_test): Call it.
8370 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8372         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
8373         (set_arena_corrupt): Remove definitions.
8374         (mtrim): Do not check for corrupt arena.
8375         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
8376         Likewise.
8378 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8380         [BZ #21754]
8381         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
8382         check_action.
8383         (ptmalloc_init): Do not set or use check_action.
8384         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
8385         call to malloc_printerr.  Remove return statement.
8386         (free_check): Likewise.  Remove arena unlock.
8387         (top_check): Update comment.  Adjust call to malloc_printerr.
8388         Remove heap repair code.
8389         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
8390         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
8391         (sysmalloc): Adjust call to malloc_printerr.
8392         (munmap_chunk, __libc_realloc): Likewise.  Remove return
8393         statement.
8394         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
8395         Remove errout label and corresponding gotos.
8396         (_int_free): Likewise.  Remove arena unlock.
8397         (do_set_mallopt_check): Do not set check_action.
8398         (malloc_printerr): Adjust parameter list.  Do not mark arena as
8399         corrupt.
8400         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
8401         comment.
8402         * manual/probes.texi (Memory Allocation Probes): Remove
8403         memory_mallopt_check_action.
8405 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
8407         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
8408         Use pointer to uint64_t instead of long int for sp.
8410 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8412         [BZ #21754]
8413         * malloc/malloc.c (malloc_printerr): Always terminate the process,
8414         without printing a backtrace.  Do not leak any information in the
8415         error message.
8416         * manual/memory.texi (Heap Consistency Checking): Update.
8417         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
8419 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8421         Do not scale NPTL tests with available number of CPUs.
8422         * nptl/tst-cond16.c (count): Set to constant value of 8.
8423         * nptl/tst-cond18.c (count): Likewise.
8425 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8427         [BZ #22035]
8428         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
8429         Define to take a second argument that is a macro that
8430         concatentates a suffix, not the suffix itself.
8431         (__CONCAT_d): New macro.
8432         (__CONCAT_f): Likewise.
8433         (__CONCAT_l): Likewise.
8435 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
8437         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
8438         by child.
8440 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8441             Aurelien Jarno  <aurelien@aurel32.net>
8442             Maciej W. Rozycki  <macro@imgtec.com>
8444         [BZ #21956]
8445         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
8446         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
8447         `mips16-syscall6' and `mips16-syscall7'.
8448         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
8449         (CFLAGS-mips16-syscall7.c): Remove.
8450         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
8451         Remove `__mips16_syscall5', `__mips16_syscall6' and
8452         `__mips16_syscall7'.
8453         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
8454         (__mips16_syscall0): Rename `__mips16_syscall_return' to
8455         `__mips_syscall_return'.
8456         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
8457         (__mips16_syscall1): Likewise.
8458         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
8459         (__mips16_syscall2): Likewise.
8460         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
8461         (__mips16_syscall3): Likewise.
8462         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
8463         (__mips16_syscall4): Likewise.
8464         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
8465         Remove.
8466         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
8467         Remove.
8468         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
8469         Remove.
8470         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
8471         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
8472         `__mips16_syscall5'.  Remove prototype.
8473         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
8474         `__mips16_syscall6'.  Remove prototype.
8475         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
8476         `__mips16_syscall7'.  Remove prototype.
8477         (__nomips16, __mips16_syscall_return): Move to...
8478         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
8479         (__nomips16, __mips_syscall_return): ... here.
8480         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
8481         `__mips16_syscall_return' to `__mips_syscall_return'.
8482         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
8483         `internal_syscall##nr'.
8484         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
8485         `internal_syscall##nr'.
8486         (FORCE_FRAME_POINTER): Remove.
8487         (__mips_syscall5): New prototype.
8488         (internal_syscall5): Rewrite to call `__mips_syscall5'.
8489         (__mips_syscall6): New prototype.
8490         (internal_syscall6): Rewrite to call `__mips_syscall6'.
8491         (__mips_syscall7): New prototype.
8492         (internal_syscall7): Rewrite to call `__mips_syscall7'.
8493         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
8494         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
8495         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
8496         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
8497         (sysdep_routines): Add libc-do-syscall.
8498         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
8499         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
8501 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8503         [BZ #21672]
8504         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
8505         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
8506         (advise_stack_range): New function.
8507         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
8508         stack non required to advise_stack_range at allocatestack.c
8510 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8512         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
8514 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8516         [BZ #22026]
8517         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
8518         __end_fct.  Mangle __end_fct after setting it to NULL.
8519         * iconv/Makefile (tests): Add tst-gconv-init-failure.
8520         (modules-names, modules-names-tests): Add
8521         tst-gconv-init-failure-mod.
8522         (gconv-modules): New target.
8523         (tst-gconv-init-failure-mod.so): Link against libsupport.
8524         (tst-gconv-init-failure): Depend on gconv-modules,
8525         tst-gconv-init-failure-mod.so.
8526         * iconv/tst-gconv-init-failure-mod.c: New file.
8527         * iconv/tst-gconv-init-failure.c: Likewise.
8528         * iconv/test-gconv-modules: Likewise.
8530 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8532         [BZ #22025]
8533         * iconv/gconv_db.c (free_derivation): Remove redundant
8534         parentheses.
8535         (gen_steps): Unconditionally mangle __btowc_fct after
8536         initialization.
8537         (increment_counter): Likewise.  Do not call init_fct for internal
8538         modules.
8540 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8542         [BZ #22028]
8543         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8544         (_MSUF_): Remove macro.
8545         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
8546         Likewise.
8547         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8548         (__REDIRFROM_X): New macro.
8549         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
8550         Likewise.
8551         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
8552         (__REDIRTO_X): Likewise.
8553         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
8554         arguments.
8555         (__MATH_REDIRCALL_2): Likewise.
8556         (__MATH_REDIRCALL_INTERNAL): Likewise.
8557         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8558         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
8559         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
8560         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8561         * math/test-finite-macros.c: New file.
8562         * math/Makefile (tests): Add test-finite-macros.
8563         (CFLAGS-test-finite-macros.c): New variable.
8565 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
8566             Jeff Law  <law@redhat.com>
8568         [BZ #22025]
8569         Mangle NULL pointers in iconv/gconv.
8570         * iconv/gconv_cache.c (find_module): Demangle init_fct before
8571         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
8572         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
8573         is non-NULL before demangling the end_fct.  Check for NULL
8574         end_fct after demangling.
8575         (__gconv_release_step): Demangle the end_fct before checking
8576         it for NULL.   Remove assert on __shlibc_handle != NULL.
8577         (gen_steps): Don't check btowc_fct for NULL before mangling.
8578         Demangle init_fct before checking for NULL.
8579         (increment_counter): Likewise.
8580         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
8581         end_fct for NULL before mangling.
8582         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
8583         for NULL.
8585 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
8587         [BZ #21971]
8588         * locale/iso-639.def: add Morisyen.
8590 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8592         [BZ #21930]
8593         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
8594         (iszero): New C++ implementation that does not use
8595         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
8596         signaling nans are enabled, since __builtin_types_compatible_p
8597         is a C-only feature.
8598         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
8599         defined, include ieee754_float128.h for access to the union and
8600         member ieee854_float128.ieee.
8601         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
8602         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
8603         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8604         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
8605         options of test-math-zero on powerpc64le.
8607 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
8609         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
8610         Change double to float.
8612 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
8614         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
8615         unconditional.
8616         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
8617         conditional code; define contents only for [LIBM_SVID_COMPAT].
8619 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8621         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
8622         (abi-lp64_be-options): Remove.
8623         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
8624         (abi-hard-options): Likewise.
8625         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
8626         (abi-o32_hard-options, abi-o32_soft_2008-options)
8627         (abi-o32_hard_2008-options, abi-n32_soft-options)
8628         (abi-n32_hard-options, abi-n32_soft_2008-options)
8629         (abi-n32_hard_2008-options, abi-n64_soft-options)
8630         (abi-n64_hard-options, abi-n64_soft_2008-options)
8631         (abi-n64_hard_2008-options): Likewise.
8632         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
8633         (abi-64-v1-options, abi-64-v2-options): Likewise.
8634         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
8635         (abi-64-options): Likewise.
8636         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
8637         (abi-64-options): Likewise.
8638         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
8639         (abi-64-options): Likewise.
8640         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
8641         (abi-64-options, abi-x32-options): Likewise.
8643 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8645         Store supported list of SYS_* system calls in the source tree.
8646         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8647         (bits/syscall.h): Generate from list file.
8648         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
8649         [$(subdir) = misc] (tests): Add tst-syscall-list.
8650         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
8651         [$(subdir) = misc] (tst-syscall-list-macros.list)
8652         [$(subdir) = misc] (tst-syscall-list-nr.list)
8653         (tst-syscall-list-sys.list): Helper targets for new
8654         tst-syscall-list test.
8655         [$(subdir) = misc] (tst-syscall-list.out): Run test script
8656         tst-syscall-list.sh.
8657         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
8658         target. Do not include bits/syscall.d.
8659         [$(subdir) = misc] (generated): Do not update.
8660         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
8661         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
8662         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
8663         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
8665 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
8667         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
8668         (tst-cxa_atexit, tst-on_exit): Likewise.
8669         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
8670         tst-cxa_atexit, and tst-on_exit.
8671         * stdlib/tst-atexit-common.c: New file.
8672         * stdlib/tst-atexit.c: New file.
8673         * stdlib/tst-at_quick_exit.c: New file.
8674         * stdlib/tst-cxa_atexit.c: New file.
8675         * stdlib/tst-on_exit.c: New file.
8677 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8679         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
8680         * mach/stack_chk_fail_local.c: New file.
8681         * hurd/stack_chk_fail_local.c: New file.
8682         * mach/Machrules ($(interface-library)-routines): Add
8683         stack_chk_fail_local.
8684         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
8685         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
8686         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8687         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8688         * hurd/Makefile (CFLAGS-hurdstartup.o,
8689         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8691 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8693         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8694         (index_cpu_*, index_arch_*): Removed.
8696 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8698         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8699         Use uint64_t instead of unsigned long.
8701 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8703         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8704         [__HAVE_DISTINCT_FLOAT128].
8706         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8707         of <bits/math-finite.h>.
8708         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8709         inclusion of <bits/math-finite.h>.
8710         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8711         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8712         __NO_LONG_DOUBLE_MATH].
8713         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8714         (__MATH_REDIRCALL_2): Likewise.
8715         (__MATH_REDIRCALL_INTERNAL): Likewise.
8716         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8717         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8718         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8721         Remove file.
8722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8723         Likewise.
8724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8725         Likewise.
8726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8727         Likewise.
8728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8729         Likewise.
8730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8731         Likewise.
8732         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8733         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8734         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8735         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8737         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8738         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8739         w_sqrtf_compat-ppc32.
8741 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8743         * math/math.h [defined __cplusplus] (issignaling): In the long
8744         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8745         is not defined.  Call __issignaling, otherwise.
8747 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8749         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8750         syscall definitions and replace __builtin_expect with __glibc_likely.
8751         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8752         syscall.
8753          (SYSCALL_CANCELLABLE): Removedefinition
8754         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8755         definition.
8756         (PSEUDO_END): Likewise.
8757         [IS_IN (libpthread)] (CENABLE): Likewise.
8758         [IS_IN (libpthread)] (CDISABLE): Likewise.
8759         [IS_IN (libc)] (CENABLE): Likewise.
8760         [IS_IN (libc)] (CENABLE): Likewise.
8761         [IS_IN (librt)] (CDISABLE): Likewise.
8762         [IS_IN (librt)] (CDISABLE): Likewise.
8763         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8764         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8765         definition.
8766         (PSEUDO_END): Likewise.
8767         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8768         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8769         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8770         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8771         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8772         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8773         (CENABLE): Likewise.
8774         (CDISABLE): Likewise.
8775         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8776         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8777         defintion.
8778         (PSEUDO_END): Likewise.
8779         [IS_IN (libpthread)] (CENABLE): Likewise.
8780         [IS_IN (libpthread)] (CDISABLE): Likewise.
8781         [IS_IN (libc)] (CENABLE): Likewise.
8782         [IS_IN (libc)] (CENABLE): Likewise.
8783         [IS_IN (librt)] (CDISABLE): Likewise.
8784         [IS_IN (librt)] (CDISABLE): Likewise.
8785         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8786         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8787         definition.
8788         (PSEUDO_END): Likewise.
8789         [IS_IN (libpthread)] (CENABLE): Likewise.
8790         [IS_IN (libpthread)] (CDISABLE): Likewise.
8791         [IS_IN (libc)] (CENABLE): Likewise.
8792         [IS_IN (libc)] (CENABLE): Likewise.
8793         [IS_IN (librt)] (CDISABLE): Likewise.
8794         [IS_IN (librt)] (CDISABLE): Likewise.
8795         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8796         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8797         definition.
8798         (PSEUDO_END): Likewise.
8799         [IS_IN (libpthread)] (CENABLE): Likewise.
8800         [IS_IN (libpthread)] (CDISABLE): Likewise.
8801         [IS_IN (libc)] (CENABLE): Likewise.
8802         [IS_IN (libc)] (CENABLE): Likewise.
8803         [IS_IN (librt)] (CDISABLE): Likewise.
8804         [IS_IN (librt)] (CDISABLE): Likewise.
8805         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8806         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8807         definition.
8808         (PSEUDO_END): Likewise.
8809         [IS_IN (libpthread)] (CENABLE): Likewise.
8810         [IS_IN (libpthread)] (CDISABLE): Likewise.
8811         [IS_IN (libc)] (CENABLE): Likewise.
8812         [IS_IN (libc)] (CENABLE): Likewise.
8813         [IS_IN (librt)] (CDISABLE): Likewise.
8814         [IS_IN (librt)] (CDISABLE): Likewise.
8815         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8816         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8817         definition.
8818         (PSEUDO_END): Likewise.
8819         [IS_IN (libpthread)] (CENABLE): Likewise.
8820         [IS_IN (libpthread)] (CDISABLE): Likewise.
8821         [IS_IN (libc)] (CENABLE): Likewise.
8822         [IS_IN (libc)] (CENABLE): Likewise.
8823         [IS_IN (librt)] (CDISABLE): Likewise.
8824         [IS_IN (librt)] (CDISABLE): Likewise.
8825         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8826         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8827         definition.
8828         (PSEUDO_END): Likewise.
8829         [IS_IN (libpthread)] (CENABLE): Likewise.
8830         [IS_IN (libpthread)] (CDISABLE): Likewise.
8831         [IS_IN (libc)] (CENABLE): Likewise.
8832         [IS_IN (libc)] (CENABLE): Likewise.
8833         [IS_IN (librt)] (CDISABLE): Likewise.
8834         [IS_IN (librt)] (CDISABLE): Likewise.
8835         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8836         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8837         Remove definition.
8838         (PSEUDO_END): Likewise.
8839         [IS_IN (libpthread)] (CENABLE): Likewise.
8840         [IS_IN (libpthread)] (CDISABLE): Likewise.
8841         [IS_IN (libc)] (CENABLE): Likewise.
8842         [IS_IN (libc)] (CENABLE): Likewise.
8843         [IS_IN (librt)] (CDISABLE): Likewise.
8844         [IS_IN (librt)] (CDISABLE): Likewise.
8845         (SINGLE_THREAD_P): Likewise.
8846         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8847         definition.
8848         (PSEUDO_END): Likewise.
8849         [IS_IN (libpthread)] (CENABLE): Likewise.
8850         [IS_IN (libpthread)] (CDISABLE): Likewise.
8851         [IS_IN (libc)] (CENABLE): Likewise.
8852         [IS_IN (libc)] (CENABLE): Likewise.
8853         [IS_IN (librt)] (CDISABLE): Likewise.
8854         [IS_IN (librt)] (CDISABLE): Likewise.
8855         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8856         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8857         definition.
8858         (PSEUDO_END): Likewise.
8859         [IS_IN (libpthread)] (CENABLE): Likewise.
8860         [IS_IN (libpthread)] (CDISABLE): Likewise.
8861         [IS_IN (libc)] (CENABLE): Likewise.
8862         [IS_IN (libc)] (CENABLE): Likewise.
8863         [IS_IN (librt)] (CDISABLE): Likewise.
8864         [IS_IN (librt)] (CDISABLE): Likewise.
8865         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8866         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8867         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8868         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8869         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8870         definition.
8871         (PSEUDO_END): Likewise.
8872         [IS_IN (libpthread)] (CENABLE): Likewise.
8873         [IS_IN (libpthread)] (CDISABLE): Likewise.
8874         [IS_IN (libc)] (CENABLE): Likewise.
8875         [IS_IN (libc)] (CENABLE): Likewise.
8876         [IS_IN (librt)] (CDISABLE): Likewise.
8877         [IS_IN (librt)] (CDISABLE): Likewise.
8878         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8879         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8880         definition.
8881         (PSEUDO_END): Likewise.
8882         [IS_IN (libpthread)] (CENABLE): Likewise.
8883         [IS_IN (libpthread)] (CDISABLE): Likewise.
8884         [IS_IN (libc)] (CENABLE): Likewise.
8885         [IS_IN (libc)] (CENABLE): Likewise.
8886         [IS_IN (librt)] (CDISABLE): Likewise.
8887         [IS_IN (librt)] (CDISABLE): Likewise.
8888         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8889         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8890         definition.
8891         (PSEUDO_END): Likewise.
8892         [IS_IN (libpthread)] (CENABLE): Likewise.
8893         [IS_IN (libpthread)] (CDISABLE): Likewise.
8894         [IS_IN (libc)] (CENABLE): Likewise.
8895         [IS_IN (libc)] (CENABLE): Likewise.
8896         [IS_IN (librt)] (CDISABLE): Likewise.
8897         [IS_IN (librt)] (CDISABLE): Likewise.
8898         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8899         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8900         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8901         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8902         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8903         definition.
8904         (PSEUDO_END): Likewise.
8905         [IS_IN (libpthread)] (CENABLE): Likewise.
8906         [IS_IN (libpthread)] (CDISABLE): Likewise.
8907         [IS_IN (libc)] (CENABLE): Likewise.
8908         [IS_IN (libc)] (CENABLE): Likewise.
8909         [IS_IN (librt)] (CDISABLE): Likewise.
8910         [IS_IN (librt)] (CDISABLE): Likewise.
8911         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8912         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8913         definition.
8914         (PSEUDO_END): Likewise.
8915         [IS_IN (libpthread)] (CENABLE): Likewise.
8916         [IS_IN (libpthread)] (CDISABLE): Likewise.
8917         [IS_IN (libc)] (CENABLE): Likewise.
8918         [IS_IN (libc)] (CENABLE): Likewise.
8919         [IS_IN (librt)] (CDISABLE): Likewise.
8920         [IS_IN (librt)] (CDISABLE): Likewise.
8921         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8923 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8925         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8927 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8929         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8931 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8933         [BZ #21982]
8934         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8935         middle and outer with size_t instead of int.  Repleace %d and
8936         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8937         "MAX (outer, nchars - 64)" to support unsigned outer and
8938         nchars.  Also exit loop when outer == 0.
8940 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8942         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8943         * include/signal.h (__sigsuspend_nocancel): Likewise.
8944         * include/time.h (__nanosleep_nocancel): Likewise.
8945         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8946         * login/utmp_file.c: Include non cancellable syscall header.
8947         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8948         prototype.
8950 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8952         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8953         .byte sequences with AVX512F instructions.
8954         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8955         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8956         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8957         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8958         Likewise.
8959         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8960         Likewise.
8962 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8963             Steve Ellcey  <sellcey@cavium.com>
8965         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8966         Use PTR_REG macro in cmp instruction.
8968 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8970         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8971         Change the return type of the ifunc resolver to match the return
8972         type of the target function.
8974 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8976         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8977         (preadv64): Likewise.
8978         (pwrite64(: Likewise.
8979         (pwritev64): Likewise.
8981         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8982         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8983         (LOAD_ARGS_0): Likewise.
8984         (LOAD_ARGS_1): Likewise.
8985         (LOAD_ARGS_2): Likewise.
8986         (LOAD_ARGS_3): Likewise.
8987         (LOAD_ARGS_4): Likewise.
8988         (LOAD_ARGS_5): Likewise.
8989         (LOAD_ARGS_6): Likewise.
8990         (LOAD_REGS_0): Likewise.
8991         (LOAD_REGS_1): Likewise.
8992         (LOAD_REGS_2): Likewise.
8993         (LOAD_REGS_3): Likewise.
8994         (LOAD_REGS_4): Likewise.
8995         (LOAD_REGS_5): Likewise.
8996         (LOAD_REGS_6): Likewise.
8997         (ASM_ARGS_0): Likewise.
8998         (ASM_ARGS_1): Likewise.
8999         (ASM_ARGS_2): Likewise.
9000         (ASM_ARGS_3): Likewise.
9001         (ASM_ARGS_4): Likewise.
9002         (ASM_ARGS_5): Likewise.
9003         (ASM_ARGS_6): Likewise.
9004         (LOAD_ARGS_TYPES_1): Likewise.
9005         (LOAD_ARGS_TYPES_2): Likewise.
9006         (LOAD_ARGS_TYPES_3): Likewise.
9007         (LOAD_ARGS_TYPES_4): Likewise.
9008         (LOAD_ARGS_TYPES_5): Likewise.
9009         (LOAD_ARGS_TYPES_6): Likewise.
9010         (LOAD_REGS_TYPES_1): Likewise.
9011         (LOAD_REGS_TYPES_2): Likewise.
9012         (LOAD_REGS_TYPES_3): Likewise.
9013         (LOAD_REGS_TYPES_4): Likewise.
9014         (LOAD_REGS_TYPES_5): Likewise.
9015         (LOAD_REGS_TYPES_6): Likewise.
9016         (TYPEFY): New define.
9017         (ARGIFY): Likewise.
9018         (internal_syscall0): Likewise.
9019         (internal_syscall1): Likewise.
9020         (internal_syscall2): Likewise.
9021         (internal_syscall3): Likewise.
9022         (internal_syscall4): Likewise.
9023         (internal_syscall5): Likewise.
9024         (internal_syscall6): Likewise.
9025         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
9026         (INTERNAL_SYSCALL_NCS): Remove define.
9027         (internal_syscall1): Add define.
9029 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9031         * math/w_remainder_compat.c: Remove duplicate inclusion of
9032         math-svid-compat.h.
9033         * math/w_remainderf_compat.c: Likewise.
9034         * math/w_remainderl_compat.c: Likewise.
9036 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9040 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
9042         [BZ #21684]
9043         * math/tgmath.h (__floating_type): Simplify definitions.
9044         (__real_integer_type): New macro.
9045         (__complex_integer_type): Likewise.
9046         (__expr_is_real): Likewise.
9047         (__tgmath_real_type_sub): Update comment to describe handling of
9048         complex types.
9049         (__tgmath_complex_type_sub): New macro.
9050         (__tgmath_complex_type): Likewise.
9051         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9052         (__TGMATH_CF128): Use __expr_is_real.
9053         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
9054         __expr_is_real.
9055         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9056         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
9057         * math/gen-tgmath-tests.py (Type.create_type): Create complex
9058         integer types.
9060 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9062         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
9063         macro.
9064         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
9065         alias.
9066         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
9067         Likewise.
9069         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
9070         nanosleep_not_cancel with __nanosleep_nocancel.
9071         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
9072         (__nanosleep_nocancel): New macro.
9073         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
9074         function.
9075         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
9076         macro.
9077         (__nanosleep_nocancel): New prototype.
9079         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
9080         pause_not_cancel with __pause_nocancel.
9081         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
9082         (__pause_nocancel): New macro.
9083         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
9084         macro.
9085         (__pause_nocancel): New prototype.
9086         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
9088 2017-08-22  Martin Sebor  <msebor@redhat.com>
9090         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
9091         to return a pointer to the same type as the target function.
9093 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
9095         [BZ #18822]
9096         [BZ #21986]
9097         * include/printf.h (__printf_fphex): Add attribute_hidden.
9098         (__guess_grouping): New prototype.
9099         * stdio-common/printf_fp.c (__guess_grouping): Removed.
9100         * stdio-common/reg-printf.c (__register_printf_specifier): Add
9101         libc_hidden_proto and libc_hidden_def.
9102         * stdlib/strfmon_l.c (__guess_grouping): Removed.
9103         (__vstrfmon_l): Remove the third argument passed to
9104         __guess_grouping.
9106 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9108         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
9109         definition for issignaling that does not rely on __MATH_TG,
9110         since __MATH_TG uses __builtin_types_compatible_p, which is only
9111         available in C mode.
9112         (CFLAGS-test-math-issignaling.cc): New variable.
9113         * math/Makefile [CXX] (tests): Add test-math-issignaling.
9114         * math/test-math-issignaling.cc: New test for C++ implementation
9115         of type-generic issignaling.
9116         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
9117         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
9118         options of test-math-issignaling on powerpc64le.
9120 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
9122         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9123         building libc.a.
9124         (hidden_proto): Likewise.
9125         (hidden_tls_proto): Likewise.
9126         (__hidden_proto): Likewise.
9128 2017-08-22  Florian Weimer  <fweimer@redhat.com>
9130         math: Statically link tests of internal functionality.
9131         * math/Makefile (tests): Remove atest-exp, atest-sincos,
9132         atest-exp2.
9133         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
9134         (gmp-objs): Remove assignment.
9135         (atest-exp, atest-sincos, atest-exp2): Remove targets.
9137 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
9139         [BZ #21987]
9140         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
9141         and copy to ...
9142         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
9143         ... here.
9144         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
9145         ... and here.
9147         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
9148         variable definitions above inclusion of ../Rules.
9150 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
9152         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
9153         case calling __builtin_unreachable.
9155 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9157         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
9158         __waitpid_nocancel.
9159         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
9160         (__waitpid_nocancel): New macro.
9161         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
9162         macro.
9163         (__waitpid_nocancel): Replace macro with a function.
9164         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
9165         function.
9167         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
9168         __fcntl_nocancel.
9169         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
9170         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
9172         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
9173         __writev_nocancel_nostatus.
9174         (write_call_graph): Likewise.
9175         (write_bb_counts): Likewise.
9176         * resolv/herror.c (herror): Likewise.
9177         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
9178         macro.
9179         (__writev_nocancel_nostatus): New macro.
9180         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
9181         Remove macro.
9182         (__writev_nocancel_nostatus): New function.
9184 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
9186         Revert:
9187         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9189         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9190         building libc.a.
9191         (hidden_proto): Likewise.
9192         (hidden_tls_proto): Likewise.
9193         (__hidden_proto): Likewise.
9195         [BZ #21973]
9196         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
9197         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
9198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
9199         Likewise.
9200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
9201         Likewise.
9202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9203         Likewise.
9204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
9205         Likewise.
9206         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
9207         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9208         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9209         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9210         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
9211         GLIBC_2.0 sqrtl symbol.
9213         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
9214         [__USE_MISC] (_LIB_VERSION): Likewise.
9215         [__USE_MISC] (struct exception): Likewise.
9216         [__USE_MISC] (matherr): Likewise.
9217         [__USE_MISC] (DOMAIN): Likewise.
9218         [__USE_MISC] (SING): Likewise.
9219         [__USE_MISC] (OVERFLOW): Likewise.
9220         [__USE_MISC] (UNDERFLOW): Likewise.
9221         [__USE_MISC] (TLOSS): Likewise.
9222         [__USE_MISC] (PLOSS): Likewise.
9223         [__USE_MISC] (HUGE): Likewise.
9224         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
9225         * math/math-svid-compat.h: New file.
9226         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
9227         and matherrl.
9228         * include/math.h [!_ISOMAC] (__matherr): Remove.
9229         * manual/arith.texi (FP Exceptions): Do not document matherr.
9230         * math/Makefile (tests): Change test-matherr to test-matherr-3.
9231         (tests-internal): New variable.
9232         (install-lib): Do not add libieee.a.
9233         (non-lib.a): Likewise.
9234         (extra-objs): Do not add libieee.a and ieee-math.o.
9235         (CPPFLAGS-s_lib_version.c): Remove variable.
9236         ($(objpfx)libieee.a): Remove rule.
9237         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
9238         * math/ieee-math.c: Remove.
9239         * math/libm-test-support.c (matherr): Remove.
9240         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
9241         and license notices.  Include <math-svid-compat.h> and
9242         <shlib-compat.h>.
9243         (matherr): Undefine as macro.  Use compat_symbol_reference.
9244         (_LIB_VERSION): Likewise.
9245         * math/test-matherr-2.c: New file.
9246         * math/test-matherr-3.c: Likewise.
9247         * sysdeps/generic/math_private.h (__kernel_standard): Remove
9248         declaration.
9249         (__kernel_standard_f): Likewise.
9250         (__kernel_standard_l): Likewise.
9251         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
9252         <math_private.h>.  Include <math-svid-compat.h>.
9253         (_LIB_VERSION): Undefine as macro.
9254         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
9255         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
9256         [LIBM_SVID_COMPAT], use compat_symbol.
9257         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
9258         <math_private.h>.  Include <math-svid-compat.h>.
9259         (matherr): Undefine as macro.
9260         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
9261         compat_symbol.
9262         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
9263         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
9264         compat_symbol_reference.
9265         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
9266         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
9267         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
9268         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
9269         (MATHERR_D): Remove declaration.
9270         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
9271         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
9272         [LIBM_BUILD] (pmatherrf): Likewise.
9273         [LIBM_BUILD] (pmatherr): Likewise.
9274         [LIBM_BUILD] (pmatherrl): Likewise.
9275         (DOMAIN): Likewise.
9276         (SING): Likewise.
9277         (OVERFLOW): Likewise.
9278         (UNDERFLOW): Likewise.
9279         (TLOSS): Likewise.
9280         (PLOSS): Likewise.
9281         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
9282         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
9283         compat_symbol.
9284         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
9285         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
9286         compat_symbol.
9287         * math/lgamma-compat.h: Include <math-svid-compat.h>.
9288         * math/w_acos_compat.c: Likewise.
9289         * math/w_acosf_compat.c: Likewise.
9290         * math/w_acosh_compat.c: Likewise.
9291         * math/w_acoshf_compat.c: Likewise.
9292         * math/w_acoshl_compat.c: Likewise.
9293         * math/w_acosl_compat.c: Likewise.
9294         * math/w_asin_compat.c: Likewise.
9295         * math/w_asinf_compat.c: Likewise.
9296         * math/w_asinl_compat.c: Likewise.
9297         * math/w_atan2_compat.c: Likewise.
9298         * math/w_atan2f_compat.c: Likewise.
9299         * math/w_atan2l_compat.c: Likewise.
9300         * math/w_atanh_compat.c: Likewise.
9301         * math/w_atanhf_compat.c: Likewise.
9302         * math/w_atanhl_compat.c: Likewise.
9303         * math/w_cosh_compat.c: Likewise.
9304         * math/w_coshf_compat.c: Likewise.
9305         * math/w_coshl_compat.c: Likewise.
9306         * math/w_exp10_compat.c: Likewise.
9307         * math/w_exp10f_compat.c: Likewise.
9308         * math/w_exp10l_compat.c: Likewise.
9309         * math/w_exp2_compat.c: Likewise.
9310         * math/w_exp2f_compat.c: Likewise.
9311         * math/w_exp2l_compat.c: Likewise.
9312         * math/w_fmod_compat.c: Likewise.
9313         * math/w_fmodf_compat.c: Likewise.
9314         * math/w_fmodl_compat.c: Likewise.
9315         * math/w_hypot_compat.c: Likewise.
9316         * math/w_hypotf_compat.c: Likewise.
9317         * math/w_hypotl_compat.c: Likewise.
9318         * math/w_j0_compat.c: Likewise.
9319         * math/w_j0f_compat.c: Likewise.
9320         * math/w_j0l_compat.c: Likewise.
9321         * math/w_j1_compat.c: Likewise.
9322         * math/w_j1f_compat.c: Likewise.
9323         * math/w_j1l_compat.c: Likewise.
9324         * math/w_jn_compat.c: Likewise.
9325         * math/w_jnf_compat.c: Likewise.
9326         * math/w_jnl_compat.c: Likewise.
9327         * math/w_lgamma_main.c: Likewise.
9328         * math/w_lgamma_r_compat.c: Likewise.
9329         * math/w_lgammaf_main.c: Likewise.
9330         * math/w_lgammaf_r_compat.c: Likewise.
9331         * math/w_lgammal_main.c: Likewise.
9332         * math/w_lgammal_r_compat.c: Likewise.
9333         * math/w_log10_compat.c: Likewise.
9334         * math/w_log10f_compat.c: Likewise.
9335         * math/w_log10l_compat.c: Likewise.
9336         * math/w_log2_compat.c: Likewise.
9337         * math/w_log2f_compat.c: Likewise.
9338         * math/w_log2l_compat.c: Likewise.
9339         * math/w_log_compat.c: Likewise.
9340         * math/w_logf_compat.c: Likewise.
9341         * math/w_logl_compat.c: Likewise.
9342         * math/w_pow_compat.c: Likewise.
9343         * math/w_powf_compat.c: Likewise.
9344         * math/w_powl_compat.c: Likewise.
9345         * math/w_remainder_compat.c: Likewise.
9346         * math/w_remainderf_compat.c: Likewise.
9347         * math/w_remainderl_compat.c: Likewise.
9348         * math/w_scalb_compat.c: Likewise.
9349         * math/w_scalbf_compat.c: Likewise.
9350         * math/w_scalbl_compat.c: Likewise.
9351         * math/w_sinh_compat.c: Likewise.
9352         * math/w_sinhf_compat.c: Likewise.
9353         * math/w_sinhl_compat.c: Likewise.
9354         * math/w_sqrt_compat.c: Likewise.
9355         * math/w_sqrtf_compat.c: Likewise.
9356         * math/w_sqrtl_compat.c: Likewise.
9357         * math/w_tgamma_compat.c: Likewise.
9358         * math/w_tgammaf_compat.c: Likewise.
9359         * math/w_tgammal_compat.c: Likewise.
9360         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
9361         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
9362         * sysdeps/ieee754/k_standard.c: Likewise.
9363         * sysdeps/ieee754/k_standardf.c: Likewise.
9364         * sysdeps/ieee754/k_standardl.c: Likewise.
9365         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
9366         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
9367         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
9368         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
9369         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
9370         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
9371         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
9372         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
9373         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
9374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
9375         Likewise.
9376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9377         Likewise.
9378         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
9379         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9380         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9381         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9383 2017-08-21  Florian Weimer  <fweimer@redhat.com>
9385         [BZ #21864]
9386         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
9387         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
9388         Move before inclusion of ../Rules.
9390 2017-08-21  Florian Weimer  <fweimer@redhat.com>
9392         [BZ #21972]
9393         * assert/assert.h (assert): Use static_cast (bool) for C++.
9394         Use the ternary operator in the warning branch for GNU C.
9395         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
9396         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
9397         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
9398         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
9399         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
9401 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9403         [BZ #18822]
9404         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9405         (__syscall_clock_gettime): Add attribute_hidden.
9406         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
9407         (__start_context): Likewise.
9409 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9411         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9412         building libc.a.
9413         (hidden_proto): Likewise.
9414         (hidden_tls_proto): Likewise.
9415         (__hidden_proto): Likewise.
9417 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9419         * include/libc-symbols.h (attribute_hidden): Enable hidden
9420         visibility in libc.a compiled with PIE.
9422 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9424         [BZ #18822]
9425         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
9426         Add attribute_hidden.
9428 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9430         [BZ #21864]
9431         * Makerules (all-nonlib): Add $(others-extras).
9432         * catgets/Makefile (others-extras): New.
9433         * elf/Makefile (others-extras): Likewise.
9434         * nss/Makefile (others-extras): Likewise.
9436 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9438         [BZ #18822]
9439         * csu/libc-start.c (__libc_multiple_libcs): Removed.
9440         * elf/dl-open.c: Include <libc-internal.h>.
9441         (__libc_multiple_libcs): Removed.
9442         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
9443         <hp-timing.h>.
9444         * include/libc-internal.h (__libc_multiple_libcs): New.
9445         * misc/sbrk.c: Include <libc-internal.h>.
9446         (__libc_multiple_libcs): Removed.
9448 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9450         [BZ #18822]
9451         * grp/initgroups.c (__nss_group_database): Removed.
9452         (__nss_initgroups_database): Likewise.
9453         * nscd/gai.c (__nss_hosts_database): Likewise.
9454         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
9455         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
9456         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
9457         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
9458         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
9459         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
9460         attribute_hidden.
9461         * nss/nsswitch.c (__nss_database_custom): Define only if
9462         USE_NSCD is defined.
9463         (__nss_configure_lookup): Use __nss_database_custom only if
9464         USE_NSCD is defined.
9465         * nss/nsswitch.h (__nss_database_custom): Declare only if
9466         USE_NSCD is defined.  Add attribute_hidden.
9467         (__nss_setent): Add attribute_hidden.
9468         (__nss_endent): Likewise.
9469         (__nss_getent_r): Likewise.
9470         (__nss_getent): Likewise.
9471         (DEFINE_DATABASE): Declare __nss_##arg##_database.
9473 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9475         [BZ #18822]
9476         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
9477         libc_hidden_proto and libc_hidden_def.
9479 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9481         [BZ #18822]
9482         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
9483         Add libc_hidden_proto.
9484         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
9485         Add libc_hidden_def.
9487 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9489         [BZ #21974]
9490         * gmon/Makefile (routines): Remove bb_init_func and
9491         bb_exit_func.
9492         (elide-routines.os): Removed.
9493         * gmon/bb_exit_func.c: Likewise.
9494         * gmon/bb_init_func.c: Likewise.
9495         * include/sys/gmon.h (__bb): Likewise.
9496         (__bb_init_func): Likewise.
9497         (__bb_exit_func): Likewise.
9498         * sysdeps/alpha/bb_init_func.S: Likewise.
9500 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9502         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
9503         * include/setjmp.h (____longjmp_chk): Here.  Add
9504         attribute_hidden.
9506 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9508         [BZ #18822]
9509         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
9510         attribute_hidden.
9511         (__strspn_sse2): Likewise.
9513 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9515         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
9516         (close_not_cancel_no_status): Likewise.
9517         (__close_nocancel): New macro.
9518         (__close_nocancel_nostatus): Likewise.
9519         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
9520         macro.
9521         (close_not_cancel): Likewise.
9522         (close_not_cancel_no_status): Likewise.
9523         (__close_nocancel): New prototype.
9524         (__close_nocancel_nostatus): New function.
9525         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
9526         * catgets/open_catalog.c (__open_catalog): Replace
9527         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
9528         * gmon/gmon.c (write_gmon): Likewise.
9529         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9530         * intl/loadmsgcat.c (close): Likewise.
9531         * io/ftw.c (open_dir_stream): Likewise.
9532         (ftw_startup): Likewise.
9533         * libio/fileops.c (_IO_file_open): Likewise.
9534         (_IO_file_close_mmap): Likewise.
9535         (_IO_file_close): Likewise.
9536         * libio/iopopen.c (_IO_dup2): Likewise.
9537         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9538         * locale/loadlocale.c (_nl_load_locale): Likewise.
9539         * login/utmp_file.c (pututline_file): Likewise.
9540         (endutent_file): Likewise.
9541         * misc/daemon.c (daemon): Likewise.
9542         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9543         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9544         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9545         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9546         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9547         * nscd/nscd_helper.c (open_socket): Likewise.
9548         (__nscd_open_socket): Likewise.
9549         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9550         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
9551         (__nscd_innetgr): Likewise.
9552         * nss/nss_db/db-open.c (internal_setent): Likewise.
9553         * resolv/res-close.c (__res_iclose): Likewise.
9554         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
9555         * sysdeps/posix/closedir.c (__closedir): Likewise.
9556         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
9557         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9558         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9559         (opendir_tail): Likewise.
9560         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9561         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
9562         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9563         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9564         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9565         (gethostid): Likewise.
9566         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9567         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9568         Likewise.
9569         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9570         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
9571         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9572         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9573         Likewise.
9574         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
9575         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
9576         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9577         Likewise.
9578         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
9579         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9580         Likewise.
9581         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9582         Likewise.
9583         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9584         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9585         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9586         __close_nocancel.
9588         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
9589         (openat_not_cancel_3): Likewise.
9590         (openat64_not_cancel_3): Likewise).
9591         (openat_not_cancel_3): Likewise).
9592         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
9593         macro.
9594         (openat_not_cancel_3): Likewise.
9595         (openat64_not_cancel): Likewise.
9596         (openat64_not_cancel_3): Likewise.
9597         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
9598         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
9599         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
9600         __open{64}_nocancel.
9601         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9602         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9603         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9605 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9607         [BZ #18822]
9608         * include/argz.h (__argz_create_sep): New function prototype.
9609         (__argz_append): Likewise.
9610         (__argz_add): Likewise.
9611         (__argz_add_sep): Likewise.
9612         (__argz_delete): Likewise.
9613         (__argz_insert): Likewise.
9614         (__argz_replace): Likewise.
9615         * string/argz.h (__argz_create_sep): Removed.
9616         (__argz_append): Likewise.
9617         (__argz_add): Likewise.
9618         (__argz_add_sep): Likewise.
9619         (__argz_delete): Likewise.
9620         (__argz_insert): Likewise.
9621         (__argz_replace): Likewise.
9623 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9625         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
9626         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
9627         (GNU_PROPERTY_STACK_SIZE): Likewie.
9628         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
9629         (GNU_PROPERTY_LOPROC): Likewise.
9630         (GNU_PROPERTY_HIPROC): Likewise.
9631         (GNU_PROPERTY_LOUSER): Likewise.
9632         (GNU_PROPERTY_HIUSER): Likewise.
9633         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
9634         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
9635         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
9636         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
9637         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
9638         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
9639         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
9640         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
9641         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
9642         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
9643         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
9644         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
9645         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
9646         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
9647         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
9648         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
9649         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
9650         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
9651         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
9652         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
9653         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
9654         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
9655         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
9657 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9659         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
9660         in C++ mode.
9662 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9664         [BZ #21930]
9665         * math/math.h (isinf): Check if in C or C++ mode before using
9666         __builtin_types_compatible_p, since this is a C mode feature.
9668 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9670         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
9671         (__write_nocancel): New macro.
9672         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
9673         Rewrite as a function prototype.
9674         (write_not_cancel): Remove macro.
9675         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
9676         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
9677         (write_gmon): Likewise.
9678         * libio/fileops.c (_IO_new_file_write): Likewise.
9679         * login/utmp_file.c (pututline_file): Likewise.
9680         (updwtmp_file): Likewise.
9681         * stdio-common/psiginfo.c (psiginfo): Likewise.
9682         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9683         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9684         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9685         Likewise.
9686         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9687         Likewise.
9689         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9690         (__read_nocancel): New macro.
9691         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9692         __read_nocancel.
9693         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9694         macro.
9695         (__read_nocancel): New prototype.
9696         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9697         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9698         with __read_nocancel.
9699         * intl/loadmsgcat.c (read): Likewise.
9700         * libio/fileops.c (_IO_file_read): Likewise.
9701         * locale/loadlocale.c (_nl_load_locale): Likewise.
9702         * login/utmp_file.c (getutent_r_file): Likewise.
9703         (internal_getut_r): Likewise.
9704         (getutline_r_file): Likewise.
9705         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9706         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9707         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9708         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9709         Likewise.
9710         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9711         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9712         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9713         Likewise.
9714         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9715         Likewise.
9716         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9717         Likewise.
9718         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9719         Likewise.
9720         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9722 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9724         [BZ #21966]
9725         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9726         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9727         usable.
9729 2017-08-17  DJ Delorie  <dj@redhat.com>
9731         * bug17079.c: Update to new test harness.
9732         * test-digits-dots.c: Likewise.
9733         * test-netdb.c: Likewise.
9734         * tst-field.c: Likewise.
9735         * tst-nss-getpwent.c: Likewise.
9736         * tst-nss-static.c: Likewise.
9737         * tst-nss-test1.c: Likewise.
9738         * tst-nss-test2.c: Likewise.
9739         * tst-nss-test3.c: Likewise.
9740         * tst-nss-test4.c: Likewise.
9741         * tst-nss-test5.c: Likewise.
9743 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9745         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9746         (open_not_cancel_2): Likewise.
9747         (open_nocancel): New macro.
9748         (open64_nocancel): Likewise.
9749         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9750         (open_not_cancel_2): Likewise.
9751         (__open_nocancel): New prototype.
9752         (__open64_nocancel): Likewise.
9753         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9754         __open_nocancel.
9755         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9756         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9757         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9758         with __open_nocancel.
9759         * csu/check_fds.c (check_one_fd): Likewise.
9760         * gmon/gmon.c (write_gmon): Likewise.
9761         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9762         * intl/loadmsgcat.c (open): Likewise.
9763         * libio/fileops.c (_IO_file_open): Likewise.
9764         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9765         * locale/loadlocale.c (_nl_load_locale): Likewise.
9766         * login/utmp_file.c (setutent_file): Likewise.
9767         * misc/daemon.c (daemon): Likewise.
9768         * nss/nss_db/db-open.c (internal_setent): Likewise.
9769         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9770         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9771         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9772         (__opendir): Likewise.
9773         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9774         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9775         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9776         (gethostid): Likewise.
9777         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9778         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9779         Likewise.
9780         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9781         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9782         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9783         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9784         Likewise.
9785         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9786         Likewise.
9787         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9788         Likewise.
9789         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9790         Likewise.
9791         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9792         Likewise.
9793         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9794         Likewise.
9795         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9796         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9798 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9800         * benchtests/bench-skeleton.c (main): Add support for
9801         latency benchmarking.
9802         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9804 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9806         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9807         the startup object.
9809 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9811         * include/sys/socket.h (__opensock): Remove internal_function.
9812         * socket/opensock.c (__opensock): Likewise.
9813         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9815 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9817         [BZ #21944]
9818         * signal/bits/types/__sigval_t.h: New file.
9819         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9820         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9821         and define sigval_t using __sigval_t.
9822         * include/bits/types/__sigval_t.h: New file.
9823         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9824         instead of <bits/types/__sigval_t.h>.
9825         (struct sigevent): Use __sigval_t instead of sigval_t.
9826         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9827         instead of <bits/types/__sigval_t.h>.
9828         (siginfo_t): Use __sigval_t instead of sigval_t.
9829         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9830         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9831         (struct sigevent): Use __sigval_t instead of sigval_t.
9832         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9833         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9834         (siginfo_t): Use __sigval_t instead of sigval_t.
9835         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9837 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9839         * NEWS: Remove "[Add new features here]" for 2.27.
9841 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9843         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9844         libc.so.
9846 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9848         * NEWS: Mention x86-64 FMA optimization.
9850 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9852         [BZ #21912]
9853         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9854         Add e_expf-fma.
9855         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9856         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9857         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9859 2017-08-16  Andreas Schwab  <schwab@suse.de>
9861         [BZ #16750]
9862         CVE-2009-5064
9863         * elf/ldd.bash.in: Never run file directly.
9865 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9867         [BZ #21955]
9868         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9869         (L(SP_INF_0)): Likewise.
9871 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9873         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9874         run-built-tests.
9876 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9878         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9879         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9880         BROKEN_THREAD_SIGNALS code.
9881         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9882         request_list): Remove caller_pid member used for
9883         BROKEN_THREAD_SIGNALS.
9884         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9885         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9886         Remove BROKEN_THREAD_SIGNALS support.
9887         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9888         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9890 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9892         * gmon/Makefile (tests): Add tst-gmon.
9893         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9894         Set.
9895         (tests-special): Add tst-gmon-prof.out.
9896         (tst-gmon.out): Depend on clean-tst-gmon-data.
9897         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9898         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9899         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9900         startup object.
9901         * aclocal.m4 (GPROF): Set and substitute.
9902         * config.amke.in (GPROF): Set.
9903         * configure: Regenerate.
9905 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9907         * elf/elf.h A (NT_PPC_TAR): New macro.
9908         (NT_PPC_PPR): Likewise.
9909         (NT_PPC_DSCR): Likewise.
9910         (NT_PPC_EBB): Likewise.
9911         (NT_PPC_PMU): Likewise.
9912         (NT_PPC_TM_CGPR): Likewise.
9913         (NT_PPC_TM_CFPR): Likewise.
9914         (NT_PPC_TM_CVMX): Likewise.
9915         (NT_PPC_TM_CVSX): Likewise.
9916         (NT_PPC_TM_SPR): Likewise.
9917         (NT_PPC_TM_CTAR): Likewise.
9918         (NT_PPC_TM_CPPR): Likewise.
9919         (NT_PPC_TM_CDSCR): Likewise.
9921 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9923         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9924         regparm (2) instead of internal_function.
9925         (_MCOUNT_DECL): Adjust.
9927 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9929         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9930         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9932 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9934         * conform/data/sys/wait.h-data (si_value): Do not expect for
9935         XPG42.
9937 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9939         [BZ #21962]
9940         NSS: Create stubs for accidentally exported lookup functions.
9941         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9942         Remove declaration.
9943         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9944         (ether_hostton): Call __nss_ethers_lookup2 instead.
9945         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9946         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9947         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9948         (setup): Call __nss_netgroup_lookup2 instead.
9949         * nss/Makefile (routines): Add compat-lookup.
9950         * nss/Versions (GLIBC_2.27): Add symbol version.
9951         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9952         (DB_COMPAT_FCT): Remove.
9953         * nss/compat-lookup.c: New file.
9954         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9955         from databases.def.
9956         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9957         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9958         (netname2user): Call __nss_publickey_lookup2 instead.
9959         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9960         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9961         instead.
9963 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9964             Sergei Trofimovich  <slyfox@inbox.ru>
9966         [BZ #21908]
9967         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9968         Rename to MMAP2_PAGE_UNIT.
9969         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9970         __OFF_T_MATCHES_OFF64_T is not defined.
9971         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9972         uint64_t.
9973         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9974         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9976 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9978         i386: Do not set internal_function.
9979         * config.h.in (USE_REGPARMS, internal_function): Remove.
9980         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9981         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9983 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9985         * elf/dl-init.c (_dl_init): Remove internal_function.
9986         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9987         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9989 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9991         * elf/rtld.c (_dl_start): Remove internal_function.
9992         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9993         _dl_start.
9995 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9997         * elf/dl-fini.c (_dl_fini): Remove internal_function
9998         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
10000 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
10002         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
10003         (bit_cpu_SHSTK): Likewise.
10004         (index_cpu_IBT): Likewise.
10005         (index_cpu_SHSTK): Likewise.
10006         (reg_IBT): Likewise.
10007         (reg_SHSTK): Likewise.
10008         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10009         Handle index_cpu_IBT and index_cpu_SHSTK.
10011 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
10013         [BZ #19982]
10014         * po/fr.po: Fix spelling mistake.
10016 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10018         * elf/dl-addr.c (_dl_addr): Remove internal_function.
10019         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
10020         (_dl_catch_error, _dl_receive_error): Likewise.
10021         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
10022         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
10023         (_dl_deallocate_tls): Likewise.
10024         * include/dlfcn.h (_dl_addr): Likewise.
10025         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
10026         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
10027         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
10028         Likewise.
10030 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10032         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
10033         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
10034         internal_function.
10035         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
10037 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10039         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
10040         internal_function.
10041         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
10042         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
10043         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
10044         internal_function from _dl_make_stack_executable_hook member.
10045         (_dl_make_stack_executable): Remove internal_function.
10046         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
10047         Likewise.
10048         * sysdeps/unix/sysv/linux/dl-execstack.c
10049         (_dl_make_stack_executable): Likewise.
10051 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10053         * sysdeps/unix/sysv/linux/netlinkaccess.h
10054         (__netlink_assert_response): Remove internal_function.
10055         * sysdeps/unix/sysv/linux/netlink_assert_response.c
10056         (__netlink_assert_response): Likewise.
10058 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10060         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
10061         internal_function.
10062         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
10064 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10066         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
10067         internal_function.
10068         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
10069         * inet/netgroup.h (__internal_setnetgrent)
10070         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
10071         * inet/getnetgrent_r.c (__internal_setnetgrent)
10072         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
10073         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
10074         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
10075         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
10076         * nss/nsswitch.h (db_lookup_function): Likewise.
10078 2017-08-13  Florian Weimer  <fweimer@redhat.com>
10080         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
10081         Remove internal_function.
10082         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
10083         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
10084         message argument on the stack.
10085         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
10086         Likeweise.
10088 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
10090         Adapt test case data to the changes in the thousands
10091         separators.
10093         [BZ #20756]
10094         * localedata/tst-langinfo.sh: Adapt test case data.
10095         * stdlib/tst-strfmon_l.c: Likewise.
10096         * stdlib/tst-strtod4.c: Likewise.
10097         * stdlib/tst-strtod5i.c: Likewise.
10099 2017-08-11  Florian Weimer  <fweimer@redhat.com>
10101         [BZ #21242]
10102         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
10103         Suppress pedantic warning resulting from statement expression.
10104         (__ASSERT_FUNCTION): Add missing __extension__.
10106 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10108         * benchtests/bench-memmove-large.c: Print output in JSON
10109         format.
10110         * benchtests/bench-memmove.c: Likewise.
10112         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
10113         * benchtests/bench-memchr.c (do_one_test): Likewise.
10114         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
10115         * benchtests/bench-memcpy.c (do_one_test): Likewise.
10116         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
10117         * benchtests/bench-memmove.c (do_one_test): Likewise.
10118         * benchtests/bench-memset-large.c (do_one_test): Likewise.
10119         * benchtests/bench-memset.c (do_one_test): Likewise.
10120         * benchtests/bench-string.h (test_init): Remove memsets.
10122 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
10124         * manual/lang.texi
10125         (Computing the Width of an Integer Data Type): Rename section to
10126         "Width of an Integer Type".  Remove inaccurate statement regarding
10127         lack of C language facilities for determining width of integer
10128         types, and reorder content to improve flow and context of
10129         discussion.
10131 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
10133         * lang.texi (va_copy): Change standard from ISO to C99.
10134         (__va_copy): Add standard and header annotation.
10135         Update description for clarity of origins and current use.
10137 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10139         [BZ #21941]
10140         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
10141         xssqrtqp requires operands to be in Vector Registers
10142         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
10143         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
10144         (__ieee754_sqrtf128): Likewise.
10146 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10148         * sysdeps/aarch64/memcmp.S (memcmp):
10149         Rewrite of optimized memcmp.
10151 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10153         Introduce ld.so exceptions.
10154         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
10155         (_dl_exception_create, _dl_exception_create_format)
10156         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
10157         (_dl_catch_exception): Declare.
10158         (_dl_catch_error): Update comment.
10159         * elf/dl-error-skeleton.c (struct catch): Replace objname,
10160         errstring, malloced members with exception member.
10161         (_dl_out_of_memory): Remove.
10162         (fatal_error): New function, extracted from _dl_signal_error.
10163         (_dl_signal_exception, _dl_signal_cexception): New functions.
10164         (_dl_signal_error): Call _dl_exception_create to allocate an
10165         exception object.
10166         (_dl_catch_exception): New function, based on _dl_catch_error.
10167         (_dl_catch_error): Implement using _dl_catch_exception.
10168         * elf/dl-exception.c: New file.
10169         * elf/Makefile (dl-routines): Add dl-exception.
10170         (elide-routines.os): Likewise.
10171         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
10172         _dl_exception_create_format, _dl_exception_free.
10173         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
10174         _dl_signal_exception.
10175         * elf/dl-lookup.c (make_string): Remove.
10176         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
10177         _dl_signal_cexception, _dl_exception_free.
10178         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
10179         _dl_signal_exception.
10180         * elf/dl-sym.c (do_sym): Likewise.
10181         * elf/dl-version.c (make_string): Remove.
10182         (match_symbol): Use _dl_exception_create_format,
10183         _dl_signal_cexception, _dl_exception_free.
10184         (_dl_check_map_versions): Likewise.
10185         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
10186         _dl_catch_exception.
10187         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
10188         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
10189         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
10190         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
10191         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
10192         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
10193         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
10194         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
10195         Likewise.
10196         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
10197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
10198         (ld.so): Likewise.
10199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
10200         (ld.so): Likewise.
10201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
10202         Likewise.
10203         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
10204         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
10205         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
10206         Likewise.
10207         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
10208         Likewise.
10209         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
10211 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10213         * inet/net-internal.h (__inet6_scopeid_pton): Remove
10214         attribute_hidden, internal_function.
10215         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
10216         internal_function.
10218 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10220         * malloc/malloc.c (get_max_fast): Reimplement as an inline
10221         function which calls __builtin_unreachable.
10223 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
10225         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
10226         Indian monetary formatting
10227         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
10228         test cases.
10230 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
10232         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
10233         Fix typo in comment.
10235         [BZ #21928]
10236         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
10237         PTRACE_SEIZE_DEVEL): Remove.
10238         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
10239         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10240         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10241         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10242         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10244 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
10246         * posix/bits/types.h (__qaddr_t): Remove.
10248         [BZ #21457]
10249         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
10250         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10251         __glibc_reserved1.
10252         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
10253         (ucontext_t): Use __ctx with uc_flags.
10254         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
10255         (__ctxt): Likewise.
10256         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10257         __glibc_reserved1.
10258         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
10259         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10260         __glibc_reserved1.
10261         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
10262         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10263         __glibc_reserved1.
10264         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
10265         macro.
10266         (ucontext_t): Use __ctx with uc_flags.
10267         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
10268         (ucontext_t): Use __ctx with uc_flags.
10269         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
10270         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
10271         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
10272         (ucontext_t): Use __ctx with uc_flags.
10273         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
10274         undefine further down.
10275         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10276         __glibc_reserved1.
10277         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
10278         undefine further down.
10279         (ucontext_t): Use __ctx with uc_flags.
10280         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
10281         undefine further down.
10282         (ucontext_t): Use __ctx with uc_flags.
10283         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
10284         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
10285         Rename uc_pad to __glibc_reserved1.
10286         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
10287         undefine further down.
10288         (ucontext_t): Use __ctx with uc_flags.
10289         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
10290         further down.
10291         (ucontext_t): Use __ctx with uc_flags.
10292         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
10293         __ctx with uc_flags.
10294         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
10295         (ucontext_t): Use __ctx with uc_flags.
10296         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
10297         __ctx with uc_flags.
10299 2017-08-09  Florian Weimer  <fweimer@redhat.com>
10301         [BZ #21932]
10302         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
10303         before early return.
10305 2017-08-09  Andreas Schwab  <schwab@suse.de>
10307         [BZ #21041]
10308         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
10309         renamed alias.
10311         [BZ #21041]
10312         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
10313         tst-compat-forwarder.
10314         (modules-names): Add tst-compat-forwarder-mod.
10315         ($(objpfx)tst-compat-forwarder): Depend on
10316         $(objpfx)tst-compat-forwarder-mod.so.
10317         * nptl/tst-compat-forwarder.c: New file.
10318         * nptl/tst-compat-forwarder-mod.c: New file.
10320 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10322         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
10323         comments.
10325         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
10326         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10327         memcpy_falkor.
10328         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
10329         Bump.
10330         (__libc_ifunc_impl_list): Add __memcpy_falkor.
10331         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
10332         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
10333         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
10334         Add falkor.
10335         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
10336         New macro.
10338 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10340         [BZ #759]
10341         * manual/setjmp.texi (getcontex): Document uc_stack value
10342         compatibility differences.
10344 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
10346         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
10347         (old_malloc_hook): Likewise.
10348         (old_memalign_hook): Likewise.
10349         (old_realloc_hook): Likewise.
10350         (struct hdr): Likewise.
10351         (flood): Likewise.
10352         (freehook): Likewise.
10353         (mallochook): Likewise.
10354         (memalignhook): Likewise.
10355         (reallochook): Likewise.
10356         (mprobe): Likewise.
10357         * malloc/mtrace.c (mallwatch): Likewise.
10358         (tr_old_free_hook): Likewise.
10359         (tr_old_malloc_hook): Likewise.
10360         (tr_old_realloc_hook): Likewise.
10361         (tr_old_memalign_hook): Likewise.
10362         (tr_where): Likewise.
10363         (lock_and_info): Likewise.
10364         (tr_freehook): Likewise.
10365         (tr_mallochook): Likewise.
10366         (tr_reallochook): Likewise.
10367         (tr_memalignhook): Likewise.
10368         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
10369         * misc/mmap.c (__mmap): Likewise.
10370         * misc/mmap64.c (__mmap64): Likewise.
10371         * misc/mprotect.c (__mprotect): Likewise.
10372         * misc/msync.c (msync): Likewise.
10373         * misc/munmap.c (__munmap): Likewise.
10374         * posix/posix_madvise.c (posix_madvise): Likewise.
10375         * socket/send.c (__send): Likewise.
10376         * socket/sendto.c (__sendto): Likewise.
10377         * socket/setsockopt.c (__setsockopt): Likewise.
10378         * string/memcmp.c (__ptr_t): Remove macro.
10379         (MEMCMP): Use void * instead of ptr_t.
10380         * string/memrchr.c (__ptr_t): Remove macro.
10381         (__memrchr): Use void * instead of ptr_t.
10382         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
10383         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
10384         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
10385         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
10386         * sysdeps/mach/msync.c (msync): Likewise.
10387         * sysdeps/mach/munmap.c (__munmap): Likewise.
10388         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
10389         Likewise.
10390         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
10391         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
10392         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
10393         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
10394         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10395         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
10396         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
10397         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
10398         Likewise.
10399         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
10400         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
10401         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
10402         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
10403         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
10404         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
10405         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
10406         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
10407         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
10408         Likewise.
10409         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
10410         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
10411         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
10412         (MEMCMP): Use void * instead of ptr_t.
10413         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
10414         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
10416 2017-08-08  Florian Weimer  <fweimer@redhat.com>
10418         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
10419         return statement.
10421 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10423         [BZ #21913]
10424         * csu/libc-tls.c: Include <startup.h> first.
10425         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
10426         * elf/dl-tunables.c: Include <startup.h> first.
10427         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
10428         * sysdeps/generic/startup.h: New file.
10429         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
10430         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
10431         (I386_USE_SYSENTER): New.  Defined to 0.
10433 2017-08-08  Andreas Schwab  <schwab@suse.de>
10435         [BZ #21041]
10436         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
10437         * nptl/pt-system.c (system): Likewise.
10439 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10441         [BZ #21780]
10442         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
10443         EOPNOTSUPP.
10444         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
10445         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
10446         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
10447         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
10448         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
10449         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
10450         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
10452 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
10454         [BZ #21899]
10455         * bits/sigaction.h (struct sigaction): Define sa_handler and
10456         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
10457         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10458         [__USE_XOPEN_EXTENDED].
10459         (SA_RESTART): Likewise.
10460         (SA_NODEFER): Likewise.
10461         (SA_RESETHAND): Likewise.
10462         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
10463         (struct sigaction): Define sa_handler and sa_sigaction using union
10464         also for [__USE_XOPEN_EXTENDED].
10465         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10466         [__USE_XOPEN_EXTENDED].
10467         (SA_RESTART): Likewise.
10468         (SA_NODEFER): Likewise.
10469         (SA_RESETHAND): Likewise.
10470         * sysdeps/unix/sysv/linux/bits/sigaction.h
10471         (struct sigaction): Define sa_handler and sa_sigaction using union
10472         also for [__USE_XOPEN_EXTENDED].
10473         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10474         [__USE_XOPEN_EXTENDED].
10475         (SA_RESTART): Likewise.
10476         (SA_NODEFER): Likewise.
10477         (SA_RESETHAND): Likewise.
10478         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
10479         (struct sigaction): Define sa_handler and sa_sigaction using union
10480         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/ia64/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/mips/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/s390/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/sparc/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.  Define directly rather than as alias.
10517         (SA_RESETHAND): Likewise.
10518         (SA_INTERRUPT): Define only for [__USE_MISC].
10519         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
10520         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
10521         [__USE_MISC].
10522         (SA_STACK): Define only for [__USE_MISC].
10523         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
10524         (struct sigaction): Define sa_handler and sa_sigaction using union
10525         also for [__USE_XOPEN_EXTENDED].
10526         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10527         [__USE_XOPEN_EXTENDED].
10528         (SA_RESTART): Likewise.
10529         (SA_NODEFER): Likewise.
10530         (SA_RESETHAND): Likewise.
10531         (SA_NOPTRACE): Define only for [__USE_MISC].
10533         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
10534         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
10535         (struct catalog_info): Likewise.
10536         * inet/htontest.c (lo): Likewise.
10537         (foo): Likewise.
10538         * inet/inet_lnaof.c (inet_lnaof): Likewise.
10539         * inet/inet_net.c (inet_network): Likewise.
10540         * inet/inet_netof.c (inet_netof): Likewise.
10541         * inet/rcmd.c (__ivaliduser): Likewise.
10542         (iruserok): Likewise.
10543         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
10544         * locale/programs/locale-spec.c (locale_special): Likewise.
10545         * nis/nis_findserv.c (struct findserv_req): Likewise.
10546         (__nis_findfastest_with_timeout): Likewise.
10547         * nss/test-netdb.c (test_network): Likewise.
10548         * resolv/inet_neta.c (inet_neta): Likewise.
10549         * resolv/ns_date.c (ns_datetosecs): Likewise.
10550         (SECS_PER_DAY): Likewise.
10551         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
10552         Likewise.
10553         * resolv/res_comp.c (__putlong): Likewise.
10554         (__putshort): Likewise.
10555         (_getlong): Likewise.
10556         (_getshort): Likewise.
10557         * resolv/res_debug.c (p_time): Likewise.
10558         (precsize_ntoa): Likewise.
10559         (precsize_aton): Likewise.
10560         (latlon2ul): Likewise.
10561         (loc_aton): Likewise.
10562         (loc_ntoa): Likewise.
10563         * resolv/res_hconf.c (struct netaddr): Likewise.
10564         (_res_hconf_reorder_addrs): Likewise.
10565         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
10566         (clnttcp_control): Likewise.
10567         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10568         (clntudp_control): Likewise.
10569         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
10570         (clntunix_control): Likewise.
10571         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
10572         * sunrpc/rpc/auth.h (union des_block): Likewise.
10573         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
10574         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
10575         (xdrrec_create): Likewise.
10576         (xdrrec_endofrecord): Likewise.
10577         (flush_out): Likewise.
10578         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
10579         (xdrstdio_putlong): Likewise.
10580         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
10581         Likewise.
10583         * misc/sys/cdefs.h (__long_double_t): Remove.
10584         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
10585         instead of __long_double_t,
10586         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
10588 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10590         * benchtests/scripts/compare_strings.py: Avoid display error when
10591         running on a text terminal.
10593         * benchtests/scripts/compare_strings.py (main): Add an
10594         optional -base option.
10595         (process_results): New argument base_func.
10597         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
10598         hardcoding memcpy.
10599         * benchtests/bench-memcpy-large.c (test_name): Likewise.
10600         * benchtests/bench-memcpy-random.c (test_name): Likewise.
10602 2017-08-07  Andreas Schwab  <schwab@suse.de>
10604         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
10605         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
10606         * intl/Makefile ($(objpfx)tst-gettext.out)
10607         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
10608         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
10609         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
10610         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
10611         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
10612         * posix/Makefile ($(objpfx)globtest.out)
10613         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
10614         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
10615         ($(objpfx)tst-printf.out): Likewise.
10616         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
10617         ($(objpfx)tst-setcontext3.out): Likewise.
10619 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10621         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10622         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
10623         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
10624         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
10625         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
10626         and mptan-fma.
10627         (CFLAGS-doasin-fma.c): New.
10628         (CFLAGS-dosincos-fma.c): Likewise.
10629         (CFLAGS-e_asin-fma.c): Likewise.
10630         (CFLAGS-e_atan2-fma.c): Likewise.
10631         (CFLAGS-e_exp-fma.c): Likewise.
10632         (CFLAGS-e_log-fma.c): Likewise.
10633         (CFLAGS-e_pow-fma.c): Likewise.
10634         (CFLAGS-halfulp-fma.c): Likewise.
10635         (CFLAGS-mpa-fma.c): Likewise.
10636         (CFLAGS-mpatan-fma.c): Likewise.
10637         (CFLAGS-mpatan2-fma.c): Likewise.
10638         (CFLAGS-mpexp-fma.c): Likewise.
10639         (CFLAGS-mplog-fma.c): Likewise.
10640         (CFLAGS-mpsqrt-fma.c): Likewise.
10641         (CFLAGS-mptan-fma.c): Likewise.
10642         (CFLAGS-s_atan-fma.c): Likewise.
10643         (CFLAGS-sincos32-fma.c): Likewise.
10644         (CFLAGS-slowexp-fma.c): Likewise.
10645         (CFLAGS-slowpow-fma.c): Likewise.
10646         (CFLAGS-s_sin-fma.c): Likewise.
10647         (CFLAGS-s_tan-fma.c): Likewise.
10648         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
10649         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
10650         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
10651         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
10652         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
10653         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10654         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
10655         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
10656         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
10657         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
10658         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
10659         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
10660         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
10661         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10662         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10663         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
10664         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
10665         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
10666         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
10667         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
10668         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
10669         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10670         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10671         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
10672         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10673         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10674         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10675         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
10676         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10677         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10678         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10680 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
10682         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
10683         (min_of_type_f): New macro.
10684         (min_of_type_): Likewise.
10685         (min_of_type_l): Likewise.
10686         (min_of_type_f128): Likewise.
10687         (min_of_type): Define using __MATH_TG and taking an expression
10688         argument.
10689         (math_check_force_underflow): Pass expression instead of type to
10690         min_of_type.
10691         (math_check_force_underflow_nonneg): Likewise.
10693 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10695         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10696         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10697         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10699 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10701         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10702         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10703         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10704         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10705         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10706         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10707         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10708         memmove_chk-nonshared and memset_chk-nonshared
10709         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10710         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10711         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10712         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10713         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10714         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10715         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10716         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10717         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10718         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10719         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10720         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10721         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10722         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10723         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10724         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10725         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10726         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10727         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10728         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10729         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10730         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10731         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10732         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10733         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10734         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10735         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10736         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10737         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10738         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10739         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10740         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10741         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10742         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10743         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10744         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10745         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10746         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10747         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10748         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10749         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10750         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10751         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10752         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10753         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10754         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10755         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10756         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10757         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10758         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10759         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10760         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10761         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10762         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10763         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10764         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10765         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10766         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10767         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10768         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10769         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10770         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10771         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10772         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10773         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10774         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10775         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10776         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10777         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10778         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10779         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10780         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10781         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10782         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10783         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10784         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10785         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10786         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10787         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10788         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10789         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10790         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10791         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10792         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10793         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10794         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10795         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10796         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10797         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10798         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10799         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10800         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10801         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10802         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10803         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10804         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10805         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10806         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10807         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10808         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10809         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10810         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10811         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10812         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10813         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10814         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10815         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10816         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10818 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10820         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10821         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10822         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10823         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10824         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10825         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10826         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10827         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10828         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10829         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10830         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10831         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10832         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10833         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10834         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10835         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10836         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10837         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10838         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10839         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10840         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10841         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10842         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10843         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10844         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10845         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10846         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10847         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10848         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10849         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10850         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10851         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10852         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10853         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10854         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10855         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10856         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10857         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10858         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10859         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10860         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10861         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10862         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10863         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10864         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10865         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10866         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10867         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10868         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10869         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10870         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10871         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10872         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10873         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10874         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10875         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10876         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10877         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10878         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10879         ...
10880         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10881         Don't include <sysdep.h> nor <init-arch.h>.
10882         (_ZGVbN2v_cos): Removed.
10883         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10884         ...
10885         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10886         Don't include <sysdep.h> nor <init-arch.h>.
10887         (_ZGVdN4v_cos): Removed.
10888         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10889         ...
10890         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10891         Don't include <sysdep.h> nor <init-arch.h>.
10892         (_ZGVeN8v_cos): Removed.
10893         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10894         ...
10895         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10896         Don't include <sysdep.h> nor <init-arch.h>.
10897         (_ZGVbN2v_exp): Removed.
10898         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10899         ...
10900         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10901         Don't include <sysdep.h> nor <init-arch.h>.
10902         (_ZGVdN4v_exp): Removed.
10903         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10904         ...
10905         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10906         Don't include <sysdep.h> nor <init-arch.h>.
10907         (_ZGVeN8v_exp): Removed.
10908         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10909         ...
10910         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10911         Don't include <sysdep.h> nor <init-arch.h>.
10912         (_ZGVbN2v_log): Removed.
10913         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10914         ...
10915         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10916         Don't include <sysdep.h> nor <init-arch.h>.
10917         (_ZGVdN4v_log): Removed.
10918         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10919         ...
10920         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10921         Don't include <sysdep.h> nor <init-arch.h>.
10922         (_ZGVeN8v_log): Removed.
10923         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10924         ...
10925         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10926         Don't include <sysdep.h> nor <init-arch.h>.
10927         (_ZGVbN2vv_pow): Removed.
10928         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10929         ...
10930         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10931         Don't include <sysdep.h> nor <init-arch.h>.
10932         (_ZGVdN4vv_pow): Removed.
10933         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10934         ...
10935         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10936         Don't include <sysdep.h> nor <init-arch.h>.
10937         (_ZGVeN8vv_pow): Removed.
10938         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10939         ...
10940         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10941         Don't include <sysdep.h> nor <init-arch.h>.
10942         (_ZGVbN2v_sin): Removed.
10943         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10944         ...
10945         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10946         Don't include <sysdep.h> nor <init-arch.h>.
10947         (_ZGVbN4v_sin): Removed.
10948         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10949         ...
10950         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10951         Don't include <sysdep.h> nor <init-arch.h>.
10952         (_ZGVbN8v_sin): Removed.
10953         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10954         ...
10955         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10956         Don't include <sysdep.h> nor <init-arch.h>.
10957         (_ZGVbN2vvv_sincos): Removed.
10958         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10959         ...
10960         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10961         Don't include <sysdep.h> nor <init-arch.h>.
10962         (_ZGVdN4vvv_sincos): Removed.
10963         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10964         ...
10965         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10966         Don't include <sysdep.h> nor <init-arch.h>.
10967         (_ZGVeN8vvv_sincos): Removed.
10968         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10969         ...
10970         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10971         Don't include <sysdep.h> nor <init-arch.h>.
10972         (_ZGVeN16v_cosf): Removed.
10973         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10974         ...
10975         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10976         Don't include <sysdep.h> nor <init-arch.h>.
10977         (_ZGVbN4v_cosf): Removed.
10978         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10979         ...
10980         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10981         Don't include <sysdep.h> nor <init-arch.h>.
10982         (_ZGVdN8v_cosf): Removed.
10983         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10984         ...
10985         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10986         Don't include <sysdep.h> nor <init-arch.h>.
10987         (_ZGVeN16v_expf): Removed.
10988         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10989         ...
10990         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10991         Don't include <sysdep.h> nor <init-arch.h>.
10992         (_ZGVbN4v_expf): Removed.
10993         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10994         ...
10995         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10996         Don't include <sysdep.h> nor <init-arch.h>.
10997         (_ZGVdN8v_expf): Removed.
10998         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10999         ...
11000         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
11001         Don't include <sysdep.h> nor <init-arch.h>.
11002         (_ZGVeN16v_logf): Removed.
11003         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
11004         ...
11005         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
11006         Don't include <sysdep.h> nor <init-arch.h>.
11007         (_ZGVbN4v_logf): Removed.
11008         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
11009         ...
11010         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
11011         Don't include <sysdep.h> nor <init-arch.h>.
11012         (_ZGVdN8v_logf): Removed.
11013         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
11014         ...
11015         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
11016         Don't include <sysdep.h> nor <init-arch.h>.
11017         (_ZGVeN16vv_powf): Removed.
11018         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
11019         ...
11020         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
11021         Don't include <sysdep.h> nor <init-arch.h>.
11022         (_ZGVbN4vv_powf): Removed.
11023         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
11024         ...
11025         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
11026         Don't include <sysdep.h> nor <init-arch.h>.
11027         (_ZGVdN8vv_powf): Removed.
11028         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
11029         ...
11030         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
11031         Don't include <sysdep.h> nor <init-arch.h>.
11032         (_ZGVeN16vvv_sincosf): Removed.
11033         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
11034         ...
11035         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
11036         Don't include <sysdep.h> nor <init-arch.h>.
11037         (_ZGVbN4vvv_sincosf): Removed.
11038         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
11039         ...
11040         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
11041         Don't include <sysdep.h> nor <init-arch.h>.
11042         (_ZGVdN8vvv_sincosf): Removed.
11043         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
11044         ...
11045         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
11046         Don't include <sysdep.h> nor <init-arch.h>.
11047         (_ZGVeN16v_sinf): Removed.
11048         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
11049         ...
11050         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
11051         Don't include <sysdep.h> nor <init-arch.h>.
11052         (_ZGVbN4v_sinf): Removed.
11053         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
11054         ...
11055         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
11056         Don't include <sysdep.h> nor <init-arch.h>.
11057         (_ZGVdN8v_sinf): Removed.
11059 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11061         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11062         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
11063         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
11064         s_rint-sse4_1 and s_rintf-sse4_1.
11065         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
11066         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
11067         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
11068         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
11069         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
11070         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
11071         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
11072         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
11073         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
11074         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
11075         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
11076         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11077         (__ceil): Removed.
11078         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
11079         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
11080         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11081         (__ceilf): Removed.
11082         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
11083         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
11084         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11085         (__floor): Removed.
11086         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
11087         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
11088         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11089         (__floorf): Removed.
11090         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
11091         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
11092         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11093         (__nearbyint): Removed.
11094         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
11095         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
11096         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11097         (__nearbyintf): Removed.
11098         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
11099         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
11100         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11101         (__rint): Removed.
11102         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
11103         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
11104         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
11105         (__rintf): Removed.
11107 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11109         * sysdeps/i386/start.S (_start): Check Check PIC instead of
11110         SHARED.  Avoid dynamic relocation against main in static PIE.
11112 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11114         [BZ #21815]
11115         * elf/Makefile (CFLAGS-tst-prelink.c): New.
11116         (LDFLAGS-tst-prelink): Likewise.
11118 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11120         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
11121         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
11122         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
11123         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
11124         (INTERNAL_SYSCALL_NCS): Likewise.
11125         (LOADARGS_1): Likewise.
11126         (LOADARGS_5): Likewise.
11127         (RESTOREARGS_1): Likewise.
11128         (RESTOREARGS_5): Likewise.
11130 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11132         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
11133         (MEMPCPY_SYMBOL): Likewise.
11134         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11135         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
11136         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
11137         in libc.a.
11138         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11139         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
11140         Likewise.
11141         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
11142         (__hidden_ver1): Don't use in libc.a.
11143         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
11144         (__mempcpy): Don't create a weak alias in libc.a.
11145         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
11146         libc.a.
11147         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
11148         (__hidden_ver1): Don't use in libc.a.
11150 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11152         * config.make.in (have-insert): New.
11153         * configure.ac (libc_cv_insert): New.  Set to yes if linker
11154         supports INSERT in linker script.
11155         (AC_SUBST(libc_cv_insert): New.
11156         * configure: Regenerated.
11157         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
11158         if $(have-insert) == yes.
11160 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11162         * elf/Makefile (tests): Add vismain only if
11163         $(have-protected-data) == yes.
11164         (tests-pie): Likewise.
11166 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11168         [BZ #21871]
11169         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11170         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
11172 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11174         [BZ #21790]
11175         * sysdeps/i386/i586/memset.S
11176         (__memset_zero_constant_len_parameter): Removed.
11177         * sysdeps/i386/i686/memset.S
11178         (__memset_zero_constant_len_parameter): Likewise.
11179         * sysdeps/i386/i686/multiarch/memset_chk.S
11180         (__memset_zero_constant_len_parameter): Likewise.
11181         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
11182         Likewise.
11184 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
11186         * stdlib/getentropy.c (getentropy): Change return type to int.
11188 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
11190         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
11192 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
11194         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
11195         u_intN_t.
11196         * math/s_nexttowardf.c (__nexttowardf): Likewise.
11197         * sysdeps/generic/math_private.h (ieee_double_shape_type):
11198         Likewise.
11199         (ieee_float_shape_type): Likewise.
11200         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
11201         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
11202         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
11203         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11204         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11205         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
11206         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
11207         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
11208         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11209         Likewise.
11210         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
11211         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11212         (__ieee754_yn): Likewise.
11213         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
11214         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
11215         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
11216         Likewise.
11217         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11218         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
11219         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
11220         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
11221         (__erfc): Likewise.
11222         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11223         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
11224         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
11225         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
11226         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
11227         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
11228         Likewise.
11229         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11230         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
11231         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11232         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
11233         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
11234         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
11235         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
11236         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
11237         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
11238         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
11239         (__issignaling): Likewise.
11240         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
11241         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
11242         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11243         Likewise.
11244         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11245         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
11246         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
11247         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
11248         Likewise.
11249         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
11250         Likewise.
11251         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
11252         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
11253         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
11254         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11255         (__erfcf): Likewise.
11256         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11257         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11258         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
11259         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
11260         Likewise.
11261         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
11262         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
11263         Likewise.
11264         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11265         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
11266         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11267         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
11268         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
11269         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
11270         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
11271         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
11272         Likewise.
11273         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
11274         Likewise.
11275         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11276         Likewise.
11277         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
11278         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11279         Likewise.
11280         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11281         Likewise.
11282         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11283         (__ieee754_ynl): Likewise.
11284         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11285         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
11286         Likewise.
11287         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
11288         Likewise.
11289         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11290         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
11291         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11292         Likewise.
11293         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11294         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
11295         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
11296         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
11297         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
11298         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11299         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
11300         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
11301         Likewise.
11302         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
11303         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
11304         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
11305         Likewise.
11306         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11307         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
11308         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11309         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
11310         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
11311         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
11312         Likewise.
11313         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
11314         Likewise.
11315         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11316         Likewise.
11317         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11318         Likewise.
11319         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
11320         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
11321         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11322         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
11323         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11324         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
11325         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
11326         Likewise.
11327         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11328         Likewise.
11329         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11330         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11331         Likewise.
11332         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11333         (__ieee754_remainderl): Likewise.
11334         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11335         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11336         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
11337         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
11338         Likewise.
11339         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
11340         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11341         Likewise.
11342         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11343         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
11344         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11345         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11346         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
11347         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11348         Likewise.
11349         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11350         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
11351         (__ieee754_y0l): Likewise.
11352         (pzero): Likewise.
11353         (qzero): Likewise.
11354         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11355         (__ieee754_y1l): Likewise.
11356         (pone): Likewise.
11357         (qone): Likewise.
11358         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11359         (__ieee754_ynl): Likewise.
11360         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
11361         (__ieee754_lgammal_r): Likewise.
11362         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
11363         Likewise.
11364         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11365         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
11366         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11367         (__erfcl): Likewise.
11368         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
11369         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
11370         Likewise.
11371         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11372         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
11373         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11374         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
11375         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
11376         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11377         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11378         Likewise.
11379         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
11380         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
11381         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
11382         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
11383         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11384         Likewise.
11385         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
11386         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
11387         Likewise.
11388         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
11389         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
11390         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
11391         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
11392         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11394 2017-08-03  Florian Weimer  <fweimer@redhat.com>
11396         [BZ #21885]
11397         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
11398         on memory allocation failure.
11400 2017-08-03  Alan Modra  <amodra@gmail.com>
11402         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
11403         tst-tlsopt-powerpc.c with function name change and no test harness.
11404         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
11405         Call tls_get_addr_opt_test.
11406         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
11407         (modules-names): Add mod-tlsopt-powerpc.
11408         (mod-tlsopt-powerpc.so-no-z-defs): Define.
11409         (tst-tlsopt-powerpc): Depend on .so.
11410         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
11411         define.  Expand use in TLS_GD and TLS_LD.
11413 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11415         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
11416         function.
11417         * sysdeps/posix/shm_open.c: Include <pthread.h>.
11419 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11421         [BZ #21686]
11422         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
11423         comparing size with that of double.
11424         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11425         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11426         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11427         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11428         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11429         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
11430         unsigned __int128 types.
11432 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
11434         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
11435         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
11436         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
11437         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
11438         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
11440 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11442         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
11444 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11446         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
11447         of SHARED.
11448         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
11449         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11450         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11451         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11452         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11453         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11454         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11456 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11458         [BZ #21685]
11459         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
11460         bit-field expressions passed to sizeof or typeof.
11461         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11462         (__TGMATH_F128): Likewise.
11463         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11464         (__TGMATH_CF128): Likewise.
11465         (__TGMATH_UNARY_REAL_ONLY): Likewise.
11466         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
11467         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
11468         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
11469         (__TGMATH_BINARY_REAL_ONLY): Likewise.
11470         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11471         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11472         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11473         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11474         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
11475         (__TGMATH_UNARY_REAL_IMAG): Likewise.
11476         (__TGMATH_UNARY_IMAG): Likewise.
11477         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
11478         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11479         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
11480         type.
11481         (define_vars_for_type): Handle bit_field type specially.
11482         (Tests.__init__): Declare structure with bit-field element.
11484 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11486         [BZ #21791]
11487         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
11488         (MEMCPY_CHK): Define only if SHARED is defined.
11489         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
11490         Likewise.
11491         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
11492         Likewise.
11494 See ChangeLog.18 for earlier changes.