Use libm_alias_double for aarch64.
[glibc.git] / ChangeLog
blobbe3e856c8a0201f1936a8d8c62167ef21e76fb0d
1 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
3         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
4         (ceil): Define using libm_alias_double.
5         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
6         (floor): Define using libm_alias_double.
7         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
8         (fma): Define using libm_alias_double.
9         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
10         (fmax): Define using libm_alias_double.
11         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
12         (fmin): Define using libm_alias_double.
13         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
14         (llrint): Define using libm_alias_double.
15         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
16         (llround): Define using libm_alias_double.
17         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
18         (lrint): Define using libm_alias_double.
19         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20         (lround): Define using libm_alias_double.
21         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22         (nearbyint): Define using libm_alias_double.
23         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24         (rint): Define using libm_alias_double.
25         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
26         (round): Define using libm_alias_double.
27         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
28         (trunc): Define using libm_alias_double.
30 2017-11-27  Florian Weimer  <fweimer@redhat.com>
32         * sysdeps/unix/sysv/linux/mlock2.c: New file.
33         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
34         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
35         (tests): Add tst-mlock2.
36         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
37         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
38         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
39         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
40         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
41         for mlock.  Document mlock2.
43 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
45         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
46         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
47         Likewise.
48         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
49         Likewise.
50         * sysdeps/x86/Makeconfig: New file.
51         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
52         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
53         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
54         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
55         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
56         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
57         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
58         Likewise.
59         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
60         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
61         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
62         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
63         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
64         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
65         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
66         * manual/math.texi (Mathematics): Document support for _Float64x.
67         * math/Versions (GLIBC_2.27): Add _Float64x functions.
68         * stdlib/Versions (GLIBC_2.27): Likewise.
69         * wcsmbs/Versions (GLIBC_2.27): Likewise.
70         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
71         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
72         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
73         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
74         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
75         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
76         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
77         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
78         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
79         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
80         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
81         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
82         Likewise.
83         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
84         Likewise.
85         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
86         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
87         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
88         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
89         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
90         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
91         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
92         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
93         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
94         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
95         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
96         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
97         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
98         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
100 2017-11-27  Andreas Schwab  <schwab@suse.de>
102         * elf/Makefile (dl-routines): Add dl-sort-maps.
103         * elf/dl-sort-maps.c: New file.
104         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
105         (_dl_sort_maps): Declare.
106         * elf/dl-fini.c (_dl_sort_fini): Remove.
107         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
108         * elf/dl-close.c (_dl_close_worker): Likewise.
109         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
110         open-coding it.
111         * elf/dl-open.c (dl_open_worker): Likewise.
113 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
115         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
116         using libm_alias_float128.
117         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
118         Likewise.
119         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
120         Likewise.
121         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
122         (setpayloadsigf128): Likewise.
123         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
124         Likewise.
125         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
126         Likewise.
128         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
129         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
130         -mfloat128 to CFLAGS.
131         ($(foreach
132         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
133         Likewise.
134         (CFLAGS-libm-test-support-float64x.c): New variable.
135         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
136         $(f128-loader-link) to gnulib-tests.
138         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
139         (libm_alias_float128_other_r): If
140         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
141         alias.
142         (libm_alias_float128_r): Add semicolon after weak_alias call.
143         * sysdeps/generic/libm-alias-ldouble.h
144         (libm_alias_ldouble_other_r_f128): New macro.
145         (libm_alias_ldouble_other_r_f64x): Likewise.
146         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
147         and libm_alias_ldouble_other_r_f64x.
148         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
149         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
150         (libm_alias_ldouble_other_r_f128): New macro.
151         (libm_alias_ldouble_other_r_f64x): Likewise.
152         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
153         and libm_alias_ldouble_other_r_f64x.
155         * stdlib/strfroml.c: Always include <stdlib.h>.
156         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
157         undefine as macro and define as weak alias.
158         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
159         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
160         <stdlib.h>.
161         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
162         Define and later undefine as macro and define as weak alias.
164         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
165         Define and later undefine as macro.  Define as weak alias if
166         [!USE_WIDE_CHAR].
167         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
168         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
169         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
170         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
171         Define and later undefine as macro.  Define as weak alias if
172         [!USE_WIDE_CHAR].
173         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
174         Define and later undefine as macro.  Define as weak alias if
175         [USE_WIDE_CHAR].
176         * sysdeps/ieee754/float128/strtof128_l.c
177         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
178         Define and later undefine as macro.  Define as weak alias if
179         [!USE_WIDE_CHAR].
180         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
181         Define and later undefine as macro.  Define as weak alias if
182         [USE_WIDE_CHAR].
183         * sysdeps/ieee754/ldbl-128/strtold_l.c
184         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
185         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
186         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
187         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
188         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
189         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
190         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
191         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
192         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
193         * sysdeps/ieee754/ldbl-96/strtold_l.c
194         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
195         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
196         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
197         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
199         * math/test-float64x.h: New file.
200         * math/Makefile (type-float64x-yes): New variable.
201         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
203         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
204         function-like macro.
205         (min_of_type_): Likewise.
206         (min_of_type_l): Likewise.
207         (min_of_type_f128): Likewise.
208         (min_of_type): Pass () as last argument of __MATH_TG.
210         * stdlib/tst-strtod-round-skeleton.c
211         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
212         headers.
214         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
215         for combinations of long double with _Float64 and _Float64x.
217         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
218         (__DECL_SIMD_cosf32): Likewise.
219         (__DECL_SIMD_cosf64): Likewise.
220         (__DECL_SIMD_cosf32x): Likewise.
221         (__DECL_SIMD_cosf64x): Likewise.
222         (__DECL_SIMD_cosf128x): Likewise.
223         (__DECL_SIMD_sinf16): Likewise.
224         (__DECL_SIMD_sinf32): Likewise.
225         (__DECL_SIMD_sinf64): Likewise.
226         (__DECL_SIMD_sinf32x): Likewise.
227         (__DECL_SIMD_sinf64x): Likewise.
228         (__DECL_SIMD_sinf128x): Likewise.
229         (__DECL_SIMD_sincosf16): Likewise.
230         (__DECL_SIMD_sincosf32): Likewise.
231         (__DECL_SIMD_sincosf64): Likewise.
232         (__DECL_SIMD_sincosf32x): Likewise.
233         (__DECL_SIMD_sincosf64x): Likewise.
234         (__DECL_SIMD_sincosf128x): Likewise.
235         (__DECL_SIMD_logf16): Likewise.
236         (__DECL_SIMD_logf32): Likewise.
237         (__DECL_SIMD_logf64): Likewise.
238         (__DECL_SIMD_logf32x): Likewise.
239         (__DECL_SIMD_logf64x): Likewise.
240         (__DECL_SIMD_logf128x): Likewise.
241         (__DECL_SIMD_expf16): Likewise.
242         (__DECL_SIMD_expf32): Likewise.
243         (__DECL_SIMD_expf64): Likewise.
244         (__DECL_SIMD_expf32x): Likewise.
245         (__DECL_SIMD_expf64x): Likewise.
246         (__DECL_SIMD_expf128x): Likewise.
247         (__DECL_SIMD_powf16): Likewise.
248         (__DECL_SIMD_powf32): Likewise.
249         (__DECL_SIMD_powf64): Likewise.
250         (__DECL_SIMD_powf32x): Likewise.
251         (__DECL_SIMD_powf64x): Likewise.
252         (__DECL_SIMD_powf128x): Likewise.
254         * stdlib/Versions (libc): Move entries for wcstof128 and
255         wcstof128_l to ....
256         * wcsmbs/Versions (libc): ... here.
257         Include <float128-abi.h>.
259 2017-11-24  Florian Weimer  <fweimer@redhat.com>
261         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
262         bits/mman-shared.h.
263         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
264         <bits/mman-shared.h>.
265         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
266         to ...
267         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
268         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
269         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
270         <bits/mman-shared.h>.
272 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
274         [BZ #22457]
275         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
276         posix_memalign/free.
277         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
279 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
281         [BZ #22469]
282         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
283         and implement the collation rules for pl from CLDR on top of that.
284         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
285         of locales to be built for testing.
286         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
288 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
290         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
291         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
292         libm_alias_ldouble_other.
293         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
294         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
295         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
296         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
297         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
298         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
299         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
300         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
301         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
302         libm_alias_ldouble_r.
303         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
304         libm_alias_ldouble_other.
305         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
306         (log10l): Likewise.
307         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
308         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
309         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
310         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
311         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
312         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
313         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
314         (atan2l): Likewise.
315         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
316         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
317         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
318         libm_alias_ldouble.
319         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
320         (cosl): Likewise.
321         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
322         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
323         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
324         (expl): Likewise.
325         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
326         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
327         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
328         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
329         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
330         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
331         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
332         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
333         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
334         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
335         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
336         libm_alias_ldouble.
337         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
338         libm_alias_ldouble_other.
339         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
340         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
341         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
342         libm_alias_ldouble.
343         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
344         libm_alias_ldouble_other.
345         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
346         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
347         * sysdeps/ia64/fpu/w_lgammal_main.c
348         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
349         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
351 2017-11-23  Florian Weimer  <fweimer@redhat.com>
353         * malloc/malloc.c (tcache_thread_shutdown): Rename from
354         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
355         alike.  Remove freeres marker.
356         * malloc/arena.c (arena_thread_freeres): Call
357         tcache_thread_shutdown.
359 2017-11-23  Florian Weimer  <fweimer@redhat.com>
361         [BZ #22459]
362         Export nscd hash function as __nss_hash.
363         * include/nss.h (__nss_hash): Declare.
364         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
365         symbol.
366         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
367         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
368         of __nscd_hash.
369         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
370         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
371         * nss/Makefiles (routines): Add nss_hash.
372         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
373         * nss/nss_hash.c: Rename from nis/nis_hash.c.
374         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
375         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
377 2017-11-23  Florian Weimer  <fweimer@redhat.com>
379         [BZ #22478]
380         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
381         Return error code, not -1.
382         * signal/tst-sigwait-eintr.c: New file.
383         * signal/Makefile (tests): Add tst-sigwait-eintr.
385 2017-11-23  Florian Weimer  <fweimer@redhat.com>
387         Linux: Add memfd_create system call wrapper
388         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
389         tst-memfd_create.
390         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
391         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
392         [__USE_GNU] (memfd_create): Declare.
393         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
394         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
395         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
396         * sysdeps/unix/sysv/linux/**.abilist: Update.
397         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
399 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
401         * localedata/gen-locale.sh: Fix typo in variable name.
403         * resolv/res_debug.c (p_secstodate): Condition definition on
404         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
405         directly as __p_secstodate, and as a compat symbol.  Do not use
406         libresolv_hidden_def.
407         * resolv/resolv.h (p_secstodate): Remove macro and function
408         declaration.
409         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
410         using p_secstodate.
411         * include/resolv.h (__p_secstodate): Do not use
412         libresolv_hidden_proto.
413         * resolv/Makefile (tests): Move tst-p_secstodate to ....
414         (tests-internal): ... here.
415         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
416         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
417         and declare and use __p_secstodate and use compat_symbol_reference
418         in that case.
419         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
420         implementation returning 77.
422         [BZ #22463]
423         * resolv/res_debug.c: Include <libc-diag.h>.
424         (p_secstodate): Assert time_t at least as wide as u_long.  On
425         overflow, use integer seconds since the epoch as output, or use
426         "<overflow>" as output and set errno to EOVERFLOW if integer
427         seconds since the epoch would be 14 or more characters.
428         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
429         for sprintf call.
430         * resolv/tst-p_secstodate.c: New file.
431         * resolv/Makefile (tests): Add tst-p_secstodate.
432         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
434         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
435         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
436         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
438 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
440         * posix/regcomp.c (init_word_char): Add comments.
442 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
444         [BZ #22447]
445         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
446         strlen to compute length of ut_user and set trailing NUL byte of
447         result explicitly.
449 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
451         [BZ #15537]
452         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
453         using “copy "iso14651_t1"” and then implementing the
454         collation rules for lv from CLDR on top of that.
455         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
456         of locales to be built for testing.
457         * lv_LV.UTF-8.in: New file with test data to test the Latvian
458         sorting.
460 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
462         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
463         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
464         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
465         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
466         [__USE_MISC] (MADV_HWPOISON): New macro.
467         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
469 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
471         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
472         -Wmissing-braces on GCC 4.9.
474 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
476         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
477         * sysdeps/s390/s390-32/start.S (_start): Likewise
478         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
479         (thread_start): Likewise.
480         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
481         (thread_start): Likewise.
482         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
483         (__makecontext_ret): Likewise.
484         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
485         (__makecontext_ret): Likewise.
487 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
489         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
490         __wcschrnul): Remove attribute_hidden.
492 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
494         regex: don't assume uint64_t or uint32_t
495         This avoids -Werror=overflow errors for 32-bit systems in
496         the 64-bit case.  Problem reported by Joseph Myers in:
497         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
498         Also, when this code is used in Gnulib it ports to platforms
499         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
500         them, and on some 32-bit compilers there is no uint64_t.
501         Problem reported by Gianluigi Tiesi in:
502         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
503         * posix/regcomp.c (init_word_char): Don't assume that the types
504         uint64_t and uint32_t exist.  Adapted from Gnulib patch
505         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
506         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
508 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
510         * sysdeps/aarch64/memset-reg.h: New file.
511         * sysdeps/aarch64/memset.S: Use it.
512         (__memset): Rename to MEMSET macro.
513         [ZVA_MACRO]: Use zva_macro.
514         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
515         Add memset_generic and memset_falkor.
516         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
517         (__libc_ifunc_impl_list): Add memset ifuncs.
518         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
519         local variable zva_size.
520         * sysdeps/aarch64/multiarch/memset.c: New file.
521         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
522         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
523         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
524         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
525         (DCZID_DZP_MASK): New macro.
526         (DCZID_BS_MASK): Likewise.
527         (init_cpu_features): Read and set zva_size.
528         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
529         (struct cpu_features): New member zva_size.
531         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
532         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
533         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
535         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
536         backwards.  Fix timing computation.
537         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
538         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
539         on memset by N at a time.  Fix timing computation.
541 2017-11-20  Florian Weimer  <fweimer@redhat.com>
543         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
544         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
546 2017-11-19  Florian Weimer  <fweimer@redhat.com>
548         manual: Document mprotect
549         * manual/memory.texi (Memory Protection): New section.
550         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
551         documentation of PROT_* flags and reference the Memory Protection
552         section instead.
554 2017-11-19  Florian Weimer  <fweimer@redhat.com>
556         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
557         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
558         (Scatter-Gather): ... to here.  Remove misleading comment.
560 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
562         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
563         style.
565         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
566         when /proc/<pid>/setgroups does not exist.
568 2017-11-18  Florian Weimer  <fweimer@redhat.com>
570         * sysdeps/unix/sysv/linux/tst-ttyname.c
571         (become_root_in_mount_ns): Remove.
572         (do_in_chroot_1): Call support_enter_mount_namespace.
573         (do_in_chroot_2): Likewise.
574         (do_test): Call support_become_root early.
576 2017-11-18  Florian Weimer  <fweimer@redhat.com>
578         * support/namespace.h (support_enter_mount_namespace): Declare.
579         * support/support_enter_mount_namespace.c: New file.
580         * support/Makefile (libsupport-routines): Add
581         support_enter_mount_namespace.
583 2017-11-18  Florian Weimer  <fweimer@redhat.com>
585         * support/temp_file.c (support_create_temp_directory): Use
586         test_dir and do not rely on the presence of the XXXXXX suffix.
587         * support/temp_file.h (support_create_temp_directory): Update
588         comment.
589         * support/tst-xreadlink.c (do_test): Adjust.
590         * support/support_chroot.c (support_chroot_create): Likewise.
592 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
594         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
595         macro.
596         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
597         htm-no-suspend.
599 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
601         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
602         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
603         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
604         (ceill): Define using libm_alias_ldouble.
605         * sysdeps/x86_64/fpu/s_copysignl.S: Include
606         <libm-alias-ldouble.h>.
607         (copysignl): Define using libm_alias_ldouble.
608         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
609         (fabsl): Define using libm_alias_ldouble.
610         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
611         (floorl): Define using libm_alias_ldouble.
612         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
613         (fmaxl): Define using libm_alias_ldouble.
614         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
615         (fminl): Define using libm_alias_ldouble.
616         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
617         (llrintl): Define using libm_alias_ldouble.
618         (lrintl): Likewise.
619         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
620         <libm-alias-ldouble.h>.
621         (nearbyintl): Define using libm_alias_ldouble.
622         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
623         (truncl): Define using libm_alias_ldouble.
624         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
625         <libm-alias-ldouble.h>.
626         (lrintl): Define using libm_alias_ldouble.
628         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
629         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
630         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
631         (asinhl): Define using libm_alias_ldouble.
632         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
633         (atanl): Define using libm_alias_ldouble.
634         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
635         (cbrtl): Define using libm_alias_ldouble.
636         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
637         (ceill): Define using libm_alias_ldouble.
638         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
639         (copysignl): Define using libm_alias_ldouble.
640         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
641         (fabsl): Define using libm_alias_ldouble.
642         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
643         (floorl): Define using libm_alias_ldouble.
644         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
645         (fmaxl): Define using libm_alias_ldouble.
646         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
647         (fminl): Define using libm_alias_ldouble.
648         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
649         (frexpl): Define using libm_alias_ldouble.
650         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
651         (llrintl): Define using libm_alias_ldouble.
652         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
653         (logbl): Define using libm_alias_ldouble.
654         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
655         (lrintl): Define using libm_alias_ldouble.
656         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
657         (nearbyintl): Define using libm_alias_ldouble.
658         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
659         (nextafterl): Define using libm_alias_ldouble.
660         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
661         (remquol): Define using libm_alias_ldouble.
662         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
663         (rintl): Define using libm_alias_ldouble.
664         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
665         (truncl): Define using libm_alias_ldouble.
666         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
667         (fmaxl): Define using libm_alias_ldouble.
668         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
669         (fminl): Define using libm_alias_ldouble.
671         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
672         to C syntax instead of availability and properties of types.
673         * bits/floatn.h [!__ASSEMBLER]: Likewise.
674         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
675         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
676         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
677         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
678         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
680 2017-11-17  Florian Weimer  <fweimer@redhat.com>
682         support_become_root: Enable file creation in namespaces.
683         * support/support_become_root.c (setup_mapping): New function.
684         (support_become_root): Call it.
686 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
688         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
689         macro.
691 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
693         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
694         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
696 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
698         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
700         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
701         version to 4.14.
703 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
705         * INSTALL: Fix botched up regeneration.
707         * NEWS: Update sourceare link to https.
708         * configure.ac: Likewise.
709         * crypt/md5test-giant.c: Likewise.
710         * dlfcn/bug-atexit1.c: Likewise.
711         * dlfcn/bug-atexit2.c: Likewise.
712         * localedata/README: Likewise.
713         * malloc/tst-mallocfork.c: Likewise.
714         * manual/install.texi: Likewise.
715         * nptl/tst-pthread-getattr.c: Likewise.
716         * stdio-common/tst-fgets.c: Likewise.
717         * stdio-common/tst-fwrite.c: Likewise.
718         * sunrpc/Makefile: Likewise.
719         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
720         * wcsmbs/tst-mbrtowc2.c: Likewise.
721         * configure: Regenerate.
722         * INSTALL: Regenerate.
724 2017-11-15  Martin Sebor  <msebor@redhat.com>
726         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
727         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
728         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
730 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
732         [BZ #22145]
733         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
734         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
736         [BZ #22145]
737         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
738         Defer is_pty check until end of the function.
739         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
741         [BZ #22145]
742         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
743         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
744         (ttyname): Likewise.
745         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
746         (__ttyname_r): Likewise.
748         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
749         int to bool.
751         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
753         * manual/terminal.texi (Is It a Terminal):
754         Mention ENODEV for ttyname and ttyname_r.
756 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
758         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
759         constant and macro.
761         * sysdeps/unix/sysv/linux/bits/mman-linux.h
762         [__USE_MISC] (MADV_WIPEONFORK): New macro.
763         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
764         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
765         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
766         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
768 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
770         * signal/sigrelse.c (sigrelse): Optimize implementation.
772         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
773         (__sigpause): Rely on __sigsuspend to implement single thread
774         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
776 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
778         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
779         kernel version to 4.14.
781 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
783         [BZ #22442]
784         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
785         Check if ifname is too long.
787 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
789         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
791 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
793         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
794         was accidentally lost.
796 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
798         * localedata/locales/az_IR: Add standard copyright header.
800 2017-11-15  Florian Weimer  <fweimer@redhat.com>
802         [BZ #22439]
803         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
804         not just the top one.  Output a new "subheaps" statistic.
806 2017-11-15  Florian Weimer  <fweimer@redhat.com>
808         [BZ #22408]
809         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
810         under the per-arena lock.
811         * malloc/Makefile (tests): Add tst-malloc_info.
812         (tst-malloc_info): Link with libpthread.
813         * malloc/tst-malloc_info.c: New file.
815 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
817         [BZ #21660]
818         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
819         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
820         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
821         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
822         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
823         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
824         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
825         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
826         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
827         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
828         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
829         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
830         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
831         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
832         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
833         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
834         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
835         (__floating_type): Likewise.
836         (__real_integer_type): Likewise.
837         (__complex_integer_type): Likewise.
838         (__expr_is_real): Likewise.
839         (__tgmath_real_type_sub): Likewise.
840         (__tgmath_real_type): Likewise.
841         (__tgmath_complex_type_sub): Likewise.
842         (__tgmath_complex_type): Likewise.
843         (__TGMATH_F128): Likewise.
844         (__TGMATH_CF128): Likewise.
845         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
846         new macros.
847         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
848         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
849         Likewise.
850         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
851         Likewise.
852         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
853         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
854         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
855         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
856         Likewise.
857         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
858         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
859         Likewise.
860         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
861         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
862         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
863         Likewise.
864         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
865         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
866         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
867         (cimag): Likewise.
868         (creal): Likewise.
870 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
872         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
873         for stpncpy calls for GCC 8.
874         (test_strncat): Disable -Wstringop-truncation warning for strncat
875         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
876         strncat call for GCC 7.
877         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
878         calls for GCC 8.
879         (test_memcmp): Use memcpy instead of strncpy for calls not copying
880         trailing NUL.
882         * string/bug-strncat1.c: Include <libc-diag.h>.
883         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
885 2017-11-13  Claude Paroz <claude@2xlibre.net>
887         [BZ #22387]
888         * localedata/locales/aa_DJ: Improved readibility by replacing
889         <Uxxxx> sequences in the ASCII printable range by their ASCII
890         character equivalents.
891         * localedata/locales/aa_ER: Likewise.
892         * localedata/locales/aa_ER@saaho: Likewise.
893         * localedata/locales/aa_ET: Likewise.
894         * localedata/locales/af_ZA: Likewise.
895         * localedata/locales/agr_PE: Likewise.
896         * localedata/locales/ak_GH: Likewise.
897         * localedata/locales/am_ET: Likewise.
898         * localedata/locales/anp_IN: Likewise.
899         * localedata/locales/ar_AE: Likewise.
900         * localedata/locales/ar_BH: Likewise.
901         * localedata/locales/ar_DZ: Likewise.
902         * localedata/locales/ar_EG: Likewise.
903         * localedata/locales/ar_IN: Likewise.
904         * localedata/locales/ar_IQ: Likewise.
905         * localedata/locales/ar_JO: Likewise.
906         * localedata/locales/ar_KW: Likewise.
907         * localedata/locales/ar_LB: Likewise.
908         * localedata/locales/ar_LY: Likewise.
909         * localedata/locales/ar_MA: Likewise.
910         * localedata/locales/ar_OM: Likewise.
911         * localedata/locales/ar_QA: Likewise.
912         * localedata/locales/ar_SA: Likewise.
913         * localedata/locales/ar_SD: Likewise.
914         * localedata/locales/ar_SS: Likewise.
915         * localedata/locales/ar_SY: Likewise.
916         * localedata/locales/ar_TN: Likewise.
917         * localedata/locales/ar_YE: Likewise.
918         * localedata/locales/as_IN: Likewise.
919         * localedata/locales/ast_ES: Likewise.
920         * localedata/locales/ayc_PE: Likewise.
921         * localedata/locales/az_AZ: Likewise.
922         * localedata/locales/az_IR: Likewise.
923         * localedata/locales/be_BY: Likewise.
924         * localedata/locales/be_BY@latin: Likewise.
925         * localedata/locales/bem_ZM: Likewise.
926         * localedata/locales/ber_DZ: Likewise.
927         * localedata/locales/ber_MA: Likewise.
928         * localedata/locales/bg_BG: Likewise.
929         * localedata/locales/bhb_IN: Likewise.
930         * localedata/locales/bho_IN: Likewise.
931         * localedata/locales/bi_VU: Likewise.
932         * localedata/locales/bn_BD: Likewise.
933         * localedata/locales/bn_IN: Likewise.
934         * localedata/locales/bo_CN: Likewise.
935         * localedata/locales/bo_IN: Likewise.
936         * localedata/locales/br_FR: Likewise.
937         * localedata/locales/brx_IN: Likewise.
938         * localedata/locales/bs_BA: Likewise.
939         * localedata/locales/byn_ER: Likewise.
940         * localedata/locales/ca_AD: Likewise.
941         * localedata/locales/ca_ES: Likewise.
942         * localedata/locales/ca_FR: Likewise.
943         * localedata/locales/ca_IT: Likewise.
944         * localedata/locales/ce_RU: Likewise.
945         * localedata/locales/chr_US: Likewise.
946         * localedata/locales/cmn_TW: Likewise.
947         * localedata/locales/crh_UA: Likewise.
948         * localedata/locales/cs_CZ: Likewise.
949         * localedata/locales/csb_PL: Likewise.
950         * localedata/locales/cv_RU: Likewise.
951         * localedata/locales/cy_GB: Likewise.
952         * localedata/locales/da_DK: Likewise.
953         * localedata/locales/de_AT: Likewise.
954         * localedata/locales/de_BE: Likewise.
955         * localedata/locales/de_CH: Likewise.
956         * localedata/locales/de_DE: Likewise.
957         * localedata/locales/de_IT: Likewise.
958         * localedata/locales/de_LI: Likewise.
959         * localedata/locales/de_LU: Likewise.
960         * localedata/locales/doi_IN: Likewise.
961         * localedata/locales/dv_MV: Likewise.
962         * localedata/locales/dz_BT: Likewise.
963         * localedata/locales/el_CY: Likewise.
964         * localedata/locales/el_GR: Likewise.
965         * localedata/locales/en_AG: Likewise.
966         * localedata/locales/en_AU: Likewise.
967         * localedata/locales/en_BW: Likewise.
968         * localedata/locales/en_CA: Likewise.
969         * localedata/locales/en_DK: Likewise.
970         * localedata/locales/en_GB: Likewise.
971         * localedata/locales/en_HK: Likewise.
972         * localedata/locales/en_IE: Likewise.
973         * localedata/locales/en_IL: Likewise.
974         * localedata/locales/en_IN: Likewise.
975         * localedata/locales/en_NG: Likewise.
976         * localedata/locales/en_NZ: Likewise.
977         * localedata/locales/en_PH: Likewise.
978         * localedata/locales/en_SG: Likewise.
979         * localedata/locales/en_US: Likewise.
980         * localedata/locales/en_ZA: Likewise.
981         * localedata/locales/en_ZM: Likewise.
982         * localedata/locales/en_ZW: Likewise.
983         * localedata/locales/eo: Likewise.
984         * localedata/locales/es_AR: Likewise.
985         * localedata/locales/es_BO: Likewise.
986         * localedata/locales/es_CL: Likewise.
987         * localedata/locales/es_CO: Likewise.
988         * localedata/locales/es_CR: Likewise.
989         * localedata/locales/es_CU: Likewise.
990         * localedata/locales/es_DO: Likewise.
991         * localedata/locales/es_EC: Likewise.
992         * localedata/locales/es_ES: Likewise.
993         * localedata/locales/es_GT: Likewise.
994         * localedata/locales/es_HN: Likewise.
995         * localedata/locales/es_MX: Likewise.
996         * localedata/locales/es_NI: Likewise.
997         * localedata/locales/es_PA: Likewise.
998         * localedata/locales/es_PE: Likewise.
999         * localedata/locales/es_PR: Likewise.
1000         * localedata/locales/es_PY: Likewise.
1001         * localedata/locales/es_SV: Likewise.
1002         * localedata/locales/es_US: Likewise.
1003         * localedata/locales/es_UY: Likewise.
1004         * localedata/locales/es_VE: Likewise.
1005         * localedata/locales/et_EE: Likewise.
1006         * localedata/locales/eu_ES: Likewise.
1007         * localedata/locales/eu_ES@euro: Likewise.
1008         * localedata/locales/fa_IR: Likewise.
1009         * localedata/locales/ff_SN: Likewise.
1010         * localedata/locales/fi_FI: Likewise.
1011         * localedata/locales/fil_PH: Likewise.
1012         * localedata/locales/fo_FO: Likewise.
1013         * localedata/locales/fr_BE: Likewise.
1014         * localedata/locales/fr_CA: Likewise.
1015         * localedata/locales/fr_CH: Likewise.
1016         * localedata/locales/fr_FR: Likewise.
1017         * localedata/locales/fr_LU: Likewise.
1018         * localedata/locales/fur_IT: Likewise.
1019         * localedata/locales/fy_DE: Likewise.
1020         * localedata/locales/fy_NL: Likewise.
1021         * localedata/locales/ga_IE: Likewise.
1022         * localedata/locales/gd_GB: Likewise.
1023         * localedata/locales/gez_ER: Likewise.
1024         * localedata/locales/gez_ET: Likewise.
1025         * localedata/locales/gl_ES: Likewise.
1026         * localedata/locales/gu_IN: Likewise.
1027         * localedata/locales/gv_GB: Likewise.
1028         * localedata/locales/ha_NG: Likewise.
1029         * localedata/locales/hak_TW: Likewise.
1030         * localedata/locales/he_IL: Likewise.
1031         * localedata/locales/hi_IN: Likewise.
1032         * localedata/locales/hif_FJ: Likewise.
1033         * localedata/locales/hne_IN: Likewise.
1034         * localedata/locales/hr_HR: Likewise.
1035         * localedata/locales/hsb_DE: Likewise.
1036         * localedata/locales/ht_HT: Likewise.
1037         * localedata/locales/hu_HU: Likewise.
1038         * localedata/locales/hy_AM: Likewise.
1039         * localedata/locales/i18n: Likewise.
1040         * localedata/locales/ia_FR: Likewise.
1041         * localedata/locales/id_ID: Likewise.
1042         * localedata/locales/ig_NG: Likewise.
1043         * localedata/locales/ik_CA: Likewise.
1044         * localedata/locales/is_IS: Likewise.
1045         * localedata/locales/it_CH: Likewise.
1046         * localedata/locales/it_IT: Likewise.
1047         * localedata/locales/iu_CA: Likewise.
1048         * localedata/locales/ja_JP: Likewise.
1049         * localedata/locales/ka_GE: Likewise.
1050         * localedata/locales/kk_KZ: Likewise.
1051         * localedata/locales/kl_GL: Likewise.
1052         * localedata/locales/kn_IN: Likewise.
1053         * localedata/locales/ko_KR: Likewise.
1054         * localedata/locales/kok_IN: Likewise.
1055         * localedata/locales/ks_IN: Likewise.
1056         * localedata/locales/ks_IN@devanagari: Likewise.
1057         * localedata/locales/ku_TR: Likewise.
1058         * localedata/locales/kw_GB: Likewise.
1059         * localedata/locales/ky_KG: Likewise.
1060         * localedata/locales/lb_LU: Likewise.
1061         * localedata/locales/lg_UG: Likewise.
1062         * localedata/locales/li_BE: Likewise.
1063         * localedata/locales/li_NL: Likewise.
1064         * localedata/locales/lij_IT: Likewise.
1065         * localedata/locales/ln_CD: Likewise.
1066         * localedata/locales/lo_LA: Likewise.
1067         * localedata/locales/lt_LT: Likewise.
1068         * localedata/locales/lv_LV: Likewise.
1069         * localedata/locales/lzh_TW: Likewise.
1070         * localedata/locales/mag_IN: Likewise.
1071         * localedata/locales/mai_IN: Likewise.
1072         * localedata/locales/mg_MG: Likewise.
1073         * localedata/locales/mhr_RU: Likewise.
1074         * localedata/locales/mi_NZ: Likewise.
1075         * localedata/locales/mk_MK: Likewise.
1076         * localedata/locales/ml_IN: Likewise.
1077         * localedata/locales/mn_MN: Likewise.
1078         * localedata/locales/mni_IN: Likewise.
1079         * localedata/locales/mr_IN: Likewise.
1080         * localedata/locales/ms_MY: Likewise.
1081         * localedata/locales/mt_MT: Likewise.
1082         * localedata/locales/my_MM: Likewise.
1083         * localedata/locales/nan_TW: Likewise.
1084         * localedata/locales/nan_TW@latin: Likewise.
1085         * localedata/locales/nb_NO: Likewise.
1086         * localedata/locales/nds_DE: Likewise.
1087         * localedata/locales/nds_NL: Likewise.
1088         * localedata/locales/ne_NP: Likewise.
1089         * localedata/locales/nhn_MX: Likewise.
1090         * localedata/locales/niu_NU: Likewise.
1091         * localedata/locales/niu_NZ: Likewise.
1092         * localedata/locales/nl_AW: Likewise.
1093         * localedata/locales/nl_BE: Likewise.
1094         * localedata/locales/nl_NL: Likewise.
1095         * localedata/locales/nn_NO: Likewise.
1096         * localedata/locales/nr_ZA: Likewise.
1097         * localedata/locales/nso_ZA: Likewise.
1098         * localedata/locales/oc_FR: Likewise.
1099         * localedata/locales/om_ET: Likewise.
1100         * localedata/locales/om_KE: Likewise.
1101         * localedata/locales/or_IN: Likewise.
1102         * localedata/locales/os_RU: Likewise.
1103         * localedata/locales/pa_IN: Likewise.
1104         * localedata/locales/pa_PK: Likewise.
1105         * localedata/locales/pap_AW: Likewise.
1106         * localedata/locales/pap_CW: Likewise.
1107         * localedata/locales/pl_PL: Likewise.
1108         * localedata/locales/ps_AF: Likewise.
1109         * localedata/locales/pt_BR: Likewise.
1110         * localedata/locales/pt_PT: Likewise.
1111         * localedata/locales/quz_PE: Likewise.
1112         * localedata/locales/raj_IN: Likewise.
1113         * localedata/locales/ro_RO: Likewise.
1114         * localedata/locales/ru_RU: Likewise.
1115         * localedata/locales/ru_UA: Likewise.
1116         * localedata/locales/rw_RW: Likewise.
1117         * localedata/locales/sa_IN: Likewise.
1118         * localedata/locales/sat_IN: Likewise.
1119         * localedata/locales/sc_IT: Likewise.
1120         * localedata/locales/sd_IN: Likewise.
1121         * localedata/locales/sd_IN@devanagari: Likewise.
1122         * localedata/locales/se_NO: Likewise.
1123         * localedata/locales/sgs_LT: Likewise.
1124         * localedata/locales/shs_CA: Likewise.
1125         * localedata/locales/si_LK: Likewise.
1126         * localedata/locales/sid_ET: Likewise.
1127         * localedata/locales/sk_SK: Likewise.
1128         * localedata/locales/sl_SI: Likewise.
1129         * localedata/locales/sm_WS: Likewise.
1130         * localedata/locales/so_DJ: Likewise.
1131         * localedata/locales/so_ET: Likewise.
1132         * localedata/locales/so_KE: Likewise.
1133         * localedata/locales/so_SO: Likewise.
1134         * localedata/locales/sq_AL: Likewise.
1135         * localedata/locales/sq_MK: Likewise.
1136         * localedata/locales/sr_ME: Likewise.
1137         * localedata/locales/sr_RS: Likewise.
1138         * localedata/locales/sr_RS@latin: Likewise.
1139         * localedata/locales/ss_ZA: Likewise.
1140         * localedata/locales/st_ZA: Likewise.
1141         * localedata/locales/sv_FI: Likewise.
1142         * localedata/locales/sv_SE: Likewise.
1143         * localedata/locales/sw_KE: Likewise.
1144         * localedata/locales/sw_TZ: Likewise.
1145         * localedata/locales/szl_PL: Likewise.
1146         * localedata/locales/ta_IN: Likewise.
1147         * localedata/locales/ta_LK: Likewise.
1148         * localedata/locales/tcy_IN: Likewise.
1149         * localedata/locales/te_IN: Likewise.
1150         * localedata/locales/tg_TJ: Likewise.
1151         * localedata/locales/th_TH: Likewise.
1152         * localedata/locales/the_NP: Likewise.
1153         * localedata/locales/ti_ER: Likewise.
1154         * localedata/locales/ti_ET: Likewise.
1155         * localedata/locales/tig_ER: Likewise.
1156         * localedata/locales/tk_TM: Likewise.
1157         * localedata/locales/tl_PH: Likewise.
1158         * localedata/locales/tn_ZA: Likewise.
1159         * localedata/locales/to_TO: Likewise.
1160         * localedata/locales/tpi_PG: Likewise.
1161         * localedata/locales/tr_CY: Likewise.
1162         * localedata/locales/tr_TR: Likewise.
1163         * localedata/locales/ts_ZA: Likewise.
1164         * localedata/locales/tt_RU: Likewise.
1165         * localedata/locales/tt_RU@iqtelif: Likewise.
1166         * localedata/locales/ug_CN: Likewise.
1167         * localedata/locales/uk_UA: Likewise.
1168         * localedata/locales/unm_US: Likewise.
1169         * localedata/locales/ur_IN: Likewise.
1170         * localedata/locales/ur_PK: Likewise.
1171         * localedata/locales/uz_UZ: Likewise.
1172         * localedata/locales/uz_UZ@cyrillic: Likewise.
1173         * localedata/locales/ve_ZA: Likewise.
1174         * localedata/locales/vi_VN: Likewise.
1175         * localedata/locales/wa_BE: Likewise.
1176         * localedata/locales/wae_CH: Likewise.
1177         * localedata/locales/wal_ET: Likewise.
1178         * localedata/locales/wo_SN: Likewise.
1179         * localedata/locales/xh_ZA: Likewise.
1180         * localedata/locales/yi_US: Likewise.
1181         * localedata/locales/yo_NG: Likewise.
1182         * localedata/locales/yue_HK: Likewise.
1183         * localedata/locales/yuw_PG: Likewise.
1184         * localedata/locales/zh_CN: Likewise.
1185         * localedata/locales/zh_HK: Likewise.
1186         * localedata/locales/zh_SG: Likewise.
1187         * localedata/locales/zh_TW: Likewise.
1188         * localedata/locales/zu_ZA: Likewise.
1190 2017-11-13  Florian Weimer  <fweimer@redhat.com>
1192         * support/next_to_fault.h, support/next_to_fault.c: New files.
1193         * support/Makefile (libsupport-routines): Add next_to_fault.
1194         * resolv/tst-inet_pton.c (struct next_to_fault)
1195         (next_to_fault_allocate, next_to_fault_free): Remove.
1196         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
1198 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1200         * elf/dl-support.c: Include <dl-procruntime.c>.
1201         * include/link.h: Include <link_map.h>.
1202         * sysdeps/generic/dl-procruntime.c: New file.
1203         * sysdeps/generic/link_map.h: Likewise.
1204         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
1205         the writable ld.so namespace.
1207 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1209         timezone: pacify GCC -Wstringop-truncation
1210         Problem reported by Martin Sebor in:
1211         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
1212         * timezone/zic.c (writezone): Use memcpy, not strncpy.
1214 2017-11-12  Florian Weimer  <fweimer@redhat.com>
1216         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
1217         tst-xreadlink.
1218         (tests): Add tst-xreadlink.
1219         * support/support.h (xstrndup): Declare.
1220         * support/xunistd.h (xunlink, xreadlink): Declare.
1221         * support/temp_file.h (support_create_temp_directory): Declare.
1222         * support/temp_file.c (support_create_temp_directory): New function.
1223         * support/support_chroot.c (support_chroot_create): Use it.
1224         * support/xreadlink.c: New file.
1225         * support/xstrndup.c: Likewise.
1226         * support/xunlink.c: Likewise.
1227         * support/tst-xreadlink.c: Likewise.
1229 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
1231         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
1233 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1235         [BZ #22409]
1236         [BZ #22412]
1237         * resolv/res_comp.c (printable_string, binary_hnok)
1238         (binary_leading_dash): New functions.
1239         (res_hnok): Reimplement using these functions and ns_name_pton.
1240         (res_ownok): Likewise.
1241         (res_mailok): Reimplement using printable_string, ns_name_pton and
1242         binary_hnok.
1243         (res_dnok): Reimplement using printable_string and ns_name_pton.
1244         * resolv/tst-res_hnok.c (tests): Add additional tests.
1245         (LETTERDIGITS, PRINTABLE): Define.
1246         (do_test): Adjust one_char results.
1248 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1250         [BZ #22413]
1251         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
1252         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
1254 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1256         * resolv/tst-ns_name_pton.c: New file.
1257         * resolv/Makefile (tests): Add tst-ns_name_pton.
1258         (tst-ns_name_pton): Link against libresolv.
1260 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1262         * resolv/tst-res_hnok.c: New file.
1263         * resolv/Makefile (tests): Add tst-res_hnok.
1264         (tst-res_hnok): Link against libresolv.
1266 2017-11-11  Florian Weimer  <fweimer@redhat.com>
1268         * resolv/tst-resolv-network.c: Use test framework instead explicit
1269         main function.
1271 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1273         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
1274         <jmp_buf-macros.h>.
1275         [!_ISOMAC] (STR_HELPER): New.
1276         [!_ISOMAC] (STR): Likewise.
1277         [!_ISOMAC] (TEST_SIZE): Likewise.
1278         [!_ISOMAC] (TEST_ALIGN): Likewise.
1279         [!_ISOMAC] (TEST_OFFSET): Likewise.
1280         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
1281         field offsets of jmp_buf as well as sigjmp_buf.
1282         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
1283         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
1284         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
1285         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
1286         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
1287         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
1288         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
1289         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
1290         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
1291         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
1292         Likewise.
1293         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
1294         Likewise.
1295         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
1296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
1297         Likewise.
1298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
1299         Likewise.
1300         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
1301         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
1302         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
1303         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
1304         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
1305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
1306         Likewise.
1307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
1308         Likewise.
1309         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
1310         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
1311         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
1313 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
1315         * include/float.h
1316         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1317         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
1318         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1319         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
1320         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1321         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
1322         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1323         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
1324         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1325         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
1326         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1327         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
1328         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1329         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
1330         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1331         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
1332         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1333         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
1334         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1335         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
1336         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1337         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
1338         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1339         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
1340         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1341         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
1342         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1343         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
1344         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1345         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
1346         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1347         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
1348         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1349         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
1350         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1351         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
1352         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1353         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
1354         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1355         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
1356         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1357         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
1358         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1359         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
1360         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1361         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
1362         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1363         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
1364         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1365         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
1366         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1367         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
1368         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1369         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
1370         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1371         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
1372         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1373         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
1374         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1375         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
1376         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1377         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
1378         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1379         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
1380         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1381         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
1382         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1383         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
1384         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1385         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
1386         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1387         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
1388         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1389         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
1390         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1391         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
1392         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1393         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
1394         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1395         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
1396         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1397         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
1398         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1399         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
1400         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1401         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
1402         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1403         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
1405         * stdlib/tst-strtod.h (F16): New macro.
1406         (F32): Likewise.
1407         (F64): Likewise.
1408         (F32X): Likewise.
1409         (F64X): Likewise.
1410         (F128X): Likewise.
1411         (IF_FLOAT16): Likewise.
1412         (IF_FLOAT32): Likewise.
1413         (IF_FLOAT64): Likewise.
1414         (IF_FLOAT32X): Likewise.
1415         (IF_FLOAT64X): Likewise.
1416         (IF_FLOAT128X): Likewise.
1417         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
1418         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
1419         (STRTOD_TEST_FOREACH): Likewise.
1420         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
1421         (CHOOSE_f64): Likewise.
1422         (CHOOSE_f32x): Likewise.
1423         (CHOOSE_f64x): Likewise.
1425 2017-11-07  Andreas Schwab  <schwab@suse.de>
1427         * nptl/Makefile (tests-internal): Remove tst-typesizes.
1429 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
1431         [BZ #22403]
1432         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
1433         to be escaped.
1434         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
1435         to be escaped.
1437 2017-11-07  Claude Paroz <claude@2xlibre.net>
1439         [BZ #22403]
1440         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
1441         to be escaped.
1442         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
1443         to be escaped.
1444         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
1445         to be escaped.
1447 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1449         [BZ #22298]
1450         * nptl/allocatestack.c (allocate_stack): Check if
1451         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
1452         __PTHREAD_MUTEX_HAVE_PREV is defined.
1453         * nptl/descr.h (pthread): Likewise.
1454         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
1455         Likewise.
1456         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1457         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1458         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
1459         * sysdeps/nptl/bits/thread-shared-types.h
1460         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1461         defines.
1462         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
1463         of __WORDSIZE for internal layout.
1464         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
1465         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
1466         instead of __WORDSIZE whether to use an union for __spins and __list
1467         fields.
1468         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
1469         case.
1470         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
1471         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1472         defines.
1473         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
1474         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1475         Likewise.
1476         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
1477         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1478         Likewise.
1479         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
1480         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1481         Likewise.
1482         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
1483         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1484         Likewise.
1485         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
1486         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1487         Likewise.
1488         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
1489         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1490         Likewise.
1491         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
1492         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1493         Likewise.
1494         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
1495         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1496         Likewise.
1497         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
1498         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1499         Likewise.
1500         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
1501         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1502         Likewise.
1503         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
1504         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1505         Likewise.
1506         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
1507         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1508         Likewise.
1509         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
1510         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1511         Likewise.
1512         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
1513         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1514         Likewise.
1516         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
1517         New macros.
1518         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
1519         checks for expected input type size.
1520         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
1521         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
1522         Likewise.
1523         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
1524         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
1525         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
1526         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1527         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
1528         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
1529         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
1530         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
1531         superflous runtime assert check.
1532         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
1533         Likewise.
1534         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
1535         Likewise.
1536         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
1537         Likewise.
1538         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
1539         Likewise.
1540         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
1541         Likewise.
1542         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
1543         Likewise.
1544         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
1545         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
1546         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
1547         Likewise.
1548         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
1549         Likewise.
1550         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
1551         Likewise.
1552         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
1553         Likewise.
1554         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
1555         Likewise.
1556         * nptl/pthread_attr_setinheritsched.c
1557         (__pthread_attr_setinheritsched): Likewise.
1558         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1559         Likewise.
1560         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
1561         Likewise.
1562         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1563         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1564         __old_pthread_attr_setstack): Likewise.
1565         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1566         Likewise.
1567         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1568         Likewise.
1569         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1570         Likewise.
1571         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1572         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1573         Likewise.
1574         * nptl/tst-typesizes.c: Remove file.
1576         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1577         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1578         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1579         checks for internal pthread_mutex_t offsets.
1580         * sysdeps/aarch64/nptl/pthread-offsets.h
1581         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1582         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1583         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1584         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1585         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1586         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1587         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1588         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1589         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1590         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1591         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1592         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1593         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1594         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1595         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1596         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1597         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1598         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1600 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1602         * bits/mman-linux.h: Move ...
1603         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1604         comment.
1605         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1606         outdated comment.
1608 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1610         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1611         Redefine STRNLEN as __strnlen_power8.
1613 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1615         * signal/sighold.c (sighold): Optimize implementation.
1617         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1618         __NR_rt_sigqueueinfo.
1620         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1621         __sigtimedwait.
1622         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1623         assume __NR_rt_sigtimedwait.
1624         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1625         and add LIBC_CANCEL_HANDLED for cancellation marking.
1626         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1628         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1629         (sysdeps_routines): Add memchr_noneon.
1630         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1631         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1632         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1633         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1634         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1635         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1636         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1638         * sysdeps/arm/arm-ifunc.h: New file.
1639         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1640         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1641         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1642         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1643         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1644         (__memcpy_neon): Avoid create hidden alias.
1645         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1646         (__memcpy_vfp): Likewise.
1647         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1648         (sysdep_routines): Add memcpy_arm.
1649         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1651 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1653         [BZ #22362]
1654         * Makerules (make-link-multidir): New.
1655         * config.make.in (multidir): New.
1656         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1657         * configure: Regenerated.
1658         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1659         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1660         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1661         New target.
1663 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1665         [BZ #22402]
1666         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1667         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1669 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1671         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1672         to be escaped.
1674 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1676         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1678 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1680         * math/math.h [__HAVE_DISTINCT_FLOAT16
1681         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1682         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1683         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1684         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1685         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1686         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1687         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1688         (__MATH_TG_F32): New macro.
1689         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1690         (__MATH_TG_F64X): Likewise.
1691         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1692         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1694 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1696         * po/de.po: Update translations.
1697         * po/ru.po: Likewise.
1699 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1701         * manual/filesys.texi (Hard Links): Document linkat.
1703 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1705         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1706         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1707         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1708         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1709         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1710         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1711         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1712         the same as _Float128.
1713         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1714         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1715         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1717         * stdlib/stdlib.h
1718         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1719         Declare.
1720         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1721         Likewise.
1722         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1723         Likewise.
1724         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1725         (strtof32x): Likewise.
1726         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1727         (strtof64x): Likewise.
1728         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1729         (strtof128x): Likewise.
1730         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1731         (strfromf16): Likewise.
1732         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1733         (strfromf32): Likewise.
1734         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1735         (strfromf64): Likewise.
1736         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1737         (strfromf32x): Likewise.
1738         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1739         (strfromf64x): Likewise.
1740         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1741         (strfromf128x): Likewise.
1742         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1743         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1744         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1745         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1746         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1747         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1749 2017-11-03  Richard Henderson  <rth@twiddle.net>
1751         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1753 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1755         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1757 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1759         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1760         DT_TLSDESC_GOT initialization.
1761         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1762         (_dl_tlsdesc_resolve_hold): Likewise.
1763         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1764         (_dl_tlsdesc_resolve_hold): Likewise.
1765         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1766         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1768 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1770         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1772 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1774         [BZ #18572]
1775         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1776         non-lazily for R_ARM_TLS_DESC.
1778 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1780         [BZ #17078]
1781         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1782         R_ARM_TLS_DESC case.
1783         (elf_machine_lazy_rel): Remove the prelink check.
1785 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1787         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1788         DT_TLSDESC_GOT initialization.
1789         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1790         (_dl_tlsdesc_resolve_rela): Likewise.
1791         (_dl_tlsdesc_resolve_hold): Likewise.
1792         (_dl_tlsdesc_undefweak): Remove ldar.
1793         (_dl_tlsdesc_dynamic): Likewise.
1794         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1795         (_dl_tlsdesc_resolve_rela): Likewise.
1796         (_dl_tlsdesc_resolve_hold): Likewise.
1797         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1798         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1799         (_dl_tlsdesc_resolve_rela): Likewise.
1800         (_dl_tlsdesc_resolve_hold): Likewise.
1802 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1804         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1805         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1807 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1809         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1810         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1812 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1814         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1815         Declare.
1816         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1817         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1818         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1819         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1820         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1821         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1822         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1823         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1824         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1825         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1826         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1828 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1830         [BZ #22382]
1831         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1832         * localedata/locales/tpi_PG: Add standard header.
1834 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1836         test-errno-linux: quotactl can fail with EPERM in containers.
1837         * sysdeps/unix/sysv/linux/test-errno-linux.c
1838         (LIST, LIST_FORWARD): New macros.
1839         (check_error_in_list): New function.
1840         (test_wrp_rv): Accept list of permitted error codes.
1841         (test_wrp_rv2): Remove.
1842         (test_wrp): Call test_wrp_rv with list of error codes.
1843         (test_wrp2): Accept list of error codes.
1844         (do_test): Adjust.  Allow EPERM for quotactl.
1846 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1848         * stdio-common/bug16.c (do_test): Use array_length.
1849         * stdio-common/errlist.c (_sys_nerr): Likewise.
1850         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1851         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1852         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1853         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1854         (do_test): Use array_length.
1855         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1856         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1857         * stdio-common/tst-printf-round.c (do_test): Likewise.
1858         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1859         (CHECK): Use array_length.
1860         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1861         * stdio-common/tstscanf.c (main): Likewise.
1862         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1864 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1866         Add array_length and array_end macros.
1867         * include/array_length.h: New file.
1869 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1871         [BZ #22332]
1872         * posix/tst-glob-tilde.c (do_noescape): New variable.
1873         (one_test): Process it.
1874         (do_test): Set do_noescape.  Add unescaping test case.
1876 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1878         * math/complex.h
1879         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1880         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1881         with appropriate macros defined and undefined.
1882         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1883         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1884         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1885         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1886         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1887         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1888         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1889         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1890         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1891         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1893         * math/complex.h
1894         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1895         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1896         that for long double.  Do not condition define and undefine of
1897         _Mdouble_complex_ on [__CFLOAT128].
1899 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1901         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1902         of <sysdeps/generic/sysdep.h>.
1903         (ALIGNARG): Removed.
1904         (ASM_SIZE_DIRECTIVE): Likewise.
1905         (ENTRY): Likewise.
1906         (END): Likewise.
1907         (ENTRY_CHK): Likewise.
1908         (END_CHK): Likewise.
1909         (syscall_error): Likewise.
1910         (mcount): Likewise.
1911         (PSEUDO_END): Likewise.
1912         (L): Likewise.
1913         (atom_text_section): Likewise.
1914         * sysdeps/x86/sysdep.h: New file.
1915         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1916         of <sysdeps/generic/sysdep.h>.
1917         (ALIGNARG): Removed.
1918         (ASM_SIZE_DIRECTIVE): Likewise.
1919         (ENTRY): Likewise.
1920         (END): Likewise.
1921         (ENTRY_CHK): Likewise.
1922         (END_CHK): Likewise.
1923         (syscall_error): Likewise.
1924         (mcount): Likewise.
1925         (PSEUDO_END): Likewise.
1926         (L): Likewise.
1927         (atom_text_section): Likewise.
1929 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1931         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1932         category of LC_CTYPE set to "i18n:2012".
1933         * localedata/locales/i18n_ctype: Regenerate.
1935 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1937         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1938         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1939         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1940         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1942         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1943         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1944         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1945         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1947 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1949         * math/complex.h
1950         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1951         New macro.
1952         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1953         Likewise.
1954         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1955         Likewise.
1956         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1957         (CMPLXF32X): Likewise.
1958         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1959         (CMPLXF64X): Likewise.
1960         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1961         (CMPLXF128X): Likewise.
1963         * math/math.h
1964         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1965         (__MATH_EVAL_FMT2): Define to add 0.0f.
1967 2017-10-31  Alan Modra  <amodra@gmail.com>
1969         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1970         include sysdep.h.
1971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1972         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1979         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1983         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1984         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1985         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1986         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1987         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1988         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1989         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1990         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1991         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1992         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1993         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1994         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1995         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1996         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1997         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1998         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1999         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
2000         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
2001         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
2002         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
2003         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
2004         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
2005         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
2006         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
2007         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
2008         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
2009         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
2010         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
2011         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
2012         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
2013         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
2014         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
2015         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
2016         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
2017         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
2018         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
2019         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
2020         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
2021         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
2022         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
2023         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
2024         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
2025         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
2026         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
2027         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
2028         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
2029         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
2030         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
2031         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
2032         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
2033         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
2034         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
2035         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
2036         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
2037         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
2038         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
2039         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
2041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
2042         include sysdep.h and math_ldbl_opt.h.
2044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
2045         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
2046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
2047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
2048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
2049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
2050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
2053         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
2054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
2055         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
2056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
2057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
2058         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
2059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
2060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2061         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
2062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
2063         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
2064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
2065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
2066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
2067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
2068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
2069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
2071 2017-10-31  Alan Modra  <amodra@gmail.com>
2073         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
2074         string/strncase_l.c, not string/strncase.c.
2075         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
2076         (libc_hidden_def): Redefine.
2078 2017-10-31  Alan Modra  <amodra@gmail.com>
2080         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
2081         (__STRCMP, STRCMP, __strcasecmp_l): Define.
2082         (__strcasecmp): Don't define.
2084 2017-10-31  Alan Modra  <amodra@gmail.com>
2086         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
2087         IS_IN (libc).
2088         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
2089         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
2090         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
2092 2017-10-31  Alan Modra  <amodra@gmail.com>
2094         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
2095         USE_AS_STPNCPY.
2097 2017-10-31  Alan Modra  <amodra@gmail.com>
2099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
2100         Redefine only when SHARED.
2102 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
2104         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2105         Include <bits/math-finite.h> with appropriate macros defined and
2106         undefined.
2107         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2108         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2109         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2110         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2111         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2113         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
2114         [!_Mlong_double_] (_Mlong_double_): Likewise.
2115         [!_Mfloat16_] (_Mfloat16_): Likewise.
2116         [!_Mfloat32_] (_Mfloat32_): Likewise.
2117         [!_Mfloat64_] (_Mfloat64_): Likewise.
2118         [!_Mfloat128_] (_Mfloat128_): Likewise.
2119         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
2120         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
2121         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
2122         (_Mdouble_): Define without indirection through those macros.
2123         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
2124         [!_Mfloat128_] (_Mfloat128_): Likewise.
2125         [_Mlong_double_] (_Mlong_double_): Likewise.
2126         (_Mdouble_): Define without indirection through those macros.
2127         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
2128         not add -D_Mlong_double_=double.
2129         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
2130         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
2132 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2134         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
2136 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2138         * sysdeps/x86/libc-start.c: Reformat.
2140 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2142         [BZ #22353]
2143         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
2144         (1): Renamed to ...
2145         (L(Src0)): This.
2146         (L(Src1)): New.
2147         (L(Src2)): Likewise.
2148         (L(1)): Renamed to ...
2149         (L(Src3)): This.
2151 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
2153         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
2154         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
2155         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
2156         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
2157         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
2158         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
2159         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
2160         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
2161         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
2162         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
2163         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
2164         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
2165         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
2166         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
2167         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
2168         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
2169         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
2170         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
2171         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
2172         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
2173         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
2174         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
2175         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
2176         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
2177         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
2178         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
2179         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
2180         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
2181         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
2182         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
2183         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
2184         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
2185         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
2186         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
2187         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
2188         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
2189         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
2190         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
2191         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
2192         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
2193         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
2194         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
2195         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
2196         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
2197         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
2198         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
2199         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
2200         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
2201         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
2202         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
2203         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
2204         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
2205         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
2206         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
2207         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
2208         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
2209         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
2210         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
2211         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
2212         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
2213         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
2214         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
2215         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
2216         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
2217         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
2218         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
2220 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2222         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
2223         always defined.
2224         * io/tst-mkdirat.c (do_test): Likewise.
2225         * io/tst-mkfifoat.c (do_test): Likewise.
2226         * io/tst-mknodat.c (do_test): Likewise.
2227         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
2228         * locale/programs/locale.c (select_dirs): Likewise.
2229         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
2230         * posix/bug-glob2.c (my_readdir): Likewise.
2231         * posix/tst-dir.c (main): Likewise.
2232         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
2233         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
2235 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2237         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
2238         just __USE_GNU.
2240 2017-10-30  Florian Weimer  <fweimer@redhat.com>
2242         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
2243         Convert to support/test-driver.c.
2244         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
2245         New macro parameters.
2246         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
2247         * posix/tst-gnuglob.c: New file.
2248         * posix/tst-gnuglob64.c: Likewise.
2249         * posix/Makefile (tests): Add tst-gnuglob64.
2251 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
2253         [BZ #19485]
2254         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
2255         and use a better translation for March in “mon”.
2256         * localedata/locales/csb_PL: Use more ASCII to improve the
2257         readability of the source.
2259 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
2261         [BZ #13953]
2262         * localedata/locales/km_KH: Use ASCII as much
2263         as possible for better readability of the source and
2264         remove useless comments.
2265         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
2266         was commented out and apparently wrong anyway because it was
2267         using Lao characters. If Buddhist era should be used
2268         for km_KH, a native speaker should write the correct formaat
2269         for Khmer.
2270         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
2271         (According to CLDR, the first weekday for Cambodia is Sunday).
2272         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
2273         (These were using Lao characters which must be wrong. If we get
2274         the correct data from a native speaker, we could add it back, until
2275         then it is better not to have name_mr and name_mrs at all than
2276         having it wrong).
2278 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
2280         * locale/loadlocale.c: Correct size of
2281         _nl_value_type_LC_<category> arrays.
2283 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
2285         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2286         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
2287         with appropriate macros defined and undefined.
2288         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2289         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2290         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2291         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2292         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2294 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2296         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
2297         "-O2 -march=i586".
2299 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2301         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
2302         with lowercase letters to make it agree with CLDR.
2304 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2306         [BZ #15260]
2307         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
2308         first letters of yesstr and nostr in yesexpr and noexpr,
2309         not for the full words.
2310         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2311         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
2312         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
2313         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
2314         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
2315         first letters of yesstr and nostr in yesexpr and noexpr,
2316         until now only English was matched in yesexpr and noexpr.
2317         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
2318         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
2319         fil but not for tl. As tl and fil are very similar, using fil
2320         is probably better than using English.
2322 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
2324         [BZ #21706]
2325         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
2326         in yesstr and nostr.
2328 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
2330         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2331         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
2332         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
2333         Likewise.
2334         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
2335         Likewise.
2336         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
2337         Likewise.
2338         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
2339         Likewise.
2340         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2341         (SNANF128X): Likewise.
2343         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2344         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
2345         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2346         (HUGE_VAL_F32): Likewise.
2347         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2348         (HUGE_VAL_F64): Likewise.
2349         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2350         (HUGE_VAL_F32X): Likewise.
2351         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2352         (HUGE_VAL_F64X): Likewise.
2353         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2354         (HUGE_VAL_F128X): Likewise.
2356 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2358         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
2359         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
2360         for the br_FR locale.
2362 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2364         [BZ #21706]
2365         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
2367 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
2369         * locale/programs/record-status.h: Define globals, and function
2370         prototypes. Move function bodies...
2371         * locale/programs/record-status.c: ... to here. New file.
2372         * iconv/Makefile (iconv_prog-modules): Add record-status.
2373         * locale/Makefile (lib-modules): Likewise.
2374         * iconv/iconv_prog.c: Remove verbose.
2375         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
2376         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
2377         record a warning about ASCII compatibility.
2378         * locale/programs/ld-monetary.c (monetary_finish): If
2379         warn_int_curr_symbol is true then record a warning about the symbol
2380         not being in our ISO 4217 list.
2381         * locale/programs/locale.c: Include record-status.h. Remove verbose.
2382         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
2383         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
2384         (OPT_NO_WARN): Define.
2385         (OPT_WARN): Define.
2386         (options): Add entry for --no-warnings, and --warnings.
2387         (set_warnings): New function to enable/disable warnings.
2388         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
2389         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
2390         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
2391         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
2392         Pass flags to generate_locale.
2393         (generate_locale): Accept new flag argument and pass it to localedef
2394         invocation.
2395         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
2396         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
2398         * localedata/Makefile (test-input-data): Use full file name.
2399         * localedata/da_DK.in: Rename to...
2400         * localedata/da_DK.ISO-8859-1.in: ...this.
2401         * localedata/de_DE.in: Rename to...
2402         * localedata/de_DE.ISO-8859-1.in: ...this.
2403         * localedata/en_US.in: Rename to...
2404         * localedata/en_US.ISO-8859-1.in: ...this.
2405         * localedata/fr_FR.in: Rename to...
2406         * localedata/fr_FR.UTF-8.in: ... this.
2407         * localedata/hr_HR.in: Rename to...
2408         * localedata/hr_HR.ISO-8859-2.in: ...this.
2409         * localedata/hu_HU.in: Rename to...
2410         * localedata/hu_HU.UTF-8.in: ...this.
2411         * localedata/si_LK.in: Rename to...
2412         * localedata/si_LK.UTF-8.in: ...this.
2413         * localedata/sv_SE.in: Rename to...
2414         * localedata/sv_SE.ISO-8859-1.in: ...this.
2415         * localedata/tr_TR.in: Rename to...
2416         * localedata/tr_TR.UTF-8.in: ...this.
2417         * localedata/uk_UA.in: Rename to...
2418         * localedata/uk_UA.UTF-8.in: ...this.
2419         * localedata/sort-test.sh: Test file is locale name with the
2420         suffix.
2422         * localedata/unicode-gen/Makefile (check_i18n): Rename to
2423         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
2424         file.
2425         * localedata/locales/i18n_ctype: Regenerate.
2426         * localedata/locales/tr_TR: Likewise.
2427         * localedata/locales/translit_circle: Likewise.
2428         * localedata/locales/translit_cjk_compat: Likewise.
2429         * localedata/locales/translit_combining: Likewise.
2430         * localedata/locales/translit_compat: Likewise.
2431         * localedata/locales/translit_font: Likewise.
2432         * localedata/locales/translit_fraction: Likewise.
2434 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2436         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
2437         lxvd2x/stxvd2x with lvx/stvx.
2438         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
2440 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2442         * include/alloc_buffer.h: Replace "if if " with "if " in
2443         comments.
2444         * sysdeps/mips/memcpy.S: Likkewise.
2445         * sysdeps/mips/memset.S: Likewise.
2446         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
2447         Likewise.
2448         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
2449         Likewise.
2450         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
2451         Likewise.
2453 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2455         [BZ #15261]
2456         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
2457         yesexpr and noexpr.
2458         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2459         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2460         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2461         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2462         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2463         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2464         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2466 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2468         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
2469         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2470         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2471         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2472         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2473         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
2474         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2475         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2476         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2477         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2478         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2479         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2481 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2483         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
2484         as possible for better readability of the source.
2485         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
2486         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
2487         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
2488         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
2489         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
2490         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
2491         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
2492         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
2493         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2494         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
2495         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
2496         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
2497         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
2498         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
2499         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
2500         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
2501         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
2502         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
2503         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
2504         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
2505         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
2506         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
2507         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
2508         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
2509         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
2510         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
2511         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
2512         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
2513         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
2514         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
2515         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
2516         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2517         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
2518         * localedata/locales/en_US (LC_MESSAGES): Likewise.
2519         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
2520         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
2521         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
2522         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
2523         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
2524         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
2525         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
2526         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
2527         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
2528         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
2529         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
2530         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
2531         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
2532         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
2533         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
2534         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
2535         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
2536         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
2537         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
2538         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2539         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2540         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
2541         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
2542         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2543         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
2544         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
2545         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
2546         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
2547         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
2548         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
2549         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
2550         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
2551         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
2552         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
2553         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
2554         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
2555         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
2556         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
2557         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
2558         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
2559         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2560         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
2561         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2562         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2563         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2564         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2565         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2566         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2567         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2568         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2569         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2570         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2571         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2572         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2573         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2574         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2575         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2576         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2577         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2578         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2579         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2580         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2581         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2582         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2583         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2584         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2585         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2586         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2587         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2588         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2589         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2590         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2591         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2592         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2593         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2594         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2595         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2596         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2597         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2598         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2599         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2600         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2601         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2602         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2603         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2604         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2605         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2606         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2607         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2608         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2609         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2610         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2611         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2612         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2613         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2614         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2615         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2616         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2617         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2618         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2619         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2620         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2621         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2622         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2623         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2624         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2625         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2626         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2627         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2628         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2629         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2630         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2631         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2632         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2633         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2634         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2635         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2636         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2637         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2638         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2639         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2640         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2641         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2642         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2643         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2644         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2645         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2646         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2647         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2648         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2649         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2650         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2651         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2652         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2653         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2654         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2655         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2656         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2657         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2658         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2660 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2662         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2663         (Use first letters of yesstr and nostr correctly instead of using
2664         full words).
2666 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2668         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2669         (Use first letters of yesstr and nostr correctly).
2671 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2673         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2674         also check for the first characters of yesstr and nostr.
2675         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2676         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2678 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2680         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2681         also check for Chinese characters.
2683 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2685         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2686         match also for the contents of yesstr and nostr. As the first letter
2687         of yesstr and nostr is equal, checking only for the first letter
2688         is not enough.
2690 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2692         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2693         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2695 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2697         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2698         of main contributor.
2700 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2702         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2703         instead of using English.
2705 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2707         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2708         by including the first letters of nostr and yesexpr in the regexp.
2709         Also make it more readable by using ASCII where possible.
2711 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2713         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2714         the first letter of nostr in the regexp. It agrees with CLDR now.
2715         Also make it more readable by using ASCII where possible.
2717 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2719         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2720         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2721         these strings contain a U+17D6 (which somewhat looks like a colon)
2722         instead of a real colon to separate the full words for “yes”
2723         and “no” from the single letter responses.
2725 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2727         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2728         it agree with CLDR (include the first letter of yesstr).
2729         Also make it more readable by using ASCII where possible.
2731 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2733         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2734         and improve yesexpr and noexpr. The yesstr and nostr apparently
2735         came from CLDR. And CLDR has a bug there: these strings contain
2736         a U+0903 (which looks like a colon) instead of a real colon
2737         to separate the full words for “yes” and “no” from the single
2738         letter responses.
2740 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2742         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2743         letters of the full yesstr and nostr in yesexpr and noexpr.
2745 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2747         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2748         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2749         * localedata/locales/an_ES: Make source more readable by using ASCII
2750         where possible.
2752 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2754         [BZ #20952]
2755         * localedata/locales/yuw_PG: New file.
2756         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2757         * locale/iso-639.def: Add Yau (Uruwa).
2759 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2761         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2763 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2765         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2766         (__libc_realloc): Likewise.
2767         (_mid_memalign): Likewise.
2768         (__libc_calloc): Likewise.
2770 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2772         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2773         by adding the generic +1 and -0 as in all other locales.
2774         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2775         day names and make it more readable by using ASCII where possible.
2777 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2779         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2780         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2782 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2784         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2785         WNOHANG in waitpid call.
2787 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2789         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2790         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2792         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2793         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2794         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2795         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2796         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2797         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2798         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2799         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2800         variables.
2802 2017-10-23  Michael Collison  <michael.collison@arm.com>
2804         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2805         with __builtin_sqrt.
2806         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2807         with __builtin_sqrtf.
2808         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2809         with __builtin_ceil.
2810         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2811         with __builtin_ceilf.
2812         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2813         with __builtin_floor.
2814         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2815         with __builtin_floorf.
2816         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2817         with __builtin_fma.
2818         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2819         with __builtin_fmaf.
2820         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2821         with __builtin_fmax.
2822         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2823         with __builtin_fmaxf.
2824         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2825         with __builtin_fmin.
2826         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2827         with __builtin_fminf.
2828         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2829         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2830         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2831         with builtin_rint and conversion to int.
2832         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2833         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2834         with builtin_llround.
2835         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2836         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2837         with builtin_rint and conversion to long int.
2838         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2839         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2840         with builtin_lround.
2841         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2842         with builtin_lroundf.
2843         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2844         statements with __builtin_nearbyint.
2845         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2846         statements with __builtin_nearbyintf.
2847         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2848         with __builtin_rint.
2849         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2850         with __builtin_rintf.
2851         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2852         with __builtin_round.
2853         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2854         with __builtin_roundf.
2855         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2856         with __builtin_trunc.
2857         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2858         with __builtin_truncf.
2859         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2860         and s_l[l]round[f].c too.
2862 2017-10-23  Alan Modra  <amodra@gmail.com>
2864         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2865         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2867 2017-10-23  Alan Modra  <amodra@gmail.com>
2869         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2870         Move LR save and frame setup/teardown and LR restore to
2871         immediately around memset call.  Provide cfi.
2873 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2875         * sysdeps/i386/fpu/e_powf.S: Removed.
2876         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2877         * sysdeps/i386/fpu/w_powf.c: Likewise.
2878         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2879         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2880         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2881         Add e_powf-sse2.
2882         (CFLAGS-e_powf-sse2.c): New.
2883         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2884         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2886 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2888         * sysdeps/i386/fpu/e_log2f.S: Removed.
2889         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2890         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2891         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2892         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2893         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2894         Add e_log2f-sse2.
2895         (CFLAGS-e_log2f-sse2.c): New.
2896         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2897         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2899 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2901         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2902         Add e_powf-fma.
2903         (CFLAGS-e_powf-fma.c): New.
2904         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2905         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2907 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2909         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2910         Add e_log2f-fma.
2911         (CFLAGS-e_log2f-fma.c): New.
2912         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2913         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2915 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2917         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2918         Add e_logf-fma.
2919         (CFLAGS-e_logf-fma.c): New.
2920         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2921         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2923 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2925         * sysdeps/i386/fpu/e_logf.S: Removed.
2926         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2927         * sysdeps/i386/fpu/w_logf.c: Likewise.
2928         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2929         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2930         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2931         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2932         Add e_logf-sse2.
2933         (CFLAGS-e_logf-sse2.c): New.
2934         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2935         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2937 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2939         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2940         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2941         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2942         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2943         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2944         Add e_exp2f-sse2.
2945         (CFLAGS-e_exp2f-sse2.c): New.
2946         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2947         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2949 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2951         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2952         Add e_exp2f-fma.
2953         (CFLAGS-e_exp2f-fma.c): New.
2954         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2955         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2957 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2959         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2960         * sysdeps/i386/fpu/e_expf.S: Likewise.
2961         * sysdeps/i386/fpu/math_errf.c: Likewise.
2962         * sysdeps/i386/fpu/w_expf.c: Likewise.
2963         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2964         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2965         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2966         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2967         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2968         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2969         Remove e_expf-ia32.
2970         (CFLAGS-e_expf-sse2.c): New.
2971         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2972         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2974 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2976         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2977         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2978         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2979         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2980         e_expf.c.
2981         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2982         New.
2983         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2984         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2985         Renamed to ...
2986         (__redirect_expf): This.
2987         (SYMBOL_NAME): Changed to expf.
2988         (__ieee754_expf): Renamed to ...
2989         (__expf): This.
2990         (__GI___expf): This.
2991         (__ieee754_expf): Add strong_alias.
2992         (__expf_finite): Likewise.
2993         (__expf): New.
2994         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2996 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2998         [BZ #22332]
2999         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
3000         unescaping.
3002 2017-10-21  Florian Weimer  <fweimer@redhat.com>
3004         * posix/Makefile (tests): Add tst-glob-tilde.
3005         (tests-special): Add tst-glob-tilde-mem.out
3006         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
3007         (tst-glob-tilde-mem.out): Add mtrace check.
3008         * posix/tst-glob-tilde.c: New file.
3010 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
3012         * bits/floatn-common.h: New file.
3013         * math/Makefile (headers): Add bits/floatn-common.h.
3014         * bits/floatn.h: Include <bits/floatn-common.h>.
3015         * sysdeps/ia64/bits/floatn.h: Likewise.
3016         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
3017         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
3018         * sysdeps/powerpc/bits/floatn.h: Likewise.
3019         * sysdeps/x86/bits/floatn.h: Likewise.
3021 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3023         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
3024         indicates whether compiler emits an warning for alias for
3025         functions with incompatible types.
3027         [BZ #22273]
3028         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
3029         the auxiliary process is terminated by a signal before calling _exit
3030         or execve.
3032 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3034         [BZ #21265]
3035         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
3036         New.
3037         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
3038         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
3039         and bit_arch_XSAVEC_Usable if needed.
3040         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
3041         and bit_arch_Use_dl_runtime_resolve_opt.
3042         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
3043         Removed.
3044         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
3045         (bit_arch_Prefer_No_AVX512): Updated.
3046         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
3047         (bit_arch_XSAVEC_Usable): New.
3048         (STATE_SAVE_OFFSET): Likewise.
3049         (STATE_SAVE_MASK): Likewise.
3050         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
3051         (cpu_features): Add xsave_state_size and xsave_state_full_size.
3052         (index_arch_Use_dl_runtime_resolve_opt): Removed.
3053         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
3054         (index_arch_XSAVEC_Usable): New.
3055         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3056         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
3057         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
3058         is enabled.
3059         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3060         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
3061         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
3062         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
3063         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
3064         _dl_runtime_resolve_xsavec.
3065         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
3066         Removed.
3067         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
3068         instead of VEC_SIZE.
3069         (REGISTER_SAVE_BND0): Removed.
3070         (REGISTER_SAVE_BND1): Likewise.
3071         (REGISTER_SAVE_BND3): Likewise.
3072         (REGISTER_SAVE_RAX): Always defined to 0.
3073         (VMOV): Removed.
3074         (_dl_runtime_resolve_avx): Likewise.
3075         (_dl_runtime_resolve_avx_slow): Likewise.
3076         (_dl_runtime_resolve_avx_opt): Likewise.
3077         (_dl_runtime_resolve_avx512): Likewise.
3078         (_dl_runtime_resolve_avx512_opt): Likewise.
3079         (_dl_runtime_resolve_sse): Likewise.
3080         (_dl_runtime_resolve_sse_vex): Likewise.
3081         (USE_FXSAVE): New.
3082         (_dl_runtime_resolve_fxsave): Likewise.
3083         (USE_XSAVE): Likewise.
3084         (_dl_runtime_resolve_xsave): Likewise.
3085         (USE_XSAVEC): Likewise.
3086         (_dl_runtime_resolve_xsavec): Likewise.
3087         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
3088         Removed.
3089         (_dl_runtime_resolve_avx512_opt): Likewise.
3090         (_dl_runtime_resolve_avx): Likewise.
3091         (_dl_runtime_resolve_avx_opt): Likewise.
3092         (_dl_runtime_resolve_sse): Likewise.
3093         (_dl_runtime_resolve_sse_vex): Likewise.
3094         (_dl_runtime_resolve_fxsave): New.
3095         (_dl_runtime_resolve_xsave): Likewise.
3096         (_dl_runtime_resolve_xsavec): Likewise.
3098 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
3100         [BZ #22320]
3101         CVE-2017-15670
3102         * posix/glob.c (__glob): Fix one-byte overflow.
3104 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3106         * malloc/malloc.c (sysdep-cancel.h): Add include.
3108 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
3110         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
3112 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
3114         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
3115         (tests): Remove $(objpfx)ga_test depdendency.
3116         * resolv/ga_test.c: Remove file.
3118 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
3120         [BZ #18812]
3121         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
3122         * localedata/locales/kab_DZ: New file.
3124 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3126         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
3127         _dl_relocate_static_pie instead of _dl_start to compute load
3128         address in static PIE.
3130 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3132         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
3134 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
3136         [BZ #13605]
3137         * localedata/SUPPORTED: Add shn_MM/UTF-8.
3138         * localedata/locales/shn_MM: New file.
3140 2017-10-20  Florian Weimer  <fweimer@redhat.com>
3142         [BZ #22321]
3143         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
3144         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
3145         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
3146         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
3147         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
3148         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
3150 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
3152         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3154 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
3156         * sysdeps/mips/ieee754/bits/floatn.h: New file.
3158         [BZ #22322]
3159         * sysdeps/mips/bits/long-double.h: Move to ....
3160         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
3162 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
3164         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
3166 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
3167             H.J. Lu  <hongjiu.lu@intel.com>
3169         [BZ #22299]
3170         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3171         GLRO(dl_platform) to NULL.
3172         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
3173         (modules-names): Add tst-platformmod-1 and
3174         x86_64/tst-platformmod-2.
3175         (CFLAGS-tst-platform-1.c): New.
3176         (CFLAGS-tst-platformmod-1.c): Likewise.
3177         (CFLAGS-tst-platformmod-2.c): Likewise.
3178         (LDFLAGS-tst-platformmod-2.so): Likewise.
3179         ($(objpfx)tst-platform-1): Likewise.
3180         ($(objpfx)tst-platform-1.out): Likewise.
3181         (tst-platform-1-ENV): Likewise.
3182         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
3183         * sysdeps/x86_64/tst-platform-1.c: New file.
3184         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
3185         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
3187 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
3189         [BZ #13994]
3190         * locale/iso-639.def: Add Karbi.
3191         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
3192         * localedata/locales/mjw_IN: New file.
3194 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
3196         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
3197         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
3198         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
3199         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
3200         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
3201         (libm_alias_ldouble_other_r): Also create _Float128 alias.
3202         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
3203         <bits/floatn.h>.
3204         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
3205         (libm_alias_ldouble_other_r): Also create _Float128 alias.
3206         * manual/math.texi (Mathematics): Document additional architecture
3207         support for _Float128.
3208         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
3209         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3210         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3211         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3212         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3213         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3214         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3215         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3216         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3217         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3218         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3219         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3220         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3221         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3222         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3224 2017-10-18  Renlin Li  <renlin.li@arm.com>
3226         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
3227         _DYNAMIC symbol to calculate load address.
3229 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
3231         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
3232         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
3233         summary bits.
3234         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
3235         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
3237 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
3239         [BZ #16777]
3240         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
3241         and improve readability by using more ASCII.
3242         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
3243         and improve readability by using more ASCII.
3245 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
3247         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
3248         not all targets support atomics on bool.
3250 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
3252         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
3253         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
3254         __f128.
3255         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3256         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
3257         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3258         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
3259         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
3260         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
3262 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3264         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
3265         defines.
3267 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3269         [BZ #22159]
3270         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
3271         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
3272         (do_check_remalloced_chunk): Fix build bug.
3273         (do_check_malloc_state): Add assert that checks arena->top.
3274         (malloc_consolidate): Remove initialization.
3275         (int_mallinfo): Remove call to malloc_consolidate.
3276          (__libc_mallopt): Clarify why malloc_consolidate is needed.
3278 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3280         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
3281         (have_fastchunks): Remove.
3282         (clear_fastchunks): Remove.
3283         (set_fastchunks): Remove.
3284         (malloc_state): Add have_fastchunks.
3285         (malloc_init_state): Use have_fastchunks.
3286         (do_check_malloc_state): Remove incorrect invariant checks.
3287         (_int_malloc): Use have_fastchunks.
3288         (_int_free): Likewise.
3289         (malloc_consolidate): Likewise.
3291 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3293         * malloc/malloc.c (tcache_put): Inline.
3294         (tcache_get): Inline.
3296 2017-10-17  Jordi Mallach  <jordi@gnu.org>
3298         Aurelien Jarno  <aurelien@aurel32.net>
3299         [BZ #2522]
3300         * localedata/locales/ca_ES@valencia: New file.
3301         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
3303 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
3305         [BZ #22296]
3306         * math/math.h: Let signbit use the builtin in C++ mode with gcc
3307         < 6.x
3309 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3311         * scripts/build-many-glibcs.py (Context.add_all_configs):
3312         Add arm-linux-gnueabihf multiarch extra_glibcs.
3314         * sysdeps/generic/ifunc-init.h: New file.
3315         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
3317 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
3319         [BZ #22019]
3320         * localedata/locales/el_GR: Set n_cs_precedes to 0.
3321         * localedata/locales/el_CY: copy "el_GR" because it is identical.
3322         * stdlib/tst-strfmon_l.c: adapt test case.
3324 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3326         * sysdeps/generic/float128-abi.h: New file.
3327         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
3328         non-__prefixed symbols to ....
3329         * math/Versions: ... here.  Include <float128-abi.h>.
3330         * stdlib/Versions ... and here.  Include <float128-abi.h>
3332 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3334         * version.h (VERSION): Switch to ".9000" as the development
3335         version suffix.
3337 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3339         [BZ #22050]
3340         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
3341         compat_symbol_reference to access non-default version.
3343 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3345         * malloc/Makefile (others-extras): Set to mcheck-init.o.
3347 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
3349         * include/shlib-compat.h (compat_symbol_reference): Update
3350         comment.
3352 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3354         * math/Makefile (test-types): Add
3355         $(type-float128-$(float128-alias-fcts)).
3356         * math/test-float128.h (TYPE_STR): Define conditional on
3357         [FLT128_MANT_DIG == LDBL_MANT_DIG].
3358         (ULP_IDX): Likewise.
3359         (ULP_I_IDX): Likewise.
3361         * stdlib/strtold.c: Include <bits/floatn.h>
3362         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
3363         and later undefine as macro.  Define as weak alias if
3364         [!USE_WIDE_CHAR].
3365         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
3366         and later undefine as macro.  Define as weak alias if
3367         [USE_WIDE_CHAR].
3368         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
3369         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
3370         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3371         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3372         Define and later undefine as macro.  Define as weak alias if
3373         [USE_WIDE_CHAR].
3374         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
3375         <bits/floatn.h>.
3376         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
3377         Define and later undefine as macro.  Define as weak alias if
3378         [!USE_WIDE_CHAR].
3379         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3380         Define and later undefine as macro.  Define as weak alias if
3381         [USE_WIDE_CHAR].
3383 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
3385         * localedata/collate-test.c (allocate_arrays): Don't use \n in
3386         record_verbose messages.
3388 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3390         [BZ #22052]
3391         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
3392         to silence -O3 -Wall warning with GCC 7.
3394 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
3396         * Makeconfig (+link-static-before-libc): Use the first of
3397         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
3398         * gmon/Makefile (tests): Add tst-gmon-static.
3399         (tests-static): Likewise.
3400         (CFLAGS-tst-gmon-static.c): New.
3401         (CRT-tst-gmon-static): Likewise.
3402         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
3403         (tst-gmon-static-ENV): Likewise.
3404         (tests-special): Likewise.
3405         ($(objpfx)tst-gmon-static.out): Likewise.
3406         (clean-tst-gmon-static-data): Likewise.
3407         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
3408         * gmon/tst-gmon-static-gprof.sh: New file.
3409         * gmon/tst-gmon-static.c: Likewise.
3411 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
3413         [BZ #22295]
3414         * locale/programs/linereader.c (get_string): Don't warn on
3415         non-symbolic character.
3417         [BZ #22294]
3418         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
3419         int_curr_symbol.
3421         [BZ #22292]
3422         * locale/programs/record-status.h: New file
3423         * locale/programs/locale.c: Add comment.
3424         * locale/programs/charmap-dir.c: Don't include error.h.
3425         (charmap_opendir): Use record_error.
3426         * locale/programs/charmap.c: Don't include error.h.
3427         (charmap_read): Use record_error, and record_warning.
3428         (parse_charmap): Likewise.
3429         * locale/programs/ld-address.c: Don't include error.h.
3430         (address_finish): Use record_error, and record_warning.
3431         * locale/programs/ld-collate.c: Don't include error.h.
3432         (collate_finish): Use record_error, and record_error_at_line.
3433         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
3434         (ctype_class_new): Likewise.
3435         (ctype_map_new): Likewise.
3436         (set_one_default): Likewise.
3437         (set_class_defaults): Likewise.
3438         (translit_flatten): Likewise.
3439         (allocate_arrays): Use record_error, and record_verbose.
3440         * locale/programs/ld-identification.c: Don't include error.h.
3441         (indentation_finish): Use record_error and record_warning.
3442         * locale/programs/ld-measurement.c: Don't include error.h.
3443         (measurement_finish): Use record_error.
3444         * locale/programs/ld-messages.c
3445         (message_finish): Likewise.
3446         * locale/programs/ld-monetary.c
3447         (monetary_finish): Likewise.
3448         * locale/programs/ld-name.c (name_finish): Use record_error
3449         and record_warning.
3450         * locale/programs/ld-numeric.c
3451         (numeric_finish): Use record_error.
3452         * locale/programs/ld-paper.c: Don't include error.h.
3453         (paper_finish): Use record_error.
3454         * locale/programs/ld-telephone.c: Don't include error.h.
3455         (telephone_finish): Use record_error.
3456         * locale/programs/ld-time.c (time_finish): Likewise.
3457         * locale/programs/linereader.h (lr_error): Make inline func.
3458         * locale/programs/localedef.c: Define recorded_warning_count,
3459         and recorded_error_count.
3460         (main): Use record_error. Use recorded_error_count and
3461         recorded_warning_count to issue correct error returns.
3462         (add_to_readlist): Use record_error.
3463         (find_locale): Likewise.
3464         (load_locale): Likewise.
3465         * locale/programs/localedef.h: Remove be_quiet
3466         and WITH_CUR_LOCALE.
3467         * locale/programs/locarchive.c (compare_from_file): Use
3468         record_error.
3469         * locale/programs/locfile.c (write_locale_data): Use
3470         record_error.
3471         * locale/programs/repertoire.c: Dont include error.h.
3472         (repertoire_complain): Use record_error.
3473         * localedata/tst-fmon.sh: Expect failures from localedef.
3474         * localedata/tst-locale.sh: Likewise.
3475         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
3477         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
3478         (REPORTS): Likewise.
3479         (check): Likewise.
3480         (i18n): Rename to...
3481         (i18n_ctype): ...this.
3482         (i18n-report): Rename to...
3483         (i18n_ctype-report): ...this.
3484         * localedata/locales/i18n_ctype: Regenerate.
3485         * localedata/locales/i18n: copy i18n_ctype.
3487 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3489         * stdlib/strfroml.c: Include <bits/floatn.h>.
3490         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
3491         Define before include of <stdlib.h> and undefine afterwards, then
3492         define as weak alias.
3494         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
3495         Undefine and restore default definition.  Use
3496         libm_alias_ldouble_other.
3498 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
3500         [BZ #22153]
3501         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
3502         in coredumps.
3504 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
3506         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3507         Assign sym_map to be map for local symbols, as TLS relocations
3508         use sym_map to determine whether the symbol is defined and to
3509         extract the TLS information.
3510         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3511         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3513 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3515         [BZ #22189]
3516         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
3517         (math_force_eval): Add powerpc version.
3519         [BZ #22142]
3520         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
3521         -DBL_MAX.
3522         (do_test): Likewise.
3523         * stdio-common/tst-printf.sh: Likewise.
3524         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
3525         ifdef clause in order to set the carry bit right.  Replace r0 by
3526         0 without changing the behavior.
3528 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3530         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
3531         <libm-alias-ldouble.h>.
3532         (fabsl): Define using libm_alias_ldouble.
3533         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
3534         <libm-alias-ldouble.h>.
3535         (fabsl): Define using libm_alias_ldouble.
3537         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
3538         Remove conditional code.
3540         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
3541         Rename to __clog10_internal_l.
3542         (__clog10_internal_l): Define aliases using
3543         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
3544         with __clog10.
3546 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3548         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
3549         * benchtests/sincosf-inputs: New file.
3550         * benchtests/cosf-inputs: New file.
3551         * benchtests/sinf-inputs: New file.
3553 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3555         * posix/tst-spawn.c (do_test): Wait for both children.
3557 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3559         [BZ #22284]
3560         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
3561         tests-pie): Add tst-gmon-pie.
3562         (CFLAGS-tst-gmon-pie.c): New.
3563         (CRT-tst-gmon-pie): Likewise.
3564         (tst-gmon-pie-ENV): Likewise.
3565         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3566         ($(objpfx)tst-gmon-pie.out): Likewise.
3567         (clean-tst-gmon-pie-data): Likewise.
3568         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3569         * gmon/gmon.c [PIC]: Include <link.h>.
3570         [PIC] (callback): New function.
3571         (write_hist): Add an argument for load address.  Subtract load
3572         address from PCs.
3573         (write_call_graph): Likewise.
3574         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3575         it to write_hist and write_call_graph.
3576         * gmon/tst-gmon-pie.c: New file.
3578 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3580         * math/Makefile (test-types-basic): New variable.
3581         (test-types): Likewise.
3582         (libm-test-support): Use $(test-types) instead of $(types).
3583         (libm-tests-base-normal): Likewise.
3584         (libm-tests-base-finite): Likewise.
3585         (libm-tests-base-inline): Likewise.
3586         (generated): Likewise.
3587         ($(objpfx)libm-test-support-$(t).c): Likewise.
3588         (libm-tests-for-type iterator): Likewise.
3589         (libm-test-support iterator): Likewise.
3590         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3591         (ulp_idx): Use ULP_IDX.
3592         * math/test-ldouble.h: Include <float.h>.
3593         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3594         (ULP_IDX): New macro.
3595         (ULP_I_IDX): Likewise.
3596         * math/test-double.h (ULP_IDX): Likewise.
3597         (ULP_I_IDX): Likewise.
3598         * math/test-float.h (ULP_IDX): Likewise.
3599         (ULP_I_IDX): Likewise.
3600         * math/test-float128.h (ULP_IDX): Likewise.
3601         (ULP_I_IDX): Likewise.
3603 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3605         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3606         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3607         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3608         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3609         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3610         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3611         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3612         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3613         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3614         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3615         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3616         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3617         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3618         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3619         (SINGLE_THREAD_BY_GLOBAL): Define.
3620         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3621         Likewise.
3622         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3623         Likewise.
3624         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3625         Likewise.
3626         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3627         Likewise.
3628         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3629         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3631         Likewise.
3633 2017-10-11  Andreas Schwab  <schwab@suse.de>
3635         * nis/Makefile (aux): Remove.
3636         * nscd/Makefile (aux): Add nscd_hash.
3637         (nscd-modules): Likewise.
3638         ($(objpfx)nscd): Don't depend on libnsl.
3639         * nscd/nscd_hash.c: New file.
3640         * nscd/nscd_hash.h: Likewise.
3641         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3642         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3643         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3644         instead of <nis/rpcsvc/nis.h>.
3645         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3647 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3649         [BZ #22078]
3650         Avoid large NSS buffers with many addresses, aliases.
3651         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3652         using dynarrays and struct alloc_buffer.
3653         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3654         (tst-nss-files-hosts-multi): Link with -ldl.
3655         * nss/tst-nss-files-hosts-multi.c: New file.
3657 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3659         [BZ #18023]
3660         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3661         scratch_buffer.  Eliminate gotos.
3663 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3665         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3666         libm_alias_ldouble_other.
3667         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3668         undefine and redefine.
3669         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3670         (exp10l): Do not define here.
3671         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3672         (weak_alias): Undefine and redefine.
3673         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3674         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3675         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3676         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3678         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3679         [!__fma] (fma): Define using libm_alias_double.
3680         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3681         [!__fmaf] (fmaf): Define using libm_alias_float.
3682         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3683         (fmal): Define using libm_alias_ldouble.
3685 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3687         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3688         New macro.
3689         (libm_alias_double_other): Likewise.
3690         (libm_alias_double_r): Use libm_alias_double_other_r.
3691         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3692         New macro.
3693         (libm_alias_float_other): Likewise.
3694         (libm_alias_float_r): Use libm_alias_float_other_r.
3695         * sysdeps/generic/libm-alias-float128.h
3696         (libm_alias_float128_other_r): New macro.
3697         (libm_alias_float128_other): Likewise.
3698         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3699         * sysdeps/generic/libm-alias-ldouble.h
3700         (libm_alias_ldouble_other_r): New macro.
3701         (libm_alias_ldouble_other): Likewise.
3702         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3703         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3704         (libm_alias_double_other_r): New macro.
3705         (libm_alias_double_other): Likewise.
3706         (libm_alias_double_r): Use libm_alias_double_other_r.
3707         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3708         (libm_alias_ldouble_other_r): New macro.
3709         (libm_alias_ldouble_other): Likewise.
3710         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3711         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3712         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3713         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3714         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3715         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3716         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3717         * math/w_exp2f.c: Use libm_alias_float_other.
3718         * math/w_expf.c: Likewise.
3719         * math/w_log2f.c: Likewise.
3720         * math/w_logf.c: Likewise.
3721         * math/w_powf.c: Likewise.
3722         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3723         [!__exp2f]: Use libm_alias_float_other.
3724         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3725         [!__expf]: Use libm_alias_float_other.
3726         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3727         [!__log2f]: Use libm_alias_float_other.
3728         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3729         [!__logf]: Use libm_alias_float_other.
3730         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3731         [!__powf]: Use libm_alias_float_other.
3733 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3735         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3736         function.
3737         (_nss_files_gethostbyname3_r): Call it.
3739 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3741         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3742         error.  Remove default definition of declare_mgen_alias.
3743         [!declare_mgen_alias_r]: Likewise.
3744         * sysdeps/generic/math-type-macros-double.h
3745         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3746         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3747         (declare_mgen_alias_r): Likewise.
3748         * sysdeps/generic/math-type-macros-float128.h
3749         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3750         * sysdeps/generic/math-type-macros-ldouble.h
3751         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3752         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3753         macro.
3754         (declare_mgen_alias_r_s): Likewise.
3755         (declare_mgen_alias_r): Likewise.
3756         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3757         (lgamma_r): Define using libm_alias_double_r.
3758         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3759         (lgammaf_r): Define using libm_alias_float_r.
3760         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3761         (lgammal_r): Define using libm_alias_ldouble_r.
3762         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3763         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3765 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3767         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3768         extern declaration.
3770 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3772         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3774 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3776         [BZ #21326]
3777         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3778         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3779         * math/Makefile (test-math-cxx11): New test.
3780         * math/test-math-cxx11.cc: New file.
3782 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3784         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3786         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3787         call to allocate the slave pty file descriptor.
3789 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3791         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3792         [!__fma] (fma): Define using libm_alias_double.
3793         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3794         [!__fma] (fma): Define using libm_alias_double.
3796         * sysdeps/ieee754/float128/float128_private.h: Include
3797         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3798         (libm_alias_ldouble_r): Undefine and redefine.
3799         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3800         <libm-alias-ldouble.h>.
3801         (asinhl): Define using libm_alias_ldouble.
3802         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3803         <libm-alias-ldouble.h>.
3804         (atanl): Define using libm_alias_ldouble.
3805         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3806         <libm-alias-ldouble.h>.
3807         (cbrtl): Define using libm_alias_ldouble.
3808         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3809         <libm-alias-ldouble.h>.
3810         (ceill): Define using libm_alias_ldouble.
3811         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3812         <libm-alias-ldouble.h>.
3813         (copysignl): Define using libm_alias_ldouble.
3814         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3815         <libm-alias-ldouble.h>.
3816         (cosl): Define using libm_alias_ldouble.
3817         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3818         <libm-alias-ldouble.h>.
3819         (erfl): Define using libm_alias_ldouble.
3820         (erfcl): Likewise.
3821         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3822         <libm-alias-ldouble.h>.
3823         (expm1l): Define using libm_alias_ldouble.
3824         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3825         <libm-alias-ldouble.h>.
3826         (fabsl): Define using libm_alias_ldouble.
3827         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3828         <libm-alias-ldouble.h>.
3829         (floorl): Define using libm_alias_ldouble.
3830         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3831         <libm-alias-ldouble.h>.
3832         (fmal): Define using libm_alias_ldouble.
3833         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3834         <libm-alias-ldouble.h>.
3835         (frexpl): Define using libm_alias_ldouble.
3836         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3837         libm_alias_ldouble.
3838         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3839         <libm-alias-ldouble.h>.
3840         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3841         libm_alias_ldouble.
3842         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3843         <libm-alias-ldouble.h>.
3844         (getpayloadl): Define using libm_alias_ldouble.
3845         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3846         <libm-alias-ldouble.h>.
3847         (llrintl): Define using libm_alias_ldouble.
3848         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3849         <libm-alias-ldouble.h>.
3850         (llroundl): Define using libm_alias_ldouble.
3851         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3852         <libm-alias-ldouble.h>.
3853         (logbl): Define using libm_alias_ldouble.
3854         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3855         <libm-alias-ldouble.h>.
3856         (lrintl): Define using libm_alias_ldouble.
3857         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3858         <libm-alias-ldouble.h>.
3859         (lroundl): Define using libm_alias_ldouble.
3860         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3861         <libm-alias-ldouble.h>.
3862         (modfl): Define using libm_alias_ldouble.
3863         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3864         <libm-alias-ldouble.h>.
3865         (nearbyintl): Define using libm_alias_ldouble.
3866         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3867         <libm-alias-ldouble.h>.
3868         (nextafterl): Define using libm_alias_ldouble.
3869         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3870         <libm-alias-ldouble.h>.
3871         (nextupl): Define using libm_alias_ldouble.
3872         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3873         <libm-alias-ldouble.h>.
3874         (remquol): Define using libm_alias_ldouble.
3875         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3876         <libm-alias-ldouble.h>.
3877         (rintl): Define using libm_alias_ldouble.
3878         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3879         <libm-alias-ldouble.h>.
3880         (roundevenl): Define using libm_alias_ldouble.
3881         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3882         <libm-alias-ldouble.h>.
3883         (roundl): Define using libm_alias_ldouble.
3884         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3885         using libm_alias_ldouble.
3886         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3887         <libm-alias-ldouble.h>.
3888         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3889         Define using libm_alias_ldouble.
3890         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3891         <libm-alias-ldouble.h>.
3892         (sincosl): Define using libm_alias_ldouble.
3893         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3894         <libm-alias-ldouble.h>.
3895         (sinl): Define using libm_alias_ldouble.
3896         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3897         <libm-alias-ldouble.h>.
3898         (tanhl): Define using libm_alias_ldouble.
3899         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3900         <libm-alias-ldouble.h>.
3901         (tanl): Define using libm_alias_ldouble.
3902         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3903         <libm-alias-ldouble.h>.
3904         (totalorderl): Define using libm_alias_ldouble.
3905         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3906         <libm-alias-ldouble.h>.
3907         (totalordermagl): Define using libm_alias_ldouble.
3908         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3909         <libm-alias-ldouble.h>.
3910         (truncl): Define using libm_alias_ldouble.
3911         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3912         libm_alias_ldouble.
3913         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3914         libm_alias_ldouble.
3915         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3916         <libm-alias-ldouble.h>.
3917         (weak_alias): Do not undefine and redefine.
3918         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3919         (copysignl): Define with long_double_symbol only if [IS_IN
3920         (libc)].
3921         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3922         <libm-alias-ldouble.h>.
3923         (weak_alias): Do not undefine and redefine.
3924         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3925         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3926         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3927         <libm-alias-ldouble.h>.
3928         (weak_alias): Do not undefine and redefine.
3929         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3930         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3931         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3932         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3933         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3934         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3935         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3936         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3937         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3938         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3939         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3940         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3941         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3942         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3943         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3944         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3945         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3946         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3947         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3948         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3949         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3950         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3951         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3952         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3953         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3954         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3956 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3958         [BZ #22111]
3959         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3960         (tcache_thread_freeres): Set tcache_shutting_down before
3961         freeing the tcache.
3962         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3963         * malloc/tst-malloc-tcache-leak.c: New file.
3965 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3967         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3968         back to powerpc32 file.
3969         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3970         (memrchr): Add __memrchr_power8 to ifunc list.
3971         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3972         extra bytes for unaligned inputs.
3974 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3976         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3977         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3978         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3979         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3980         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3982 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3984         * sysdeps/arm/libm-test-ulps: Update.
3986         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3987         <libm-alias-ldouble.h>.
3988         (asinhl): Define using libm_alias_ldouble.
3989         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3990         <libm-alias-ldouble.h>.
3991         (cbrtl): Define using libm_alias_ldouble.
3992         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3993         <libm-alias-ldouble.h>.
3994         (copysignl): Define using libm_alias_ldouble.
3995         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3996         <libm-alias-ldouble.h>.
3997         (cosl): Define using libm_alias_ldouble.
3998         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3999         <libm-alias-ldouble.h>.
4000         (erfl): Define using libm_alias_ldouble.
4001         (erfcl): Likewise.
4002         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
4003         <libm-alias-ldouble.h>.
4004         (fmal): Define using libm_alias_ldouble.
4005         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
4006         <libm-alias-ldouble.h>.
4007         (frexpl): Define using libm_alias_ldouble.
4008         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
4009         libm_alias_ldouble.
4010         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
4011         <libm-alias-ldouble.h>.
4012         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
4013         libm_alias_ldouble.
4014         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
4015         <libm-alias-ldouble.h>.
4016         (getpayloadl): Define using libm_alias_ldouble.
4017         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
4018         <libm-alias-ldouble.h>.
4019         (llrintl): Define using libm_alias_ldouble.
4020         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
4021         <libm-alias-ldouble.h>.
4022         (llroundl): Define using libm_alias_ldouble.
4023         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
4024         <libm-alias-ldouble.h>.
4025         (lrintl): Define using libm_alias_ldouble.
4026         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
4027         <libm-alias-ldouble.h>.
4028         (lroundl): Define using libm_alias_ldouble.
4029         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
4030         <libm-alias-ldouble.h>.
4031         (modfl): Define using libm_alias_ldouble.
4032         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
4033         <libm-alias-ldouble.h>.
4034         (nextupl): Define using libm_alias_ldouble.
4035         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
4036         <libm-alias-ldouble.h>.
4037         (remquol): Define using libm_alias_ldouble.
4038         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
4039         <libm-alias-ldouble.h>.
4040         (roundevenl): Define using libm_alias_ldouble.
4041         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
4042         <libm-alias-ldouble.h>.
4043         (roundl): Define using libm_alias_ldouble.
4044         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
4045         using libm_alias_ldouble.
4046         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
4047         <libm-alias-ldouble.h>.
4048         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
4049         <libm-alias-ldouble.h>.
4050         (setpayloadsigl): Define using libm_alias_ldouble.
4051         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
4052         <libm-alias-ldouble.h>.
4053         (sincosl): Define using libm_alias_ldouble.
4054         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
4055         <libm-alias-ldouble.h>.
4056         (sinl): Define using libm_alias_ldouble.
4057         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
4058         <libm-alias-ldouble.h>.
4059         (tanhl): Define using libm_alias_ldouble.
4060         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
4061         <libm-alias-ldouble.h>.
4062         (tanl): Define using libm_alias_ldouble.
4063         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
4064         <libm-alias-ldouble.h>.
4065         (totalorderl): Define using libm_alias_ldouble.
4066         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
4067         <libm-alias-ldouble.h>.
4068         (totalordermagl): Define using libm_alias_ldouble.
4069         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
4070         libm_alias_ldouble.
4071         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
4072         libm_alias_ldouble.
4074 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4076         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4077         memmove_falkor.
4078         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4079         (__libc_ifunc_impl_list): Likewise.
4080         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
4081         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
4083         * benchtests/bench-memmove-walk.c: New file.
4084         * benchtests/Makefile (string-benchset): Add it.
4086         * benchtests/bench-memset-walk.c: New file.
4087         * benchtests/Makefile (string-benchset): Add it.
4089         * benchtests/bench-memcpy-walk.c: New file.
4090         * benchtests/Makefile (string-benchset): Add it.
4092 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4094         nscd: Eliminate compilation time dependency in the build output.
4095         * nscd/nscd_stat.c (STATDATA_VERSION)
4096         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
4097         (STATDATA_VERSION_FULL): New macro definitions.
4098         (compilation): Remove.
4099         (struct statdata): Adjust version member.
4100         (send_stats): Set version from STATDATA_VERSION_FULL.
4101         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
4103 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
4105         * configure.ac (--enable-add-ons): Remove option.
4106         (machine): Do not mention add-ons in comment.
4107         (LIBC_PRECONFIGURE): Likewise.
4108         (add_ons): Remove variable and sanity checks and logic to locate
4109         add-ons.
4110         (add_ons_automatic): Remove variable.
4111         (configured_add_ons): Likewise.
4112         (add_ons_sfx): Likewise.
4113         (add_ons_pfx): Likewise.
4114         (add_on_subdirs): Likewise.
4115         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
4116         consideration of add-ons in Implies handling.
4117         (sysdeps_add_ons): Likewise.
4118         * configure: Regenerated.
4119         * libidn/configure.ac: Remove.
4120         * libidn/configure: Likewise.
4121         * sysdeps/unix/inet/configure.ac: New file.
4122         * sysdeps/unix/inet/configure: New generated file.
4123         * sysdeps/unix/inet/Subdirs: Add libidn.
4124         * Makeconfig (sysdeps-srcdirs): Remove variable.
4125         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
4126         ($(common-objpfx)config.status): Do not depend on add-on files.
4127         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
4128         comment.
4129         (all-subdirs): Do not include $(add-on-subdirs).
4130         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
4131         * config.make.in (add-ons): Remove variable.
4132         (add-on-subdirs): Likewise.
4133         (sysdeps-add-ons): Likewise.
4134         * manual/Makefile (add-chapters): Remove.
4135         ($(objpfx)texis): Do not depend on $(add-chapters).
4136         (nonexamples): Do not handle $(add-chapters).
4137         (examples): Do not handle $(add-ons).
4138         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
4139         libc-texinfo.sh.
4140         * manual/install.texi (Installation): Do not mention add-ons.
4141         (--enable-add-ons): Do not document configure option.
4142         * INSTALL: Regenerated.
4143         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
4144         * manual/maint.texi (Hierarchy Conventions): Do not mention
4145         add-ons.
4146         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
4147         --enable-add-ons.
4148         * scripts/gen-sorted.awk: Do not handle Subdirs files from
4149         add-ons.
4150         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
4151         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
4153 2017-10-05  Andreas Schwab  <schwab@suse.de>
4155         [BZ #15142]
4156         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
4157         (_IO_flush_all_lockp): Always lock list_all_lock.
4158         (_IO_flush_all_linebuffered): Likewise.
4159         (_IO_unbuffer_all): Likewise.
4161 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4163         [BZ #15436]
4164         Do not flush stdio streams on abort.
4165         * stdlib/abort.c (fflush): Remove macro definition.
4166         (abort): Remove stages related to stdio flushing.
4168 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4170         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
4172 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
4174         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4176 2017-10-05  Florian Weimer  <fweimer@redhat.com>
4178         * support/support_format_hostent.c (support_format_hostent): Add
4179         more error information for NETDB_INTERNAL.
4181 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4183         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
4184         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
4185         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
4186         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
4187         AC_DEFINE if multi-arch is enabled.
4188         * sysdeps/i386/configure: Regenerated.
4190 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4192         * Makeconfig (+link-static-before-libc): Use
4193         $(DEFAULT-LDFLAGS-$(@F)).
4194         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
4195         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
4196         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
4198 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4200         * elf/Makefile (tests): Add tst-main1.
4201         (modules-names): Add tst-main1mod.
4202         ($(objpfx)tst-main1): New.
4203         (CRT-tst-main1): Likewise.
4204         (LDFLAGS-tst-main1): Likewise.
4205         (LDLIBS-tst-main1): Likewise.
4206         (tst-main1mod.so-no-z-defs): Likewise.
4207         * elf/tst-main1.c: New file.
4208         * elf/tst-main1mod.c: Likewise.
4210 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
4212         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
4214 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
4216         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
4217         (fma): Define using libm_alias_double.
4218         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
4219         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
4220         <math_ldbl_opt.h>.
4221         (fmal): Do not define as compat symbol here.
4222         * sysdeps/alpha/fpu/s_fma.c: New file.
4224 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4226         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
4228 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
4230         [BZ #22229]
4231         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
4232         <math_ldbl_opt.h>
4233         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
4234         and libc.
4235         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
4236         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4237         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
4238         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
4239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4240         Include <math_ldbl_opt.h>
4241         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
4242         and libc.
4243         (compat_symbol): Undefine and redefine.
4244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
4245         <math_ldbl_opt.h>
4246         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4247         (compat_symbol): Undefine and redefine.
4248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
4249         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
4250         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
4251         GLIBC_2_1 for libm.
4252         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
4253         GLIBC_2.0 copysignl symbol.
4254         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4255         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
4257         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
4259 2017-10-04  Florian Weimer  <fweimer@redhat.com>
4261         * scripts/check-local-headers.sh: Ignore nspr4 header file
4262         directory in addition to nspr.
4264 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
4266         [BZ #17956]
4267         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
4268         * configure: Regenerate.
4269         * crypt/Makefile (nss-cpp-flags): New variable.
4270         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
4271         (CPPFLAGS-md5-crypt.c): Use it.
4272         * scripts/check-local-headers.sh: Ignore nspr header file
4273         directory.
4275 2017-10-04  Andreas Schwab  <schwab@suse.de>
4277         * nis/Makefile (services): Remove compat.
4278         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
4279         ($(objpfx)libnss_compat.so): Remove rule.
4280         * nis/Versions (libnss_compat): Remove.
4281         * nss/Makefile (services): Add compat.
4282         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
4283         * nss/Versions (libnss_compat): Define.
4284         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
4285         Don't include <rpc/types.h>.  Replace bool_t by bool.
4286         * nss/nss_compat/compat-initgroups.c: Likewise.
4287         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
4288         instead of <rpcsrv/ypclnt.h>.
4289         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
4290         yp_get_default_domain.
4291         * nss/nss_compat/compat-pwd.c: Likewise.
4292         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
4293         yp_get_default_domain.
4294         * nss/nss_compat/nisdomain.c: New file.
4295         * nss/nss_compat/nisdomain.h: Likewise.
4297 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4299         [BZ #22244]
4300         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
4301         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4303 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4305         [BZ #22243]
4306         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
4307         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
4309 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4311         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
4312         "movl main@GOTOFF(%ebx), %eax".
4314 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4316         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
4317         allow undefined _DYNAMIC in PIE libc.a.
4318         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4319         Likewse.
4321 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4323         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
4324         check _DYNAMIC.
4326 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4328         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
4329         check _DYNAMIC.
4331 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4333         * math/test-math-iscanonical.cc (error): Replace bool with int.
4335 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4337         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
4338         (modf): Define using libm_alias_double, only if [!__modf].
4339         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
4340         <libm-alias-double.h>.
4341         (modf): Define using libm_alias_double, only if [!__modf].
4342         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
4343         compat symbol here.
4344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
4345         (weak_alias): Do not undefine and redefine.
4346         (strong_alias): Likewise.
4347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
4348         (weak_alias): Likewise.
4349         (strong_alias): Likewise.
4351         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
4352         (logb): Define using libm_alias_double, only if [!__logb].
4353         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
4354         <libm-alias-double.h>.
4355         (logb): Define using libm_alias_double, only if [!__logb].
4356         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
4357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
4358         (weak_alias): Do not undefine and redefine.
4359         (strong_alias): Likewise.
4360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
4361         (weak_alias): Likewise.
4362         (strong_alias): Likewise.
4364 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4366         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
4367         Check SHARED instead PIC.
4369 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4371         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
4372         [!__fmaf] (fmaf): Define using libm_alias_float.
4374         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
4375         (frexp): Define using libm_alias_double.
4376         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
4377         <libm-alias-double.h>.
4378         (frexp): Define using libm_alias_double.
4379         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
4380         compat symbol here.
4382 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4384         [BZ #22235]
4385         * math/math.h: Trivial fix for unbalanced parentheses in comment.
4386         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
4387         (CFLAGS-test-math-iscanonical.cc): New variable.
4388         * math/test-math-iscanonical.cc: New file.
4389         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
4390         Provide a C++ implementation based on function overloading,
4391         rather than using __MATH_TG, which uses C-only builtins.
4392         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
4393         Likewise.
4394         * sysdeps/powerpc/powerpc64le/Makefile
4395         (CFLAGS-test-math-iscanonical.cc): New variable.
4397 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4399         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
4400         (ceil): Define using libm_alias_double.
4401         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
4402         (floor): Define using libm_alias_double.
4403         * sysdeps/ieee754/dbl-64/s_llround.c: Include
4404         <libm-alias-double.h>.
4405         (llround): Define using libm_alias_double.
4406         * sysdeps/ieee754/dbl-64/s_lround.c: Include
4407         <libm-alias-double.h>.
4408         (lround): Define using libm_alias_double.
4409         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
4410         <libm-alias-double.h>.
4411         (nearbyint): Define using libm_alias_double.
4412         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
4413         <libm-alias-double.h>.
4414         (remquo): Define using libm_alias_double.
4415         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
4416         (rint): Define using libm_alias_double.
4417         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
4418         (round): Define using libm_alias_double.
4419         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
4420         (trunc): Define using libm_alias_double.
4421         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
4422         <libm-alias-double.h>.
4423         (ceil): Define using libm_alias_double.
4424         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
4425         <libm-alias-double.h>.
4426         (floor): Define using libm_alias_double.
4427         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
4428         <libm-alias-double.h>.
4429         (llround): Define using libm_alias_double.
4430         [_LP64] (lround): Likewise.
4431         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
4432         <libm-alias-double.h>.
4433         [!_LP64] (lround): Define using libm_alias_double.
4434         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
4435         <libm-alias-double.h>.
4436         (nearbyint): Define using libm_alias_double.
4437         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
4438         <libm-alias-double.h>.
4439         (remquo): Define using libm_alias_double.
4440         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
4441         <libm-alias-double.h>.
4442         (rint): Define using libm_alias_double.
4443         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
4444         <libm-alias-double.h>.
4445         (round): Define using libm_alias_double.
4446         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
4447         <libm-alias-double.h>.
4448         (trunc): Define using libm_alias_double.
4449         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
4450         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
4451         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
4452         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
4453         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
4454         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
4455         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
4456         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
4457         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
4459 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4461         * math/w_remainder.c: New file.
4462         * math/w_remainderf.c: New file.
4463         * math/w_remainderl.c: New file.
4465 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4467         * elf/rtld.c (BOOTSTRAP_MAP): New.
4468         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
4469         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4470         Likewise.
4471         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4472         Likewise.
4473         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4474         Likewise.
4476 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4478         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
4479         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
4480         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
4481         rtld_hidden_data_ver): Define to empty.
4482         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
4483         __assert_perror_fail): Likewise.
4484         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4485         (__rewinddir): Likewise.
4486         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4487         (__profile_frequency): Likewise.
4488         * include/setjmp.h (__sigsetjmp): Likewise.
4489         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
4490         __libc_sigaction): Likewise.
4491         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
4492         not set hidden attribute.
4493         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
4494         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
4495         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
4496         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
4497         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
4498         __fxstatat64): Likewise.
4499         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4500         (__uname): Likewise.
4501         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4502         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
4503         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
4504         (NO_RTLD_HIDDEN): Set.
4505         * sysdeps/mach/hurd/configure: Refresh.
4506         * config.h.in: Refresh.
4508 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
4510         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
4511         (atan): Define using libm_alias_double.
4512         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
4513         (tan): Define using libm_alias_double.
4514         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
4515         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
4517         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
4518         define as weak alias of __atan.  Do not define any aliases if
4519         [__atan].
4520         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
4521         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
4522         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
4523         as weak alias of __tan.  Do not define any aliases if [__tan].
4524         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
4525         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
4526         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
4527         __atan.
4528         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
4529         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
4530         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
4531         and define as weak alias of __atan.
4532         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
4533         __atan.
4534         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
4535         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
4536         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
4537         define as weak alias of __tan.
4539 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4541         * math/w_lgamma.c: New file.
4542         * math/w_lgammaf.c: New file.
4543         * math/w_lgammal.c: New file.
4545 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4547         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
4548         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
4549         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
4550         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
4551         * sysdeps/ieee754/flt-32/w_logf.c: New file.
4552         * sysdeps/ieee754/flt-32/w_powf.c: New file.
4553         * sysdeps/i386/fpu/w_log2f.c: New file.
4554         * sysdeps/i386/fpu/w_logf.c: New file.
4555         * sysdeps/i386/fpu/w_powf.c: New file.
4556         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
4557         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
4558         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
4560 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4561             H.J. Lu  <hongjiu.lu@intel.com>
4563         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4564         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4565         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4566         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4567         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4568         the new expf code.
4569         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4570         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4571         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4572         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4573         * sysdeps/i386/fpu/w_exp2f.c: New file.
4574         * sysdeps/i386/fpu/w_expf.c: New file.
4575         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4576         * sysdeps/x86_64/fpu/w_expf.c: New file.
4578 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4580         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4581         (log2f): Likewise.
4582         (powf): Likewise.
4583         * math/w_log2f.c: New file.
4584         * math/w_logf.c: New file.
4585         * math/w_powf.c: New file.
4586         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4587         * math/w_logf_compat.c (__logf_compat): Likewise.
4588         * math/w_powf_compat.c (__powf_compat): Likewise.
4589         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4590         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4591         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4592         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4593         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4594         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4595         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4596         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4597         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4598         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4599         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4600         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4601         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4602         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4603         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4605         Likewise.
4606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4607         Likewise.
4608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4609         Likewise.
4610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4611         Likewise.
4612         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4613         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4614         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4615         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4616         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4617         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4618         Likewise.
4619         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4620         Likewise.
4621         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4622         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4623         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4625 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4627         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4628         (sysdep_routines): Add memrchr_power8.
4629         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4630         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4631         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4632         New file.
4633         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4634         (memrchr): Add __memrchr_power8 to ifunc list.
4635         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4637 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4639         [BZ #18822]
4640         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4641         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4642         libc_hidden_def.
4643         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4644         (__posix_fallocate64_l64): Likewise.
4646 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4648         [BZ #18822]
4649         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4650         (__sched_setaffinity_new): Add libc_hidden_proto and
4651         libc_hidden_def.
4653 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4655         [BZ #18822]
4656         * include/glob.h (__glob64): Add libc_hidden_proto.
4657         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4658         libc_hidden_def.
4660 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4662         [BZ #18822]
4663         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4664         attribute_hidden.
4666 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4668         [BZ #18822]
4669         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4671 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4673         [BZ #18822]
4674         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4675         libc_hidden_def.
4677 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4679         [BZ #18822]
4680         * csu/version.c (__libc_print_version): Add attribute_hidden.
4682 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4684         [BZ #18822]
4685         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4687 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4689         [BZ #18822]
4690         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4692 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4694         [BZ #18822]
4695         * nscd/nscd_helper.c (__nis_hash): New prototype.
4697 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4699         [BZ #18822]
4700         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4701         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4702         libc_hidden_def.
4703         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4704         * termios/tcgetattr.c (__tcgetattr): Likewise.
4706 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4708         [BZ #18822]
4709         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4710         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4711         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4712         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4713         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4715 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4717         [BZ #18822]
4718         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4720 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4722         [BZ #18822]
4723         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4724         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4726 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4728         [BZ #18822]
4729         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4731 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4733         [BZ #18822]
4734         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4735         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4737 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4739         [BZ #18822]
4740         * include/ifreq.h: New file.
4741         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4742         (__ifreq): Likewise.
4743         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4744         (__ifreq): Likewise.
4746 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4748         [BZ #18822]
4749         * include/idna.h: New file.
4750         * inet/getnameinfo.c: Include <idna.h> instead of
4751         <libidn/idna.h>.
4752         (__idna_to_unicode_lzlz): Removed.
4753         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4754         <libidn/idna.h>.
4755         (__idna_to_ascii_lz): Removed.
4756         (__idna_to_unicode_lzlz): Likewise.
4758 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4760         [BZ #18822]
4761         * include/plural-exp.h: New file.
4762         * intl/plural-exp.c: Include <plural-exp.h> instead of
4763         "plural-exp.h".
4765 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4767         [BZ #18822]
4768         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4769         "getsourcefilter.h".
4770         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4771         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4772         "getsourcefilter.h".
4773         (__get_sol): Removed.
4775 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4777         [BZ #18822]
4778         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4779         to ...
4780         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4782 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4784         [BZ #18822]
4785         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4786         attribute_hidden.
4788 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4790         [BZ #18822]
4791         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4793 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4795         [BZ #18822]
4796         * include/search.h (__tdestroy): Add libc_hidden_proto.
4797         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4799 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4801         [BZ #18822]
4802         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4804 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4806         [BZ #18822]
4807         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4808         attribute_hidden.
4810 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4812         [BZ #18822]
4813         * include/signal.h (__kill): Add libc_hidden_proto.
4814         (__sigblock): Likewise.
4815         (__sigprocmask): Likewise.
4816         (__sigaltstack): Likewise.
4817         * signal/kill.c (__kill): Add libc_hidden_def.
4818         * signal/sigblock.c (__sigblock): Likewise.
4819         * signal/sigprocmask.c (__sigprocmask): Likewise.
4820         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4821         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4822         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4823         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4824         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4825         Likewise.
4826         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4827         Likewise.
4828         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4829         (__sigprocmask): Likewise.
4830         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4831         Likewise.
4832         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4833         (__sigprocmask): Likewise.
4834         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4835         Likewise.
4837 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4839         [BZ #18822]
4840         * include/string.h (__strsep): Add libc_hidden_proto.
4841         * string/strsep.c (__strsep): Add libc_hidden_def.
4843 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4845         [BZ #18822]
4846         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4847         attribute_hidden.
4848         (__spawni): Likewise.
4850 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4852         [BZ #18822]
4853         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4854         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4855         libc_hidden_def.
4857 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4859         [BZ #18822]
4860         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4862 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4864         [BZ #18822]
4865         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4866         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4867         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4868         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4869         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4870         Likewise.
4871         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4872         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4874 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4876         [BZ #18822]
4877         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4878         (__dcigettext): Likewise.
4880 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4882         [BZ #18822]
4883         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4884         libc_hidden_proto.
4885         (__get_nprocs): Likewise.
4886         (__get_phys_pages): Likewise.
4887         (__get_avphys_pages): Likewise.
4888         (__get_child_max): Add attribute_hidden.
4889         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4890         (__get_nprocs): Likewise.
4891         (__get_phys_pages): Likewise.
4892         (__get_avphys_pages): Likewise.
4893         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4894         libc_hidden_def.
4895         (__get_nprocs): Likewise.
4896         (__get_phys_pages): Likewise.
4897         (__get_avphys_pages): Likewise.
4898         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4899         libc_hidden_def.
4900         (__get_nprocs_conf): Likewise.
4901         (__get_phys_pages): Likewise.
4902         (__get_avphys_pages): Likewise.
4904 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4906         [BZ #18822]
4907         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4908         attribute_hidden.
4909         (__netlink_close): Likewise.
4910         (__netlink_free_handle): Likewise.
4911         (__netlink_request): Likewise.
4913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4915         [BZ #18822]
4916         * include/rpc/rpc.h (__rpc_thread_variables): Add
4917         attribute_hidden.
4918         (__rpc_thread_svc_cleanup): Likewise.
4919         (__rpc_thread_clnt_cleanup): Likewise.
4920         (__rpc_thread_key_cleanup): Likewise.
4922 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4924         [BZ #18822]
4925         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4926         (__writev): Likewise.
4927         * misc/readv.c (__readv): Add libc_hidden_def.
4928         * misc/writev.c (__writev): Likewise.
4929         * sysdeps/posix/readv.c (__readv): Likewise.
4930         * sysdeps/posix/writev.c (__writev): Likewise.
4931         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4932         (__readv): Likewise.
4933         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4934         (__writev): Likewise.
4936 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4938         [BZ #18822]
4939         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4940         (__regcomp): Add libc_hidden_proto.
4941         (__regexec): Likewise.
4942         (__regfree): Likewise.
4943         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4944         (__regfree): Likewise.
4945         * posix/regexec.c (__regexec): Likewise.
4947 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4949         [BZ #18822]
4950         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4951         (__getutent): Likewise.
4952         (__getutid): Likewise.
4953         (__getutline): Likewise.
4954         (__pututline): Likewise.
4955         (__getutent_r): Likewise.
4956         (__getutid_r): Likewise.
4957         (__getutline_r): Likewise.
4958         (__utmpname): Add attribute_hidden.
4959         (__setutent): Likewise.
4960         (__endutent): Likewise.
4961         * login/getutent.c (__getutent): Add libc_hidden_def.
4962         * login/getutent_r.c (__getutent_r): Likewise.
4963         (__pututline): Likewise.
4964         * login/getutid.c (__getutid): Likewise.
4965         * login/getutid_r.c (__getutid_r): Likewise.
4966         * login/getutline.c (__getutline): Likewise.
4967         * login/getutline_r.c (__getutline_r): Likewise.
4968         * login/updwtmp.c (__updwtmp): Likewise.
4970 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4972         [BZ #18822]
4973         * include/dirent.h (__opendir): Always add attribute_hidden.
4974         (__fdopendir): Likewise.
4975         (__closedir): Likewise.
4976         (__readdir): Likewise.
4977         (__readdir64): Add libc_hidden_proto.
4978         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4979         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4980         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4981         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4982         New alias.
4984 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4986         [BZ #18822]
4987         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4988         * include/netdb.h (__gethostbyaddr_r): Likewise.
4989         (__gethostbyname_r): Likewise.
4990         (__gethostbyname2_r): Likewise.
4991         (__getnetbyaddr_r): Likewise.
4992         (__getnetbyname_r): Likewise.
4993         (__getservbyname_r): Likewise.
4994         (__getservbyport_r): Likewise.
4995         (__getprotobyname_r): Likewise.
4996         (__getprotobynumber_r): Likewise.
4997         (__getnetgrent_r): Likewise.
4998         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4999         (__getrpcbynumber_r): Likewise.
5000         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
5002 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5004         [BZ #18822]
5005         * include/stdio.h (__fcloseall): Add attribute_hidden.
5006         (__getline): Likewise.
5007         (__path_search): Likewise.
5008         (__gen_tempname): Likewise.
5009         (__libc_message): Likewise.
5010         (__flockfile): Likewise.
5011         (__funlockfile): Likewise.
5012         (__fxprintf): Likewise.
5013         (__fxprintf_nocancel): Likewise.
5015 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5017         [BZ #18822]
5018         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
5019         (__sgetsgent_r): Likewise.
5021 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5023         [BZ #18822]
5024         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
5025         (__statfs64): Likewise.
5026         (__fstatfs64): Likewise.
5027         * include/sys/statvfs.h (__statvfs64): Likewise.
5028         (__fstatvfs64): Likewise.
5029         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
5030         (__statfs_filesize_max): Likewise.
5031         (__statfs_symlinks): Likewise.
5032         (__statfs_chown_restricted): Likewise.
5034 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5036         [BZ #18822]
5037         * include/time.h (__tzstring): Add attribute_hidden.
5038         (__tzfile_read): Likewise.
5039         (__tzfile_compute): Likewise.
5040         (__tzfile_default): Likewise.
5041         (__tzset_parse_tz): Likewise.
5042         (__offtime): Likewise.
5043         (__asctime_r): Likewise.
5044         (__tzset): Likewise.
5045         (__tz_convert): Likewise.
5046         (__getdate_r): Likewise.
5047         (__getclktck): Likewise.
5049 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5051         [BZ #18822]
5052         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
5053         (__nscd_unmap): Likewise.
5054         (__nscd_cache_search): Likewise.
5055         (__nscd_get_nl_timestamp): Likewise.
5056         (__nscd_getpwnam_r): Likewise.
5057         (__nscd_getpwuid_r): Likewise.
5058         (__nscd_getgrnam_r): Likewise.
5059         (__nscd_getgrgid_r): Likewise.
5060         (__nscd_gethostbyname_r): Likewise.
5061         (__nscd_gethostbyname2_r): Likewise.
5062         (__nscd_gethostbyaddr_r): Likewise.
5063         (__nscd_getai): Likewise.
5064         (__nscd_getgrouplist): Likewise.
5065         (__nscd_getservbyname_r): Likewise.
5066         (__nscd_getservbyport_r): Likewise.
5067         (__nscd_innetgr): Likewise.
5068         (__nscd_setnetgrent): Likewise.
5070 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5072         [BZ #18822]
5073         * include/gmp.h: Declare internal functions only if _ISOMAC is
5074         undefined.
5075         (__mpn_extract_double): Add attribute_hidden.
5076         (__mpn_extract_long_double): Likewise.
5077         (__mpn_extract_float128): Likewise.
5078         (__mpn_construct_float): Likewise.
5079         (__mpn_construct_double): Likewise.
5080         (__mpn_construct_long_double): Likewise.
5081         (__mpn_construct_float128): Likewise.
5082         (mpn_add_1): Likewise.
5083         (mpn_addmul_1): Likewise.
5084         (mpn_add_n): Likewise.
5085         (mpn_cmp): Likewise.
5086         (mpn_divrem): Likewise.
5087         (mpn_lshift): Likewise.
5088         (mpn_mul): Likewise.
5089         (mpn_mul_1): Likewise.
5090         (mpn_rshift): Likewise.
5091         (mpn_sub_1): Likewise.
5092         (mpn_submul_1): Likewise.
5093         (mpn_sub_n): Likewise.
5095 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5097         [BZ #18822]
5098         * include/wchar.h (__wcsnlen): Add attribute_hidden.
5099         (__wcscat): Likewise.
5100         (__btowc): Likewise.
5101         (__wcrtomb): Likewise.
5102         (__mbsrtowcs): Likewise.
5103         (__wcsrtombs): Likewise.
5104         (__mbsnrtowcs): Likewise.
5105         (__wcsnrtombs): Likewise.
5106         (__wcsncpy): Likewise.
5107         (__wcpncpy): Likewise.
5108         (__wmemcpy): Likewise.
5109         (__wmempcpy): Likewise.
5110         (__wmemmove): Likewise.
5111         (__wcschrnul): Likewise.
5112         (__vfwscanf): Likewise.
5113         (__vswprintf): Likewise.
5114         (__fwprintf): Likewise.
5115         (__vfwprintf): Likewise.
5117 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5119         [BZ #18822]
5120         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
5121         (__getgrgid_r): Likewise.
5122         (__getgrnam_r): Likewise.
5123         * include/pwd.h (__getpwuid_r): Likewise.
5124         (__getpwnam_r): Likewise.
5125         (__fgetpwent_r): Likewise.
5126         * include/shadow.h (__getspnam_r): Likewise.
5127         (__sgetspent_r): Likewise.
5128         (__fgetspent_r): Likewise.
5130 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5132         [BZ #18822]
5133         * include/unistd.h (__access): Add attribute_hidden.
5134         (__lseek64): Likewise.
5135         (__libc_pread64): Likewise.
5136         (__pipe2): Likewise.
5137         (__sleep): Likewise.
5138         (__chdir): Likewise.
5139         (__fchdir): Likewise.
5140         (__getcwd): Likewise.
5141         (__rmdir): Likewise.
5142         (__execvpe): Likewise.
5143         (__execve): Likewise.
5144         (__setsid): Likewise.
5145         (__getuid): Likewise.
5146         (__geteuid): Likewise.
5147         (__getgid): Likewise.
5148         (__getegid): Likewise.
5149         (__getgroups): Likewise.
5150         (__group_member): Likewise.
5151         (__ttyname_r): Likewise.
5152         (__isatty): Likewise.
5153         (__readlink): Likewise.
5154         (__unlink): Likewise.
5155         (__gethostname): Likewise.
5156         (__profil): Likewise.
5157         (__getdtablesize): Likewise.
5158         (__brk): Likewise.
5159         (__ftruncate): Likewise.
5160         (__ftruncate64): Likewise.
5162 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5164         [BZ #18822]
5165         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
5166         * argp/argp-fs-xinl.c: Likewise.
5167         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
5168         * argp/argp-parse.c: Include <argp.h>.
5169         * argp/argp-xinl.c: Likewise.
5170         * include/argp-fmtstream.h: New file.
5171         * include/argp.h (__argp_error): Add attribute_hidden.
5172         (__argp_failure): Likewise.
5173         (__argp_input): Likewise.
5174         (__argp_state_help): Likewise.
5176 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5178         [BZ #18822]
5179         * include/wchar.h (____wcstof_l_internal): New prototype.
5180         (____wcstod_l_internal): Likewise.
5181         (____wcstold_l_internal): Likewise.
5182         (____wcstol_l_internal): Likewise.
5183         (____wcstoul_l_internal): Likewise.
5184         (____wcstoll_l_internal): Likewise.
5185         (____wcstoull_l_internal): Likewise.
5186         (____wcstof128_l_internal): Likewise.
5187         * sysdeps/ieee754/float128/wcstof128.c
5188         (____wcstof128_l_internal): Removed.
5189         * sysdeps/ieee754/float128/wcstof128_l.c
5190         (____wcstof128_l_internal): Likewise.
5191         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
5192         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
5193         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
5194         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
5195         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
5196         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
5197         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
5198         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
5199         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
5200         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
5202 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5204         [BZ #18822]
5205         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
5206         instead of <sys/statvfs.h>.
5207         (__internal_statvfs): Removed.
5208         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
5209         instead of <sys/statvfs.h>.
5210         (__internal_statvfs64): Removed.
5211         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
5212         "internal_statvfs.h" instead of <sys/statvfs.h>.
5213         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
5214         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
5215         instead of <sys/statvfs.h>.
5216         (__internal_statvfs): Removed.
5217         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
5218         instead of <sys/statvfs.h>.
5219         (__internal_statvfs64): Removed.
5221 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5223         [BZ #18822]
5224         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
5225         (__gconv_close): Likewise.
5226         (__gconv): Likewise.
5227         (__gconv_find_transform): Likewise.
5228         (__gconv_lookup_cache): Likewise.
5229         (__gconv_compare_alias_cache): Likewise.
5230         (__gconv_load_cache): Likewise.
5231         (__gconv_get_path): Likewise.
5232         (__gconv_close_transform): Likewise.
5233         (__gconv_release_cache): Likewise.
5234         (__gconv_find_shlib): Likewise.
5235         (__gconv_release_shlib): Likewise.
5236         (__gconv_get_builtin_trans): Likewise.
5237         (__gconv_compare_alias): Likewise.
5238         * include/dlfcn.h (_dlerror_run): Likewise.
5239         * include/stdio.h (__fortify_fail_abort): Likewise.
5240         * include/time.h (__tz_compute): Likewise.
5241         (__strptime_internal): Likewise.
5242         * intl/gettextP.h (_nl_find_domain): Likewise.
5243         (_nl_load_domain): Likewise.
5244         (_nl_find_msg): Likewise.
5245         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
5246         (EXTRACT_PLURAL_EXPRESSION): Likewise.
5247         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
5248         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
5249         (__gai_find_request): Likewise.
5250         (__gai_remove_request): Likewise.
5251         (__gai_notify): Likewise.
5252         (__gai_notify_only): Likewise.
5253         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
5254         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
5255         (_dl_non_dynamic_init): Likewise.
5256         (_dl_aux_init): Likewise.
5257         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
5258         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
5259         Likewise.
5260         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
5261         (__wcsmbs_clone_conv): Likewise.
5262         (__wcsmbs_named_conv): Likewise.
5264 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5266         [BZ #18822]
5267         * include/stdlib.h (__random): Add attribute_hidden.
5268         (__random_r): Likewise.
5269         (__srandom_r): Likewise.
5270         (__initstate_r): Likewise.
5271         (__setstate_r): Likewise.
5272         (__erand48_r): Likewise.
5273         (__nrand48_r): Likewise.
5274         (__jrand48_r): Likewise.
5275         (__srand48_r): Likewise.
5276         (__seed48_r): Likewise.
5277         (__lcong48_r): Likewise.
5278         (__drand48_iterate): Likewise.
5279         (__setenv): Likewise.
5280         (__unsetenv): Likewise.
5281         (__clearenv): Likewise.
5282         (__ptsname_r): Likewise.
5283         (__posix_openpt): Likewise.
5284         (__add_to_environ): Likewise.
5285         (__realpath): Add libc_hidden_proto.
5286         (__ecvt_r): Likewise.
5287         (__fcvt_r): Likewise.
5288         (__qecvt_r): Likewise.
5289         (__qfcvt_r): Likewise.
5290         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
5291         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
5293 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5295         [BZ #18822]
5296         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
5297         * include/time.h (__mktime_internal): Likewise.
5298         * libio/iolibio.h (__fopen_internal): Likewise.
5300 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
5302         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
5303         pointer in frame.
5304         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
5305         Correct offset used to restore PIC register.
5307 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
5309         [BZ libc/22165]
5310         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
5311         code to load address of __getcontext_ret when generating PIC code.
5313 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5315         * elf/Makefile (tests-static-internal): Add
5316         tst-tls1-static-non-pie.
5317         (LDFLAGS-tst-tls1-static-non-pie): New.
5318         * elf/tst-tls1-static-non-pie.c: New file.
5320 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5322         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
5323         (asinh): Define using libm_alias_double.
5324         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
5325         (cbrt): Define using libm_alias_double.
5326         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
5327         <libm-alias-double.h>.
5328         (copysign): Define using libm_alias_double.
5329         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
5330         (erf): Define using libm_alias_double.
5331         (erfc): Likewise.
5332         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
5333         (expm1): Define using libm_alias_double.
5334         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
5335         (fabs): Define using libm_alias_double.
5336         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
5337         libm_alias_double.
5338         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
5339         <libm-alias-double.h>.
5340         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
5341         libm_alias_double.
5342         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
5343         <libm-alias-double.h>.
5344         (getpayload): Define using libm_alias_double.
5345         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
5346         <libm-alias-double.h>.
5347         (llrint): Define using libm_alias_double.
5348         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
5349         (lrint): Define using libm_alias_double.
5350         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
5351         <libm-alias-double.h>.
5352         (nextup): Define using libm_alias_double.
5353         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
5354         <libm-alias-double.h>.
5355         (roundeven): Define using libm_alias_double.
5356         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
5357         libm_alias_double.
5358         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
5359         <libm-alias-double.h>.
5360         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
5361         using libm_alias_double.
5362         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
5363         (cos): Define using libm_alias_double.
5364         (sin): Likewise.
5365         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
5366         <libm-alias-double.h>.
5367         (sincos): Define using libm_alias_double.
5368         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
5369         (tanh): Define using libm_alias_double.
5370         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
5371         <libm-alias-double.h>.
5372         (totalorder): Define using libm_alias_double.
5373         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
5374         <libm-alias-double.h>.
5375         (totalordermag): Define using libm_alias_double.
5376         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
5377         libm_alias_double.
5378         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
5379         libm_alias_double.
5380         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
5381         <libm-alias-double.h>.
5382         (getpayload): Define using libm_alias_double.
5383         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
5384         <libm-alias-double.h>.
5385         (roundeven): Define using libm_alias_double.
5386         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
5387         <libm-alias-double.h>.
5388         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
5389         <libm-alias-double.h>.
5390         (totalorder): Define using libm_alias_double.
5391         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
5392         <libm-alias-double.h>.
5393         (totalordermag): Define using libm_alias_double.
5394         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
5395         libc compat symbol here.
5396         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
5397         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
5398         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
5399         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
5400         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
5401         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
5402         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
5403         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
5404         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
5405         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
5407 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5409         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
5410         _dl_relocate_static_pie instead of _dl_start to compute load
5411         address in static PIE.  Return 0 if _DYNAMIC is undefined for
5412         static executable.
5414 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5416         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
5417         _DYNAMIC is undefined for static executable.
5419 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5421         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
5423 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5425         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5427 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5429         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
5430         (__ieee754_lgamma_r): Use fabs rather than __fabs.
5431         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
5432         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
5433         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
5434         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
5435         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
5436         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
5437         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
5438         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5439         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5440         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
5441         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5442         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5443         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5444         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5445         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
5447 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5449         * math/bits/cmathcalls.h (cimag): Remove inline.
5450         (creal): Remove inline.
5451         (conj): Remove inline.
5453 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5455         * math/Makefile (type-float-routines): Add e_powf_log2_data.
5456         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
5457         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
5458         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
5459         (issignalingf_inline): Likewise.
5460         (POWF_LOG2_TABLE_BITS): Likewise.
5461         (POWF_LOG2_POLY_ORDER): Likewise.
5462         (POWF_SCALE_BITS): Likewise.
5463         (POWF_SCALE): Likewise.
5464         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
5465         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
5466         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
5468 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5470         * math/Makefile (type-float-routines): Add e_log2f_data.
5471         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
5472         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
5473         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
5474         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
5475         * sysdeps/i386/fpu/e_log2f_data.c: New file.
5476         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
5477         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
5479 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5481         * math/Makefile (type-float-routines): Add e_logf_data.
5482         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
5483         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
5484         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
5485         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
5486         * sysdeps/i386/fpu/e_logf_data.c: New file.
5487         * sysdeps/ia64/fpu/e_logf_data.c: New file.
5488         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
5490 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5492         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
5493         undefined _DYNAMIC in PIE libc.a.
5494         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
5495         Likewse.
5497 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5499         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
5500         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
5501         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
5502         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
5503         (__signbit): Remove.
5504         (__signbitl): Remove.
5505         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
5506         (__signbit): Remove.
5507         (__signbitl): Remove.
5508         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
5509         (__signbit): Remove.
5510         (__signbitl): Remove.
5511         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
5512         (__signbit): Remove.
5513         (__signbitl): Remove.
5514         * sysdeps/tile/bits/mathinline.h: Delete file.
5515         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
5516         (__signbit): Remove.
5517         (__signbitl): Remove.
5519 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5521         * math/math.h: Improve handling of C99 isgreater macros.
5522         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
5523         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
5524         * sysdeps/powerpc/bits/mathinline.h: Likewise.
5525         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5526         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5528 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5530         * sysdeps/aarch64/libm-test-ulps: Update.
5532 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
5534         [BZ #22225]
5535         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5536         math_opt_barrier on argument when doing arithmetic on it.
5537         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5538         Likewise.  Use math_force_eval not math_opt_barrier after
5539         arithmetic.
5540         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
5541         math_opt_barrier on argument when doing arithmetic on it.
5542         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5543         Likewise.
5545 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5547         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
5548         libc_hidden_def.
5549         (__freeifaddrs): Likewise.
5551 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5553         * include/dirent.h (__dirfd): New declaration.
5554         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
5555         alias.
5556         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
5557         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
5558         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
5559         * include/unistd.h (__revoke): New declaration.
5560         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
5561         alias.
5562         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5563         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5564         revoke.
5565         * include/dirent.h (__seekdir): New declaration.
5566         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5567         redefine as weak alias.
5568         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5569         of seekdir.
5570         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5571         and use libc_hidden_def on them.
5572         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5573         them.
5574         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5575         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5576         instead of getifaddrs and freeifaddrs.
5578 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5580         [BZ #18822]
5581         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5582         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5583         (__dso_handle): Remove declaration.
5584         * dlfcn/tstatexit.c (__dso_handle): Removed.
5585         (main): Don't check __dso_handle.
5586         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5587         (main): Don't check __dso_handle.
5588         * include/dso_handle.h: New file.
5589         * malloc/mtrace.c: Include <dso_handle.h>.
5590         (mtrace): Pass __dso_handle directly.
5591         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5592         (__dso_handle): Remove declaration.
5593         (__pthread_atfork): Pass __dso_handle directly.
5594         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5595         (__dso_handle): Removed.
5596         * posix/wordexp-test.c: Include <dso_handle.h>.
5597         (__dso_handle): Remove declaration.
5598         (__app_register_atfork): Pass __dso_handle directly.
5599         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5600         (__dso_handle): Remove declaration.
5601         (at_quick_exit): Pass __dso_handle directly.
5602         * stdlib/atexit.c: Include <dso_handle.h>.
5603         (__dso_handle): Remove declaration.
5604         (atexit): Pass __dso_handle directly.
5605         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5606         (__dso_handle): Removed.
5608 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5610         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5611         using VDSO.
5613 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5615         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5616         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5617         values to correct default value for given type.
5619 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5621         [BZ #22101]
5622         * elf/Makefile (tests): Add tst-debug1.
5623         ($(objpfx)tst-debug1): New.
5624         ($(objpfx)tst-debug1.out): Likewise.
5625         ($(objpfx)tst-debug1mod1.so): Likewise.
5626         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5627         with p_filesz == 0.
5628         * elf/tst-debug1.c: New file.
5630 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5632         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5633         Define using __ifunc.
5635 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5637         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5638         exp2f() values.
5640 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5642         [BZ #22156]
5643         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5645 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5647         * resolv/Makefile (tests-internal): Fix typo in comment.
5649 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5651         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5653 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5655         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5656         Use an union instead of a max_align_t array for __space,
5657         so that __space is the same size on all platforms.
5658         * malloc/scratch_buffer_grow_preserve.c
5659         (__libc_scratch_buffer_grow_preserve): Likewise.
5661         [BZ #22183]
5662         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5663         version to 2.
5664         * posix/Makefile (routines): Add glob-lstat-compat and
5665         glob64-lstat-compat.
5666         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5667         * posix/glob-lstat-compat.c: New file.
5668         * posix/glob64-lstat-compat.c: Likewise.
5669         * posix/tst-glob_lstat_compat.c: Likewise.
5670         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5671         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5672         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5673         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5674         Likewise.
5675         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5676         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5677         * posix/glob.c (glob_lstat): New function.
5678         (glob): Rename to __glob and add versioned symbol to 2.27.
5679         (glob_in_dir): Use glob_lstat.
5680         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5681         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5682         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5683         2.27.
5684         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5685         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5686         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5687         gl_lstat on glob call.
5688         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5689         and glob64 symbols.
5690         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5691         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5692         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5693         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5694         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5695         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5696         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5697         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5698         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5699         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5700         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5701         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5703         Likewise.
5704         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5706         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5707         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5708         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5709         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5710         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5712         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5713         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5714         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5715         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5717 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5719         * configure.ac (AS): Require binutils 2.25 or later.
5720         * configure: Regenerated.
5722 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5724         [BZ #22207]
5725         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5726         VM size.
5728 2017-09-25  DJ Delorie  <dj@redhat.com>
5730         [BZ #22161]
5731         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5732         resetting timeout.
5734 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5736         * sysdeps/ieee754/dbl-64/sincos32.h
5737         [SINCCOS32_H]: Remove define.
5738         [SINCOS32_H]: Define.
5740 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5742         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5743         (exp2f): Likewise.
5744         * math/w_exp2f.c: New file.
5745         * math/w_expf.c: New file.
5746         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5747         * math/w_expf_compat.c (__expf_compat): Likewise.
5748         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5749         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5750         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5751         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5752         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5753         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5754         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5755         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5756         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5757         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5758         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5759         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5760         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5761         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5763         Likewise.
5764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5765         Likewise.
5766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5767         Likewise.
5768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5769         Likewise.
5770         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5771         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5772         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5773         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5774         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5776         Likewise.
5777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5778         Likewise.
5779         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5780         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5781         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5783 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5785         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5786         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5787         (roundtoint, converttoint): Likewise.
5788         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5789         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5790         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5791         * sysdeps/ieee754/flt-32/math_config.h: New file.
5792         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5793         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5794         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5795         * sysdeps/i386/fpu/math_errf.c: New file.
5796         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5797         * sysdeps/ia64/fpu/math_errf.c: New file.
5798         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5799         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5801 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5803         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5804         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5805         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5806         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5807         to make sure that these symbols are defined.
5808         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5809         of <limits.h>
5810         (__need_NULL): Do not define.
5811         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5812         alignment.
5813         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5814         CMGROUP_MAX, cmsgcred): Do not define.
5815         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5816         NULL.
5817         * bits/socket.h: Likewise.
5818         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5819         __gettimeofday instead of gettimeofday.
5820         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5821         instead of settimeofday.
5823 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5825         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5826         (asinhf): Define using libm_alias_float.
5827         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5828         (atanf): Define using libm_alias_float.
5829         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5830         (cbrtf): Define using libm_alias_float.
5831         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5832         (ceilf): Define using libm_alias_float.
5833         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5834         <libm-alias-float.h>.
5835         (copysignf): Define using libm_alias_float.
5836         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5837         (cosf): Define using libm_alias_float.
5838         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5839         (erff): Define using libm_alias_float.
5840         (erfcf): Likewise.
5841         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5842         (expm1f): Define using libm_alias_float.
5843         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5844         (fabsf): Define using libm_alias_float.
5845         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5846         (floorf): Define using libm_alias_float.
5847         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5848         (frexpf): Define using libm_alias_float.
5849         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5850         libm_alias_float.
5851         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5852         <libm-alias-float.h>.
5853         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5854         libm_alias_float.
5855         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5856         <libm-alias-float.h>.
5857         (getpayloadf): Define using libm_alias_float.
5858         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5859         <libm-alias-float.h>.
5860         (llrintf): Define using libm_alias_float.
5861         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5862         <libm-alias-float.h>.
5863         (llroundf): Define using libm_alias_float.
5864         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5865         (logbf): Define using libm_alias_float.
5866         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5867         (lrintf): Define using libm_alias_float.
5868         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5869         (lroundf): Define using libm_alias_float.
5870         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5871         (modff): Define using libm_alias_float.
5872         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5873         <libm-alias-float.h>.
5874         (nearbyintf): Define using libm_alias_float.
5875         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5876         <libm-alias-float.h>.
5877         (nextafterf): Define using libm_alias_float.
5878         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5879         <libm-alias-float.h>.
5880         (nextupf): Define using libm_alias_float.
5881         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5882         <libm-alias-float.h>.
5883         (remquof): Define using libm_alias_float.
5884         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5885         (rintf): Define using libm_alias_float.
5886         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5887         <libm-alias-float.h>.
5888         (roundevenf): Define using libm_alias_float.
5889         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5890         (roundf): Define using libm_alias_float.
5891         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5892         using libm_alias_float.
5893         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5894         <libm-alias-float.h>.
5895         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5896         Define using libm_alias_float.
5897         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5898         <libm-alias-float.h>.
5899         (sincosf): Define using libm_alias_float.
5900         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5901         (sinf): Define using libm_alias_float.
5902         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5903         (tanf): Define using libm_alias_float.
5904         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5905         (tanhf): Define using libm_alias_float.
5906         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5907         <libm-alias-float.h>.
5908         (totalorderf): Define using libm_alias_float.
5909         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5910         <libm-alias-float.h>.
5911         (totalordermagf): Define using libm_alias_float.
5912         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5913         (truncf): Define using libm_alias_float.
5914         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5915         libm_alias_float.
5916         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5917         libm_alias_float.
5919 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5921         [BZ #22146]
5922         math/math.h: Let fpclassify use the builtin in C++ mode, even
5923         when optimazing for size.
5925 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5927         * csu/Makefile (generated): Do not add version-info.h.
5928         (before-compile): Likewise.
5929         (all-Banner-files): Remove variable.
5930         ($(objpfx)version-info.h): Remove rule.
5931         * csu/version.c (banner): Do not include "version-info.h".
5932         * libidn/Banner: Remove.
5933         * manual/contrib.texi (Simon Josefsson): New entry.
5935 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5937         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5938         Remove conditionals on LDBL_MANT_DIG.
5939         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5940         (__ieee754_lgammal_r): Likewise.
5942 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5944         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5945         _Float128 and L().
5946         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5947         _Float128 and L(). Replace _Float128 with long double and L(x)
5948         with xL, throughout the file.
5949         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5950         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5951         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5952         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5954 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5956         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5957         sysdeps/ieee754/ldbl-128ibm.
5958         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5959         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5960         of including it.  Keep _Float128 and L() intact.  These will be
5961         reviewed by a separate patch.
5962         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5963         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5964         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5965         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5967 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5970         (__finitef128): Define to __redirect___finitef128.
5971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5972         (__isinff128): Define to __redirect___isinff128.
5973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5974         (__isnanf128): Define to __redirect___isnanf128.
5976 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5978         * sysdeps/powerpc/powerpc64le/Makefile
5979         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5980         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5982 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5983             Carlos O'Donell  <carlos@redhat.com>
5985         [BZ #22180]
5986         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5987         * stdlib/test-dlclose-exit-race.c: New file.
5988         * stdlib/test-dlclose-exit-race-helper.c: New file.
5989         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5991 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5993         * crypt/Banner: Remove file.
5994         * nptl/Banner: Likewise.
5995         * resolv/Banner: Likewise.
5996         * soft-fp/Banner: Likewise.
5997         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5998         ($(objpfx)version.d): Remove dependency on banner.h.
5999         ($(objpfx)version.os): Likewise.
6000         * nptl/version.c (banner): Do not include banner.h.
6001         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
6002         Jelinek and BIND code.
6004 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
6005             Carlos O'Donell  <carlos@redhat.com>
6007         * support/xdlfcn.h: New file.
6008         * support/xdlfcn.c: New file.
6009         * support/Makefile (libsupport-routines): Add xdlfcn.
6010         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
6012 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
6014         [BZ #20142]
6015         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6016         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
6017         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
6018         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
6019         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6020         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
6021         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
6022         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6024 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
6025             Ricky Zhou  <rickyz@google.com>
6026             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
6028         [BZ #14333]
6029         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
6030         Remove atomics.
6031         (__new_exitfn): Fail registration when we finished at_exit processing.
6032         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
6033         * stdlib/on_exit.c (__on_exit): Likewise.
6034         * stdlib/exit.c (__exit_funcs_done): New variable.
6035         (__run_exit_handlers): Use __exit_funcs_lock.
6036         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
6037         declarations.
6038         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
6039         (test-cxa_atexit-race, test-on_exit-race): New tests.
6040         * stdlib/test-atexit-race-common.c: New file.
6041         * stdlib/test-atexit-race.c: New file.
6042         * stdlib/test-at_quick_exit-race.c: New file.
6043         * stdlib/test-cxa_atexit-race.c: New file.
6044         * stdlib/test-on_exit-race.c: New file.
6046 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6048         * benchtests/Makefile: Add exp2f and log2f benchmarks.
6049         * benchtests/exp2f-inputs: Copy of expf-inputs.
6050         * benchtests/log2f-inputs: Copy of logf-inputs.
6052 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
6054         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
6055         Explicitly take address of first element of array arguments in
6056         call to INLINE_SYSCALL.
6058 2017-09-19  Andreas Schwab  <schwab@suse.de>
6060         [BZ #22134]
6061         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
6062         execveat first.
6063         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
6064         unimplemented.
6065         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
6066         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
6067         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6068         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
6069         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
6070         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
6071         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6072         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
6073         * posix/Makefile (tests): Add tst-fexecve.
6074         * posix/tst-fexecve.c: New file.
6076 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6078         * benchtests/Makefile: Add logf benchmark.
6079         * benchtests/logf-inputs: Add reduced trace from wrf_r.
6081 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6083         * benchtests/Makefile: Add expf benchmark.
6084         * benchtests/expf-inputs: Add reduced trace from wrf_r.
6086 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
6088         * csu/Makefile: Add -funwind-tables to libc-start.c.
6089         * debug/Makefile: Add -funwind-tables to backtrace.c.
6090         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
6091         * sysdeps/arm/Makefile: Likewise.
6092         * sysdeps/i386/Makefile: Likewise.
6093         * sysdeps/m68k/Makefile: Likewise.
6094         * sysdeps/mips/Makefile: Likewise.
6095         * sysdeps/nios2/Makefile: Likewise.
6096         * sysdeps/sh/Makefile: Likewise.
6097         * sysdeps/sparc/Makefile: Likewise.
6099 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
6101         * benchtests/Makefile (bench-math): Add trunc and truncf.
6102         (CFLAGS-bench-trunc.c): New variable.
6103         (CFLAGS-bench-truncf.c): Likewise.
6104         * benchtests/trunc-inputs: New file.
6105         * benchtests/truncf-inputs: Likewise.
6107 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6109         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
6111 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
6113         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
6114         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
6115         redefine.
6116         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
6117         (exp10l): Define as weak alias.
6118         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
6119         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
6120         and redefine.
6121         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
6122         (remainderl): Define as weak alias.
6124         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
6125         (fmal): Define using libm_alias_ldouble.
6126         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
6127         (acoshl): Define using libm_alias_ldouble.
6128         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
6129         (acosl): Define using libm_alias_ldouble.
6130         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
6131         (asinl): Define using libm_alias_ldouble.
6132         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
6133         (atan2l): Define using libm_alias_ldouble.
6134         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
6135         (atanhl): Define using libm_alias_ldouble.
6136         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
6137         (coshl): Define using libm_alias_ldouble.
6138         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
6139         (exp10l): Define using libm_alias_ldouble.
6140         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
6141         (exp2l): Define using libm_alias_ldouble.
6142         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
6143         (expl): Define using libm_alias_ldouble.
6144         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
6145         (fmodl): Define using libm_alias_ldouble.
6146         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
6147         (hypotl): Define using libm_alias_ldouble.
6148         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
6149         (j0l): Define using libm_alias_ldouble.
6150         (y0l): Likewise.
6151         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
6152         (j1l): Define using libm_alias_ldouble.
6153         (y1l): Likewise.
6154         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
6155         (jnl): Define using libm_alias_ldouble.
6156         (ynl): Likewise.
6157         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
6158         (log10l): Define using libm_alias_ldouble.
6159         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
6160         (log2l): Define using libm_alias_ldouble.
6161         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
6162         (logl): Define using libm_alias_ldouble.
6163         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
6164         (powl): Define using libm_alias_ldouble.
6165         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
6166         (remainderl): Define using libm_alias_ldouble.
6167         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
6168         (sinhl): Define using libm_alias_ldouble.
6169         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
6170         (sqrtl): Define using libm_alias_ldouble.
6171         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
6172         (tgammal): Define using libm_alias_ldouble.
6173         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
6174         (exp10l): Do not use long_double_symbol here.
6175         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
6176         [LIBM_SVID_COMPAT] (remainderl): Likewise.
6177         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
6178         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6179         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6180         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6181         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6182         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6183         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6184         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6185         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6186         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6187         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6188         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6189         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6190         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6191         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6192         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6193         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6194         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6195         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6196         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6198 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
6200         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
6201         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
6203 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6205         * io/read.c (read): Add libc_hidden_weak.
6206         * sysdeps/mach/hurd/read.c (read): Likewise.
6207         * io/write.c (write): Likewise.
6208         * sysdeps/mach/hurd/write.c (write): Likewise.
6209         * io/pread64.c (__pread64): Likewise.
6210         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
6211         * posix/pread64.c (__pread64): Add libc_hidden_def.
6213 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6215         * benchtests/scripts/compare_strings.py: New option -g.
6216         (draw_graph): Print a message that a graph is being generated.
6217         (process_results): Generate graph only if -g is passed.
6218         (main): Process option -g.
6220         * benchtests/scripts/compare_strings.py (process_results):
6221         Better spacing for output.
6223         * benchtests/scripts/compare_strings.py: Use argparse.
6224         * benchtests/README: Document existence of compare_strings.py.
6226 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6228         * math/s_fma.c: Include <libm-alias-double.h>.
6229         (fma): Define using libm_alias_double.
6230         * math/s_nextafter.c: Include <libm-alias-double.h>.
6231         (nextafter): Define using libm_alias_double.
6232         * math/w_acos_compat.c: Include <libm-alias-double.h>.
6233         (acos): Define using libm_alias_double.
6234         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
6235         (aocsh): Define using libm_alias_double.
6236         * math/w_asin_compat.c: Include <libm-alias-double.h>.
6237         (asin): Define using libm_alias_double.
6238         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
6239         (atan2): Define using libm_alias_double.
6240         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
6241         (atanh): Define using libm_alias_double.
6242         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
6243         (cosh): Define using libm_alias_double.
6244         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
6245         (exp10): Define using libm_alias_double.
6246         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
6247         (exp2): Define using libm_alias_double.
6248         * math/w_exp_compat.c: Include <libm-alias-double.h>.
6249         (exp): Define using libm_alias_double.
6250         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
6251         (fmod): Define using libm_alias_double.
6252         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
6253         (hypot): Define using libm_alias_double.
6254         * math/w_j0_compat.c: Include <libm-alias-double.h>.
6255         (j0): Define using libm_alias_double.
6256         (y0): Likewise.
6257         * math/w_j1_compat.c: Include <libm-alias-double.h>.
6258         (j1): Define using libm_alias_double.
6259         (y1): Likewise.
6260         * math/w_jn_compat.c: Include <libm-alias-double.h>.
6261         (jn): Define using libm_alias_double.
6262         (yn): Likewise.
6263         * math/w_log10_compat.c: Include <libm-alias-double.h>.
6264         (log10): Define using libm_alias_double.
6265         * math/w_log2_compat.c: Include <libm-alias-double.h>.
6266         (log2): Define using libm_alias_double.
6267         * math/w_log_compat.c: Include <libm-alias-double.h>.
6268         (log): Define using libm_alias_double.
6269         * math/w_pow_compat.c: Include <libm-alias-double.h>.
6270         (pow): Define using libm_alias_double.
6271         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
6272         (remainder): Define using libm_alias_double.
6273         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
6274         (sinh): Define using libm_alias_double.
6275         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
6276         (sqrt): Define using libm_alias_double.
6277         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
6278         (tgamma): Define using libm_alias_double.
6279         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
6280         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
6281         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
6282         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
6283         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
6284         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
6285         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
6286         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
6287         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
6288         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
6289         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
6290         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
6291         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
6292         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
6293         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
6294         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
6295         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
6296         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
6297         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
6298         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
6299         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
6300         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
6301         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
6302         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
6303         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
6305         * math/e_acoshl.c: Remove.
6306         * math/e_acosl.c: Likewise.
6307         * math/e_asinl.c: Likewise.
6308         * math/e_atan2l.c: Likewise.
6309         * math/e_atanhl.c: Likewise.
6310         * math/e_coshl.c: Likewise.
6311         * math/e_expl.c: Likewise.
6312         * math/e_fmodl.c: Likewise.
6313         * math/e_gammal_r.c: Likewise.
6314         * math/e_hypotl.c: Likewise.
6315         * math/e_j0l.c: Likewise.
6316         * math/e_j1l.c: Likewise.
6317         * math/e_jnl.c: Likewise.
6318         * math/e_lgammal_r.c: Likewise.
6319         * math/e_log10l.c: Likewise.
6320         * math/e_log2l.c: Likewise.
6321         * math/e_logl.c: Likewise.
6322         * math/e_powl.c: Likewise.
6323         * math/e_rem_pio2l.c: Likewise.
6324         * math/e_sinhl.c: Likewise.
6325         * math/e_sqrtf128.c: Likewise.
6326         * math/e_sqrtl.c: Likewise.
6327         * math/k_cosl.c: Likewise.
6328         * math/k_sinl.c: Likewise.
6329         * math/k_tanl.c: Likewise.
6330         * math/s_asinhl.c: Likewise.
6331         * math/s_atanl.c: Likewise.
6332         * math/s_cbrtl.c: Likewise.
6333         * math/s_erfl.c: Likewise.
6334         * math/s_expm1l.c: Likewise.
6335         * math/s_log1pl.c: Likewise.
6336         * math/s_tanhl.c: Likewise.
6338 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6340         [BZ #21745]
6341         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
6342         [$(subdir) = math] (sysdep_calls): New variable.  Has the
6343         previous contents of sysdep_routines, but re-sorted..
6344         [$(subdir) = math] (sysdep_routines): Re-use the contents from
6345         sysdep_calls.
6346         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
6347         defined in sysdep_calls and replace by the respective m_* names.
6348         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
6349         (compat_symbol): Undefine to avoid duplicated compat symbols in
6350         libc.
6352 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6354         * math/s_fmaf.c: Include <libm-alias-float.h>.
6355         (fmaf): Define using libm_alias_float.
6356         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
6357         (acosf): Define using libm_alias_float.
6358         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
6359         (acoshf): Define using libm_alias_float.
6360         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
6361         (asinf): Define using libm_alias_float.
6362         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
6363         (atan2f): Define using libm_alias_float.
6364         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
6365         (atanhf): Define using libm_alias_float.
6366         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
6367         (coshf): Define using libm_alias_float.
6368         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
6369         (exp10f): Define using libm_alias_float.
6370         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
6371         (fmodf): Define using libm_alias_float.
6372         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
6373         (hypotf): Define using libm_alias_float.
6374         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
6375         (j0f): Define using libm_alias_float.
6376         (y0f): Likewise.
6377         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
6378         (j1f): Define using libm_alias_float.
6379         (y1f): Likewise.
6380         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
6381         (jnf): Define using libm_alias_float.
6382         (ynf): Likewise.
6383         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
6384         (log10f): Define using libm_alias_float.
6385         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
6386         (log2f): Define using libm_alias_float.
6387         * math/w_logf_compat.c: Include <libm-alias-float.h>.
6388         (logf): Define using libm_alias_float.
6389         * math/w_powf_compat.c: Include <libm-alias-float.h>.
6390         (powf): Define using libm_alias_float.
6391         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
6392         (remainderf): Define using libm_alias_float.
6393         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
6394         (sinhf): Define using libm_alias_float.
6395         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
6396         (sqrtf): Define using libm_alias_float.
6397         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
6398         (tgammaf): Define using libm_alias_float.
6400 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6402         * include/math.h (roundeven): Change hidden_proto call to
6403         __roundeven.
6404         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
6405         alias.
6406         [NO_LONG_DOUBLE] (__j0l): New strong alias.
6407         (y0): Rename to __y0 and define as weak alias.
6408         [NO_LONG_DOUBLE] (__y0l): New strong alias.
6409         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
6410         alias.
6411         (y0f): Rename to __y0f and define as weak alias.
6412         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
6413         alias.
6414         [NO_LONG_DOUBLE] (__j1l): New strong alias.
6415         (y1): Rename to __y1 and define as weak alias.
6416         [NO_LONG_DOUBLE] (__y1l): New strong alias.
6417         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
6418         alias.
6419         (y1f): Rename to __y1f and define as weak alias.
6420         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
6421         alias.
6422         [NO_LONG_DOUBLE] (__jnl): New strong alias.
6423         (yn): Rename to __yn and define as weak alias.
6424         [NO_LONG_DOUBLE] (__ynl): New strong alias.
6425         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
6426         alias.
6427         (ynf): Rename to __ynf and define as weak alias.
6428         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
6429         (fromfp): Define as weak alias.
6430         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
6431         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
6432         (fromfpx): Define as weak alias.
6433         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
6434         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
6435         __getpayload and define as weak alias.
6436         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6437         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
6438         __roundeven and define as weak alias.
6439         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6440         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
6441         __setpayload.
6442         (setpayload): Define as weak alias.
6443         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
6444         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
6445         __setpayloadsig.
6446         (setpayloadsig): Define as weak alias.
6447         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
6448         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
6449         __totalorder and define as weak alias.
6450         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6451         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
6452         to __totalordermag and define as weak alias.
6453         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6454         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
6455         (ufromfp): Define as weak alias.
6456         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
6457         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
6458         __ufromfpx.
6459         (ufromfpx): Define as weak alias.
6460         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
6461         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
6462         Rename to __getpayload and define as weak alias.
6463         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6464         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
6465         Rename to __roundeven and define as weak alias.
6466         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6467         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
6468         Rename to __totalorder and define as weak alias.
6469         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6470         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
6471         (totalordermag): Rename to __totalordermag and define as weak
6472         alias.
6473         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6474         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
6475         macro.
6476         (__roundevenl): Likewise.
6477         (__totalorderl): Likewise.
6478         (__totalordermagl): Likewise
6479         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
6480         __fromfpf128.
6481         (fromfpf128): Define as weak alias.
6482         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
6483         __fromfpxf128.
6484         (fromfpxf128): Define as weak alias.
6485         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
6486         __setpayloadf128.
6487         (setpayloadf128): Define as weak alias.
6488         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
6489         __setpayloadsigf128.
6490         (setpayloadsigf128): Define as weak alias.
6491         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
6492         __ufromfpf128.
6493         (ufromfpf128): Define as weak alias.
6494         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
6495         __ufromfpxf128.
6496         (ufromfpxf128): Define as weak alias.
6497         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
6498         (fromfpf): Define as weak alias.
6499         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
6500         __fromfpxf.
6501         (fromfpxf): Define as weak alias.
6502         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
6503         __getpayloadf and define as weak alias.
6504         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
6505         __roundevenf and define as weak alias.
6506         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
6507         __setpayloadf.
6508         (setpayloadf): Define as weak alias.
6509         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
6510         __setpayloadsigf.
6511         (setpayloadsigf): Define as weak alias.
6512         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
6513         __totalorderf and define as weak alias.
6514         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
6515         Rename to __totalordermagf and define as weak alias.
6516         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
6517         __ufromfpf.
6518         (ufromfpf): Define as weak alias.
6519         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
6520         __ufromfpxf.
6521         (ufromfpxf): Define as weak alias.
6522         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
6523         __fromfpl.
6524         (fromfpl): Define as weak alias.
6525         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
6526         __fromfpxl.
6527         (fromfpxl): Define as weak alias.
6528         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
6529         to __getpayloadl and define as weak alias.
6530         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
6531         __roundevenl and define as weak alias.
6532         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
6533         __setpayloadl.
6534         (setpayloadl): Define as weak alias.
6535         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
6536         __setpayloadsigl.
6537         (setpayloadsigl): Define as weak alias.
6538         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
6539         to __totalorderl and define as weak alias.
6540         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
6541         Rename to __totalordermagl and define as weak alias.
6542         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
6543         __ufromfpl.
6544         (ufromfpl): Define as weak alias.
6545         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
6546         __ufromfpxl.
6547         (ufromfpxl): Define as weak alias.
6548         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
6549         __fromfpl.
6550         (fromfpl): Define as weak alias.
6551         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
6552         __fromfpxl.
6553         (fromfpxl): Define as weak alias.
6554         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
6555         Rename to __getpayloadl and define as weak alias.
6556         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
6557         to __roundevenl and define as weak alias.  Call __roundeven
6558         instead of roundeven.
6559         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
6560         __setpayloadl.
6561         (setpayloadl): Define as weak alias.
6562         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6563         __setpayloadsigl.
6564         (setpayloadsigl): Define as weak alias.
6565         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6566         Rename to __totalorderl and define as weak alias.
6567         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6568         Rename to __totalordermagl and define as weak alias.
6569         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6570         __ufromfpl.
6571         (ufromfpl): Define as weak alias.
6572         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6573         __ufromfpxl.
6574         (ufromfpxl): Define as weak alias.
6575         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6576         __fromfpl.
6577         (fromfpl): Define as weak alias.
6578         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6579         __fromfpxl.
6580         (fromfpxl): Define as weak alias.
6581         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6582         __getpayloadl and define as weak alias.
6583         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6584         __roundevenl and define as weak alias.
6585         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6586         __setpayloadl.
6587         (setpayloadl): Define as weak alias.
6588         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6589         __setpayloadsigl.
6590         (setpayloadsigl): Define as weak alias.
6591         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6592         __totalorderl and define as weak alias.
6593         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6594         Rename to __totalordermagl and define as weak alias.
6595         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6596         __ufromfpl.
6597         (ufromfpl): Define as weak alias.
6598         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6599         __ufromfpxl.
6600         (ufromfpxl): Define as weak alias.
6602 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6604         * benchtests/bench-string.h (realloc_bufs): New function.
6605         (test_init): Call it.
6606         * benchtests/bench-memset-large.c (do_test): Likewise.
6607         * benchtests/bench-memset.c (do_test): Likewise.
6609         * benchtests/bench-memset-large.c: Print output in JSON
6610         format.
6611         * benchtests/bench-memset.c: Likewise.
6613 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6615         [BZ #21084]
6616         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6617         * iconvdata/Makefile: Add IBM858.
6618         * iconvdata/gconv-modules: Likewise.
6619         * iconvdata/tst-tables.sh: Likewise.
6620         * iconvdata/ibm858.c: New file.
6621         * localedata/charmaps/IBM858: Likewise.
6623 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6625         [BZ #22023]
6626         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6627         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6629 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6631         [BZ #22112]
6632         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6633         and add tel_int_fmt.
6635 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6637         * sysdeps/generic/libm-alias-float128.h: New file.
6638         * sysdeps/generic/math-type-macros-float128.h: Include
6639         <libm-alias-float128.h>.
6640         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6642 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6644         * sysdeps/generic/libm-alias-ldouble.h: New file.
6645         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6646         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6647         * sysdeps/generic/math-type-macros-ldouble.h: Include
6648         <libm-alias-ldouble.h>.
6649         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6650         libm_alias_ldouble.
6652 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6654         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6655         * math/w_exp_compat.c: ... here.
6656         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6657         * math/w_expf_compat.c: ... here.
6658         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6659         * math/w_expl_compat.c: ... here.
6660         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6661         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6662         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6663         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6665 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6667         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6668         redefine.
6669         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6670         macro.
6671         (ldexpl): Only define as compat symbol for libc, not libm.
6672         (scalbnl): Define as compat symbol for libc here.
6673         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6674         define for [IS_IN (libc)].
6675         (__ldexpl_2): Remove alias.
6676         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6677         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6678         name in long_double_symbol call.
6679         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6680         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6681         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6682         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6683         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6684         Remove macro.
6685         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6686         Define as compat symbol.
6688 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6690         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6691         * sysdeps/unix/sysv/linux/alpha/Makefile
6692         [$(subdir) = csu] (sysdep_routines): Remove rule.
6694 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6696         * sysdeps/generic/libm-alias-double.h: New file.
6697         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6698         * sysdeps/generic/math-type-macros-double.h: Include
6699         <libm-alias-double.h>.
6700         [declare_mgen_alias] (declare_mgen_alias): Define to use
6701         libm_alias_double.
6702         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6703         (M_LIBM_NEED_COMPAT): Remove macro.
6704         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6705         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6706         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6707         code.
6708         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6709         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6710         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6711         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6712         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6713         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6714         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6715         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6716         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6717         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6718         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6719         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6720         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6721         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6722         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6723         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6724         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6725         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6726         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6727         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6728         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6729         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6730         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6731         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6732         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6733         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6734         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6735         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6736         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6737         macro.
6738         (declare_mgen_alias): New macro.
6739         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6740         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6742         (M_LIBM_NEED_COMPAT): Remove macro.
6743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6744         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6745         <first-versions.h>.
6746         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6747         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6749 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6751         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6752         (declare_mgen_alias_2): Remove.
6753         * sysdeps/generic/math-type-macros-double.h
6754         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6755         Likewise.
6756         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6757         alias.
6758         (ldexp): Define with declare_mgen_alias.
6759         (scalbn): Likewise.
6761 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6763         * grp/initgroups.c: Include config.h.
6764         (DEFAULT_CONFIG): New macro.
6765         (internal_getgrouplist): Use DEFAULT_CONFIG.
6766         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6767         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6768         (DEFAULT_DEFCONFIG): New macro.
6769         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6770         * nss/grp-lookup.c: Include config.h
6771         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6772         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6773         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6774         * manual/nss.texi: Update default values section.
6776 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6778         [BZ #21967]
6779         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6780         New.
6781         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6782         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6783         Handle MathVec_Prefer_No_AVX512.
6784         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6785         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6786         is set.
6788 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6790         * posix/sched_primax.c (__sched_get_priority_max): Add
6791         libc_hidden_def.
6792         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6793         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6794         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6795         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6796         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6797         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6798         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6799         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6800         Add aliases.
6802 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6804         * sysdeps/generic/libm-alias-float.h: New file.
6805         * sysdeps/generic/math-type-macros-float.h: Include
6806         <libm-alias-float.h>.
6807         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6809 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6811         [BZ #22093]
6812         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6813         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6814         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6815         (HWCAP_IMPORTANT): Likewise.
6816         (HWCAP_X86_64): New enum.
6817         (HWCAP_X86_AVX512_1): Updated.
6818         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6819         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6820         (modules-names): Add x86_64/tst-x86_64mod-1.
6821         (LDFLAGS-tst-x86_64mod-1.so): New.
6822         ($(objpfx)tst-x86_64-1): Likewise.
6823         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6824         (tst-x86_64-1-clean): Likewise.
6825         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6826         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6828 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6830         * po/sv.po: Update translations.
6831         * po/fr.po: Likewise.
6833 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6835         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6836         seconds.
6837         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6838         seconds.
6839         * elf/rtld-Rules: Fix $(error) use.
6841 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6843         [BZ #14925]
6844         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6845         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6846         * localedata/locales/bn_BD: “Bengali” was still used in some
6847         comments. Change it to “Bangla”.
6849 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6851         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6853 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6855         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6856         thunderx2t99p1 to list of cpu names.
6857         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6858         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6860 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6862         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6863         Use strcmp instead of tunable_is_name.
6865 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6867         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6868         (F_GET_RW_HINT): New macro.
6869         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6870         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6871         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6872         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6873         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6874         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6875         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6876         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6877         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6879         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6880         (F_ADD_SEALS): New macro.
6881         [__USE_GNU] (F_GET_SEALS): Likewise.
6882         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6883         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6884         [__USE_GNU] (F_SEAL_GROW): Likewise.
6885         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6887 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6889         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6890         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6891         * posix/glob_internal.h (__glob_pattern_type):
6892         * posix/glob.c (glob):
6893         * posix/glob_pattern_p.c (__glob_pattern_p):
6894         Use them.
6896         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6897         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6898         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6899         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6900         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6902         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6903         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6904         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6905         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6906         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6907         * sysdeps/wordsize-64/glob.c: Likewise.
6908         * sysdeps/wordsize-64/glob64.c: Likewise.
6909         * sysdeps/wordsize-64/globfree.c: Likewise.
6910         * sysdeps/wordsize-64/globfree64.c: Likewise.
6911         * sysdeps/unix/sysv/linux/glob.c: New file.
6912         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6913         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6914         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6915         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6916         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6917         adds !GLOB_NO_OLD_VERSION as an extra condition.
6918         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6919         using relative path instead of absolute one.
6920         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6921         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6922         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6923         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6924         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6925         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6927         [BZ #1062]
6928         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6929         (glob): Use the same scratch buffer for both getlogin_r and
6930         getpwnam_r.  Don’t require preallocation of the login name.  This
6931         simplifies storage allocation, and corrects the handling of
6932         long login names.
6934         [BZ #1062]
6935         * posix/glob.c (glob): Port recent patches to platforms
6936         lacking getpwnam_r.
6937         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6938         returns an error number rather than setting errno.
6940         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6941         instead of GCC extension.
6942         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6943         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6944         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6946         [BZ #866]
6947         [BZ #1062]
6948         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6949         * posix/bug-glob1.c: Remove file.
6950         * posix/tst-glob_symlinks.c: New file.
6951         * posix/glob.c (__lstat64): New macro.
6952         (is_dir): New function.
6953         (glob, glob_in_dir): Match symlinks even if they are dangling.
6954         (link_stat, link_exists_p): Remove.  All uses removed.
6956         [BZ #1062]
6957         [BZ #19971]
6958         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6959         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6960         All uses removed.
6962         [BZ #1062]
6963         CVE-2017-15671
6964         * posix/Makefile (routines): Add globfree, globfree64, and
6965         glob_pattern_p.
6966         * posix/flexmember.h: New file.
6967         * posix/glob_internal.h: Likewise.
6968         * posix/glob_pattern_p.c: Likewise.
6969         * posix/globfree.c: Likewise.
6970         * posix/globfree64.c: Likewise.
6971         * sysdeps/gnu/globfree64.c: Likewise.
6972         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6973         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6974         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6975         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6976         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6977         * sysdeps/wordsize-64/globfree.c: Likewise.
6978         * sysdeps/wordsize-64/globfree64.c: Likewise.
6979         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6980         [NDEBUG): Remove comments.
6981         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6982         (dirent_type): New type.  Use uint_fast8_t not
6983         uint8_t, as C99 does not require uint8_t.
6984         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6985         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6986         unless it is needed; this saves a byte on platforms lacking d_ino.
6987         (readdir_result_type, readdir_result_skip_entry):
6988         New functions, replacing ...
6989         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6990          these functions, which were removed.  This makes the callers
6991         easier to read.  All callers changed.
6992         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6993         (size_add_wrapv, glob_use_alloca): New static functions.
6994         (glob, glob_in_dir): Check for size_t overflow in several places,
6995         and fix some size_t checks that were not quite right.
6996         Remove old code using SHELL since Bash no longer
6997         uses this.
6998         (glob, prefix_array): Separate MS code better.
6999         (glob_in_dir): Remove old Amiga and VMS code.
7000         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
7001         separate files.
7002         (glob_in_dir): Do not rely on undefined behavior in accessing
7003         struct members beyond their bounds.  Use a flexible array member
7004         instead
7005         (link_stat): Rename from link_exists2_p and return -1/0 instead of
7006         0/1.  Caller changed.
7007         (glob): Fix memory leaks.
7008         * posix/glob64 (globfree64): Move to separate file.
7009         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
7010         (globfree64): Remove hidden alias.
7011         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
7012         oldglob.
7013         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
7014         separate file.
7015         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
7016         define.
7017         Move compat code to separate file.
7018         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
7019         separate file.
7021 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7023         * resolv/tst-resolv-qtypes.c (domain): Changed to
7024         "const char domain[] =".
7026 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
7028         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7029         version to 3.1.6.
7031         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
7032         (TCP_MD5SIG_EXT): Likewise.
7033         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
7034         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
7035         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
7037         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
7039 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
7041         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
7043 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
7045         [BZ #22100]
7046         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
7048 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7050         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
7051         before assuming that the file is empty.  Avoid testing buffer content
7052         when nread == 0.
7054 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7056         [BZ #18858]
7057         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
7058         Remove define.
7059         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
7060         Likewise.
7061         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
7062         Likewise.
7063         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
7064         Likewise.
7065         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
7066         Likewise.
7067         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
7068         Likewise.
7069         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
7070         Likewise.
7072 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7074         * malloc/dynarray_emplace_enlarge.c
7075         (__libc_dynarray_emplace_enlarge): Add missing else.
7077 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7079         [BZ #22096]
7080         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
7081         case of failure to obtain the global conf object.
7083 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7085         [BZ #22095]
7086         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
7087         dynarray allocation failure.
7089 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7091         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
7092         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
7093         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
7094         New functions.
7095         (response): Call them.  Add 'p', '6' flag processing.
7096         (test_reverse): New function.
7097         (test_get2_any): Call it.
7098         (test_no_inet6): Add 'p' test.
7099         (test_inet6): Likewise.
7101 2017-09-06  Florian Weimer  <fweimer@redhat.com>
7103         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
7104         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
7105         the QNAME.
7106         (test_gai): Adjust query names.  Add additional tests.
7107         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
7108         test_get2.  Adjust query names.  Add additional tests.
7109         (test_no_inet6): New function, extracted from threadfunc.
7110         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
7111         Add additional tests.
7113 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
7115         [BZ #22070]
7116         * localedata/unicode-gen/utf8_gen.py: Set the width for
7117         characters with Prepended_Concatenation_Mark property to 1
7118         * localedata/charmaps/UTF-8: Updated using the improved script.
7120 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
7122         [BZ #21750]
7123         * localedata/unicode-gen/utf8_gen.py: Improve the script to
7124         use the range notation for all ranges of neighbouring characters
7125         with the same width.
7127 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7129         * sysdeps/generic/math-type-macros-double.h: Include
7130         <math-svid-compat.h>.
7131         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7132         * sysdeps/generic/math-type-macros-float.h: Include
7133         <math-svid-compat.h>.
7134         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7135         * sysdeps/generic/math-type-macros-ldouble.h: Include
7136         <math-svid-compat.h>.
7137         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
7138         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
7139         condition.
7140         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
7141         * math/w_acosf_compat.c: Likewise.
7142         * math/w_acosh_compat.c: Likewise.
7143         * math/w_acoshf_compat.c: Likewise.
7144         * math/w_acoshl_compat.c: Likewise.
7145         * math/w_acosl_compat.c: Likewise.
7146         * math/w_asin_compat.c: Likewise.
7147         * math/w_asinf_compat.c: Likewise.
7148         * math/w_asinl_compat.c: Likewise.
7149         * math/w_atan2_compat.c: Likewise.
7150         * math/w_atan2f_compat.c: Likewise.
7151         * math/w_atan2l_compat.c: Likewise.
7152         * math/w_atanh_compat.c: Likewise.
7153         * math/w_atanhf_compat.c: Likewise.
7154         * math/w_atanhl_compat.c: Likewise.
7155         * math/w_cosh_compat.c: Likewise.
7156         * math/w_coshf_compat.c: Likewise.
7157         * math/w_coshl_compat.c: Likewise.
7158         * math/w_exp10_compat.c: Likewise.
7159         * math/w_exp10f_compat.c: Likewise.
7160         * math/w_exp10l_compat.c: Likewise.
7161         * math/w_exp2_compat.c: Likewise.
7162         * math/w_exp2f_compat.c: Likewise.
7163         * math/w_exp2l_compat.c: Likewise.
7164         * math/w_fmod_compat.c: Likewise.
7165         * math/w_fmodf_compat.c: Likewise.
7166         * math/w_fmodl_compat.c: Likewise.
7167         * math/w_hypot_compat.c: Likewise.
7168         * math/w_hypotf_compat.c: Likewise.
7169         * math/w_hypotl_compat.c: Likewise.
7170         * math/w_j0_compat.c: Likewise.
7171         * math/w_j0f_compat.c: Likewise.
7172         * math/w_j0l_compat.c: Likewise.
7173         * math/w_j1_compat.c: Likewise.
7174         * math/w_j1f_compat.c: Likewise.
7175         * math/w_j1l_compat.c: Likewise.
7176         * math/w_jn_compat.c: Likewise.
7177         * math/w_jnf_compat.c: Likewise.
7178         * math/w_jnl_compat.c: Likewise.
7179         * math/w_lgamma_r_compat.c: Likewise.
7180         * math/w_lgammaf_r_compat.c: Likewise.
7181         * math/w_lgammal_r_compat.c: Likewise.
7182         * math/w_log10_compat.c: Likewise.
7183         * math/w_log10f_compat.c: Likewise.
7184         * math/w_log10l_compat.c: Likewise.
7185         * math/w_log2_compat.c: Likewise.
7186         * math/w_log2f_compat.c: Likewise.
7187         * math/w_log2l_compat.c: Likewise.
7188         * math/w_log_compat.c: Likewise.
7189         * math/w_logf_compat.c: Likewise.
7190         * math/w_logl_compat.c: Likewise.
7191         * math/w_pow_compat.c: Likewise.
7192         * math/w_powf_compat.c: Likewise.
7193         * math/w_powl_compat.c: Likewise.
7194         * math/w_remainder_compat.c: Likewise.
7195         * math/w_remainderf_compat.c: Likewise.
7196         * math/w_remainderl_compat.c: Likewise.
7197         * math/w_sinh_compat.c: Likewise.
7198         * math/w_sinhf_compat.c: Likewise.
7199         * math/w_sinhl_compat.c: Likewise.
7200         * math/w_sqrt_compat.c: Likewise.
7201         * math/w_sqrtf_compat.c: Likewise.
7202         * math/w_sqrtl_compat.c: Likewise.
7203         * math/w_tgamma_compat.c: Likewise.
7204         * math/w_tgammaf_compat.c: Likewise.
7205         * math/w_tgammal_compat.c: Likewise.
7206         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
7207         [LIBM_SVID_COMPAT].
7208         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
7209         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
7210         [LIBM_SVID_COMPAT].
7211         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
7212         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
7213         [LIBM_SVID_COMPAT].
7214         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
7215         * sysdeps/i386/fpu/w_sqrt.c: New file.
7216         * sysdeps/ia64/fpu/w_acos.c: Likewise.
7217         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
7218         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
7219         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
7220         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
7221         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
7222         * sysdeps/ia64/fpu/w_asin.c: Likewise.
7223         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
7224         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
7225         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
7226         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
7227         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
7228         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
7229         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
7230         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
7231         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
7232         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
7233         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
7234         * sysdeps/ia64/fpu/w_exp.c: Likewise.
7235         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
7236         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
7237         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
7238         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
7239         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
7240         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
7241         * sysdeps/ia64/fpu/w_expf.c: Likewise.
7242         * sysdeps/ia64/fpu/w_expl.c: Likewise.
7243         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
7244         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
7245         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
7246         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
7247         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
7248         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
7249         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
7250         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
7251         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
7252         * sysdeps/ia64/fpu/w_log.c: Likewise.
7253         * sysdeps/ia64/fpu/w_log10.c: Likewise.
7254         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
7255         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
7256         * sysdeps/ia64/fpu/w_log2.c: Likewise.
7257         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
7258         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
7259         * sysdeps/ia64/fpu/w_logf.c: Likewise.
7260         * sysdeps/ia64/fpu/w_logl.c: Likewise.
7261         * sysdeps/ia64/fpu/w_pow.c: Likewise.
7262         * sysdeps/ia64/fpu/w_powf.c: Likewise.
7263         * sysdeps/ia64/fpu/w_powl.c: Likewise.
7264         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
7265         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
7266         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
7267         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
7268         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
7269         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
7270         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
7271         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
7272         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
7273         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
7274         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
7275         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
7276         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
7277         [LIBM_SVID_COMPAT].
7278         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7279         * sysdeps/ieee754/k_standard.c: Likewise.
7280         * sysdeps/ieee754/k_standardf.c: Likewise.
7281         * sysdeps/ieee754/k_standardl.c: Likewise.
7282         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7283         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7284         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7285         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
7286         long_double_symbol call on [LIBM_SVID_COMPAT].
7287         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
7288         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
7289         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
7290         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
7291         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
7292         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
7293         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
7294         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
7295         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
7296         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
7297         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
7298         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7299         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
7300         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
7301         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
7302         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
7303         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
7304         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
7305         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
7306         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
7307         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
7308         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
7310 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
7312         * include/shlib-compat.h (TEST_COMPAT): New Macro.
7313         * malloc/tst-mallocstate.c: Convert from test-skeleton
7314         to test-driver.  Ifdef code using TEST_COMPAT macro.
7315         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
7316         * math/test-matherr.c: Likewise.
7318 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7320         [BZ #22086]
7321         * debug/pcprofiledump.c (main): Use byte-swapped mask when
7322         comparing word with byte-swapped constant.
7324 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
7326         [BZ #20498]
7327         * locale/iso-639.def: add Miskito.
7328         * localedata/SUPPORTED: Add miq_NI/UTF-8.
7329         * localedata/locales/miq_NI: New file.
7331 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
7333         [BZ #18822]
7334         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
7335         (__mkdir): Likewise.
7336         * io/chmod.c (__chmod): Add libc_hidden_def.
7337         * io/mkdir.c (__mkdir): Likewise.
7338         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
7339         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
7340         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
7341         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
7343 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7345         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7346         version to 4.13.
7348         [BZ #22082]
7349         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
7350         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
7352 2017-09-04  Florian Weimer  <fweimer@redhat.com>
7354         * math/math.h: Issue warning if log is defined.
7356 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7358         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7359         kernel version to 4.13.
7361 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7363         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
7364         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
7365         parameter.
7366         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
7367         just <bits/types.h>.
7368         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
7369         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
7370         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
7371         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
7372         * misc/preadv2.c: Include <errno.h>.
7373         * misc/preadv64v2.c: Include <errno.h>.
7374         * misc/pwritev2.c: Include <errno.h>.
7375         * misc/pwritev64v2.c: Include <errno.h>.
7376         * sysdeps/posix/preadv2.c: Include <errno.h>.
7377         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
7378         Fix <unistd.h> inclusion.
7379         * sysdeps/posix/pwritev2.c: Include <errno.h>.
7380         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
7381         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
7382         __strtoul_internal): New functions.
7383         * sysdeps/posix/pause.c: Include <sigsetops.h>.
7384         * sysdeps/posix/system.c: Include <sigsetops.h>.
7385         * sysdeps/mach/hurd/i386/Makefile
7386         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
7387         [$(subdir) = csu] (sysdep-only-routines): Likewise.
7388         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
7389         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
7390         __feraiseexcept_renamed to feraiseexcept instead of
7391         __GI_feraiseexcept.
7392         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
7393         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
7394         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
7395         RWF_NOWAIT): Define to 0 if undefined already.
7396         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
7397         boils down to 0.
7398         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
7399         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
7401 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7403         * manual/math.texi (pow10): Do not document.
7404         (pow10f): Likewise.
7405         (pow10l): Likewise.
7406         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
7407         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
7408         * math/libm-test-exp10.inc (pow10_test): Remove.
7409         (do_test): Do not call pow10.
7410         * math/w_exp10_compat.c (pow10): Make into compat symbol.
7411         [NO_LONG_DOUBLE] (pow10l): Likewise.
7412         * math/w_exp10f_compat.c (pow10f): Likewise.
7413         * math/w_exp10l_compat.c (pow10l): Likewise.
7414         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
7415         (pow10): Make into compat symbol.
7416         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
7417         (pow10f): Make into compat symbol.
7418         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
7419         (pow10l): Make into compat symbol.
7420         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
7421         pow10.
7422         (CFLAGS-nldbl-pow10.c): Remove variable..
7423         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
7424         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
7425         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
7426         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
7427         Undefine and redefine.
7428         (pow10l): Make into compat symbol.
7429         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
7430         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
7431         * sysdeps/arm/libm-test-ulps: Likewise.
7432         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
7433         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7434         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7435         * sysdeps/microblaze/libm-test-ulps: Likewise.
7436         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
7437         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7438         * sysdeps/nios2/libm-test-ulps: Likewise.
7439         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7440         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
7441         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7442         * sysdeps/sh/libm-test-ulps: Likewise.
7443         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7444         * sysdeps/tile/libm-test-ulps: Likewise.
7445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7447 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7449         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
7451 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7453         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
7454         "../ChangeLog.old/ChangeLog.8".
7455         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
7456         "../ChangeLog.old/ChangeLog.14".
7458 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7460         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
7461         Threads Library.
7463 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7465         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
7467 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7469         * csu/version.c (banner): Remove "by Roland McGrath et al.".
7470         * nptl/Banner: Remove "by Ulrich Drepper et al.".
7472 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7474         * stdlib/tst-atexit-common.c (do_test): Test support for at least
7475         32 atexit handlers.
7477 2017-09-01  Zack Weinberg  <zackw@panix.com>
7479         * math/math.h (HUGE_VAL): Improve commentary.
7481 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7482             Andreas Schwab  <schwab@suse.de>
7484         [BZ #21530]
7485         * include/stdio.h (__gen_tempfd): New function.
7486         * stdio-common/Makefile (routines): Add gentempfd.
7487         * stdio-common/gentempfd.c: New file.
7488         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
7489         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
7490         unnamed file first.
7492 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7494         [BZ #21915]
7495         [BZ #21922]
7496         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
7497         result to determine success or failure, not the errno value.
7498         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
7499         (tst-nss-files-hosts-erange): Link with -ldl.
7500         * nss/tst-nss-files-hosts-erange.c: New file.
7501         * nss/tst-resolv-basic.c (response): Handle nodata.example.
7502         (do_test): Add NO_DATA tests.
7503         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
7504         (do_test): Call it.
7506 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7508         [BZ #21922]
7509         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
7510         coming from gethostbyname2_r.
7512 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7514         * support/namespace.h (struct support_chroot_configuration): Add
7515         hosts, host_conf.
7516         (struct support_chroot): Add path_hosts, path_host_conf.
7517         * support/support_chroot.c (write_file): New function.
7518         (support_chroot_create): Call it to process /etc/resolv.conf,
7519         /etc/hosts, /etc/host.conf.
7520         (support_chroot_free): Update.
7522 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
7525         status indicates it is set.
7527 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7529         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
7530         function lookup failures more reliable.
7532 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7534         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
7535         (getcanonname): Likewise.
7536         (gaih_inet): Likewise.
7538 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7540         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
7541         (getcanonname): Likewise.
7542         (gaih_inet): Likewise.
7544 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7545             Richard Henderson <rth@twiddle.net>
7547         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
7548         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
7549         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
7550         (IREG_SIZE, OREG_SIZE): New macros.
7551         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
7552         (IREG_SIZE, OREG_SIZE): New macros.
7553         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
7554         (IREG_SIZE): New macro.
7555         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
7556         (IREG_SIZE): New macro.
7557         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
7558         New includes.
7559         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
7560         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7561         (__CONCATX): Handle exceptions correctly on large values that may
7562         set FE_INVALID.
7563         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7564         Initialize if not already set.
7565         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7567 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7569         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7570         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7571         Likewise.
7572         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7573         Likewise.
7574         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7575         Likewise.
7576         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7577         Likewise.
7578         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7579         Likewise.
7580         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7581         Likewise.
7582         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7583         Likewise.
7584         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7585         (NO_CANCELLATION): Likewise.
7586         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7587         Likewise.
7588         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7589         Likewise.
7590         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7591         Likewise.
7592         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7593         (NO_CANCELLATION): Likewise.
7594         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7595         (NO_CANCELLATION): Likewise.
7596         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7597         Likewise
7598         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7599         Likewise.
7600         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7601         Likewise.
7602         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7603         Likewise.
7604         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7605         hidden prototype.
7606         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7607         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7609 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7611         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7612         in resolver call.
7614 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7616         * include/libc-symbols.h (internal_function): Remove.
7618 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7620         * stdlib/fmtmsg.c (internal_addseverity): Remove
7621         internal_function.
7623 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7625         * stdio-common/printf_fp.c (group_number): Remove
7626         internal_function.
7627         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7629 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7631         * posix/fnmatch.c (internal_function): Remove definition.
7632         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7633         * posix/regcomp.c (peek_token, init_word_char)
7634         (duplicate_node_closure, fetch_token, peek_token)
7635         (peek_token_bracket, build_range_exp, build_collating_symbol):
7636         Likewise.
7637         * posix/regex_internal.c (re_string_construct_common)
7638         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7639         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7640         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7641         (re_string_translate_buffer, re_string_reconstruct)
7642         (re_string_peek_byte_case, re_string_fetch_byte_case)
7643         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7644         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7645         (re_node_set_add_intersect, re_node_set_init_union)
7646         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7647         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7648         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7649         (re_acquire_state_context): Likewise.
7650         * posix/regex_internal.h (internal_function): Remove definition.
7651         (re_string_realloc_buffers, build_wcs_buffer)
7652         (build_wcs_upper_buffer, build_upper_buffer)
7653         (re_string_translate_buffer, re_string_context_at)
7654         (re_string_char_size_at, re_string_wchar_at)
7655         (re_string_elem_size_at): Likewise.
7656         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7657         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7658         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7659         (re_search_internal, re_search_2_stub, re_search_stub)
7660         (re_copy_regs, prune_impossible_nodes, check_matching)
7661         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7662         (free_fail_stack_return, sift_states_iter_mb)
7663         (sift_states_backward, build_sifted_states)
7664         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7665         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7666         (check_subexp_limits, sift_states_bkref, merge_state_array)
7667         (find_recover_state, transit_state, merge_state_with_log)
7668         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7669         (transit_state_mb, transit_state_bkref, get_subexp)
7670         (get_subexp_sub, find_subexp_node, check_arrival)
7671         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7672         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7673         (check_node_accept_bytes, find_collation_sequence_value)
7674         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7675         (acquire_init_state_context, check_halt_node_context)
7676         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7677         (sub_epsilon_src_nodes): Likewise.
7678         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7679         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7680         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7681         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7682         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7683         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7684         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7685         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7686         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7687         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7688         (PREADV): Likewise.
7689         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7690         (PREADV): Likewise.
7691         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7692         (PWRITEV): Likewise.
7693         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7694         (PWRITEV): Likewise.
7695         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7696         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7698 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7700         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7701         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7702         Remove internal_function.
7703         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7704         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7705         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7706         (__deallocate_stack, __libc_pthread_init)
7707         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7708         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7709         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7710         Likewise.
7711         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7712         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7713         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7714         Likewise.
7715         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7716         (__pthread_mutex_unlock_usercnt): Likewise.
7718 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7720         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7721         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7722         (fts_safe_changedir): Remove internal_function.
7723         * io/ftw.c (internal_function): Remove definition.
7724         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7726 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7728         * inet/deadline.c (__deadline_current_time)
7729         (__deadline_from_timeval, __deadline_to_ms): Remove
7730         internal_function.
7731         * inet/getnameinfo.c (nrl_domainname): Likewise.
7732         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7733         * inet/inet6_option.c (add_pad): Likewise.
7734         * inet/net-internal.h (__deadline_current_time)
7735         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7736         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7737         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7738         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7740 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7742         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7743         include <bits/nan.h>.
7744         * math/Makefile (headers): Remove bits/nan.h.
7745         * bits/nan.h: Remove.
7746         * sysdeps/ieee754/bits/nan.h: Likewise.
7747         * sysdeps/mips/bits/nan.h: Likewise.
7749         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7750         not include <bits/inf.h>.
7751         * math/Makefile (headers): Remove bits/inf.h.
7752         * bits/inf.h: Remove.
7753         * sysdeps/ieee754/bits/inf.h: Likewise.
7755         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7756         bits/huge_vall.h or bits/huge_val_flt128.h.
7757         (HUGE_VAL): Define directly here.
7758         [__USE_ISOC99] (HUGE_VALF): Likewise.
7759         [__USE_ISOC99] (HUGE_VALL): Likewise.
7760         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7761         (HUGE_VAL_F128): Likewise.
7762         * math/Makefile (headers): Remove bits/huge_val.h,
7763         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7764         * bits/huge_val.h: Remove.
7765         * bits/huge_val_flt128.h: Likewise.
7766         * bits/huge_valf.h: Likewise.
7767         * bits/huge_vall.h: Likewise.
7768         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7769         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7770         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7771         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7772         * sysdeps/sh/bits/huge_val.h: Likewise.
7773         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7774         * sysdeps/x86/bits/huge_vall.h: Likewise.
7776 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7778         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7779         internal_function.
7780         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7781         Likewise.
7782         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7783         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7784         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7785         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7786         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7787         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7788         * elf/dl-libc.c (dlerror_run): Likewise.
7789         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7790         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7791         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7792         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7793         Likewise.
7794         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7795         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7796         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7797         * elf/dl-profile.c (_dl_start_profile): Likewise.
7798         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7799         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7800         Likewise.
7801         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7802         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7803         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7804         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7805         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7806         (_dl_allocate_tls_storage): Likewise.
7807         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7808         (_dl_check_all_versions): Likewise.
7809         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7810         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7811         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7812         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7813         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7814         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7815         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7816         internal_function from __dl_start.
7817         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7818         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7819         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7820         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7821         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7822         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7823         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7824         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7825         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7826         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7827         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7828         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7829         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7830         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7831         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7832         Likewise.
7833         (struct rtld_global_ro): Remove internal_function from the
7834         _dl_lookup_symbol_x member.
7835         (_dl_symbol_value): Remove.  No longer defined anywhere.
7836         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7837         internal_function.
7838         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7839         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7840         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7841         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7842         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7843         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7844         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7845         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7846         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7847         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7848         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7849         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7851 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7853         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7854         Remove internal_function.
7855         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7856         Likewise.
7857         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7858         Likewise.
7860 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7862         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7863         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7864         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7866 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7868         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7869         (__gai_enqueue_request): Remove internal_function.
7870         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7871         (__gai_remove_request, __gai_notify, __gai_notify_only)
7872         (__gai_sigqueue): Likewise.
7873         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7874         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7875         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7876         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7877         Likewise.
7879 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7881         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7882         * include/dirent.h (__opendirat, __getdents, __getdents64)
7883         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7884         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7885         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7886         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7887         Likewise.
7888         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7890 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7892         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7893         internal_function.
7894         (GETCWD_RETURN_TYPE): Likewise.
7896 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7898         * include/time.h (__tz_compute, __strptime_internal): Remove
7899         internal_function.
7900         * time/strptime_l.c (__strptime_internal): Likewise.
7901         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7903 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7905         * iconv/gconv.c (__gconv): Remove internal_function.
7906         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7907         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7908         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7909         (__gconv_release_cache): Likewise.
7910         * iconv/gconv_close.c (__gconv_close): Likewise.
7911         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7912         (read_conf_file, __gconv_get_path): Likewise.
7913         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7914         (__gconv_release_step, gen_steps, increment_counter)
7915         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7916         (__gconv_close_transform, free_modules_db): Likewise.
7917         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7918         Likewise.
7919         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7920         (__gconv_find_transform, __gconv_lookup_cache)
7921         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7922         (__gconv_close_transform, __gconv_release_cache)
7923         (__gconv_loaded_object, __gconv_release_shlib)
7924         (__gconv_compare_alias): Likewise.
7925         * iconv/gconv_open.c (__gconv_open): Likewise.
7926         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7927         * iconv/iconvconfig.c (add_module): Likewise.
7928         * intl/dcigettext.c (plural_lookup, guess_category_value)
7929         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7930         * intl/eval-plural.h (plural_eval): Likewise.
7931         * intl/finddomain.c (_nl_find_domain): Likewise.
7932         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7933         (_nl_load_domain, _nl_find_msg): Likewise.
7934         (internal_function): Remove definition.
7935         * intl/loadinfo.h (internal_function): Likewise.
7936         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7937         internal_function.
7938         * intl/localealias.c (internal_function): Remove definition.
7939         (read_alias_file): Remove internal_function.
7940         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7941         * intl/plural-exp.h (internal_function): Remove definition.
7942         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7943         internal_function.
7944         * intl/plural.c: Regenerate.
7945         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7946         * locale/coll-lookup.c (__collidx_table_lookup)
7947         (__collseq_table_lookup): Likewise.
7948         * locale/coll-lookup.h (__collidx_table_lookup)
7949         (__collseq_table_lookup): Likewise.
7950         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7951         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7952         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7953         (_nl_unload_locale): Likewise.
7954         * locale/localeinfo.h (struct __locale_data): Remove
7955         internal_function from cleanup member.
7956         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7957         (_nl_remove_locale, _nl_load_locale_from_archive)
7958         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7959         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7960         (_nl_cleanup_time): Remove internal_function.
7961         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7962         (_nl_parse_alt_digit): Likewise.
7963         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7964         (_nl_select_era_entry): Likewise.
7965         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7966         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7967         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7968         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7969         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7971 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7973         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7974         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7975         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7976         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7977         Likewise.
7978         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7979         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7980         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7981         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7982         Likewise.
7983         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7985 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7987         * misc/getttyent.c (skip, value): Remove internal_function.
7988         * misc/syslog.c (openlog_internal): Likewise.
7989         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7991 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7993         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7994         (__nss_rewrite_field): Remove internal_function.
7995         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7996         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7997         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7998         * nss/nsswitch.c (nss_parse_file, nss_getline)
7999         (nss_parse_service_list, nss_new_service): Likewise.
8000         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
8001         * nss/valid_field.c (__nss_valid_field): Likewise.
8002         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
8004 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8006         * malloc/arena.c (__malloc_fork_lock_parent)
8007         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
8008         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
8009         internal_function from defintions.
8010         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
8011         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
8012         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
8013         internal_function from declarations.
8014         * malloc/malloc.c (internal_function): Do not define.
8015         (mem2mem_check): Remove internal_function from declaration.
8016         (munmap_chunk, mremap_chunk): Remove internal_function.
8017         * malloc/mtrace.c (tr_where): Likewise.
8019 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8021         * include/rpc/pmap_clnt.h (__get_socket): Remove
8022         internal_function.
8023         * sunrpc/auth_des.c (synchronize): Likewise.
8024         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
8025         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
8026         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
8027         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
8028         (key_call): Likewise.
8029         * sunrpc/pm_getport.c (__get_socket): Likewise.
8030         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
8031         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
8032         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
8033         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
8034         (invalidate): Likewise.
8035         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
8036         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
8037         (set_input_fragment, get_input_bytes): Likewise.
8039 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8041         * malloc/malloc.c (_int_free): Remove locked variable and related
8042         asserts.
8044 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
8046         [BZ #22051]
8047         * Makerules (build-module-helper-objlist): Filter out
8048         $(elf-objpfx)sofini.os.
8049         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
8050         needed.
8052 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8054         * libio/fcloseall.c: Assume weak_alias is defined.
8055         * libio/feof.c: Likewise.
8056         * libio/fileno.c: Likewise.
8057         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
8058         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
8059         definitions.
8060         (_IO_file_open): Call __open directly.
8061         (_IO_new_file_sync): Assume ESPIPE is defined.
8062         (_IO_file_seekoff_maybe_mmap): Call __read directly.
8063         (_IO_new_file_write): Call __write directly.
8064         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
8065         * libio/ftello64.c (__ftello64): Assume EIO is defined.
8066         * libio/genops.c: Assume _LIBC is defined.
8067         (save_for_backup): Remove internal_function.
8068         * libio/getc.c: Assume weak_alias is defined.
8069         * libio/getwc.c: Likewise.
8070         * libio/iofclose.c: Assume _LIBC is defined.
8071         * libio/iofdopen.c: Likewise.
8072         (_IO_fcntl): Remove macro definition.
8073         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
8074         Call __fcntl directly.
8075         * libio/iofflush.c: Assume weak_alias is defined.
8076         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
8077         defined.
8078         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
8079         * libio/iofgets.c: Likewise.
8080         * libio/iofopen.c: Assume _LIBC is defined.
8081         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
8082         * libio/iofputs.c: Assume weak_alias is defined.
8083         * libio/iofread.c: Likewise.
8084         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
8085         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8086         * libio/ioftell.c: Assume weak_alias is defined.
8087         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
8088         * libio/iofwide.c: Assume _LIBC is defined.
8089         (_IO_fwide): Drop SHARED conditional because it is implied by
8090         SHLIB_COMPAT.
8091         * libio/iofwrite.c: Assume weak_alias is defined.
8092         * libio/iogetdelim.c: Likewise.
8093         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
8094         * libio/iogetwline.c (wmemcpy): Remove macro definition.
8095         (_IO_getwline): Call __wmemcpy directly.
8096         * libio/iopopen.c: Assume _LIBC is defined.
8097         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
8098         (_IO_close): Remove macro definitions.
8099         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
8100         _exit directly.
8101         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
8102         directly.
8103         * libio/ioputs.c: Assume weak_alias is defined.
8104         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
8105         * libio/iosetbuffer.c: Assume weak_alias is defined.
8106         * libio/iosetvbuf.c: Likewise.
8107         * libio/ioungetc.c: Likewise.
8108         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
8109         libc_hidden_def, libc_hidden_weak, NULL are defined.
8110         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
8111         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
8112         defined.
8113         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
8114         definitions.
8115         (_IO_old_file_init_internal): Drop SHARED conditional because it
8116         is implied by SHLIB_COMPAT.
8117         (_IO_old_file_fopen): Call __open directly.
8118         (_IO_old_file_sync): Assume ESPIPE is defined.
8119         (_IO_old_file_write): Call __write directly.
8120         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
8121         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
8122         Call __fcntl directly.
8123         * libio/oldiofgetpos.c: Assume weak_alias is defined.
8124         (_IO_old_fgetpos): Assume EIO is defined.
8125         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
8126         (_IO_old_fgetpos64): Assume EIO is defined.
8127         * libio/oldiofsetpos.c: Assume weak_alias is defined.
8128         (_IO_old_fsetpos): Assume EIO is defined.
8129         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
8130         (_IO_old_fsetpos64): Assume EIO is defined.
8131         * libio/oldiopopen.c:  Assume _LIBC is defined.
8132         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
8133         (_IO_close): Remove macro definitions.
8134         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
8135         directly.
8136         (_IO_old_proc_close): Call __close, __waitpid directly.
8137         * libio/put.c: Assume weak_alias is defined.
8138         * libio/stdfiles.c: Assume _LIBC is defined.
8139         * libio/stdio.c: Likewise.
8140         * libio/wfileops.c: Likewise.
8141         (_IO_wfile_sync): Assume ESPIPE is defined.
8142         * libio/wgenops.c: Assume _LIBC is defined.
8143         (save_for_wbackup): Remove internal_function.
8145 2017-08-31  Florian Weimer  <fweimer@redhat.com>
8147         * malloc/malloc.c (top_check): Change return type to void.  Remove
8148         internal_function.
8149         * malloc/hooks.c (top_check): Likewise.
8150         (malloc_check, realloc_check, memalign_check): Adjust.
8152 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
8154         [BZ #21457]
8155         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8156         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
8157         sigcontext and namespace requirements.
8158         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8159         * sysdeps/m68k/sys/ucontext.h: Likewise.
8160         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
8161         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
8162         <bits/sigcontext.h>.
8163         (__ctx): Define earlier.
8164         (mcontext_t): Define structure contents rather than using struct
8165         sigcontext.
8166         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
8167         __glibc_reserved1 instead of __reserved.
8168         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
8169         <bits/sigcontext.h>.
8170         (__ctx): Define earlier.
8171         (mcontext_t): Define structure contents rather than using struct
8172         sigcontext.
8173         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
8174         mcontext_t instead of struct sigcontext.
8175         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
8176         <bits/sigcontext.h>.
8177         (__ctx): Define earlier.
8178         (mcontext_t): Define structure contents rather than using struct
8179         sigcontext.
8180         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
8181         <bits/sigcontext.h>.
8182         (__ctx): Define earlier.
8183         (mcontext_t): Define structure contents rather than using struct
8184         sigcontext.
8185         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
8186         mcontext_t instead of struct sigcontext.
8187         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
8188         mcontext_t instead of struct sigcontext.
8189         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
8190         <bits/sigcontext.h>.
8191         (__ctx): New macro.
8192         (struct __ia64_fpreg_mcontext): New type.
8193         (mcontext_t): Define structure contents rather than using struct
8194         sigcontext.
8195         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
8196         (uc_sigmask): Define using __ctx.
8197         (uc_stack): Likewise.
8198         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
8199         <bits/sigcontext.h>.
8200         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8201         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
8202         <bits/sigcontext.h>.
8203         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
8204         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
8205         <bits/sigcontext.h>.
8206         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
8207         <bits/sigcontext.h>.
8208         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
8209         <bits/sigcontext.h>.
8210         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
8211         <bits/sigcontext.h>.
8212         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
8213         <bits/sigcontext.h>.
8214         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
8215         <bits/sigcontext.h>.
8216         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
8217         <bits/sigcontext.h>.
8218         (__ctx): Define earlier.
8219         (mcontext_t): Define structure contents rather than using struct
8220         sigcontext.
8221         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
8222         <bits/sigcontext.h>.  Include <bits/types.h>.
8223         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
8224         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
8225         (test-xfail-XPG42/ucontext.h/conform): Likewise.
8226         (test-xfail-UNIX98/signal.h/conform): Likewise.
8227         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
8228         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
8229         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
8230         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
8231         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
8232         (test-xfail-POSIX2008/signal.h/conform): Likewise.
8233         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
8234         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
8235         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
8237 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8239         * malloc/dynarray_emplace_enlarge.c
8240         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
8241         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8242         * malloc/tst-dynarray.c (test_long_overflow): New function.
8243         (do_test): Call it.
8245 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8247         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
8248         (set_arena_corrupt): Remove definitions.
8249         (mtrim): Do not check for corrupt arena.
8250         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
8251         Likewise.
8253 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8255         [BZ #21754]
8256         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
8257         check_action.
8258         (ptmalloc_init): Do not set or use check_action.
8259         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
8260         call to malloc_printerr.  Remove return statement.
8261         (free_check): Likewise.  Remove arena unlock.
8262         (top_check): Update comment.  Adjust call to malloc_printerr.
8263         Remove heap repair code.
8264         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
8265         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
8266         (sysmalloc): Adjust call to malloc_printerr.
8267         (munmap_chunk, __libc_realloc): Likewise.  Remove return
8268         statement.
8269         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
8270         Remove errout label and corresponding gotos.
8271         (_int_free): Likewise.  Remove arena unlock.
8272         (do_set_mallopt_check): Do not set check_action.
8273         (malloc_printerr): Adjust parameter list.  Do not mark arena as
8274         corrupt.
8275         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
8276         comment.
8277         * manual/probes.texi (Memory Allocation Probes): Remove
8278         memory_mallopt_check_action.
8280 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
8282         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
8283         Use pointer to uint64_t instead of long int for sp.
8285 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8287         [BZ #21754]
8288         * malloc/malloc.c (malloc_printerr): Always terminate the process,
8289         without printing a backtrace.  Do not leak any information in the
8290         error message.
8291         * manual/memory.texi (Heap Consistency Checking): Update.
8292         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
8294 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8296         Do not scale NPTL tests with available number of CPUs.
8297         * nptl/tst-cond16.c (count): Set to constant value of 8.
8298         * nptl/tst-cond18.c (count): Likewise.
8300 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8302         [BZ #22035]
8303         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
8304         Define to take a second argument that is a macro that
8305         concatentates a suffix, not the suffix itself.
8306         (__CONCAT_d): New macro.
8307         (__CONCAT_f): Likewise.
8308         (__CONCAT_l): Likewise.
8310 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
8312         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
8313         by child.
8315 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8316             Aurelien Jarno  <aurelien@aurel32.net>
8317             Maciej W. Rozycki  <macro@imgtec.com>
8319         [BZ #21956]
8320         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
8321         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
8322         `mips16-syscall6' and `mips16-syscall7'.
8323         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
8324         (CFLAGS-mips16-syscall7.c): Remove.
8325         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
8326         Remove `__mips16_syscall5', `__mips16_syscall6' and
8327         `__mips16_syscall7'.
8328         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
8329         (__mips16_syscall0): Rename `__mips16_syscall_return' to
8330         `__mips_syscall_return'.
8331         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
8332         (__mips16_syscall1): Likewise.
8333         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
8334         (__mips16_syscall2): Likewise.
8335         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
8336         (__mips16_syscall3): Likewise.
8337         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
8338         (__mips16_syscall4): Likewise.
8339         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
8340         Remove.
8341         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
8342         Remove.
8343         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
8344         Remove.
8345         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
8346         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
8347         `__mips16_syscall5'.  Remove prototype.
8348         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
8349         `__mips16_syscall6'.  Remove prototype.
8350         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
8351         `__mips16_syscall7'.  Remove prototype.
8352         (__nomips16, __mips16_syscall_return): Move to...
8353         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
8354         (__nomips16, __mips_syscall_return): ... here.
8355         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
8356         `__mips16_syscall_return' to `__mips_syscall_return'.
8357         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
8358         `internal_syscall##nr'.
8359         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
8360         `internal_syscall##nr'.
8361         (FORCE_FRAME_POINTER): Remove.
8362         (__mips_syscall5): New prototype.
8363         (internal_syscall5): Rewrite to call `__mips_syscall5'.
8364         (__mips_syscall6): New prototype.
8365         (internal_syscall6): Rewrite to call `__mips_syscall6'.
8366         (__mips_syscall7): New prototype.
8367         (internal_syscall7): Rewrite to call `__mips_syscall7'.
8368         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
8369         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
8370         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
8371         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
8372         (sysdep_routines): Add libc-do-syscall.
8373         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
8374         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
8376 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8378         [BZ #21672]
8379         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
8380         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
8381         (advise_stack_range): New function.
8382         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
8383         stack non required to advise_stack_range at allocatestack.c
8385 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8387         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
8389 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8391         [BZ #22026]
8392         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
8393         __end_fct.  Mangle __end_fct after setting it to NULL.
8394         * iconv/Makefile (tests): Add tst-gconv-init-failure.
8395         (modules-names, modules-names-tests): Add
8396         tst-gconv-init-failure-mod.
8397         (gconv-modules): New target.
8398         (tst-gconv-init-failure-mod.so): Link against libsupport.
8399         (tst-gconv-init-failure): Depend on gconv-modules,
8400         tst-gconv-init-failure-mod.so.
8401         * iconv/tst-gconv-init-failure-mod.c: New file.
8402         * iconv/tst-gconv-init-failure.c: Likewise.
8403         * iconv/test-gconv-modules: Likewise.
8405 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8407         [BZ #22025]
8408         * iconv/gconv_db.c (free_derivation): Remove redundant
8409         parentheses.
8410         (gen_steps): Unconditionally mangle __btowc_fct after
8411         initialization.
8412         (increment_counter): Likewise.  Do not call init_fct for internal
8413         modules.
8415 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8417         [BZ #22028]
8418         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8419         (_MSUF_): Remove macro.
8420         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
8421         Likewise.
8422         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8423         (__REDIRFROM_X): New macro.
8424         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
8425         Likewise.
8426         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
8427         (__REDIRTO_X): Likewise.
8428         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
8429         arguments.
8430         (__MATH_REDIRCALL_2): Likewise.
8431         (__MATH_REDIRCALL_INTERNAL): Likewise.
8432         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8433         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
8434         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
8435         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8436         * math/test-finite-macros.c: New file.
8437         * math/Makefile (tests): Add test-finite-macros.
8438         (CFLAGS-test-finite-macros.c): New variable.
8440 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
8441             Jeff Law  <law@redhat.com>
8443         [BZ #22025]
8444         Mangle NULL pointers in iconv/gconv.
8445         * iconv/gconv_cache.c (find_module): Demangle init_fct before
8446         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
8447         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
8448         is non-NULL before demangling the end_fct.  Check for NULL
8449         end_fct after demangling.
8450         (__gconv_release_step): Demangle the end_fct before checking
8451         it for NULL.   Remove assert on __shlibc_handle != NULL.
8452         (gen_steps): Don't check btowc_fct for NULL before mangling.
8453         Demangle init_fct before checking for NULL.
8454         (increment_counter): Likewise.
8455         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
8456         end_fct for NULL before mangling.
8457         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
8458         for NULL.
8460 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
8462         [BZ #21971]
8463         * locale/iso-639.def: add Morisyen.
8465 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8467         [BZ #21930]
8468         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
8469         (iszero): New C++ implementation that does not use
8470         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
8471         signaling nans are enabled, since __builtin_types_compatible_p
8472         is a C-only feature.
8473         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
8474         defined, include ieee754_float128.h for access to the union and
8475         member ieee854_float128.ieee.
8476         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
8477         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
8478         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8479         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
8480         options of test-math-zero on powerpc64le.
8482 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
8484         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
8485         Change double to float.
8487 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
8489         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
8490         unconditional.
8491         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
8492         conditional code; define contents only for [LIBM_SVID_COMPAT].
8494 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8496         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
8497         (abi-lp64_be-options): Remove.
8498         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
8499         (abi-hard-options): Likewise.
8500         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
8501         (abi-o32_hard-options, abi-o32_soft_2008-options)
8502         (abi-o32_hard_2008-options, abi-n32_soft-options)
8503         (abi-n32_hard-options, abi-n32_soft_2008-options)
8504         (abi-n32_hard_2008-options, abi-n64_soft-options)
8505         (abi-n64_hard-options, abi-n64_soft_2008-options)
8506         (abi-n64_hard_2008-options): Likewise.
8507         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
8508         (abi-64-v1-options, abi-64-v2-options): Likewise.
8509         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
8510         (abi-64-options): Likewise.
8511         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
8512         (abi-64-options): Likewise.
8513         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
8514         (abi-64-options): Likewise.
8515         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
8516         (abi-64-options, abi-x32-options): Likewise.
8518 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8520         Store supported list of SYS_* system calls in the source tree.
8521         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8522         (bits/syscall.h): Generate from list file.
8523         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
8524         [$(subdir) = misc] (tests): Add tst-syscall-list.
8525         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
8526         [$(subdir) = misc] (tst-syscall-list-macros.list)
8527         [$(subdir) = misc] (tst-syscall-list-nr.list)
8528         (tst-syscall-list-sys.list): Helper targets for new
8529         tst-syscall-list test.
8530         [$(subdir) = misc] (tst-syscall-list.out): Run test script
8531         tst-syscall-list.sh.
8532         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
8533         target. Do not include bits/syscall.d.
8534         [$(subdir) = misc] (generated): Do not update.
8535         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
8536         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
8537         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
8538         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
8540 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
8542         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
8543         (tst-cxa_atexit, tst-on_exit): Likewise.
8544         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
8545         tst-cxa_atexit, and tst-on_exit.
8546         * stdlib/tst-atexit-common.c: New file.
8547         * stdlib/tst-atexit.c: New file.
8548         * stdlib/tst-at_quick_exit.c: New file.
8549         * stdlib/tst-cxa_atexit.c: New file.
8550         * stdlib/tst-on_exit.c: New file.
8552 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8554         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
8555         * mach/stack_chk_fail_local.c: New file.
8556         * hurd/stack_chk_fail_local.c: New file.
8557         * mach/Machrules ($(interface-library)-routines): Add
8558         stack_chk_fail_local.
8559         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
8560         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
8561         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8562         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8563         * hurd/Makefile (CFLAGS-hurdstartup.o,
8564         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8566 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8568         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8569         (index_cpu_*, index_arch_*): Removed.
8571 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8573         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8574         Use uint64_t instead of unsigned long.
8576 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8578         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8579         [__HAVE_DISTINCT_FLOAT128].
8581         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8582         of <bits/math-finite.h>.
8583         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8584         inclusion of <bits/math-finite.h>.
8585         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8586         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8587         __NO_LONG_DOUBLE_MATH].
8588         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8589         (__MATH_REDIRCALL_2): Likewise.
8590         (__MATH_REDIRCALL_INTERNAL): Likewise.
8591         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8592         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8593         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8596         Remove file.
8597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8598         Likewise.
8599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8600         Likewise.
8601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8602         Likewise.
8603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8604         Likewise.
8605         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8606         Likewise.
8607         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8608         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8609         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8610         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8612         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8613         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8614         w_sqrtf_compat-ppc32.
8616 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8618         * math/math.h [defined __cplusplus] (issignaling): In the long
8619         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8620         is not defined.  Call __issignaling, otherwise.
8622 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8624         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8625         syscall definitions and replace __builtin_expect with __glibc_likely.
8626         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8627         syscall.
8628          (SYSCALL_CANCELLABLE): Removedefinition
8629         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8630         definition.
8631         (PSEUDO_END): Likewise.
8632         [IS_IN (libpthread)] (CENABLE): Likewise.
8633         [IS_IN (libpthread)] (CDISABLE): Likewise.
8634         [IS_IN (libc)] (CENABLE): Likewise.
8635         [IS_IN (libc)] (CENABLE): Likewise.
8636         [IS_IN (librt)] (CDISABLE): Likewise.
8637         [IS_IN (librt)] (CDISABLE): Likewise.
8638         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8639         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8640         definition.
8641         (PSEUDO_END): Likewise.
8642         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8643         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8644         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8645         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8646         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8647         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8648         (CENABLE): Likewise.
8649         (CDISABLE): Likewise.
8650         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8651         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8652         defintion.
8653         (PSEUDO_END): Likewise.
8654         [IS_IN (libpthread)] (CENABLE): Likewise.
8655         [IS_IN (libpthread)] (CDISABLE): Likewise.
8656         [IS_IN (libc)] (CENABLE): Likewise.
8657         [IS_IN (libc)] (CENABLE): Likewise.
8658         [IS_IN (librt)] (CDISABLE): Likewise.
8659         [IS_IN (librt)] (CDISABLE): Likewise.
8660         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8661         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8662         definition.
8663         (PSEUDO_END): Likewise.
8664         [IS_IN (libpthread)] (CENABLE): Likewise.
8665         [IS_IN (libpthread)] (CDISABLE): Likewise.
8666         [IS_IN (libc)] (CENABLE): Likewise.
8667         [IS_IN (libc)] (CENABLE): Likewise.
8668         [IS_IN (librt)] (CDISABLE): Likewise.
8669         [IS_IN (librt)] (CDISABLE): Likewise.
8670         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8671         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8672         definition.
8673         (PSEUDO_END): Likewise.
8674         [IS_IN (libpthread)] (CENABLE): Likewise.
8675         [IS_IN (libpthread)] (CDISABLE): Likewise.
8676         [IS_IN (libc)] (CENABLE): Likewise.
8677         [IS_IN (libc)] (CENABLE): Likewise.
8678         [IS_IN (librt)] (CDISABLE): Likewise.
8679         [IS_IN (librt)] (CDISABLE): Likewise.
8680         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8681         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8682         definition.
8683         (PSEUDO_END): Likewise.
8684         [IS_IN (libpthread)] (CENABLE): Likewise.
8685         [IS_IN (libpthread)] (CDISABLE): Likewise.
8686         [IS_IN (libc)] (CENABLE): Likewise.
8687         [IS_IN (libc)] (CENABLE): Likewise.
8688         [IS_IN (librt)] (CDISABLE): Likewise.
8689         [IS_IN (librt)] (CDISABLE): Likewise.
8690         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8691         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8692         definition.
8693         (PSEUDO_END): Likewise.
8694         [IS_IN (libpthread)] (CENABLE): Likewise.
8695         [IS_IN (libpthread)] (CDISABLE): Likewise.
8696         [IS_IN (libc)] (CENABLE): Likewise.
8697         [IS_IN (libc)] (CENABLE): Likewise.
8698         [IS_IN (librt)] (CDISABLE): Likewise.
8699         [IS_IN (librt)] (CDISABLE): Likewise.
8700         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8701         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8702         definition.
8703         (PSEUDO_END): Likewise.
8704         [IS_IN (libpthread)] (CENABLE): Likewise.
8705         [IS_IN (libpthread)] (CDISABLE): Likewise.
8706         [IS_IN (libc)] (CENABLE): Likewise.
8707         [IS_IN (libc)] (CENABLE): Likewise.
8708         [IS_IN (librt)] (CDISABLE): Likewise.
8709         [IS_IN (librt)] (CDISABLE): Likewise.
8710         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8711         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8712         Remove definition.
8713         (PSEUDO_END): Likewise.
8714         [IS_IN (libpthread)] (CENABLE): Likewise.
8715         [IS_IN (libpthread)] (CDISABLE): Likewise.
8716         [IS_IN (libc)] (CENABLE): Likewise.
8717         [IS_IN (libc)] (CENABLE): Likewise.
8718         [IS_IN (librt)] (CDISABLE): Likewise.
8719         [IS_IN (librt)] (CDISABLE): Likewise.
8720         (SINGLE_THREAD_P): Likewise.
8721         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8722         definition.
8723         (PSEUDO_END): Likewise.
8724         [IS_IN (libpthread)] (CENABLE): Likewise.
8725         [IS_IN (libpthread)] (CDISABLE): Likewise.
8726         [IS_IN (libc)] (CENABLE): Likewise.
8727         [IS_IN (libc)] (CENABLE): Likewise.
8728         [IS_IN (librt)] (CDISABLE): Likewise.
8729         [IS_IN (librt)] (CDISABLE): Likewise.
8730         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8731         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8732         definition.
8733         (PSEUDO_END): Likewise.
8734         [IS_IN (libpthread)] (CENABLE): Likewise.
8735         [IS_IN (libpthread)] (CDISABLE): Likewise.
8736         [IS_IN (libc)] (CENABLE): Likewise.
8737         [IS_IN (libc)] (CENABLE): Likewise.
8738         [IS_IN (librt)] (CDISABLE): Likewise.
8739         [IS_IN (librt)] (CDISABLE): Likewise.
8740         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8741         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8742         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8743         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8744         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8745         definition.
8746         (PSEUDO_END): Likewise.
8747         [IS_IN (libpthread)] (CENABLE): Likewise.
8748         [IS_IN (libpthread)] (CDISABLE): Likewise.
8749         [IS_IN (libc)] (CENABLE): Likewise.
8750         [IS_IN (libc)] (CENABLE): Likewise.
8751         [IS_IN (librt)] (CDISABLE): Likewise.
8752         [IS_IN (librt)] (CDISABLE): Likewise.
8753         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8754         * sysdeps/unix/sysv/linux/s390/s390-64/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/sh/sysdep-cancel.h (PSEUDO): Remove
8765         definition.
8766         (PSEUDO_END): Likewise.
8767         [IS_IN (libpthread)] (CENABLE): Likewise.
8768         [IS_IN (libpthread)] (CDISABLE): Likewise.
8769         [IS_IN (libc)] (CENABLE): Likewise.
8770         [IS_IN (libc)] (CENABLE): Likewise.
8771         [IS_IN (librt)] (CDISABLE): Likewise.
8772         [IS_IN (librt)] (CDISABLE): Likewise.
8773         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8774         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8776         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8777         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8778         definition.
8779         (PSEUDO_END): Likewise.
8780         [IS_IN (libpthread)] (CENABLE): Likewise.
8781         [IS_IN (libpthread)] (CDISABLE): Likewise.
8782         [IS_IN (libc)] (CENABLE): Likewise.
8783         [IS_IN (libc)] (CENABLE): Likewise.
8784         [IS_IN (librt)] (CDISABLE): Likewise.
8785         [IS_IN (librt)] (CDISABLE): Likewise.
8786         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8787         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8788         definition.
8789         (PSEUDO_END): Likewise.
8790         [IS_IN (libpthread)] (CENABLE): Likewise.
8791         [IS_IN (libpthread)] (CDISABLE): Likewise.
8792         [IS_IN (libc)] (CENABLE): Likewise.
8793         [IS_IN (libc)] (CENABLE): Likewise.
8794         [IS_IN (librt)] (CDISABLE): Likewise.
8795         [IS_IN (librt)] (CDISABLE): Likewise.
8796         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8798 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8800         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8802 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8804         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8806 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8808         [BZ #21982]
8809         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8810         middle and outer with size_t instead of int.  Repleace %d and
8811         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8812         "MAX (outer, nchars - 64)" to support unsigned outer and
8813         nchars.  Also exit loop when outer == 0.
8815 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8817         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8818         * include/signal.h (__sigsuspend_nocancel): Likewise.
8819         * include/time.h (__nanosleep_nocancel): Likewise.
8820         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8821         * login/utmp_file.c: Include non cancellable syscall header.
8822         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8823         prototype.
8825 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8827         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8828         .byte sequences with AVX512F instructions.
8829         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8830         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8831         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8832         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8833         Likewise.
8834         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8835         Likewise.
8837 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8838             Steve Ellcey  <sellcey@cavium.com>
8840         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8841         Use PTR_REG macro in cmp instruction.
8843 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8845         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8846         Change the return type of the ifunc resolver to match the return
8847         type of the target function.
8849 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8851         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8852         (preadv64): Likewise.
8853         (pwrite64(: Likewise.
8854         (pwritev64): Likewise.
8856         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8857         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8858         (LOAD_ARGS_0): Likewise.
8859         (LOAD_ARGS_1): Likewise.
8860         (LOAD_ARGS_2): Likewise.
8861         (LOAD_ARGS_3): Likewise.
8862         (LOAD_ARGS_4): Likewise.
8863         (LOAD_ARGS_5): Likewise.
8864         (LOAD_ARGS_6): Likewise.
8865         (LOAD_REGS_0): Likewise.
8866         (LOAD_REGS_1): Likewise.
8867         (LOAD_REGS_2): Likewise.
8868         (LOAD_REGS_3): Likewise.
8869         (LOAD_REGS_4): Likewise.
8870         (LOAD_REGS_5): Likewise.
8871         (LOAD_REGS_6): Likewise.
8872         (ASM_ARGS_0): Likewise.
8873         (ASM_ARGS_1): Likewise.
8874         (ASM_ARGS_2): Likewise.
8875         (ASM_ARGS_3): Likewise.
8876         (ASM_ARGS_4): Likewise.
8877         (ASM_ARGS_5): Likewise.
8878         (ASM_ARGS_6): Likewise.
8879         (LOAD_ARGS_TYPES_1): Likewise.
8880         (LOAD_ARGS_TYPES_2): Likewise.
8881         (LOAD_ARGS_TYPES_3): Likewise.
8882         (LOAD_ARGS_TYPES_4): Likewise.
8883         (LOAD_ARGS_TYPES_5): Likewise.
8884         (LOAD_ARGS_TYPES_6): Likewise.
8885         (LOAD_REGS_TYPES_1): Likewise.
8886         (LOAD_REGS_TYPES_2): Likewise.
8887         (LOAD_REGS_TYPES_3): Likewise.
8888         (LOAD_REGS_TYPES_4): Likewise.
8889         (LOAD_REGS_TYPES_5): Likewise.
8890         (LOAD_REGS_TYPES_6): Likewise.
8891         (TYPEFY): New define.
8892         (ARGIFY): Likewise.
8893         (internal_syscall0): Likewise.
8894         (internal_syscall1): Likewise.
8895         (internal_syscall2): Likewise.
8896         (internal_syscall3): Likewise.
8897         (internal_syscall4): Likewise.
8898         (internal_syscall5): Likewise.
8899         (internal_syscall6): Likewise.
8900         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8901         (INTERNAL_SYSCALL_NCS): Remove define.
8902         (internal_syscall1): Add define.
8904 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8906         * math/w_remainder_compat.c: Remove duplicate inclusion of
8907         math-svid-compat.h.
8908         * math/w_remainderf_compat.c: Likewise.
8909         * math/w_remainderl_compat.c: Likewise.
8911 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8913         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8915 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8917         [BZ #21684]
8918         * math/tgmath.h (__floating_type): Simplify definitions.
8919         (__real_integer_type): New macro.
8920         (__complex_integer_type): Likewise.
8921         (__expr_is_real): Likewise.
8922         (__tgmath_real_type_sub): Update comment to describe handling of
8923         complex types.
8924         (__tgmath_complex_type_sub): New macro.
8925         (__tgmath_complex_type): Likewise.
8926         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8927         (__TGMATH_CF128): Use __expr_is_real.
8928         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8929         __expr_is_real.
8930         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8931         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8932         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8933         integer types.
8935 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8937         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8938         macro.
8939         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8940         alias.
8941         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8942         Likewise.
8944         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8945         nanosleep_not_cancel with __nanosleep_nocancel.
8946         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8947         (__nanosleep_nocancel): New macro.
8948         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8949         function.
8950         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8951         macro.
8952         (__nanosleep_nocancel): New prototype.
8954         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8955         pause_not_cancel with __pause_nocancel.
8956         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8957         (__pause_nocancel): New macro.
8958         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8959         macro.
8960         (__pause_nocancel): New prototype.
8961         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8963 2017-08-22  Martin Sebor  <msebor@redhat.com>
8965         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8966         to return a pointer to the same type as the target function.
8968 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8970         [BZ #18822]
8971         [BZ #21986]
8972         * include/printf.h (__printf_fphex): Add attribute_hidden.
8973         (__guess_grouping): New prototype.
8974         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8975         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8976         libc_hidden_proto and libc_hidden_def.
8977         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8978         (__vstrfmon_l): Remove the third argument passed to
8979         __guess_grouping.
8981 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8983         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8984         definition for issignaling that does not rely on __MATH_TG,
8985         since __MATH_TG uses __builtin_types_compatible_p, which is only
8986         available in C mode.
8987         (CFLAGS-test-math-issignaling.cc): New variable.
8988         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8989         * math/test-math-issignaling.cc: New test for C++ implementation
8990         of type-generic issignaling.
8991         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8992         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8993         options of test-math-issignaling on powerpc64le.
8995 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8997         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8998         building libc.a.
8999         (hidden_proto): Likewise.
9000         (hidden_tls_proto): Likewise.
9001         (__hidden_proto): Likewise.
9003 2017-08-22  Florian Weimer  <fweimer@redhat.com>
9005         math: Statically link tests of internal functionality.
9006         * math/Makefile (tests): Remove atest-exp, atest-sincos,
9007         atest-exp2.
9008         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
9009         (gmp-objs): Remove assignment.
9010         (atest-exp, atest-sincos, atest-exp2): Remove targets.
9012 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
9014         [BZ #21987]
9015         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
9016         and copy to ...
9017         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
9018         ... here.
9019         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
9020         ... and here.
9022         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
9023         variable definitions above inclusion of ../Rules.
9025 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
9027         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
9028         case calling __builtin_unreachable.
9030 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9032         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
9033         __waitpid_nocancel.
9034         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
9035         (__waitpid_nocancel): New macro.
9036         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
9037         macro.
9038         (__waitpid_nocancel): Replace macro with a function.
9039         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
9040         function.
9042         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
9043         __fcntl_nocancel.
9044         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
9045         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
9047         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
9048         __writev_nocancel_nostatus.
9049         (write_call_graph): Likewise.
9050         (write_bb_counts): Likewise.
9051         * resolv/herror.c (herror): Likewise.
9052         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
9053         macro.
9054         (__writev_nocancel_nostatus): New macro.
9055         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
9056         Remove macro.
9057         (__writev_nocancel_nostatus): New function.
9059 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
9061         Revert:
9062         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9064         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9065         building libc.a.
9066         (hidden_proto): Likewise.
9067         (hidden_tls_proto): Likewise.
9068         (__hidden_proto): Likewise.
9070         [BZ #21973]
9071         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
9072         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
9073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
9074         Likewise.
9075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
9076         Likewise.
9077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9078         Likewise.
9079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
9080         Likewise.
9081         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
9082         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9083         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9084         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9085         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
9086         GLIBC_2.0 sqrtl symbol.
9088         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
9089         [__USE_MISC] (_LIB_VERSION): Likewise.
9090         [__USE_MISC] (struct exception): Likewise.
9091         [__USE_MISC] (matherr): Likewise.
9092         [__USE_MISC] (DOMAIN): Likewise.
9093         [__USE_MISC] (SING): Likewise.
9094         [__USE_MISC] (OVERFLOW): Likewise.
9095         [__USE_MISC] (UNDERFLOW): Likewise.
9096         [__USE_MISC] (TLOSS): Likewise.
9097         [__USE_MISC] (PLOSS): Likewise.
9098         [__USE_MISC] (HUGE): Likewise.
9099         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
9100         * math/math-svid-compat.h: New file.
9101         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
9102         and matherrl.
9103         * include/math.h [!_ISOMAC] (__matherr): Remove.
9104         * manual/arith.texi (FP Exceptions): Do not document matherr.
9105         * math/Makefile (tests): Change test-matherr to test-matherr-3.
9106         (tests-internal): New variable.
9107         (install-lib): Do not add libieee.a.
9108         (non-lib.a): Likewise.
9109         (extra-objs): Do not add libieee.a and ieee-math.o.
9110         (CPPFLAGS-s_lib_version.c): Remove variable.
9111         ($(objpfx)libieee.a): Remove rule.
9112         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
9113         * math/ieee-math.c: Remove.
9114         * math/libm-test-support.c (matherr): Remove.
9115         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
9116         and license notices.  Include <math-svid-compat.h> and
9117         <shlib-compat.h>.
9118         (matherr): Undefine as macro.  Use compat_symbol_reference.
9119         (_LIB_VERSION): Likewise.
9120         * math/test-matherr-2.c: New file.
9121         * math/test-matherr-3.c: Likewise.
9122         * sysdeps/generic/math_private.h (__kernel_standard): Remove
9123         declaration.
9124         (__kernel_standard_f): Likewise.
9125         (__kernel_standard_l): Likewise.
9126         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
9127         <math_private.h>.  Include <math-svid-compat.h>.
9128         (_LIB_VERSION): Undefine as macro.
9129         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
9130         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
9131         [LIBM_SVID_COMPAT], use compat_symbol.
9132         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
9133         <math_private.h>.  Include <math-svid-compat.h>.
9134         (matherr): Undefine as macro.
9135         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
9136         compat_symbol.
9137         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
9138         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
9139         compat_symbol_reference.
9140         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
9141         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
9142         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
9143         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
9144         (MATHERR_D): Remove declaration.
9145         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
9146         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
9147         [LIBM_BUILD] (pmatherrf): Likewise.
9148         [LIBM_BUILD] (pmatherr): Likewise.
9149         [LIBM_BUILD] (pmatherrl): Likewise.
9150         (DOMAIN): Likewise.
9151         (SING): Likewise.
9152         (OVERFLOW): Likewise.
9153         (UNDERFLOW): Likewise.
9154         (TLOSS): Likewise.
9155         (PLOSS): Likewise.
9156         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
9157         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
9158         compat_symbol.
9159         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
9160         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
9161         compat_symbol.
9162         * math/lgamma-compat.h: Include <math-svid-compat.h>.
9163         * math/w_acos_compat.c: Likewise.
9164         * math/w_acosf_compat.c: Likewise.
9165         * math/w_acosh_compat.c: Likewise.
9166         * math/w_acoshf_compat.c: Likewise.
9167         * math/w_acoshl_compat.c: Likewise.
9168         * math/w_acosl_compat.c: Likewise.
9169         * math/w_asin_compat.c: Likewise.
9170         * math/w_asinf_compat.c: Likewise.
9171         * math/w_asinl_compat.c: Likewise.
9172         * math/w_atan2_compat.c: Likewise.
9173         * math/w_atan2f_compat.c: Likewise.
9174         * math/w_atan2l_compat.c: Likewise.
9175         * math/w_atanh_compat.c: Likewise.
9176         * math/w_atanhf_compat.c: Likewise.
9177         * math/w_atanhl_compat.c: Likewise.
9178         * math/w_cosh_compat.c: Likewise.
9179         * math/w_coshf_compat.c: Likewise.
9180         * math/w_coshl_compat.c: Likewise.
9181         * math/w_exp10_compat.c: Likewise.
9182         * math/w_exp10f_compat.c: Likewise.
9183         * math/w_exp10l_compat.c: Likewise.
9184         * math/w_exp2_compat.c: Likewise.
9185         * math/w_exp2f_compat.c: Likewise.
9186         * math/w_exp2l_compat.c: Likewise.
9187         * math/w_fmod_compat.c: Likewise.
9188         * math/w_fmodf_compat.c: Likewise.
9189         * math/w_fmodl_compat.c: Likewise.
9190         * math/w_hypot_compat.c: Likewise.
9191         * math/w_hypotf_compat.c: Likewise.
9192         * math/w_hypotl_compat.c: Likewise.
9193         * math/w_j0_compat.c: Likewise.
9194         * math/w_j0f_compat.c: Likewise.
9195         * math/w_j0l_compat.c: Likewise.
9196         * math/w_j1_compat.c: Likewise.
9197         * math/w_j1f_compat.c: Likewise.
9198         * math/w_j1l_compat.c: Likewise.
9199         * math/w_jn_compat.c: Likewise.
9200         * math/w_jnf_compat.c: Likewise.
9201         * math/w_jnl_compat.c: Likewise.
9202         * math/w_lgamma_main.c: Likewise.
9203         * math/w_lgamma_r_compat.c: Likewise.
9204         * math/w_lgammaf_main.c: Likewise.
9205         * math/w_lgammaf_r_compat.c: Likewise.
9206         * math/w_lgammal_main.c: Likewise.
9207         * math/w_lgammal_r_compat.c: Likewise.
9208         * math/w_log10_compat.c: Likewise.
9209         * math/w_log10f_compat.c: Likewise.
9210         * math/w_log10l_compat.c: Likewise.
9211         * math/w_log2_compat.c: Likewise.
9212         * math/w_log2f_compat.c: Likewise.
9213         * math/w_log2l_compat.c: Likewise.
9214         * math/w_log_compat.c: Likewise.
9215         * math/w_logf_compat.c: Likewise.
9216         * math/w_logl_compat.c: Likewise.
9217         * math/w_pow_compat.c: Likewise.
9218         * math/w_powf_compat.c: Likewise.
9219         * math/w_powl_compat.c: Likewise.
9220         * math/w_remainder_compat.c: Likewise.
9221         * math/w_remainderf_compat.c: Likewise.
9222         * math/w_remainderl_compat.c: Likewise.
9223         * math/w_scalb_compat.c: Likewise.
9224         * math/w_scalbf_compat.c: Likewise.
9225         * math/w_scalbl_compat.c: Likewise.
9226         * math/w_sinh_compat.c: Likewise.
9227         * math/w_sinhf_compat.c: Likewise.
9228         * math/w_sinhl_compat.c: Likewise.
9229         * math/w_sqrt_compat.c: Likewise.
9230         * math/w_sqrtf_compat.c: Likewise.
9231         * math/w_sqrtl_compat.c: Likewise.
9232         * math/w_tgamma_compat.c: Likewise.
9233         * math/w_tgammaf_compat.c: Likewise.
9234         * math/w_tgammal_compat.c: Likewise.
9235         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
9236         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
9237         * sysdeps/ieee754/k_standard.c: Likewise.
9238         * sysdeps/ieee754/k_standardf.c: Likewise.
9239         * sysdeps/ieee754/k_standardl.c: Likewise.
9240         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
9241         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
9242         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
9243         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
9244         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
9245         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
9246         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
9247         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
9248         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
9249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
9250         Likewise.
9251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
9252         Likewise.
9253         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
9254         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
9255         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
9256         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
9258 2017-08-21  Florian Weimer  <fweimer@redhat.com>
9260         [BZ #21864]
9261         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
9262         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
9263         Move before inclusion of ../Rules.
9265 2017-08-21  Florian Weimer  <fweimer@redhat.com>
9267         [BZ #21972]
9268         * assert/assert.h (assert): Use static_cast (bool) for C++.
9269         Use the ternary operator in the warning branch for GNU C.
9270         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
9271         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
9272         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
9273         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
9274         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
9276 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9278         [BZ #18822]
9279         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9280         (__syscall_clock_gettime): Add attribute_hidden.
9281         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
9282         (__start_context): Likewise.
9284 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9286         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9287         building libc.a.
9288         (hidden_proto): Likewise.
9289         (hidden_tls_proto): Likewise.
9290         (__hidden_proto): Likewise.
9292 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9294         * include/libc-symbols.h (attribute_hidden): Enable hidden
9295         visibility in libc.a compiled with PIE.
9297 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9299         [BZ #18822]
9300         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
9301         Add attribute_hidden.
9303 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9305         [BZ #21864]
9306         * Makerules (all-nonlib): Add $(others-extras).
9307         * catgets/Makefile (others-extras): New.
9308         * elf/Makefile (others-extras): Likewise.
9309         * nss/Makefile (others-extras): Likewise.
9311 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9313         [BZ #18822]
9314         * csu/libc-start.c (__libc_multiple_libcs): Removed.
9315         * elf/dl-open.c: Include <libc-internal.h>.
9316         (__libc_multiple_libcs): Removed.
9317         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
9318         <hp-timing.h>.
9319         * include/libc-internal.h (__libc_multiple_libcs): New.
9320         * misc/sbrk.c: Include <libc-internal.h>.
9321         (__libc_multiple_libcs): Removed.
9323 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9325         [BZ #18822]
9326         * grp/initgroups.c (__nss_group_database): Removed.
9327         (__nss_initgroups_database): Likewise.
9328         * nscd/gai.c (__nss_hosts_database): Likewise.
9329         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
9330         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
9331         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
9332         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
9333         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
9334         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
9335         attribute_hidden.
9336         * nss/nsswitch.c (__nss_database_custom): Define only if
9337         USE_NSCD is defined.
9338         (__nss_configure_lookup): Use __nss_database_custom only if
9339         USE_NSCD is defined.
9340         * nss/nsswitch.h (__nss_database_custom): Declare only if
9341         USE_NSCD is defined.  Add attribute_hidden.
9342         (__nss_setent): Add attribute_hidden.
9343         (__nss_endent): Likewise.
9344         (__nss_getent_r): Likewise.
9345         (__nss_getent): Likewise.
9346         (DEFINE_DATABASE): Declare __nss_##arg##_database.
9348 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9350         [BZ #18822]
9351         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
9352         libc_hidden_proto and libc_hidden_def.
9354 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9356         [BZ #18822]
9357         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
9358         Add libc_hidden_proto.
9359         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
9360         Add libc_hidden_def.
9362 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9364         [BZ #21974]
9365         * gmon/Makefile (routines): Remove bb_init_func and
9366         bb_exit_func.
9367         (elide-routines.os): Removed.
9368         * gmon/bb_exit_func.c: Likewise.
9369         * gmon/bb_init_func.c: Likewise.
9370         * include/sys/gmon.h (__bb): Likewise.
9371         (__bb_init_func): Likewise.
9372         (__bb_exit_func): Likewise.
9373         * sysdeps/alpha/bb_init_func.S: Likewise.
9375 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9377         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
9378         * include/setjmp.h (____longjmp_chk): Here.  Add
9379         attribute_hidden.
9381 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9383         [BZ #18822]
9384         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
9385         attribute_hidden.
9386         (__strspn_sse2): Likewise.
9388 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9390         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
9391         (close_not_cancel_no_status): Likewise.
9392         (__close_nocancel): New macro.
9393         (__close_nocancel_nostatus): Likewise.
9394         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
9395         macro.
9396         (close_not_cancel): Likewise.
9397         (close_not_cancel_no_status): Likewise.
9398         (__close_nocancel): New prototype.
9399         (__close_nocancel_nostatus): New function.
9400         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
9401         * catgets/open_catalog.c (__open_catalog): Replace
9402         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
9403         * gmon/gmon.c (write_gmon): Likewise.
9404         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9405         * intl/loadmsgcat.c (close): Likewise.
9406         * io/ftw.c (open_dir_stream): Likewise.
9407         (ftw_startup): Likewise.
9408         * libio/fileops.c (_IO_file_open): Likewise.
9409         (_IO_file_close_mmap): Likewise.
9410         (_IO_file_close): Likewise.
9411         * libio/iopopen.c (_IO_dup2): Likewise.
9412         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9413         * locale/loadlocale.c (_nl_load_locale): Likewise.
9414         * login/utmp_file.c (pututline_file): Likewise.
9415         (endutent_file): Likewise.
9416         * misc/daemon.c (daemon): Likewise.
9417         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9418         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9419         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9420         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9421         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9422         * nscd/nscd_helper.c (open_socket): Likewise.
9423         (__nscd_open_socket): Likewise.
9424         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9425         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
9426         (__nscd_innetgr): Likewise.
9427         * nss/nss_db/db-open.c (internal_setent): Likewise.
9428         * resolv/res-close.c (__res_iclose): Likewise.
9429         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
9430         * sysdeps/posix/closedir.c (__closedir): Likewise.
9431         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
9432         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9433         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9434         (opendir_tail): Likewise.
9435         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9436         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
9437         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9438         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9439         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9440         (gethostid): Likewise.
9441         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9442         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9443         Likewise.
9444         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9445         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
9446         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9447         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9448         Likewise.
9449         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
9450         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
9451         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9452         Likewise.
9453         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
9454         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9455         Likewise.
9456         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9457         Likewise.
9458         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9459         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9460         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9461         __close_nocancel.
9463         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
9464         (openat_not_cancel_3): Likewise.
9465         (openat64_not_cancel_3): Likewise).
9466         (openat_not_cancel_3): Likewise).
9467         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
9468         macro.
9469         (openat_not_cancel_3): Likewise.
9470         (openat64_not_cancel): Likewise.
9471         (openat64_not_cancel_3): Likewise.
9472         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
9473         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
9474         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
9475         __open{64}_nocancel.
9476         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9477         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9478         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9480 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9482         [BZ #18822]
9483         * include/argz.h (__argz_create_sep): New function prototype.
9484         (__argz_append): Likewise.
9485         (__argz_add): Likewise.
9486         (__argz_add_sep): Likewise.
9487         (__argz_delete): Likewise.
9488         (__argz_insert): Likewise.
9489         (__argz_replace): Likewise.
9490         * string/argz.h (__argz_create_sep): Removed.
9491         (__argz_append): Likewise.
9492         (__argz_add): Likewise.
9493         (__argz_add_sep): Likewise.
9494         (__argz_delete): Likewise.
9495         (__argz_insert): Likewise.
9496         (__argz_replace): Likewise.
9498 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9500         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
9501         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
9502         (GNU_PROPERTY_STACK_SIZE): Likewie.
9503         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
9504         (GNU_PROPERTY_LOPROC): Likewise.
9505         (GNU_PROPERTY_HIPROC): Likewise.
9506         (GNU_PROPERTY_LOUSER): Likewise.
9507         (GNU_PROPERTY_HIUSER): Likewise.
9508         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
9509         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
9510         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
9511         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
9512         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
9513         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
9514         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
9515         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
9516         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
9517         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
9518         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
9519         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
9520         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
9521         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
9522         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
9523         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
9524         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
9525         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
9526         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
9527         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
9528         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
9529         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
9530         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
9532 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9534         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
9535         in C++ mode.
9537 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9539         [BZ #21930]
9540         * math/math.h (isinf): Check if in C or C++ mode before using
9541         __builtin_types_compatible_p, since this is a C mode feature.
9543 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9545         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
9546         (__write_nocancel): New macro.
9547         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
9548         Rewrite as a function prototype.
9549         (write_not_cancel): Remove macro.
9550         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
9551         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
9552         (write_gmon): Likewise.
9553         * libio/fileops.c (_IO_new_file_write): Likewise.
9554         * login/utmp_file.c (pututline_file): Likewise.
9555         (updwtmp_file): Likewise.
9556         * stdio-common/psiginfo.c (psiginfo): Likewise.
9557         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9558         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9559         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9560         Likewise.
9561         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9562         Likewise.
9564         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9565         (__read_nocancel): New macro.
9566         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9567         __read_nocancel.
9568         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9569         macro.
9570         (__read_nocancel): New prototype.
9571         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9572         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9573         with __read_nocancel.
9574         * intl/loadmsgcat.c (read): Likewise.
9575         * libio/fileops.c (_IO_file_read): Likewise.
9576         * locale/loadlocale.c (_nl_load_locale): Likewise.
9577         * login/utmp_file.c (getutent_r_file): Likewise.
9578         (internal_getut_r): Likewise.
9579         (getutline_r_file): Likewise.
9580         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9581         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9582         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9583         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9584         Likewise.
9585         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9586         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9587         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9588         Likewise.
9589         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9590         Likewise.
9591         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9592         Likewise.
9593         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9594         Likewise.
9595         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9597 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9599         [BZ #21966]
9600         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9601         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9602         usable.
9604 2017-08-17  DJ Delorie  <dj@redhat.com>
9606         * bug17079.c: Update to new test harness.
9607         * test-digits-dots.c: Likewise.
9608         * test-netdb.c: Likewise.
9609         * tst-field.c: Likewise.
9610         * tst-nss-getpwent.c: Likewise.
9611         * tst-nss-static.c: Likewise.
9612         * tst-nss-test1.c: Likewise.
9613         * tst-nss-test2.c: Likewise.
9614         * tst-nss-test3.c: Likewise.
9615         * tst-nss-test4.c: Likewise.
9616         * tst-nss-test5.c: Likewise.
9618 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9620         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9621         (open_not_cancel_2): Likewise.
9622         (open_nocancel): New macro.
9623         (open64_nocancel): Likewise.
9624         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9625         (open_not_cancel_2): Likewise.
9626         (__open_nocancel): New prototype.
9627         (__open64_nocancel): Likewise.
9628         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9629         __open_nocancel.
9630         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9631         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9632         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9633         with __open_nocancel.
9634         * csu/check_fds.c (check_one_fd): Likewise.
9635         * gmon/gmon.c (write_gmon): Likewise.
9636         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9637         * intl/loadmsgcat.c (open): Likewise.
9638         * libio/fileops.c (_IO_file_open): Likewise.
9639         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9640         * locale/loadlocale.c (_nl_load_locale): Likewise.
9641         * login/utmp_file.c (setutent_file): Likewise.
9642         * misc/daemon.c (daemon): Likewise.
9643         * nss/nss_db/db-open.c (internal_setent): Likewise.
9644         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9645         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9646         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9647         (__opendir): Likewise.
9648         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9649         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9650         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9651         (gethostid): Likewise.
9652         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9653         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9654         Likewise.
9655         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9656         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9657         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9658         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9659         Likewise.
9660         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9661         Likewise.
9662         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9663         Likewise.
9664         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9665         Likewise.
9666         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9667         Likewise.
9668         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9669         Likewise.
9670         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9671         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9673 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9675         * benchtests/bench-skeleton.c (main): Add support for
9676         latency benchmarking.
9677         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9679 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9681         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9682         the startup object.
9684 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9686         * include/sys/socket.h (__opensock): Remove internal_function.
9687         * socket/opensock.c (__opensock): Likewise.
9688         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9690 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9692         [BZ #21944]
9693         * signal/bits/types/__sigval_t.h: New file.
9694         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9695         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9696         and define sigval_t using __sigval_t.
9697         * include/bits/types/__sigval_t.h: New file.
9698         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9699         instead of <bits/types/__sigval_t.h>.
9700         (struct sigevent): Use __sigval_t instead of sigval_t.
9701         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9702         instead of <bits/types/__sigval_t.h>.
9703         (siginfo_t): Use __sigval_t instead of sigval_t.
9704         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9705         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9706         (struct sigevent): Use __sigval_t instead of sigval_t.
9707         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9708         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9709         (siginfo_t): Use __sigval_t instead of sigval_t.
9710         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9712 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9714         * NEWS: Remove "[Add new features here]" for 2.27.
9716 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9718         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9719         libc.so.
9721 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9723         * NEWS: Mention x86-64 FMA optimization.
9725 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9727         [BZ #21912]
9728         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9729         Add e_expf-fma.
9730         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9731         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9732         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9734 2017-08-16  Andreas Schwab  <schwab@suse.de>
9736         [BZ #16750]
9737         CVE-2009-5064
9738         * elf/ldd.bash.in: Never run file directly.
9740 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9742         [BZ #21955]
9743         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9744         (L(SP_INF_0)): Likewise.
9746 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9748         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9749         run-built-tests.
9751 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9753         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9754         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9755         BROKEN_THREAD_SIGNALS code.
9756         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9757         request_list): Remove caller_pid member used for
9758         BROKEN_THREAD_SIGNALS.
9759         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9760         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9761         Remove BROKEN_THREAD_SIGNALS support.
9762         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9763         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9765 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9767         * gmon/Makefile (tests): Add tst-gmon.
9768         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9769         Set.
9770         (tests-special): Add tst-gmon-prof.out.
9771         (tst-gmon.out): Depend on clean-tst-gmon-data.
9772         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9773         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9774         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9775         startup object.
9776         * aclocal.m4 (GPROF): Set and substitute.
9777         * config.amke.in (GPROF): Set.
9778         * configure: Regenerate.
9780 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9782         * elf/elf.h A (NT_PPC_TAR): New macro.
9783         (NT_PPC_PPR): Likewise.
9784         (NT_PPC_DSCR): Likewise.
9785         (NT_PPC_EBB): Likewise.
9786         (NT_PPC_PMU): Likewise.
9787         (NT_PPC_TM_CGPR): Likewise.
9788         (NT_PPC_TM_CFPR): Likewise.
9789         (NT_PPC_TM_CVMX): Likewise.
9790         (NT_PPC_TM_CVSX): Likewise.
9791         (NT_PPC_TM_SPR): Likewise.
9792         (NT_PPC_TM_CTAR): Likewise.
9793         (NT_PPC_TM_CPPR): Likewise.
9794         (NT_PPC_TM_CDSCR): Likewise.
9796 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9798         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9799         regparm (2) instead of internal_function.
9800         (_MCOUNT_DECL): Adjust.
9802 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9804         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9805         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9807 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9809         * conform/data/sys/wait.h-data (si_value): Do not expect for
9810         XPG42.
9812 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9814         [BZ #21962]
9815         NSS: Create stubs for accidentally exported lookup functions.
9816         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9817         Remove declaration.
9818         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9819         (ether_hostton): Call __nss_ethers_lookup2 instead.
9820         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9821         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9822         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9823         (setup): Call __nss_netgroup_lookup2 instead.
9824         * nss/Makefile (routines): Add compat-lookup.
9825         * nss/Versions (GLIBC_2.27): Add symbol version.
9826         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9827         (DB_COMPAT_FCT): Remove.
9828         * nss/compat-lookup.c: New file.
9829         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9830         from databases.def.
9831         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9832         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9833         (netname2user): Call __nss_publickey_lookup2 instead.
9834         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9835         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9836         instead.
9838 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9839             Sergei Trofimovich  <slyfox@inbox.ru>
9841         [BZ #21908]
9842         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9843         Rename to MMAP2_PAGE_UNIT.
9844         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9845         __OFF_T_MATCHES_OFF64_T is not defined.
9846         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9847         uint64_t.
9848         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9849         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9851 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9853         i386: Do not set internal_function.
9854         * config.h.in (USE_REGPARMS, internal_function): Remove.
9855         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9856         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9858 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9860         * elf/dl-init.c (_dl_init): Remove internal_function.
9861         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9862         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9864 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9866         * elf/rtld.c (_dl_start): Remove internal_function.
9867         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9868         _dl_start.
9870 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9872         * elf/dl-fini.c (_dl_fini): Remove internal_function
9873         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9875 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9877         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9878         (bit_cpu_SHSTK): Likewise.
9879         (index_cpu_IBT): Likewise.
9880         (index_cpu_SHSTK): Likewise.
9881         (reg_IBT): Likewise.
9882         (reg_SHSTK): Likewise.
9883         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9884         Handle index_cpu_IBT and index_cpu_SHSTK.
9886 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9888         [BZ #19982]
9889         * po/fr.po: Fix spelling mistake.
9891 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9893         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9894         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9895         (_dl_catch_error, _dl_receive_error): Likewise.
9896         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9897         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9898         (_dl_deallocate_tls): Likewise.
9899         * include/dlfcn.h (_dl_addr): Likewise.
9900         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9901         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9902         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9903         Likewise.
9905 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9907         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9908         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9909         internal_function.
9910         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9912 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9914         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9915         internal_function.
9916         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9917         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9918         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9919         internal_function from _dl_make_stack_executable_hook member.
9920         (_dl_make_stack_executable): Remove internal_function.
9921         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9922         Likewise.
9923         * sysdeps/unix/sysv/linux/dl-execstack.c
9924         (_dl_make_stack_executable): Likewise.
9926 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9928         * sysdeps/unix/sysv/linux/netlinkaccess.h
9929         (__netlink_assert_response): Remove internal_function.
9930         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9931         (__netlink_assert_response): Likewise.
9933 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9935         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9936         internal_function.
9937         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9939 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9941         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9942         internal_function.
9943         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9944         * inet/netgroup.h (__internal_setnetgrent)
9945         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9946         * inet/getnetgrent_r.c (__internal_setnetgrent)
9947         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9948         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9949         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9950         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9951         * nss/nsswitch.h (db_lookup_function): Likewise.
9953 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9955         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9956         Remove internal_function.
9957         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9958         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9959         message argument on the stack.
9960         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9961         Likeweise.
9963 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9965         Adapt test case data to the changes in the thousands
9966         separators.
9968         [BZ #20756]
9969         * localedata/tst-langinfo.sh: Adapt test case data.
9970         * stdlib/tst-strfmon_l.c: Likewise.
9971         * stdlib/tst-strtod4.c: Likewise.
9972         * stdlib/tst-strtod5i.c: Likewise.
9974 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9976         [BZ #21242]
9977         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9978         Suppress pedantic warning resulting from statement expression.
9979         (__ASSERT_FUNCTION): Add missing __extension__.
9981 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9983         * benchtests/bench-memmove-large.c: Print output in JSON
9984         format.
9985         * benchtests/bench-memmove.c: Likewise.
9987         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9988         * benchtests/bench-memchr.c (do_one_test): Likewise.
9989         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9990         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9991         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9992         * benchtests/bench-memmove.c (do_one_test): Likewise.
9993         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9994         * benchtests/bench-memset.c (do_one_test): Likewise.
9995         * benchtests/bench-string.h (test_init): Remove memsets.
9997 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9999         * manual/lang.texi
10000         (Computing the Width of an Integer Data Type): Rename section to
10001         "Width of an Integer Type".  Remove inaccurate statement regarding
10002         lack of C language facilities for determining width of integer
10003         types, and reorder content to improve flow and context of
10004         discussion.
10006 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
10008         * lang.texi (va_copy): Change standard from ISO to C99.
10009         (__va_copy): Add standard and header annotation.
10010         Update description for clarity of origins and current use.
10012 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10014         [BZ #21941]
10015         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
10016         xssqrtqp requires operands to be in Vector Registers
10017         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
10018         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
10019         (__ieee754_sqrtf128): Likewise.
10021 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10023         * sysdeps/aarch64/memcmp.S (memcmp):
10024         Rewrite of optimized memcmp.
10026 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10028         Introduce ld.so exceptions.
10029         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
10030         (_dl_exception_create, _dl_exception_create_format)
10031         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
10032         (_dl_catch_exception): Declare.
10033         (_dl_catch_error): Update comment.
10034         * elf/dl-error-skeleton.c (struct catch): Replace objname,
10035         errstring, malloced members with exception member.
10036         (_dl_out_of_memory): Remove.
10037         (fatal_error): New function, extracted from _dl_signal_error.
10038         (_dl_signal_exception, _dl_signal_cexception): New functions.
10039         (_dl_signal_error): Call _dl_exception_create to allocate an
10040         exception object.
10041         (_dl_catch_exception): New function, based on _dl_catch_error.
10042         (_dl_catch_error): Implement using _dl_catch_exception.
10043         * elf/dl-exception.c: New file.
10044         * elf/Makefile (dl-routines): Add dl-exception.
10045         (elide-routines.os): Likewise.
10046         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
10047         _dl_exception_create_format, _dl_exception_free.
10048         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
10049         _dl_signal_exception.
10050         * elf/dl-lookup.c (make_string): Remove.
10051         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
10052         _dl_signal_cexception, _dl_exception_free.
10053         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
10054         _dl_signal_exception.
10055         * elf/dl-sym.c (do_sym): Likewise.
10056         * elf/dl-version.c (make_string): Remove.
10057         (match_symbol): Use _dl_exception_create_format,
10058         _dl_signal_cexception, _dl_exception_free.
10059         (_dl_check_map_versions): Likewise.
10060         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
10061         _dl_catch_exception.
10062         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
10063         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
10064         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
10065         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
10066         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
10067         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
10068         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
10069         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
10070         Likewise.
10071         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
10072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
10073         (ld.so): Likewise.
10074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
10075         (ld.so): Likewise.
10076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
10077         Likewise.
10078         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
10079         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
10080         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
10081         Likewise.
10082         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
10083         Likewise.
10084         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
10086 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10088         * inet/net-internal.h (__inet6_scopeid_pton): Remove
10089         attribute_hidden, internal_function.
10090         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
10091         internal_function.
10093 2017-08-10  Florian Weimer  <fweimer@redhat.com>
10095         * malloc/malloc.c (get_max_fast): Reimplement as an inline
10096         function which calls __builtin_unreachable.
10098 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
10100         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
10101         Indian monetary formatting
10102         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
10103         test cases.
10105 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
10107         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
10108         Fix typo in comment.
10110         [BZ #21928]
10111         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
10112         PTRACE_SEIZE_DEVEL): Remove.
10113         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
10114         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10115         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10116         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10117         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10119 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
10121         * posix/bits/types.h (__qaddr_t): Remove.
10123         [BZ #21457]
10124         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
10125         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10126         __glibc_reserved1.
10127         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
10128         (ucontext_t): Use __ctx with uc_flags.
10129         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
10130         (__ctxt): Likewise.
10131         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10132         __glibc_reserved1.
10133         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
10134         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10135         __glibc_reserved1.
10136         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
10137         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10138         __glibc_reserved1.
10139         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
10140         macro.
10141         (ucontext_t): Use __ctx with uc_flags.
10142         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
10143         (ucontext_t): Use __ctx with uc_flags.
10144         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
10145         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
10146         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
10147         (ucontext_t): Use __ctx with uc_flags.
10148         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
10149         undefine further down.
10150         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
10151         __glibc_reserved1.
10152         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
10153         undefine further down.
10154         (ucontext_t): Use __ctx with uc_flags.
10155         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
10156         undefine further down.
10157         (ucontext_t): Use __ctx with uc_flags.
10158         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
10159         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
10160         Rename uc_pad to __glibc_reserved1.
10161         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
10162         undefine further down.
10163         (ucontext_t): Use __ctx with uc_flags.
10164         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
10165         further down.
10166         (ucontext_t): Use __ctx with uc_flags.
10167         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
10168         __ctx with uc_flags.
10169         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
10170         (ucontext_t): Use __ctx with uc_flags.
10171         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
10172         __ctx with uc_flags.
10174 2017-08-09  Florian Weimer  <fweimer@redhat.com>
10176         [BZ #21932]
10177         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
10178         before early return.
10180 2017-08-09  Andreas Schwab  <schwab@suse.de>
10182         [BZ #21041]
10183         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
10184         renamed alias.
10186         [BZ #21041]
10187         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
10188         tst-compat-forwarder.
10189         (modules-names): Add tst-compat-forwarder-mod.
10190         ($(objpfx)tst-compat-forwarder): Depend on
10191         $(objpfx)tst-compat-forwarder-mod.so.
10192         * nptl/tst-compat-forwarder.c: New file.
10193         * nptl/tst-compat-forwarder-mod.c: New file.
10195 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10197         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
10198         comments.
10200         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
10201         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10202         memcpy_falkor.
10203         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
10204         Bump.
10205         (__libc_ifunc_impl_list): Add __memcpy_falkor.
10206         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
10207         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
10208         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
10209         Add falkor.
10210         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
10211         New macro.
10213 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10215         [BZ #759]
10216         * manual/setjmp.texi (getcontex): Document uc_stack value
10217         compatibility differences.
10219 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
10221         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
10222         (old_malloc_hook): Likewise.
10223         (old_memalign_hook): Likewise.
10224         (old_realloc_hook): Likewise.
10225         (struct hdr): Likewise.
10226         (flood): Likewise.
10227         (freehook): Likewise.
10228         (mallochook): Likewise.
10229         (memalignhook): Likewise.
10230         (reallochook): Likewise.
10231         (mprobe): Likewise.
10232         * malloc/mtrace.c (mallwatch): Likewise.
10233         (tr_old_free_hook): Likewise.
10234         (tr_old_malloc_hook): Likewise.
10235         (tr_old_realloc_hook): Likewise.
10236         (tr_old_memalign_hook): Likewise.
10237         (tr_where): Likewise.
10238         (lock_and_info): Likewise.
10239         (tr_freehook): Likewise.
10240         (tr_mallochook): Likewise.
10241         (tr_reallochook): Likewise.
10242         (tr_memalignhook): Likewise.
10243         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
10244         * misc/mmap.c (__mmap): Likewise.
10245         * misc/mmap64.c (__mmap64): Likewise.
10246         * misc/mprotect.c (__mprotect): Likewise.
10247         * misc/msync.c (msync): Likewise.
10248         * misc/munmap.c (__munmap): Likewise.
10249         * posix/posix_madvise.c (posix_madvise): Likewise.
10250         * socket/send.c (__send): Likewise.
10251         * socket/sendto.c (__sendto): Likewise.
10252         * socket/setsockopt.c (__setsockopt): Likewise.
10253         * string/memcmp.c (__ptr_t): Remove macro.
10254         (MEMCMP): Use void * instead of ptr_t.
10255         * string/memrchr.c (__ptr_t): Remove macro.
10256         (__memrchr): Use void * instead of ptr_t.
10257         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
10258         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
10259         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
10260         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
10261         * sysdeps/mach/msync.c (msync): Likewise.
10262         * sysdeps/mach/munmap.c (__munmap): Likewise.
10263         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
10264         Likewise.
10265         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
10266         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
10267         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
10268         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
10269         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10270         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
10271         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
10272         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
10273         Likewise.
10274         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
10275         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
10276         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
10277         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
10278         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
10279         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
10280         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
10281         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
10282         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
10283         Likewise.
10284         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
10285         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
10286         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
10287         (MEMCMP): Use void * instead of ptr_t.
10288         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
10289         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
10291 2017-08-08  Florian Weimer  <fweimer@redhat.com>
10293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
10294         return statement.
10296 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10298         [BZ #21913]
10299         * csu/libc-tls.c: Include <startup.h> first.
10300         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
10301         * elf/dl-tunables.c: Include <startup.h> first.
10302         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
10303         * sysdeps/generic/startup.h: New file.
10304         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
10305         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
10306         (I386_USE_SYSENTER): New.  Defined to 0.
10308 2017-08-08  Andreas Schwab  <schwab@suse.de>
10310         [BZ #21041]
10311         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
10312         * nptl/pt-system.c (system): Likewise.
10314 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10316         [BZ #21780]
10317         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
10318         EOPNOTSUPP.
10319         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
10320         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
10321         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
10322         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
10323         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
10324         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
10325         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
10327 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
10329         [BZ #21899]
10330         * bits/sigaction.h (struct sigaction): Define sa_handler and
10331         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
10332         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10333         [__USE_XOPEN_EXTENDED].
10334         (SA_RESTART): Likewise.
10335         (SA_NODEFER): Likewise.
10336         (SA_RESETHAND): Likewise.
10337         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
10338         (struct sigaction): Define sa_handler and sa_sigaction using union
10339         also for [__USE_XOPEN_EXTENDED].
10340         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10341         [__USE_XOPEN_EXTENDED].
10342         (SA_RESTART): Likewise.
10343         (SA_NODEFER): Likewise.
10344         (SA_RESETHAND): Likewise.
10345         * sysdeps/unix/sysv/linux/bits/sigaction.h
10346         (struct sigaction): Define sa_handler and sa_sigaction using union
10347         also for [__USE_XOPEN_EXTENDED].
10348         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10349         [__USE_XOPEN_EXTENDED].
10350         (SA_RESTART): Likewise.
10351         (SA_NODEFER): Likewise.
10352         (SA_RESETHAND): Likewise.
10353         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
10354         (struct sigaction): Define sa_handler and sa_sigaction using union
10355         also for [__USE_XOPEN_EXTENDED].
10356         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10357         [__USE_XOPEN_EXTENDED].
10358         (SA_RESTART): Likewise.
10359         (SA_NODEFER): Likewise.
10360         (SA_RESETHAND): Likewise.
10361         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
10362         (struct sigaction): Define sa_handler and sa_sigaction using union
10363         also for [__USE_XOPEN_EXTENDED].
10364         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10365         [__USE_XOPEN_EXTENDED].
10366         (SA_RESTART): Likewise.
10367         (SA_NODEFER): Likewise.
10368         (SA_RESETHAND): Likewise.
10369         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
10370         (struct sigaction): Define sa_handler and sa_sigaction using union
10371         also for [__USE_XOPEN_EXTENDED].
10372         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10373         [__USE_XOPEN_EXTENDED].
10374         (SA_RESTART): Likewise.
10375         (SA_NODEFER): Likewise.
10376         (SA_RESETHAND): Likewise.
10377         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
10378         (struct sigaction): Define sa_handler and sa_sigaction using union
10379         also for [__USE_XOPEN_EXTENDED].
10380         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10381         [__USE_XOPEN_EXTENDED].
10382         (SA_RESTART): Likewise.
10383         (SA_NODEFER): Likewise.
10384         (SA_RESETHAND): Likewise.
10385         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
10386         (struct sigaction): Define sa_handler and sa_sigaction using union
10387         also for [__USE_XOPEN_EXTENDED].
10388         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10389         [__USE_XOPEN_EXTENDED].
10390         (SA_RESTART): Likewise.
10391         (SA_NODEFER): Likewise.  Define directly rather than as alias.
10392         (SA_RESETHAND): Likewise.
10393         (SA_INTERRUPT): Define only for [__USE_MISC].
10394         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
10395         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
10396         [__USE_MISC].
10397         (SA_STACK): Define only for [__USE_MISC].
10398         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
10399         (struct sigaction): Define sa_handler and sa_sigaction using union
10400         also for [__USE_XOPEN_EXTENDED].
10401         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10402         [__USE_XOPEN_EXTENDED].
10403         (SA_RESTART): Likewise.
10404         (SA_NODEFER): Likewise.
10405         (SA_RESETHAND): Likewise.
10406         (SA_NOPTRACE): Define only for [__USE_MISC].
10408         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
10409         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
10410         (struct catalog_info): Likewise.
10411         * inet/htontest.c (lo): Likewise.
10412         (foo): Likewise.
10413         * inet/inet_lnaof.c (inet_lnaof): Likewise.
10414         * inet/inet_net.c (inet_network): Likewise.
10415         * inet/inet_netof.c (inet_netof): Likewise.
10416         * inet/rcmd.c (__ivaliduser): Likewise.
10417         (iruserok): Likewise.
10418         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
10419         * locale/programs/locale-spec.c (locale_special): Likewise.
10420         * nis/nis_findserv.c (struct findserv_req): Likewise.
10421         (__nis_findfastest_with_timeout): Likewise.
10422         * nss/test-netdb.c (test_network): Likewise.
10423         * resolv/inet_neta.c (inet_neta): Likewise.
10424         * resolv/ns_date.c (ns_datetosecs): Likewise.
10425         (SECS_PER_DAY): Likewise.
10426         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
10427         Likewise.
10428         * resolv/res_comp.c (__putlong): Likewise.
10429         (__putshort): Likewise.
10430         (_getlong): Likewise.
10431         (_getshort): Likewise.
10432         * resolv/res_debug.c (p_time): Likewise.
10433         (precsize_ntoa): Likewise.
10434         (precsize_aton): Likewise.
10435         (latlon2ul): Likewise.
10436         (loc_aton): Likewise.
10437         (loc_ntoa): Likewise.
10438         * resolv/res_hconf.c (struct netaddr): Likewise.
10439         (_res_hconf_reorder_addrs): Likewise.
10440         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
10441         (clnttcp_control): Likewise.
10442         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10443         (clntudp_control): Likewise.
10444         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
10445         (clntunix_control): Likewise.
10446         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
10447         * sunrpc/rpc/auth.h (union des_block): Likewise.
10448         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
10449         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
10450         (xdrrec_create): Likewise.
10451         (xdrrec_endofrecord): Likewise.
10452         (flush_out): Likewise.
10453         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
10454         (xdrstdio_putlong): Likewise.
10455         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
10456         Likewise.
10458         * misc/sys/cdefs.h (__long_double_t): Remove.
10459         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
10460         instead of __long_double_t,
10461         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
10463 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10465         * benchtests/scripts/compare_strings.py: Avoid display error when
10466         running on a text terminal.
10468         * benchtests/scripts/compare_strings.py (main): Add an
10469         optional -base option.
10470         (process_results): New argument base_func.
10472         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
10473         hardcoding memcpy.
10474         * benchtests/bench-memcpy-large.c (test_name): Likewise.
10475         * benchtests/bench-memcpy-random.c (test_name): Likewise.
10477 2017-08-07  Andreas Schwab  <schwab@suse.de>
10479         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
10480         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
10481         * intl/Makefile ($(objpfx)tst-gettext.out)
10482         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
10483         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
10484         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
10485         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
10486         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
10487         * posix/Makefile ($(objpfx)globtest.out)
10488         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
10489         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
10490         ($(objpfx)tst-printf.out): Likewise.
10491         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
10492         ($(objpfx)tst-setcontext3.out): Likewise.
10494 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10496         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10497         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
10498         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
10499         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
10500         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
10501         and mptan-fma.
10502         (CFLAGS-doasin-fma.c): New.
10503         (CFLAGS-dosincos-fma.c): Likewise.
10504         (CFLAGS-e_asin-fma.c): Likewise.
10505         (CFLAGS-e_atan2-fma.c): Likewise.
10506         (CFLAGS-e_exp-fma.c): Likewise.
10507         (CFLAGS-e_log-fma.c): Likewise.
10508         (CFLAGS-e_pow-fma.c): Likewise.
10509         (CFLAGS-halfulp-fma.c): Likewise.
10510         (CFLAGS-mpa-fma.c): Likewise.
10511         (CFLAGS-mpatan-fma.c): Likewise.
10512         (CFLAGS-mpatan2-fma.c): Likewise.
10513         (CFLAGS-mpexp-fma.c): Likewise.
10514         (CFLAGS-mplog-fma.c): Likewise.
10515         (CFLAGS-mpsqrt-fma.c): Likewise.
10516         (CFLAGS-mptan-fma.c): Likewise.
10517         (CFLAGS-s_atan-fma.c): Likewise.
10518         (CFLAGS-sincos32-fma.c): Likewise.
10519         (CFLAGS-slowexp-fma.c): Likewise.
10520         (CFLAGS-slowpow-fma.c): Likewise.
10521         (CFLAGS-s_sin-fma.c): Likewise.
10522         (CFLAGS-s_tan-fma.c): Likewise.
10523         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
10524         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
10525         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
10526         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
10527         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
10528         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10529         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
10530         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
10531         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
10532         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
10533         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
10534         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
10535         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
10536         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10537         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10538         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
10539         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
10540         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
10541         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
10542         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
10543         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
10544         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10545         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10546         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
10547         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10548         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10549         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10550         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
10551         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10552         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10553         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10555 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
10557         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
10558         (min_of_type_f): New macro.
10559         (min_of_type_): Likewise.
10560         (min_of_type_l): Likewise.
10561         (min_of_type_f128): Likewise.
10562         (min_of_type): Define using __MATH_TG and taking an expression
10563         argument.
10564         (math_check_force_underflow): Pass expression instead of type to
10565         min_of_type.
10566         (math_check_force_underflow_nonneg): Likewise.
10568 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10570         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10571         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10572         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10574 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10576         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10577         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10578         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10579         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10580         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10581         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10582         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10583         memmove_chk-nonshared and memset_chk-nonshared
10584         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10585         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10586         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10587         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10588         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10589         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10590         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10591         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10592         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10593         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10594         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10595         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10596         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10597         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10598         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10599         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10600         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10601         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10602         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10603         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10604         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10605         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10606         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10607         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10608         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10609         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10610         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10611         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10612         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10613         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10614         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10615         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10616         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10617         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10618         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10619         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10620         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10621         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10622         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10623         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10624         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10625         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10626         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10627         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10628         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10629         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10630         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10631         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10632         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10633         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10634         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10635         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10636         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10637         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10638         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10639         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10640         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10641         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10642         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10643         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10644         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10645         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10646         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10647         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10648         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10649         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10650         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10651         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10652         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10653         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10654         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10655         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10656         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10657         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10658         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10659         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10660         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10661         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10662         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10663         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10664         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10665         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10666         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10667         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10668         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10669         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10670         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10671         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10672         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10673         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10674         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10675         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10676         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10677         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10678         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10679         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10680         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10681         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10682         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10683         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10684         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10685         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10686         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10687         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10688         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10689         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10690         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10691         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10693 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10695         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10696         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10697         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10698         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10699         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10700         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10701         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10702         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10703         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10704         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10705         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10706         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10707         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10708         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10709         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10710         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10711         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10712         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10713         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10714         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10715         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10716         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10717         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10718         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10719         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10720         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10721         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10722         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10723         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10724         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10725         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10726         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10727         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10728         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10729         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10730         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10731         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10732         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10733         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10734         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10735         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10736         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10737         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10738         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10739         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10740         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10741         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10742         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10743         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10744         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10745         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10746         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10747         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10748         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10749         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10750         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10751         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10752         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10753         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10754         ...
10755         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10756         Don't include <sysdep.h> nor <init-arch.h>.
10757         (_ZGVbN2v_cos): Removed.
10758         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10759         ...
10760         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10761         Don't include <sysdep.h> nor <init-arch.h>.
10762         (_ZGVdN4v_cos): Removed.
10763         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10764         ...
10765         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10766         Don't include <sysdep.h> nor <init-arch.h>.
10767         (_ZGVeN8v_cos): Removed.
10768         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10769         ...
10770         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10771         Don't include <sysdep.h> nor <init-arch.h>.
10772         (_ZGVbN2v_exp): Removed.
10773         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10774         ...
10775         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10776         Don't include <sysdep.h> nor <init-arch.h>.
10777         (_ZGVdN4v_exp): Removed.
10778         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10779         ...
10780         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10781         Don't include <sysdep.h> nor <init-arch.h>.
10782         (_ZGVeN8v_exp): Removed.
10783         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10784         ...
10785         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10786         Don't include <sysdep.h> nor <init-arch.h>.
10787         (_ZGVbN2v_log): Removed.
10788         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10789         ...
10790         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10791         Don't include <sysdep.h> nor <init-arch.h>.
10792         (_ZGVdN4v_log): Removed.
10793         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10794         ...
10795         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10796         Don't include <sysdep.h> nor <init-arch.h>.
10797         (_ZGVeN8v_log): Removed.
10798         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10799         ...
10800         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10801         Don't include <sysdep.h> nor <init-arch.h>.
10802         (_ZGVbN2vv_pow): Removed.
10803         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10804         ...
10805         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10806         Don't include <sysdep.h> nor <init-arch.h>.
10807         (_ZGVdN4vv_pow): Removed.
10808         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10809         ...
10810         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10811         Don't include <sysdep.h> nor <init-arch.h>.
10812         (_ZGVeN8vv_pow): Removed.
10813         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10814         ...
10815         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10816         Don't include <sysdep.h> nor <init-arch.h>.
10817         (_ZGVbN2v_sin): Removed.
10818         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10819         ...
10820         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10821         Don't include <sysdep.h> nor <init-arch.h>.
10822         (_ZGVbN4v_sin): Removed.
10823         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10824         ...
10825         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10826         Don't include <sysdep.h> nor <init-arch.h>.
10827         (_ZGVbN8v_sin): Removed.
10828         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10829         ...
10830         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10831         Don't include <sysdep.h> nor <init-arch.h>.
10832         (_ZGVbN2vvv_sincos): Removed.
10833         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10834         ...
10835         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10836         Don't include <sysdep.h> nor <init-arch.h>.
10837         (_ZGVdN4vvv_sincos): Removed.
10838         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10839         ...
10840         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10841         Don't include <sysdep.h> nor <init-arch.h>.
10842         (_ZGVeN8vvv_sincos): Removed.
10843         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10844         ...
10845         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10846         Don't include <sysdep.h> nor <init-arch.h>.
10847         (_ZGVeN16v_cosf): Removed.
10848         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10849         ...
10850         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10851         Don't include <sysdep.h> nor <init-arch.h>.
10852         (_ZGVbN4v_cosf): Removed.
10853         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10854         ...
10855         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10856         Don't include <sysdep.h> nor <init-arch.h>.
10857         (_ZGVdN8v_cosf): Removed.
10858         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10859         ...
10860         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10861         Don't include <sysdep.h> nor <init-arch.h>.
10862         (_ZGVeN16v_expf): Removed.
10863         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10864         ...
10865         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10866         Don't include <sysdep.h> nor <init-arch.h>.
10867         (_ZGVbN4v_expf): Removed.
10868         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10869         ...
10870         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10871         Don't include <sysdep.h> nor <init-arch.h>.
10872         (_ZGVdN8v_expf): Removed.
10873         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10874         ...
10875         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10876         Don't include <sysdep.h> nor <init-arch.h>.
10877         (_ZGVeN16v_logf): Removed.
10878         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10879         ...
10880         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10881         Don't include <sysdep.h> nor <init-arch.h>.
10882         (_ZGVbN4v_logf): Removed.
10883         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10884         ...
10885         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10886         Don't include <sysdep.h> nor <init-arch.h>.
10887         (_ZGVdN8v_logf): Removed.
10888         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10889         ...
10890         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10891         Don't include <sysdep.h> nor <init-arch.h>.
10892         (_ZGVeN16vv_powf): Removed.
10893         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10894         ...
10895         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10896         Don't include <sysdep.h> nor <init-arch.h>.
10897         (_ZGVbN4vv_powf): Removed.
10898         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10899         ...
10900         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10901         Don't include <sysdep.h> nor <init-arch.h>.
10902         (_ZGVdN8vv_powf): Removed.
10903         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10904         ...
10905         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10906         Don't include <sysdep.h> nor <init-arch.h>.
10907         (_ZGVeN16vvv_sincosf): Removed.
10908         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10909         ...
10910         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10911         Don't include <sysdep.h> nor <init-arch.h>.
10912         (_ZGVbN4vvv_sincosf): Removed.
10913         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10914         ...
10915         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10916         Don't include <sysdep.h> nor <init-arch.h>.
10917         (_ZGVdN8vvv_sincosf): Removed.
10918         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10919         ...
10920         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10921         Don't include <sysdep.h> nor <init-arch.h>.
10922         (_ZGVeN16v_sinf): Removed.
10923         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10924         ...
10925         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10926         Don't include <sysdep.h> nor <init-arch.h>.
10927         (_ZGVbN4v_sinf): Removed.
10928         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10929         ...
10930         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10931         Don't include <sysdep.h> nor <init-arch.h>.
10932         (_ZGVdN8v_sinf): Removed.
10934 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10936         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10937         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10938         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10939         s_rint-sse4_1 and s_rintf-sse4_1.
10940         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10941         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10942         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10943         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10944         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10945         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10946         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10947         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10948         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10949         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10950         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10951         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10952         (__ceil): Removed.
10953         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10954         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10955         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10956         (__ceilf): Removed.
10957         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10958         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10959         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10960         (__floor): Removed.
10961         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10962         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10963         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10964         (__floorf): Removed.
10965         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10966         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10967         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10968         (__nearbyint): Removed.
10969         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10970         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10971         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10972         (__nearbyintf): Removed.
10973         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10974         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10975         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10976         (__rint): Removed.
10977         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10978         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10979         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10980         (__rintf): Removed.
10982 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10984         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10985         SHARED.  Avoid dynamic relocation against main in static PIE.
10987 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10989         [BZ #21815]
10990         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10991         (LDFLAGS-tst-prelink): Likewise.
10993 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10995         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10996         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10997         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10998         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10999         (INTERNAL_SYSCALL_NCS): Likewise.
11000         (LOADARGS_1): Likewise.
11001         (LOADARGS_5): Likewise.
11002         (RESTOREARGS_1): Likewise.
11003         (RESTOREARGS_5): Likewise.
11005 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11007         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
11008         (MEMPCPY_SYMBOL): Likewise.
11009         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11010         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
11011         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
11012         in libc.a.
11013         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11014         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
11015         Likewise.
11016         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
11017         (__hidden_ver1): Don't use in libc.a.
11018         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
11019         (__mempcpy): Don't create a weak alias in libc.a.
11020         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
11021         libc.a.
11022         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
11023         (__hidden_ver1): Don't use in libc.a.
11025 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11027         * config.make.in (have-insert): New.
11028         * configure.ac (libc_cv_insert): New.  Set to yes if linker
11029         supports INSERT in linker script.
11030         (AC_SUBST(libc_cv_insert): New.
11031         * configure: Regenerated.
11032         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
11033         if $(have-insert) == yes.
11035 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11037         * elf/Makefile (tests): Add vismain only if
11038         $(have-protected-data) == yes.
11039         (tests-pie): Likewise.
11041 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11043         [BZ #21871]
11044         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11045         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
11047 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11049         [BZ #21790]
11050         * sysdeps/i386/i586/memset.S
11051         (__memset_zero_constant_len_parameter): Removed.
11052         * sysdeps/i386/i686/memset.S
11053         (__memset_zero_constant_len_parameter): Likewise.
11054         * sysdeps/i386/i686/multiarch/memset_chk.S
11055         (__memset_zero_constant_len_parameter): Likewise.
11056         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
11057         Likewise.
11059 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
11061         * stdlib/getentropy.c (getentropy): Change return type to int.
11063 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
11065         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
11067 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
11069         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
11070         u_intN_t.
11071         * math/s_nexttowardf.c (__nexttowardf): Likewise.
11072         * sysdeps/generic/math_private.h (ieee_double_shape_type):
11073         Likewise.
11074         (ieee_float_shape_type): Likewise.
11075         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
11076         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
11077         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
11078         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11079         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11080         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
11081         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
11082         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
11083         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11084         Likewise.
11085         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
11086         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11087         (__ieee754_yn): Likewise.
11088         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
11089         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
11090         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
11091         Likewise.
11092         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11093         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
11094         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
11095         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
11096         (__erfc): Likewise.
11097         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11098         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
11099         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
11100         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
11101         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
11102         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
11103         Likewise.
11104         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11105         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
11106         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11107         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
11108         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
11109         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
11110         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
11111         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
11112         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
11113         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
11114         (__issignaling): Likewise.
11115         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
11116         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
11117         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11118         Likewise.
11119         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11120         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
11121         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
11122         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
11123         Likewise.
11124         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
11125         Likewise.
11126         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
11127         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
11128         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
11129         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11130         (__erfcf): Likewise.
11131         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11132         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11133         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
11134         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
11135         Likewise.
11136         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
11137         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
11138         Likewise.
11139         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11140         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
11141         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11142         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
11143         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
11144         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
11145         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
11146         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
11147         Likewise.
11148         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
11149         Likewise.
11150         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11151         Likewise.
11152         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
11153         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11154         Likewise.
11155         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11156         Likewise.
11157         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11158         (__ieee754_ynl): Likewise.
11159         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11160         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
11161         Likewise.
11162         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
11163         Likewise.
11164         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11165         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
11166         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11167         Likewise.
11168         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11169         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
11170         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
11171         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
11172         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
11173         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11174         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
11175         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
11176         Likewise.
11177         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
11178         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
11179         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
11180         Likewise.
11181         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11182         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
11183         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11184         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
11185         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
11186         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
11187         Likewise.
11188         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
11189         Likewise.
11190         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11191         Likewise.
11192         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11193         Likewise.
11194         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
11195         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
11196         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11197         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
11198         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11199         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
11200         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
11201         Likewise.
11202         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11203         Likewise.
11204         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11205         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11206         Likewise.
11207         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11208         (__ieee754_remainderl): Likewise.
11209         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11210         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11211         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
11212         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
11213         Likewise.
11214         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
11215         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11216         Likewise.
11217         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11218         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
11219         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11220         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11221         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
11222         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11223         Likewise.
11224         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11225         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
11226         (__ieee754_y0l): Likewise.
11227         (pzero): Likewise.
11228         (qzero): Likewise.
11229         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11230         (__ieee754_y1l): Likewise.
11231         (pone): Likewise.
11232         (qone): Likewise.
11233         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11234         (__ieee754_ynl): Likewise.
11235         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
11236         (__ieee754_lgammal_r): Likewise.
11237         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
11238         Likewise.
11239         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11240         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
11241         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11242         (__erfcl): Likewise.
11243         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
11244         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
11245         Likewise.
11246         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11247         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
11248         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11249         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
11250         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
11251         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11252         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11253         Likewise.
11254         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
11255         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
11256         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
11257         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
11258         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11259         Likewise.
11260         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
11261         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
11262         Likewise.
11263         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
11264         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
11265         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
11266         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
11267         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11269 2017-08-03  Florian Weimer  <fweimer@redhat.com>
11271         [BZ #21885]
11272         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
11273         on memory allocation failure.
11275 2017-08-03  Alan Modra  <amodra@gmail.com>
11277         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
11278         tst-tlsopt-powerpc.c with function name change and no test harness.
11279         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
11280         Call tls_get_addr_opt_test.
11281         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
11282         (modules-names): Add mod-tlsopt-powerpc.
11283         (mod-tlsopt-powerpc.so-no-z-defs): Define.
11284         (tst-tlsopt-powerpc): Depend on .so.
11285         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
11286         define.  Expand use in TLS_GD and TLS_LD.
11288 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11290         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
11291         function.
11292         * sysdeps/posix/shm_open.c: Include <pthread.h>.
11294 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11296         [BZ #21686]
11297         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
11298         comparing size with that of double.
11299         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11300         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11301         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11302         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11303         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11304         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
11305         unsigned __int128 types.
11307 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
11309         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
11310         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
11311         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
11312         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
11313         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
11315 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11317         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
11319 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11321         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
11322         of SHARED.
11323         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
11324         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11325         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11326         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11327         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11328         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11329         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11331 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11333         [BZ #21685]
11334         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
11335         bit-field expressions passed to sizeof or typeof.
11336         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11337         (__TGMATH_F128): Likewise.
11338         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11339         (__TGMATH_CF128): Likewise.
11340         (__TGMATH_UNARY_REAL_ONLY): Likewise.
11341         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
11342         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
11343         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
11344         (__TGMATH_BINARY_REAL_ONLY): Likewise.
11345         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11346         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11347         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11348         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11349         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
11350         (__TGMATH_UNARY_REAL_IMAG): Likewise.
11351         (__TGMATH_UNARY_IMAG): Likewise.
11352         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
11353         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11354         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
11355         type.
11356         (define_vars_for_type): Handle bit_field type specially.
11357         (Tests.__init__): Declare structure with bit-field element.
11359 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11361         [BZ #21791]
11362         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
11363         (MEMCPY_CHK): Define only if SHARED is defined.
11364         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
11365         Likewise.
11366         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
11367         Likewise.
11369 See ChangeLog.18 for earlier changes.