posix: Fix generic p{read,write}v buffer allocation (BZ#22457)
[glibc.git] / ChangeLog
blob6791c51308edc57477836a705025c5f231f489ee
1 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3         [BZ #22457]
4         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
5         posix_memalign/free.
6         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
8 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
10         [BZ #22469]
11         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
12         and implement the collation rules for pl from CLDR on top of that.
13         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
14         of locales to be built for testing.
15         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
17 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
19         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
20         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21         libm_alias_ldouble_other.
22         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
25         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
26         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
28         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
29         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
30         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
31         libm_alias_ldouble_r.
32         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
33         libm_alias_ldouble_other.
34         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
35         (log10l): Likewise.
36         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
37         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
38         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
39         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
40         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
41         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
42         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
43         (atan2l): Likewise.
44         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
45         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
46         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
47         libm_alias_ldouble.
48         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
49         (cosl): Likewise.
50         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
51         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
52         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
53         (expl): Likewise.
54         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
55         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
56         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
57         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
58         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
59         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
60         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
61         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
62         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
63         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
64         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
65         libm_alias_ldouble.
66         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
67         libm_alias_ldouble_other.
68         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
69         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
70         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
71         libm_alias_ldouble.
72         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
73         libm_alias_ldouble_other.
74         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
75         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
76         * sysdeps/ia64/fpu/w_lgammal_main.c
77         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
78         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
80 2017-11-23  Florian Weimer  <fweimer@redhat.com>
82         * malloc/malloc.c (tcache_thread_shutdown): Rename from
83         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
84         alike.  Remove freeres marker.
85         * malloc/arena.c (arena_thread_freeres): Call
86         tcache_thread_shutdown.
88 2017-11-23  Florian Weimer  <fweimer@redhat.com>
90         [BZ #22459]
91         Export nscd hash function as __nss_hash.
92         * include/nss.h (__nss_hash): Declare.
93         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
94         symbol.
95         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
96         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
97         of __nscd_hash.
98         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
99         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
100         * nss/Makefiles (routines): Add nss_hash.
101         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
102         * nss/nss_hash.c: Rename from nis/nis_hash.c.
103         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
104         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
106 2017-11-23  Florian Weimer  <fweimer@redhat.com>
108         [BZ #22478]
109         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
110         Return error code, not -1.
111         * signal/tst-sigwait-eintr.c: New file.
112         * signal/Makefile (tests): Add tst-sigwait-eintr.
114 2017-11-23  Florian Weimer  <fweimer@redhat.com>
116         Linux: Add memfd_create system call wrapper
117         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
118         tst-memfd_create.
119         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
120         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
121         [__USE_GNU] (memfd_create): Declare.
122         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
123         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
124         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
125         * sysdeps/unix/sysv/linux/**.abilist: Update.
126         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
128 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
130         * localedata/gen-locale.sh: Fix typo in variable name.
132         * resolv/res_debug.c (p_secstodate): Condition definition on
133         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
134         directly as __p_secstodate, and as a compat symbol.  Do not use
135         libresolv_hidden_def.
136         * resolv/resolv.h (p_secstodate): Remove macro and function
137         declaration.
138         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
139         using p_secstodate.
140         * include/resolv.h (__p_secstodate): Do not use
141         libresolv_hidden_proto.
142         * resolv/Makefile (tests): Move tst-p_secstodate to ....
143         (tests-internal): ... here.
144         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
145         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
146         and declare and use __p_secstodate and use compat_symbol_reference
147         in that case.
148         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
149         implementation returning 77.
151         [BZ #22463]
152         * resolv/res_debug.c: Include <libc-diag.h>.
153         (p_secstodate): Assert time_t at least as wide as u_long.  On
154         overflow, use integer seconds since the epoch as output, or use
155         "<overflow>" as output and set errno to EOVERFLOW if integer
156         seconds since the epoch would be 14 or more characters.
157         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
158         for sprintf call.
159         * resolv/tst-p_secstodate.c: New file.
160         * resolv/Makefile (tests): Add tst-p_secstodate.
161         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
163         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
164         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
165         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
167 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
169         * posix/regcomp.c (init_word_char): Add comments.
171 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
173         [BZ #22447]
174         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
175         strlen to compute length of ut_user and set trailing NUL byte of
176         result explicitly.
178 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
180         [BZ #15537]
181         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
182         using “copy "iso14651_t1"” and then implementing the
183         collation rules for lv from CLDR on top of that.
184         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
185         of locales to be built for testing.
186         * lv_LV.UTF-8.in: New file with test data to test the Latvian
187         sorting.
189 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
191         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
192         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
193         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
194         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
195         [__USE_MISC] (MADV_HWPOISON): New macro.
196         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
198 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
200         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
201         -Wmissing-braces on GCC 4.9.
203 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
205         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
206         * sysdeps/s390/s390-32/start.S (_start): Likewise
207         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
208         (thread_start): Likewise.
209         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
210         (thread_start): Likewise.
211         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
212         (__makecontext_ret): Likewise.
213         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
214         (__makecontext_ret): Likewise.
216 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
218         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
219         __wcschrnul): Remove attribute_hidden.
221 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
223         regex: don't assume uint64_t or uint32_t
224         This avoids -Werror=overflow errors for 32-bit systems in
225         the 64-bit case.  Problem reported by Joseph Myers in:
226         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
227         Also, when this code is used in Gnulib it ports to platforms
228         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
229         them, and on some 32-bit compilers there is no uint64_t.
230         Problem reported by Gianluigi Tiesi in:
231         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
232         * posix/regcomp.c (init_word_char): Don't assume that the types
233         uint64_t and uint32_t exist.  Adapted from Gnulib patch
234         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
235         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
237 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
239         * sysdeps/aarch64/memset-reg.h: New file.
240         * sysdeps/aarch64/memset.S: Use it.
241         (__memset): Rename to MEMSET macro.
242         [ZVA_MACRO]: Use zva_macro.
243         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
244         Add memset_generic and memset_falkor.
245         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
246         (__libc_ifunc_impl_list): Add memset ifuncs.
247         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
248         local variable zva_size.
249         * sysdeps/aarch64/multiarch/memset.c: New file.
250         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
251         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
252         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
253         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
254         (DCZID_DZP_MASK): New macro.
255         (DCZID_BS_MASK): Likewise.
256         (init_cpu_features): Read and set zva_size.
257         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
258         (struct cpu_features): New member zva_size.
260         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
261         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
262         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
264         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
265         backwards.  Fix timing computation.
266         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
267         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
268         on memset by N at a time.  Fix timing computation.
270 2017-11-20  Florian Weimer  <fweimer@redhat.com>
272         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
273         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
275 2017-11-19  Florian Weimer  <fweimer@redhat.com>
277         manual: Document mprotect
278         * manual/memory.texi (Memory Protection): New section.
279         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
280         documentation of PROT_* flags and reference the Memory Protection
281         section instead.
283 2017-11-19  Florian Weimer  <fweimer@redhat.com>
285         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
286         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
287         (Scatter-Gather): ... to here.  Remove misleading comment.
289 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
291         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
292         style.
294         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
295         when /proc/<pid>/setgroups does not exist.
297 2017-11-18  Florian Weimer  <fweimer@redhat.com>
299         * sysdeps/unix/sysv/linux/tst-ttyname.c
300         (become_root_in_mount_ns): Remove.
301         (do_in_chroot_1): Call support_enter_mount_namespace.
302         (do_in_chroot_2): Likewise.
303         (do_test): Call support_become_root early.
305 2017-11-18  Florian Weimer  <fweimer@redhat.com>
307         * support/namespace.h (support_enter_mount_namespace): Declare.
308         * support/support_enter_mount_namespace.c: New file.
309         * support/Makefile (libsupport-routines): Add
310         support_enter_mount_namespace.
312 2017-11-18  Florian Weimer  <fweimer@redhat.com>
314         * support/temp_file.c (support_create_temp_directory): Use
315         test_dir and do not rely on the presence of the XXXXXX suffix.
316         * support/temp_file.h (support_create_temp_directory): Update
317         comment.
318         * support/tst-xreadlink.c (do_test): Adjust.
319         * support/support_chroot.c (support_chroot_create): Likewise.
321 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
323         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
324         macro.
325         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
326         htm-no-suspend.
328 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
330         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
331         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
332         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
333         (ceill): Define using libm_alias_ldouble.
334         * sysdeps/x86_64/fpu/s_copysignl.S: Include
335         <libm-alias-ldouble.h>.
336         (copysignl): Define using libm_alias_ldouble.
337         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
338         (fabsl): Define using libm_alias_ldouble.
339         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
340         (floorl): Define using libm_alias_ldouble.
341         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
342         (fmaxl): Define using libm_alias_ldouble.
343         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
344         (fminl): Define using libm_alias_ldouble.
345         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
346         (llrintl): Define using libm_alias_ldouble.
347         (lrintl): Likewise.
348         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
349         <libm-alias-ldouble.h>.
350         (nearbyintl): Define using libm_alias_ldouble.
351         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
352         (truncl): Define using libm_alias_ldouble.
353         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
354         <libm-alias-ldouble.h>.
355         (lrintl): Define using libm_alias_ldouble.
357         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
358         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
359         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
360         (asinhl): Define using libm_alias_ldouble.
361         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
362         (atanl): Define using libm_alias_ldouble.
363         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
364         (cbrtl): Define using libm_alias_ldouble.
365         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
366         (ceill): Define using libm_alias_ldouble.
367         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
368         (copysignl): Define using libm_alias_ldouble.
369         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
370         (fabsl): Define using libm_alias_ldouble.
371         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
372         (floorl): Define using libm_alias_ldouble.
373         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
374         (fmaxl): Define using libm_alias_ldouble.
375         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
376         (fminl): Define using libm_alias_ldouble.
377         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
378         (frexpl): Define using libm_alias_ldouble.
379         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
380         (llrintl): Define using libm_alias_ldouble.
381         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
382         (logbl): Define using libm_alias_ldouble.
383         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
384         (lrintl): Define using libm_alias_ldouble.
385         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
386         (nearbyintl): Define using libm_alias_ldouble.
387         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
388         (nextafterl): Define using libm_alias_ldouble.
389         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
390         (remquol): Define using libm_alias_ldouble.
391         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
392         (rintl): Define using libm_alias_ldouble.
393         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
394         (truncl): Define using libm_alias_ldouble.
395         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
396         (fmaxl): Define using libm_alias_ldouble.
397         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
398         (fminl): Define using libm_alias_ldouble.
400         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
401         to C syntax instead of availability and properties of types.
402         * bits/floatn.h [!__ASSEMBLER]: Likewise.
403         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
404         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
405         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
406         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
407         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
409 2017-11-17  Florian Weimer  <fweimer@redhat.com>
411         support_become_root: Enable file creation in namespaces.
412         * support/support_become_root.c (setup_mapping): New function.
413         (support_become_root): Call it.
415 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
417         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
418         macro.
420 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
422         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
423         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
425 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
427         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
429         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
430         version to 4.14.
432 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
434         * INSTALL: Fix botched up regeneration.
436         * NEWS: Update sourceare link to https.
437         * configure.ac: Likewise.
438         * crypt/md5test-giant.c: Likewise.
439         * dlfcn/bug-atexit1.c: Likewise.
440         * dlfcn/bug-atexit2.c: Likewise.
441         * localedata/README: Likewise.
442         * malloc/tst-mallocfork.c: Likewise.
443         * manual/install.texi: Likewise.
444         * nptl/tst-pthread-getattr.c: Likewise.
445         * stdio-common/tst-fgets.c: Likewise.
446         * stdio-common/tst-fwrite.c: Likewise.
447         * sunrpc/Makefile: Likewise.
448         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
449         * wcsmbs/tst-mbrtowc2.c: Likewise.
450         * configure: Regenerate.
451         * INSTALL: Regenerate.
453 2017-11-15  Martin Sebor  <msebor@redhat.com>
455         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
456         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
457         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
459 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
461         [BZ #22145]
462         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
463         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
465         [BZ #22145]
466         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
467         Defer is_pty check until end of the function.
468         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
470         [BZ #22145]
471         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
472         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
473         (ttyname): Likewise.
474         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
475         (__ttyname_r): Likewise.
477         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
478         int to bool.
480         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
482         * manual/terminal.texi (Is It a Terminal):
483         Mention ENODEV for ttyname and ttyname_r.
485 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
487         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
488         constant and macro.
490         * sysdeps/unix/sysv/linux/bits/mman-linux.h
491         [__USE_MISC] (MADV_WIPEONFORK): New macro.
492         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
493         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
494         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
495         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
497 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
499         * signal/sigrelse.c (sigrelse): Optimize implementation.
501         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
502         (__sigpause): Rely on __sigsuspend to implement single thread
503         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
505 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
507         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
508         kernel version to 4.14.
510 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
512         [BZ #22442]
513         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
514         Check if ifname is too long.
516 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
518         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
520 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
522         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
523         was accidentally lost.
525 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
527         * localedata/locales/az_IR: Add standard copyright header.
529 2017-11-15  Florian Weimer  <fweimer@redhat.com>
531         [BZ #22439]
532         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
533         not just the top one.  Output a new "subheaps" statistic.
535 2017-11-15  Florian Weimer  <fweimer@redhat.com>
537         [BZ #22408]
538         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
539         under the per-arena lock.
540         * malloc/Makefile (tests): Add tst-malloc_info.
541         (tst-malloc_info): Link with libpthread.
542         * malloc/tst-malloc_info.c: New file.
544 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
546         [BZ #21660]
547         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
548         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
549         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
550         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
551         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
552         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
553         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
554         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
555         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
556         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
557         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
558         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
559         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
560         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
561         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
562         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
563         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
564         (__floating_type): Likewise.
565         (__real_integer_type): Likewise.
566         (__complex_integer_type): Likewise.
567         (__expr_is_real): Likewise.
568         (__tgmath_real_type_sub): Likewise.
569         (__tgmath_real_type): Likewise.
570         (__tgmath_complex_type_sub): Likewise.
571         (__tgmath_complex_type): Likewise.
572         (__TGMATH_F128): Likewise.
573         (__TGMATH_CF128): Likewise.
574         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
575         new macros.
576         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
577         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
578         Likewise.
579         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
580         Likewise.
581         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
582         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
583         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
584         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
585         Likewise.
586         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
587         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
588         Likewise.
589         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
590         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
591         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
592         Likewise.
593         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
594         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
595         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
596         (cimag): Likewise.
597         (creal): Likewise.
599 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
601         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
602         for stpncpy calls for GCC 8.
603         (test_strncat): Disable -Wstringop-truncation warning for strncat
604         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
605         strncat call for GCC 7.
606         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
607         calls for GCC 8.
608         (test_memcmp): Use memcpy instead of strncpy for calls not copying
609         trailing NUL.
611         * string/bug-strncat1.c: Include <libc-diag.h>.
612         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
614 2017-11-13  Claude Paroz <claude@2xlibre.net>
616         [BZ #22387]
617         * localedata/locales/aa_DJ: Improved readibility by replacing
618         <Uxxxx> sequences in the ASCII printable range by their ASCII
619         character equivalents.
620         * localedata/locales/aa_ER: Likewise.
621         * localedata/locales/aa_ER@saaho: Likewise.
622         * localedata/locales/aa_ET: Likewise.
623         * localedata/locales/af_ZA: Likewise.
624         * localedata/locales/agr_PE: Likewise.
625         * localedata/locales/ak_GH: Likewise.
626         * localedata/locales/am_ET: Likewise.
627         * localedata/locales/anp_IN: Likewise.
628         * localedata/locales/ar_AE: Likewise.
629         * localedata/locales/ar_BH: Likewise.
630         * localedata/locales/ar_DZ: Likewise.
631         * localedata/locales/ar_EG: Likewise.
632         * localedata/locales/ar_IN: Likewise.
633         * localedata/locales/ar_IQ: Likewise.
634         * localedata/locales/ar_JO: Likewise.
635         * localedata/locales/ar_KW: Likewise.
636         * localedata/locales/ar_LB: Likewise.
637         * localedata/locales/ar_LY: Likewise.
638         * localedata/locales/ar_MA: Likewise.
639         * localedata/locales/ar_OM: Likewise.
640         * localedata/locales/ar_QA: Likewise.
641         * localedata/locales/ar_SA: Likewise.
642         * localedata/locales/ar_SD: Likewise.
643         * localedata/locales/ar_SS: Likewise.
644         * localedata/locales/ar_SY: Likewise.
645         * localedata/locales/ar_TN: Likewise.
646         * localedata/locales/ar_YE: Likewise.
647         * localedata/locales/as_IN: Likewise.
648         * localedata/locales/ast_ES: Likewise.
649         * localedata/locales/ayc_PE: Likewise.
650         * localedata/locales/az_AZ: Likewise.
651         * localedata/locales/az_IR: Likewise.
652         * localedata/locales/be_BY: Likewise.
653         * localedata/locales/be_BY@latin: Likewise.
654         * localedata/locales/bem_ZM: Likewise.
655         * localedata/locales/ber_DZ: Likewise.
656         * localedata/locales/ber_MA: Likewise.
657         * localedata/locales/bg_BG: Likewise.
658         * localedata/locales/bhb_IN: Likewise.
659         * localedata/locales/bho_IN: Likewise.
660         * localedata/locales/bi_VU: Likewise.
661         * localedata/locales/bn_BD: Likewise.
662         * localedata/locales/bn_IN: Likewise.
663         * localedata/locales/bo_CN: Likewise.
664         * localedata/locales/bo_IN: Likewise.
665         * localedata/locales/br_FR: Likewise.
666         * localedata/locales/brx_IN: Likewise.
667         * localedata/locales/bs_BA: Likewise.
668         * localedata/locales/byn_ER: Likewise.
669         * localedata/locales/ca_AD: Likewise.
670         * localedata/locales/ca_ES: Likewise.
671         * localedata/locales/ca_FR: Likewise.
672         * localedata/locales/ca_IT: Likewise.
673         * localedata/locales/ce_RU: Likewise.
674         * localedata/locales/chr_US: Likewise.
675         * localedata/locales/cmn_TW: Likewise.
676         * localedata/locales/crh_UA: Likewise.
677         * localedata/locales/cs_CZ: Likewise.
678         * localedata/locales/csb_PL: Likewise.
679         * localedata/locales/cv_RU: Likewise.
680         * localedata/locales/cy_GB: Likewise.
681         * localedata/locales/da_DK: Likewise.
682         * localedata/locales/de_AT: Likewise.
683         * localedata/locales/de_BE: Likewise.
684         * localedata/locales/de_CH: Likewise.
685         * localedata/locales/de_DE: Likewise.
686         * localedata/locales/de_IT: Likewise.
687         * localedata/locales/de_LI: Likewise.
688         * localedata/locales/de_LU: Likewise.
689         * localedata/locales/doi_IN: Likewise.
690         * localedata/locales/dv_MV: Likewise.
691         * localedata/locales/dz_BT: Likewise.
692         * localedata/locales/el_CY: Likewise.
693         * localedata/locales/el_GR: Likewise.
694         * localedata/locales/en_AG: Likewise.
695         * localedata/locales/en_AU: Likewise.
696         * localedata/locales/en_BW: Likewise.
697         * localedata/locales/en_CA: Likewise.
698         * localedata/locales/en_DK: Likewise.
699         * localedata/locales/en_GB: Likewise.
700         * localedata/locales/en_HK: Likewise.
701         * localedata/locales/en_IE: Likewise.
702         * localedata/locales/en_IL: Likewise.
703         * localedata/locales/en_IN: Likewise.
704         * localedata/locales/en_NG: Likewise.
705         * localedata/locales/en_NZ: Likewise.
706         * localedata/locales/en_PH: Likewise.
707         * localedata/locales/en_SG: Likewise.
708         * localedata/locales/en_US: Likewise.
709         * localedata/locales/en_ZA: Likewise.
710         * localedata/locales/en_ZM: Likewise.
711         * localedata/locales/en_ZW: Likewise.
712         * localedata/locales/eo: Likewise.
713         * localedata/locales/es_AR: Likewise.
714         * localedata/locales/es_BO: Likewise.
715         * localedata/locales/es_CL: Likewise.
716         * localedata/locales/es_CO: Likewise.
717         * localedata/locales/es_CR: Likewise.
718         * localedata/locales/es_CU: Likewise.
719         * localedata/locales/es_DO: Likewise.
720         * localedata/locales/es_EC: Likewise.
721         * localedata/locales/es_ES: Likewise.
722         * localedata/locales/es_GT: Likewise.
723         * localedata/locales/es_HN: Likewise.
724         * localedata/locales/es_MX: Likewise.
725         * localedata/locales/es_NI: Likewise.
726         * localedata/locales/es_PA: Likewise.
727         * localedata/locales/es_PE: Likewise.
728         * localedata/locales/es_PR: Likewise.
729         * localedata/locales/es_PY: Likewise.
730         * localedata/locales/es_SV: Likewise.
731         * localedata/locales/es_US: Likewise.
732         * localedata/locales/es_UY: Likewise.
733         * localedata/locales/es_VE: Likewise.
734         * localedata/locales/et_EE: Likewise.
735         * localedata/locales/eu_ES: Likewise.
736         * localedata/locales/eu_ES@euro: Likewise.
737         * localedata/locales/fa_IR: Likewise.
738         * localedata/locales/ff_SN: Likewise.
739         * localedata/locales/fi_FI: Likewise.
740         * localedata/locales/fil_PH: Likewise.
741         * localedata/locales/fo_FO: Likewise.
742         * localedata/locales/fr_BE: Likewise.
743         * localedata/locales/fr_CA: Likewise.
744         * localedata/locales/fr_CH: Likewise.
745         * localedata/locales/fr_FR: Likewise.
746         * localedata/locales/fr_LU: Likewise.
747         * localedata/locales/fur_IT: Likewise.
748         * localedata/locales/fy_DE: Likewise.
749         * localedata/locales/fy_NL: Likewise.
750         * localedata/locales/ga_IE: Likewise.
751         * localedata/locales/gd_GB: Likewise.
752         * localedata/locales/gez_ER: Likewise.
753         * localedata/locales/gez_ET: Likewise.
754         * localedata/locales/gl_ES: Likewise.
755         * localedata/locales/gu_IN: Likewise.
756         * localedata/locales/gv_GB: Likewise.
757         * localedata/locales/ha_NG: Likewise.
758         * localedata/locales/hak_TW: Likewise.
759         * localedata/locales/he_IL: Likewise.
760         * localedata/locales/hi_IN: Likewise.
761         * localedata/locales/hif_FJ: Likewise.
762         * localedata/locales/hne_IN: Likewise.
763         * localedata/locales/hr_HR: Likewise.
764         * localedata/locales/hsb_DE: Likewise.
765         * localedata/locales/ht_HT: Likewise.
766         * localedata/locales/hu_HU: Likewise.
767         * localedata/locales/hy_AM: Likewise.
768         * localedata/locales/i18n: Likewise.
769         * localedata/locales/ia_FR: Likewise.
770         * localedata/locales/id_ID: Likewise.
771         * localedata/locales/ig_NG: Likewise.
772         * localedata/locales/ik_CA: Likewise.
773         * localedata/locales/is_IS: Likewise.
774         * localedata/locales/it_CH: Likewise.
775         * localedata/locales/it_IT: Likewise.
776         * localedata/locales/iu_CA: Likewise.
777         * localedata/locales/ja_JP: Likewise.
778         * localedata/locales/ka_GE: Likewise.
779         * localedata/locales/kk_KZ: Likewise.
780         * localedata/locales/kl_GL: Likewise.
781         * localedata/locales/kn_IN: Likewise.
782         * localedata/locales/ko_KR: Likewise.
783         * localedata/locales/kok_IN: Likewise.
784         * localedata/locales/ks_IN: Likewise.
785         * localedata/locales/ks_IN@devanagari: Likewise.
786         * localedata/locales/ku_TR: Likewise.
787         * localedata/locales/kw_GB: Likewise.
788         * localedata/locales/ky_KG: Likewise.
789         * localedata/locales/lb_LU: Likewise.
790         * localedata/locales/lg_UG: Likewise.
791         * localedata/locales/li_BE: Likewise.
792         * localedata/locales/li_NL: Likewise.
793         * localedata/locales/lij_IT: Likewise.
794         * localedata/locales/ln_CD: Likewise.
795         * localedata/locales/lo_LA: Likewise.
796         * localedata/locales/lt_LT: Likewise.
797         * localedata/locales/lv_LV: Likewise.
798         * localedata/locales/lzh_TW: Likewise.
799         * localedata/locales/mag_IN: Likewise.
800         * localedata/locales/mai_IN: Likewise.
801         * localedata/locales/mg_MG: Likewise.
802         * localedata/locales/mhr_RU: Likewise.
803         * localedata/locales/mi_NZ: Likewise.
804         * localedata/locales/mk_MK: Likewise.
805         * localedata/locales/ml_IN: Likewise.
806         * localedata/locales/mn_MN: Likewise.
807         * localedata/locales/mni_IN: Likewise.
808         * localedata/locales/mr_IN: Likewise.
809         * localedata/locales/ms_MY: Likewise.
810         * localedata/locales/mt_MT: Likewise.
811         * localedata/locales/my_MM: Likewise.
812         * localedata/locales/nan_TW: Likewise.
813         * localedata/locales/nan_TW@latin: Likewise.
814         * localedata/locales/nb_NO: Likewise.
815         * localedata/locales/nds_DE: Likewise.
816         * localedata/locales/nds_NL: Likewise.
817         * localedata/locales/ne_NP: Likewise.
818         * localedata/locales/nhn_MX: Likewise.
819         * localedata/locales/niu_NU: Likewise.
820         * localedata/locales/niu_NZ: Likewise.
821         * localedata/locales/nl_AW: Likewise.
822         * localedata/locales/nl_BE: Likewise.
823         * localedata/locales/nl_NL: Likewise.
824         * localedata/locales/nn_NO: Likewise.
825         * localedata/locales/nr_ZA: Likewise.
826         * localedata/locales/nso_ZA: Likewise.
827         * localedata/locales/oc_FR: Likewise.
828         * localedata/locales/om_ET: Likewise.
829         * localedata/locales/om_KE: Likewise.
830         * localedata/locales/or_IN: Likewise.
831         * localedata/locales/os_RU: Likewise.
832         * localedata/locales/pa_IN: Likewise.
833         * localedata/locales/pa_PK: Likewise.
834         * localedata/locales/pap_AW: Likewise.
835         * localedata/locales/pap_CW: Likewise.
836         * localedata/locales/pl_PL: Likewise.
837         * localedata/locales/ps_AF: Likewise.
838         * localedata/locales/pt_BR: Likewise.
839         * localedata/locales/pt_PT: Likewise.
840         * localedata/locales/quz_PE: Likewise.
841         * localedata/locales/raj_IN: Likewise.
842         * localedata/locales/ro_RO: Likewise.
843         * localedata/locales/ru_RU: Likewise.
844         * localedata/locales/ru_UA: Likewise.
845         * localedata/locales/rw_RW: Likewise.
846         * localedata/locales/sa_IN: Likewise.
847         * localedata/locales/sat_IN: Likewise.
848         * localedata/locales/sc_IT: Likewise.
849         * localedata/locales/sd_IN: Likewise.
850         * localedata/locales/sd_IN@devanagari: Likewise.
851         * localedata/locales/se_NO: Likewise.
852         * localedata/locales/sgs_LT: Likewise.
853         * localedata/locales/shs_CA: Likewise.
854         * localedata/locales/si_LK: Likewise.
855         * localedata/locales/sid_ET: Likewise.
856         * localedata/locales/sk_SK: Likewise.
857         * localedata/locales/sl_SI: Likewise.
858         * localedata/locales/sm_WS: Likewise.
859         * localedata/locales/so_DJ: Likewise.
860         * localedata/locales/so_ET: Likewise.
861         * localedata/locales/so_KE: Likewise.
862         * localedata/locales/so_SO: Likewise.
863         * localedata/locales/sq_AL: Likewise.
864         * localedata/locales/sq_MK: Likewise.
865         * localedata/locales/sr_ME: Likewise.
866         * localedata/locales/sr_RS: Likewise.
867         * localedata/locales/sr_RS@latin: Likewise.
868         * localedata/locales/ss_ZA: Likewise.
869         * localedata/locales/st_ZA: Likewise.
870         * localedata/locales/sv_FI: Likewise.
871         * localedata/locales/sv_SE: Likewise.
872         * localedata/locales/sw_KE: Likewise.
873         * localedata/locales/sw_TZ: Likewise.
874         * localedata/locales/szl_PL: Likewise.
875         * localedata/locales/ta_IN: Likewise.
876         * localedata/locales/ta_LK: Likewise.
877         * localedata/locales/tcy_IN: Likewise.
878         * localedata/locales/te_IN: Likewise.
879         * localedata/locales/tg_TJ: Likewise.
880         * localedata/locales/th_TH: Likewise.
881         * localedata/locales/the_NP: Likewise.
882         * localedata/locales/ti_ER: Likewise.
883         * localedata/locales/ti_ET: Likewise.
884         * localedata/locales/tig_ER: Likewise.
885         * localedata/locales/tk_TM: Likewise.
886         * localedata/locales/tl_PH: Likewise.
887         * localedata/locales/tn_ZA: Likewise.
888         * localedata/locales/to_TO: Likewise.
889         * localedata/locales/tpi_PG: Likewise.
890         * localedata/locales/tr_CY: Likewise.
891         * localedata/locales/tr_TR: Likewise.
892         * localedata/locales/ts_ZA: Likewise.
893         * localedata/locales/tt_RU: Likewise.
894         * localedata/locales/tt_RU@iqtelif: Likewise.
895         * localedata/locales/ug_CN: Likewise.
896         * localedata/locales/uk_UA: Likewise.
897         * localedata/locales/unm_US: Likewise.
898         * localedata/locales/ur_IN: Likewise.
899         * localedata/locales/ur_PK: Likewise.
900         * localedata/locales/uz_UZ: Likewise.
901         * localedata/locales/uz_UZ@cyrillic: Likewise.
902         * localedata/locales/ve_ZA: Likewise.
903         * localedata/locales/vi_VN: Likewise.
904         * localedata/locales/wa_BE: Likewise.
905         * localedata/locales/wae_CH: Likewise.
906         * localedata/locales/wal_ET: Likewise.
907         * localedata/locales/wo_SN: Likewise.
908         * localedata/locales/xh_ZA: Likewise.
909         * localedata/locales/yi_US: Likewise.
910         * localedata/locales/yo_NG: Likewise.
911         * localedata/locales/yue_HK: Likewise.
912         * localedata/locales/yuw_PG: Likewise.
913         * localedata/locales/zh_CN: Likewise.
914         * localedata/locales/zh_HK: Likewise.
915         * localedata/locales/zh_SG: Likewise.
916         * localedata/locales/zh_TW: Likewise.
917         * localedata/locales/zu_ZA: Likewise.
919 2017-11-13  Florian Weimer  <fweimer@redhat.com>
921         * support/next_to_fault.h, support/next_to_fault.c: New files.
922         * support/Makefile (libsupport-routines): Add next_to_fault.
923         * resolv/tst-inet_pton.c (struct next_to_fault)
924         (next_to_fault_allocate, next_to_fault_free): Remove.
925         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
927 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
929         * elf/dl-support.c: Include <dl-procruntime.c>.
930         * include/link.h: Include <link_map.h>.
931         * sysdeps/generic/dl-procruntime.c: New file.
932         * sysdeps/generic/link_map.h: Likewise.
933         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
934         the writable ld.so namespace.
936 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
938         timezone: pacify GCC -Wstringop-truncation
939         Problem reported by Martin Sebor in:
940         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
941         * timezone/zic.c (writezone): Use memcpy, not strncpy.
943 2017-11-12  Florian Weimer  <fweimer@redhat.com>
945         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
946         tst-xreadlink.
947         (tests): Add tst-xreadlink.
948         * support/support.h (xstrndup): Declare.
949         * support/xunistd.h (xunlink, xreadlink): Declare.
950         * support/temp_file.h (support_create_temp_directory): Declare.
951         * support/temp_file.c (support_create_temp_directory): New function.
952         * support/support_chroot.c (support_chroot_create): Use it.
953         * support/xreadlink.c: New file.
954         * support/xstrndup.c: Likewise.
955         * support/xunlink.c: Likewise.
956         * support/tst-xreadlink.c: Likewise.
958 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
960         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
962 2017-11-11  Florian Weimer  <fweimer@redhat.com>
964         [BZ #22409]
965         [BZ #22412]
966         * resolv/res_comp.c (printable_string, binary_hnok)
967         (binary_leading_dash): New functions.
968         (res_hnok): Reimplement using these functions and ns_name_pton.
969         (res_ownok): Likewise.
970         (res_mailok): Reimplement using printable_string, ns_name_pton and
971         binary_hnok.
972         (res_dnok): Reimplement using printable_string and ns_name_pton.
973         * resolv/tst-res_hnok.c (tests): Add additional tests.
974         (LETTERDIGITS, PRINTABLE): Define.
975         (do_test): Adjust one_char results.
977 2017-11-11  Florian Weimer  <fweimer@redhat.com>
979         [BZ #22413]
980         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
981         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
983 2017-11-11  Florian Weimer  <fweimer@redhat.com>
985         * resolv/tst-ns_name_pton.c: New file.
986         * resolv/Makefile (tests): Add tst-ns_name_pton.
987         (tst-ns_name_pton): Link against libresolv.
989 2017-11-11  Florian Weimer  <fweimer@redhat.com>
991         * resolv/tst-res_hnok.c: New file.
992         * resolv/Makefile (tests): Add tst-res_hnok.
993         (tst-res_hnok): Link against libresolv.
995 2017-11-11  Florian Weimer  <fweimer@redhat.com>
997         * resolv/tst-resolv-network.c: Use test framework instead explicit
998         main function.
1000 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1002         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
1003         <jmp_buf-macros.h>.
1004         [!_ISOMAC] (STR_HELPER): New.
1005         [!_ISOMAC] (STR): Likewise.
1006         [!_ISOMAC] (TEST_SIZE): Likewise.
1007         [!_ISOMAC] (TEST_ALIGN): Likewise.
1008         [!_ISOMAC] (TEST_OFFSET): Likewise.
1009         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
1010         field offsets of jmp_buf as well as sigjmp_buf.
1011         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
1012         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
1013         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
1014         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
1015         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
1016         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
1017         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
1018         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
1019         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
1020         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
1021         Likewise.
1022         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
1023         Likewise.
1024         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
1025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
1026         Likewise.
1027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
1028         Likewise.
1029         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
1030         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
1031         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
1032         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
1033         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
1034         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
1035         Likewise.
1036         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
1037         Likewise.
1038         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
1039         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
1040         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
1042 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
1044         * include/float.h
1045         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1046         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
1047         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1048         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
1049         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1050         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
1051         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1052         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
1053         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1054         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
1055         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1056         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
1057         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1058         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
1059         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1060         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
1061         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1062         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
1063         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1064         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
1065         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1066         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
1067         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1068         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
1069         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1070         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
1071         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1072         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
1073         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1074         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
1075         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1076         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
1077         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1078         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
1079         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1080         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
1081         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1082         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
1083         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1084         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
1085         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1086         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
1087         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1088         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
1089         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1090         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
1091         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1092         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
1093         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1094         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
1095         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1096         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
1097         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1098         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
1099         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1100         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
1101         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1102         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
1103         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1104         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
1105         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1106         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
1107         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1108         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
1109         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1110         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
1111         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1112         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
1113         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1114         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
1115         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1116         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
1117         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1118         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
1119         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1120         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
1121         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1122         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
1123         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1124         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
1125         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1126         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
1127         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1128         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
1129         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1130         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
1131         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
1132         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
1134         * stdlib/tst-strtod.h (F16): New macro.
1135         (F32): Likewise.
1136         (F64): Likewise.
1137         (F32X): Likewise.
1138         (F64X): Likewise.
1139         (F128X): Likewise.
1140         (IF_FLOAT16): Likewise.
1141         (IF_FLOAT32): Likewise.
1142         (IF_FLOAT64): Likewise.
1143         (IF_FLOAT32X): Likewise.
1144         (IF_FLOAT64X): Likewise.
1145         (IF_FLOAT128X): Likewise.
1146         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
1147         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
1148         (STRTOD_TEST_FOREACH): Likewise.
1149         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
1150         (CHOOSE_f64): Likewise.
1151         (CHOOSE_f32x): Likewise.
1152         (CHOOSE_f64x): Likewise.
1154 2017-11-07  Andreas Schwab  <schwab@suse.de>
1156         * nptl/Makefile (tests-internal): Remove tst-typesizes.
1158 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
1160         [BZ #22403]
1161         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
1162         to be escaped.
1163         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
1164         to be escaped.
1166 2017-11-07  Claude Paroz <claude@2xlibre.net>
1168         [BZ #22403]
1169         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
1170         to be escaped.
1171         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
1172         to be escaped.
1173         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
1174         to be escaped.
1176 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1178         [BZ #22298]
1179         * nptl/allocatestack.c (allocate_stack): Check if
1180         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
1181         __PTHREAD_MUTEX_HAVE_PREV is defined.
1182         * nptl/descr.h (pthread): Likewise.
1183         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
1184         Likewise.
1185         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1186         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1187         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
1188         * sysdeps/nptl/bits/thread-shared-types.h
1189         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1190         defines.
1191         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
1192         of __WORDSIZE for internal layout.
1193         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
1194         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
1195         instead of __WORDSIZE whether to use an union for __spins and __list
1196         fields.
1197         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
1198         case.
1199         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
1200         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1201         defines.
1202         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
1203         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1204         Likewise.
1205         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
1206         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1207         Likewise.
1208         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
1209         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1210         Likewise.
1211         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
1212         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1213         Likewise.
1214         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
1215         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1216         Likewise.
1217         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
1218         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1219         Likewise.
1220         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
1221         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1222         Likewise.
1223         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
1224         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1225         Likewise.
1226         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
1227         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1228         Likewise.
1229         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
1230         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1231         Likewise.
1232         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
1233         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1234         Likewise.
1235         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
1236         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1237         Likewise.
1238         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
1239         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1240         Likewise.
1241         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
1242         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1243         Likewise.
1245         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
1246         New macros.
1247         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
1248         checks for expected input type size.
1249         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
1250         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
1251         Likewise.
1252         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
1253         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
1254         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
1255         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1256         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
1257         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
1258         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
1259         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
1260         superflous runtime assert check.
1261         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
1262         Likewise.
1263         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
1264         Likewise.
1265         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
1266         Likewise.
1267         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
1268         Likewise.
1269         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
1270         Likewise.
1271         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
1272         Likewise.
1273         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
1274         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
1275         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
1276         Likewise.
1277         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
1278         Likewise.
1279         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
1280         Likewise.
1281         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
1282         Likewise.
1283         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
1284         Likewise.
1285         * nptl/pthread_attr_setinheritsched.c
1286         (__pthread_attr_setinheritsched): Likewise.
1287         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1288         Likewise.
1289         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
1290         Likewise.
1291         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1292         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1293         __old_pthread_attr_setstack): Likewise.
1294         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1295         Likewise.
1296         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1297         Likewise.
1298         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1299         Likewise.
1300         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1301         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1302         Likewise.
1303         * nptl/tst-typesizes.c: Remove file.
1305         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1306         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1307         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1308         checks for internal pthread_mutex_t offsets.
1309         * sysdeps/aarch64/nptl/pthread-offsets.h
1310         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1311         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1312         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1313         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1314         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1315         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1316         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1317         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1318         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1319         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1320         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1321         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1322         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1323         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1324         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1325         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1326         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1327         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1329 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1331         * bits/mman-linux.h: Move ...
1332         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1333         comment.
1334         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1335         outdated comment.
1337 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1339         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1340         Redefine STRNLEN as __strnlen_power8.
1342 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1344         * signal/sighold.c (sighold): Optimize implementation.
1346         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1347         __NR_rt_sigqueueinfo.
1349         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1350         __sigtimedwait.
1351         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1352         assume __NR_rt_sigtimedwait.
1353         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1354         and add LIBC_CANCEL_HANDLED for cancellation marking.
1355         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1357         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1358         (sysdeps_routines): Add memchr_noneon.
1359         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1360         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1361         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1362         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1363         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1364         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1365         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1367         * sysdeps/arm/arm-ifunc.h: New file.
1368         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1369         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1370         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1371         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1372         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1373         (__memcpy_neon): Avoid create hidden alias.
1374         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1375         (__memcpy_vfp): Likewise.
1376         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1377         (sysdep_routines): Add memcpy_arm.
1378         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1380 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1382         [BZ #22362]
1383         * Makerules (make-link-multidir): New.
1384         * config.make.in (multidir): New.
1385         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1386         * configure: Regenerated.
1387         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1388         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1389         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1390         New target.
1392 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1394         [BZ #22402]
1395         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1396         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1398 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1400         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1401         to be escaped.
1403 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1405         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1407 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1409         * math/math.h [__HAVE_DISTINCT_FLOAT16
1410         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1411         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1412         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1413         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1414         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1415         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1416         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1417         (__MATH_TG_F32): New macro.
1418         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1419         (__MATH_TG_F64X): Likewise.
1420         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1421         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1423 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1425         * po/de.po: Update translations.
1426         * po/ru.po: Likewise.
1428 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1430         * manual/filesys.texi (Hard Links): Document linkat.
1432 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1434         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1435         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1436         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1437         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1438         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1439         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1440         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1441         the same as _Float128.
1442         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1443         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1444         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1446         * stdlib/stdlib.h
1447         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1448         Declare.
1449         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1450         Likewise.
1451         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1452         Likewise.
1453         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1454         (strtof32x): Likewise.
1455         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1456         (strtof64x): Likewise.
1457         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1458         (strtof128x): Likewise.
1459         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1460         (strfromf16): Likewise.
1461         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1462         (strfromf32): Likewise.
1463         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1464         (strfromf64): Likewise.
1465         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1466         (strfromf32x): Likewise.
1467         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1468         (strfromf64x): Likewise.
1469         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1470         (strfromf128x): Likewise.
1471         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1472         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1473         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1474         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1475         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1476         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1478 2017-11-03  Richard Henderson  <rth@twiddle.net>
1480         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1482 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1484         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1486 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1488         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1489         DT_TLSDESC_GOT initialization.
1490         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1491         (_dl_tlsdesc_resolve_hold): Likewise.
1492         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1493         (_dl_tlsdesc_resolve_hold): Likewise.
1494         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1495         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1497 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1499         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1501 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1503         [BZ #18572]
1504         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1505         non-lazily for R_ARM_TLS_DESC.
1507 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1509         [BZ #17078]
1510         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1511         R_ARM_TLS_DESC case.
1512         (elf_machine_lazy_rel): Remove the prelink check.
1514 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1516         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1517         DT_TLSDESC_GOT initialization.
1518         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1519         (_dl_tlsdesc_resolve_rela): Likewise.
1520         (_dl_tlsdesc_resolve_hold): Likewise.
1521         (_dl_tlsdesc_undefweak): Remove ldar.
1522         (_dl_tlsdesc_dynamic): Likewise.
1523         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1524         (_dl_tlsdesc_resolve_rela): Likewise.
1525         (_dl_tlsdesc_resolve_hold): Likewise.
1526         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1527         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1528         (_dl_tlsdesc_resolve_rela): Likewise.
1529         (_dl_tlsdesc_resolve_hold): Likewise.
1531 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1533         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1534         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1536 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1538         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1539         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1541 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1543         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1544         Declare.
1545         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1546         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1547         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1548         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1549         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1550         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1551         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1552         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1553         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1554         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1555         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1557 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1559         [BZ #22382]
1560         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1561         * localedata/locales/tpi_PG: Add standard header.
1563 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1565         test-errno-linux: quotactl can fail with EPERM in containers.
1566         * sysdeps/unix/sysv/linux/test-errno-linux.c
1567         (LIST, LIST_FORWARD): New macros.
1568         (check_error_in_list): New function.
1569         (test_wrp_rv): Accept list of permitted error codes.
1570         (test_wrp_rv2): Remove.
1571         (test_wrp): Call test_wrp_rv with list of error codes.
1572         (test_wrp2): Accept list of error codes.
1573         (do_test): Adjust.  Allow EPERM for quotactl.
1575 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1577         * stdio-common/bug16.c (do_test): Use array_length.
1578         * stdio-common/errlist.c (_sys_nerr): Likewise.
1579         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1580         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1581         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1582         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1583         (do_test): Use array_length.
1584         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1585         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1586         * stdio-common/tst-printf-round.c (do_test): Likewise.
1587         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1588         (CHECK): Use array_length.
1589         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1590         * stdio-common/tstscanf.c (main): Likewise.
1591         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1593 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1595         Add array_length and array_end macros.
1596         * include/array_length.h: New file.
1598 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1600         [BZ #22332]
1601         * posix/tst-glob-tilde.c (do_noescape): New variable.
1602         (one_test): Process it.
1603         (do_test): Set do_noescape.  Add unescaping test case.
1605 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1607         * math/complex.h
1608         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1609         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1610         with appropriate macros defined and undefined.
1611         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1612         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1613         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1614         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1615         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1616         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1617         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1618         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1619         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1620         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1622         * math/complex.h
1623         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1624         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1625         that for long double.  Do not condition define and undefine of
1626         _Mdouble_complex_ on [__CFLOAT128].
1628 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1630         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1631         of <sysdeps/generic/sysdep.h>.
1632         (ALIGNARG): Removed.
1633         (ASM_SIZE_DIRECTIVE): Likewise.
1634         (ENTRY): Likewise.
1635         (END): Likewise.
1636         (ENTRY_CHK): Likewise.
1637         (END_CHK): Likewise.
1638         (syscall_error): Likewise.
1639         (mcount): Likewise.
1640         (PSEUDO_END): Likewise.
1641         (L): Likewise.
1642         (atom_text_section): Likewise.
1643         * sysdeps/x86/sysdep.h: New file.
1644         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1645         of <sysdeps/generic/sysdep.h>.
1646         (ALIGNARG): Removed.
1647         (ASM_SIZE_DIRECTIVE): Likewise.
1648         (ENTRY): Likewise.
1649         (END): Likewise.
1650         (ENTRY_CHK): Likewise.
1651         (END_CHK): Likewise.
1652         (syscall_error): Likewise.
1653         (mcount): Likewise.
1654         (PSEUDO_END): Likewise.
1655         (L): Likewise.
1656         (atom_text_section): Likewise.
1658 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1660         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1661         category of LC_CTYPE set to "i18n:2012".
1662         * localedata/locales/i18n_ctype: Regenerate.
1664 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1666         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1667         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1668         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1669         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1671         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1672         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1673         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1674         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1676 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1678         * math/complex.h
1679         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1680         New macro.
1681         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1682         Likewise.
1683         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1684         Likewise.
1685         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1686         (CMPLXF32X): Likewise.
1687         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1688         (CMPLXF64X): Likewise.
1689         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1690         (CMPLXF128X): Likewise.
1692         * math/math.h
1693         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1694         (__MATH_EVAL_FMT2): Define to add 0.0f.
1696 2017-10-31  Alan Modra  <amodra@gmail.com>
1698         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1699         include sysdep.h.
1700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1707         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1709         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1710         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1712         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1714         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1715         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1716         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1717         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1718         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1719         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1720         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1721         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1722         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1723         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1724         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1725         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1726         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1727         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1728         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1729         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1730         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1731         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1732         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1733         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1734         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1735         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1736         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1737         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1738         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1739         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1740         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1741         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1742         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1743         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1744         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1745         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1746         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1747         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1748         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1749         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1750         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1751         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1752         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1753         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1754         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1755         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1756         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1757         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1758         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1759         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1760         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1761         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1762         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1763         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1764         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1765         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1766         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1767         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1768         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1770         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1771         include sysdep.h and math_ldbl_opt.h.
1773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1774         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1776         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1777         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1781         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1783         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1785         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1787         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1788         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1792         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1794         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1797         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1800 2017-10-31  Alan Modra  <amodra@gmail.com>
1802         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1803         string/strncase_l.c, not string/strncase.c.
1804         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1805         (libc_hidden_def): Redefine.
1807 2017-10-31  Alan Modra  <amodra@gmail.com>
1809         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1810         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1811         (__strcasecmp): Don't define.
1813 2017-10-31  Alan Modra  <amodra@gmail.com>
1815         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1816         IS_IN (libc).
1817         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1818         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1819         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1821 2017-10-31  Alan Modra  <amodra@gmail.com>
1823         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1824         USE_AS_STPNCPY.
1826 2017-10-31  Alan Modra  <amodra@gmail.com>
1828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1829         Redefine only when SHARED.
1831 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1833         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1834         Include <bits/math-finite.h> with appropriate macros defined and
1835         undefined.
1836         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1837         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1838         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1839         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1840         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1842         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1843         [!_Mlong_double_] (_Mlong_double_): Likewise.
1844         [!_Mfloat16_] (_Mfloat16_): Likewise.
1845         [!_Mfloat32_] (_Mfloat32_): Likewise.
1846         [!_Mfloat64_] (_Mfloat64_): Likewise.
1847         [!_Mfloat128_] (_Mfloat128_): Likewise.
1848         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1849         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1850         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1851         (_Mdouble_): Define without indirection through those macros.
1852         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1853         [!_Mfloat128_] (_Mfloat128_): Likewise.
1854         [_Mlong_double_] (_Mlong_double_): Likewise.
1855         (_Mdouble_): Define without indirection through those macros.
1856         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1857         not add -D_Mlong_double_=double.
1858         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1859         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1861 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1863         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1865 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1867         * sysdeps/x86/libc-start.c: Reformat.
1869 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1871         [BZ #22353]
1872         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1873         (1): Renamed to ...
1874         (L(Src0)): This.
1875         (L(Src1)): New.
1876         (L(Src2)): Likewise.
1877         (L(1)): Renamed to ...
1878         (L(Src3)): This.
1880 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1882         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1883         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1884         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1885         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1886         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1887         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1888         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1889         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1890         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1891         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1892         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1893         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1894         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1895         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1896         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1897         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1898         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1899         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1900         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1901         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1902         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1903         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1904         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1905         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1906         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1907         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1908         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1909         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1910         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1911         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1912         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1913         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1914         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1915         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1916         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1917         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1918         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1919         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1920         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1921         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1922         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1923         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1924         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1925         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1926         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1927         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1928         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1929         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1930         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1931         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1932         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1933         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1934         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1935         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1936         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1937         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1938         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1939         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1940         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1941         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1942         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1943         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1944         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1945         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1946         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1947         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1949 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1951         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1952         always defined.
1953         * io/tst-mkdirat.c (do_test): Likewise.
1954         * io/tst-mkfifoat.c (do_test): Likewise.
1955         * io/tst-mknodat.c (do_test): Likewise.
1956         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1957         * locale/programs/locale.c (select_dirs): Likewise.
1958         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1959         * posix/bug-glob2.c (my_readdir): Likewise.
1960         * posix/tst-dir.c (main): Likewise.
1961         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1962         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1964 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1966         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1967         just __USE_GNU.
1969 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1971         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1972         Convert to support/test-driver.c.
1973         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1974         New macro parameters.
1975         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1976         * posix/tst-gnuglob.c: New file.
1977         * posix/tst-gnuglob64.c: Likewise.
1978         * posix/Makefile (tests): Add tst-gnuglob64.
1980 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1982         [BZ #19485]
1983         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1984         and use a better translation for March in “mon”.
1985         * localedata/locales/csb_PL: Use more ASCII to improve the
1986         readability of the source.
1988 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1990         [BZ #13953]
1991         * localedata/locales/km_KH: Use ASCII as much
1992         as possible for better readability of the source and
1993         remove useless comments.
1994         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1995         was commented out and apparently wrong anyway because it was
1996         using Lao characters. If Buddhist era should be used
1997         for km_KH, a native speaker should write the correct formaat
1998         for Khmer.
1999         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
2000         (According to CLDR, the first weekday for Cambodia is Sunday).
2001         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
2002         (These were using Lao characters which must be wrong. If we get
2003         the correct data from a native speaker, we could add it back, until
2004         then it is better not to have name_mr and name_mrs at all than
2005         having it wrong).
2007 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
2009         * locale/loadlocale.c: Correct size of
2010         _nl_value_type_LC_<category> arrays.
2012 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
2014         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
2015         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
2016         with appropriate macros defined and undefined.
2017         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
2018         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
2019         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
2020         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
2021         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
2023 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2025         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
2026         "-O2 -march=i586".
2028 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2030         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
2031         with lowercase letters to make it agree with CLDR.
2033 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
2035         [BZ #15260]
2036         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
2037         first letters of yesstr and nostr in yesexpr and noexpr,
2038         not for the full words.
2039         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2040         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
2041         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
2042         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
2043         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
2044         first letters of yesstr and nostr in yesexpr and noexpr,
2045         until now only English was matched in yesexpr and noexpr.
2046         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
2047         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
2048         fil but not for tl. As tl and fil are very similar, using fil
2049         is probably better than using English.
2051 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
2053         [BZ #21706]
2054         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
2055         in yesstr and nostr.
2057 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
2059         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2060         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
2061         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
2062         Likewise.
2063         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
2064         Likewise.
2065         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
2066         Likewise.
2067         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
2068         Likewise.
2069         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2070         (SNANF128X): Likewise.
2072         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
2073         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
2074         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2075         (HUGE_VAL_F32): Likewise.
2076         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2077         (HUGE_VAL_F64): Likewise.
2078         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2079         (HUGE_VAL_F32X): Likewise.
2080         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2081         (HUGE_VAL_F64X): Likewise.
2082         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2083         (HUGE_VAL_F128X): Likewise.
2085 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2087         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
2088         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
2089         for the br_FR locale.
2091 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
2093         [BZ #21706]
2094         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
2096 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
2098         * locale/programs/record-status.h: Define globals, and function
2099         prototypes. Move function bodies...
2100         * locale/programs/record-status.c: ... to here. New file.
2101         * iconv/Makefile (iconv_prog-modules): Add record-status.
2102         * locale/Makefile (lib-modules): Likewise.
2103         * iconv/iconv_prog.c: Remove verbose.
2104         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
2105         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
2106         record a warning about ASCII compatibility.
2107         * locale/programs/ld-monetary.c (monetary_finish): If
2108         warn_int_curr_symbol is true then record a warning about the symbol
2109         not being in our ISO 4217 list.
2110         * locale/programs/locale.c: Include record-status.h. Remove verbose.
2111         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
2112         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
2113         (OPT_NO_WARN): Define.
2114         (OPT_WARN): Define.
2115         (options): Add entry for --no-warnings, and --warnings.
2116         (set_warnings): New function to enable/disable warnings.
2117         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
2118         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
2119         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
2120         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
2121         Pass flags to generate_locale.
2122         (generate_locale): Accept new flag argument and pass it to localedef
2123         invocation.
2124         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
2125         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
2127         * localedata/Makefile (test-input-data): Use full file name.
2128         * localedata/da_DK.in: Rename to...
2129         * localedata/da_DK.ISO-8859-1.in: ...this.
2130         * localedata/de_DE.in: Rename to...
2131         * localedata/de_DE.ISO-8859-1.in: ...this.
2132         * localedata/en_US.in: Rename to...
2133         * localedata/en_US.ISO-8859-1.in: ...this.
2134         * localedata/fr_FR.in: Rename to...
2135         * localedata/fr_FR.UTF-8.in: ... this.
2136         * localedata/hr_HR.in: Rename to...
2137         * localedata/hr_HR.ISO-8859-2.in: ...this.
2138         * localedata/hu_HU.in: Rename to...
2139         * localedata/hu_HU.UTF-8.in: ...this.
2140         * localedata/si_LK.in: Rename to...
2141         * localedata/si_LK.UTF-8.in: ...this.
2142         * localedata/sv_SE.in: Rename to...
2143         * localedata/sv_SE.ISO-8859-1.in: ...this.
2144         * localedata/tr_TR.in: Rename to...
2145         * localedata/tr_TR.UTF-8.in: ...this.
2146         * localedata/uk_UA.in: Rename to...
2147         * localedata/uk_UA.UTF-8.in: ...this.
2148         * localedata/sort-test.sh: Test file is locale name with the
2149         suffix.
2151         * localedata/unicode-gen/Makefile (check_i18n): Rename to
2152         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
2153         file.
2154         * localedata/locales/i18n_ctype: Regenerate.
2155         * localedata/locales/tr_TR: Likewise.
2156         * localedata/locales/translit_circle: Likewise.
2157         * localedata/locales/translit_cjk_compat: Likewise.
2158         * localedata/locales/translit_combining: Likewise.
2159         * localedata/locales/translit_compat: Likewise.
2160         * localedata/locales/translit_font: Likewise.
2161         * localedata/locales/translit_fraction: Likewise.
2163 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2165         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
2166         lxvd2x/stxvd2x with lvx/stvx.
2167         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
2169 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
2171         * include/alloc_buffer.h: Replace "if if " with "if " in
2172         comments.
2173         * sysdeps/mips/memcpy.S: Likkewise.
2174         * sysdeps/mips/memset.S: Likewise.
2175         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
2176         Likewise.
2177         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
2178         Likewise.
2179         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
2180         Likewise.
2182 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2184         [BZ #15261]
2185         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
2186         yesexpr and noexpr.
2187         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2188         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2189         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2190         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2191         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2192         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2193         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2195 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2197         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
2198         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2199         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2200         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2201         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2202         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
2203         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2204         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2205         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2206         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2207         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2208         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2210 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2212         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
2213         as possible for better readability of the source.
2214         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
2215         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
2216         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
2217         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
2218         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
2219         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
2220         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
2221         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
2222         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2223         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
2224         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
2225         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
2226         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
2227         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
2228         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
2229         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
2230         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
2231         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
2232         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
2233         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
2234         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
2235         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
2236         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
2237         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
2238         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
2239         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
2240         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
2241         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
2242         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
2243         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
2244         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
2245         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2246         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
2247         * localedata/locales/en_US (LC_MESSAGES): Likewise.
2248         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
2249         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
2250         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
2251         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
2252         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
2253         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
2254         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
2255         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
2256         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
2257         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
2258         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
2259         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
2260         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
2261         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
2262         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
2263         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
2264         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
2265         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
2266         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
2267         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2268         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2269         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
2270         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
2271         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2272         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
2273         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
2274         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
2275         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
2276         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
2277         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
2278         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
2279         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
2280         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
2281         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
2282         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
2283         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
2284         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
2285         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
2286         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
2287         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
2288         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2289         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
2290         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2291         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2292         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2293         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2294         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2295         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2296         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2297         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2298         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2299         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2300         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2301         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2302         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2303         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2304         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2305         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2306         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2307         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2308         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2309         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2310         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2311         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2312         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2313         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2314         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2315         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2316         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2317         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2318         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2319         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2320         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2321         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2322         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2323         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2324         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2325         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2326         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2327         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2328         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2329         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2330         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2331         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2332         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2333         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2334         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2335         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2336         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2337         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2338         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2339         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2340         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2341         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2342         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2343         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2344         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2345         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2346         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2347         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2348         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2349         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2350         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2351         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2352         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2353         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2354         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2355         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2356         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2357         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2358         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2359         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2360         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2361         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2362         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2363         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2364         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2365         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2366         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2367         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2368         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2369         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2370         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2371         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2372         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2373         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2374         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2375         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2376         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2377         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2378         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2379         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2380         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2381         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2382         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2383         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2384         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2385         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2386         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2387         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2389 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2391         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2392         (Use first letters of yesstr and nostr correctly instead of using
2393         full words).
2395 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2397         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2398         (Use first letters of yesstr and nostr correctly).
2400 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2402         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2403         also check for the first characters of yesstr and nostr.
2404         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2405         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2407 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2409         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2410         also check for Chinese characters.
2412 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2414         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2415         match also for the contents of yesstr and nostr. As the first letter
2416         of yesstr and nostr is equal, checking only for the first letter
2417         is not enough.
2419 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2421         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2422         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2424 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2426         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2427         of main contributor.
2429 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2431         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2432         instead of using English.
2434 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2436         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2437         by including the first letters of nostr and yesexpr in the regexp.
2438         Also make it more readable by using ASCII where possible.
2440 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2442         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2443         the first letter of nostr in the regexp. It agrees with CLDR now.
2444         Also make it more readable by using ASCII where possible.
2446 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2448         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2449         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2450         these strings contain a U+17D6 (which somewhat looks like a colon)
2451         instead of a real colon to separate the full words for “yes”
2452         and “no” from the single letter responses.
2454 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2456         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2457         it agree with CLDR (include the first letter of yesstr).
2458         Also make it more readable by using ASCII where possible.
2460 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2462         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2463         and improve yesexpr and noexpr. The yesstr and nostr apparently
2464         came from CLDR. And CLDR has a bug there: these strings contain
2465         a U+0903 (which looks like a colon) instead of a real colon
2466         to separate the full words for “yes” and “no” from the single
2467         letter responses.
2469 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2471         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2472         letters of the full yesstr and nostr in yesexpr and noexpr.
2474 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2476         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2477         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2478         * localedata/locales/an_ES: Make source more readable by using ASCII
2479         where possible.
2481 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2483         [BZ #20952]
2484         * localedata/locales/yuw_PG: New file.
2485         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2486         * locale/iso-639.def: Add Yau (Uruwa).
2488 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2490         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2492 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2494         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2495         (__libc_realloc): Likewise.
2496         (_mid_memalign): Likewise.
2497         (__libc_calloc): Likewise.
2499 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2501         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2502         by adding the generic +1 and -0 as in all other locales.
2503         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2504         day names and make it more readable by using ASCII where possible.
2506 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2508         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2509         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2511 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2513         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2514         WNOHANG in waitpid call.
2516 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2518         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2519         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2521         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2522         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2523         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2524         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2525         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2526         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2527         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2528         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2529         variables.
2531 2017-10-23  Michael Collison  <michael.collison@arm.com>
2533         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2534         with __builtin_sqrt.
2535         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2536         with __builtin_sqrtf.
2537         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2538         with __builtin_ceil.
2539         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2540         with __builtin_ceilf.
2541         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2542         with __builtin_floor.
2543         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2544         with __builtin_floorf.
2545         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2546         with __builtin_fma.
2547         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2548         with __builtin_fmaf.
2549         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2550         with __builtin_fmax.
2551         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2552         with __builtin_fmaxf.
2553         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2554         with __builtin_fmin.
2555         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2556         with __builtin_fminf.
2557         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2558         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2559         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2560         with builtin_rint and conversion to int.
2561         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2562         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2563         with builtin_llround.
2564         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2565         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2566         with builtin_rint and conversion to long int.
2567         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2568         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2569         with builtin_lround.
2570         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2571         with builtin_lroundf.
2572         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2573         statements with __builtin_nearbyint.
2574         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2575         statements with __builtin_nearbyintf.
2576         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2577         with __builtin_rint.
2578         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2579         with __builtin_rintf.
2580         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2581         with __builtin_round.
2582         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2583         with __builtin_roundf.
2584         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2585         with __builtin_trunc.
2586         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2587         with __builtin_truncf.
2588         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2589         and s_l[l]round[f].c too.
2591 2017-10-23  Alan Modra  <amodra@gmail.com>
2593         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2594         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2596 2017-10-23  Alan Modra  <amodra@gmail.com>
2598         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2599         Move LR save and frame setup/teardown and LR restore to
2600         immediately around memset call.  Provide cfi.
2602 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2604         * sysdeps/i386/fpu/e_powf.S: Removed.
2605         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2606         * sysdeps/i386/fpu/w_powf.c: Likewise.
2607         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2608         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2609         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2610         Add e_powf-sse2.
2611         (CFLAGS-e_powf-sse2.c): New.
2612         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2613         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2615 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2617         * sysdeps/i386/fpu/e_log2f.S: Removed.
2618         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2619         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2620         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2621         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2622         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2623         Add e_log2f-sse2.
2624         (CFLAGS-e_log2f-sse2.c): New.
2625         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2626         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2628 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2630         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2631         Add e_powf-fma.
2632         (CFLAGS-e_powf-fma.c): New.
2633         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2634         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2636 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2638         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2639         Add e_log2f-fma.
2640         (CFLAGS-e_log2f-fma.c): New.
2641         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2642         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2644 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2646         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2647         Add e_logf-fma.
2648         (CFLAGS-e_logf-fma.c): New.
2649         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2650         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2652 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2654         * sysdeps/i386/fpu/e_logf.S: Removed.
2655         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2656         * sysdeps/i386/fpu/w_logf.c: Likewise.
2657         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2658         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2659         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2660         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2661         Add e_logf-sse2.
2662         (CFLAGS-e_logf-sse2.c): New.
2663         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2664         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2666 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2668         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2669         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2670         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2671         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2672         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2673         Add e_exp2f-sse2.
2674         (CFLAGS-e_exp2f-sse2.c): New.
2675         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2676         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2678 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2680         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2681         Add e_exp2f-fma.
2682         (CFLAGS-e_exp2f-fma.c): New.
2683         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2684         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2686 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2688         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2689         * sysdeps/i386/fpu/e_expf.S: Likewise.
2690         * sysdeps/i386/fpu/math_errf.c: Likewise.
2691         * sysdeps/i386/fpu/w_expf.c: Likewise.
2692         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2693         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2694         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2695         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2696         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2697         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2698         Remove e_expf-ia32.
2699         (CFLAGS-e_expf-sse2.c): New.
2700         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2701         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2703 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2705         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2706         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2707         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2708         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2709         e_expf.c.
2710         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2711         New.
2712         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2713         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2714         Renamed to ...
2715         (__redirect_expf): This.
2716         (SYMBOL_NAME): Changed to expf.
2717         (__ieee754_expf): Renamed to ...
2718         (__expf): This.
2719         (__GI___expf): This.
2720         (__ieee754_expf): Add strong_alias.
2721         (__expf_finite): Likewise.
2722         (__expf): New.
2723         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2725 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2727         [BZ #22332]
2728         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2729         unescaping.
2731 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2733         * posix/Makefile (tests): Add tst-glob-tilde.
2734         (tests-special): Add tst-glob-tilde-mem.out
2735         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2736         (tst-glob-tilde-mem.out): Add mtrace check.
2737         * posix/tst-glob-tilde.c: New file.
2739 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2741         * bits/floatn-common.h: New file.
2742         * math/Makefile (headers): Add bits/floatn-common.h.
2743         * bits/floatn.h: Include <bits/floatn-common.h>.
2744         * sysdeps/ia64/bits/floatn.h: Likewise.
2745         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2746         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2747         * sysdeps/powerpc/bits/floatn.h: Likewise.
2748         * sysdeps/x86/bits/floatn.h: Likewise.
2750 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2752         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2753         indicates whether compiler emits an warning for alias for
2754         functions with incompatible types.
2756         [BZ #22273]
2757         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2758         the auxiliary process is terminated by a signal before calling _exit
2759         or execve.
2761 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2763         [BZ #21265]
2764         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2765         New.
2766         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2767         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2768         and bit_arch_XSAVEC_Usable if needed.
2769         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2770         and bit_arch_Use_dl_runtime_resolve_opt.
2771         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2772         Removed.
2773         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2774         (bit_arch_Prefer_No_AVX512): Updated.
2775         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2776         (bit_arch_XSAVEC_Usable): New.
2777         (STATE_SAVE_OFFSET): Likewise.
2778         (STATE_SAVE_MASK): Likewise.
2779         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2780         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2781         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2782         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2783         (index_arch_XSAVEC_Usable): New.
2784         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2785         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2786         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2787         is enabled.
2788         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2789         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2790         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2791         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2792         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2793         _dl_runtime_resolve_xsavec.
2794         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2795         Removed.
2796         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2797         instead of VEC_SIZE.
2798         (REGISTER_SAVE_BND0): Removed.
2799         (REGISTER_SAVE_BND1): Likewise.
2800         (REGISTER_SAVE_BND3): Likewise.
2801         (REGISTER_SAVE_RAX): Always defined to 0.
2802         (VMOV): Removed.
2803         (_dl_runtime_resolve_avx): Likewise.
2804         (_dl_runtime_resolve_avx_slow): Likewise.
2805         (_dl_runtime_resolve_avx_opt): Likewise.
2806         (_dl_runtime_resolve_avx512): Likewise.
2807         (_dl_runtime_resolve_avx512_opt): Likewise.
2808         (_dl_runtime_resolve_sse): Likewise.
2809         (_dl_runtime_resolve_sse_vex): Likewise.
2810         (USE_FXSAVE): New.
2811         (_dl_runtime_resolve_fxsave): Likewise.
2812         (USE_XSAVE): Likewise.
2813         (_dl_runtime_resolve_xsave): Likewise.
2814         (USE_XSAVEC): Likewise.
2815         (_dl_runtime_resolve_xsavec): Likewise.
2816         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2817         Removed.
2818         (_dl_runtime_resolve_avx512_opt): Likewise.
2819         (_dl_runtime_resolve_avx): Likewise.
2820         (_dl_runtime_resolve_avx_opt): Likewise.
2821         (_dl_runtime_resolve_sse): Likewise.
2822         (_dl_runtime_resolve_sse_vex): Likewise.
2823         (_dl_runtime_resolve_fxsave): New.
2824         (_dl_runtime_resolve_xsave): Likewise.
2825         (_dl_runtime_resolve_xsavec): Likewise.
2827 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2829         [BZ #22320]
2830         CVE-2017-15670
2831         * posix/glob.c (__glob): Fix one-byte overflow.
2833 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2835         * malloc/malloc.c (sysdep-cancel.h): Add include.
2837 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2839         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2841 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2843         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2844         (tests): Remove $(objpfx)ga_test depdendency.
2845         * resolv/ga_test.c: Remove file.
2847 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2849         [BZ #18812]
2850         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2851         * localedata/locales/kab_DZ: New file.
2853 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2855         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2856         _dl_relocate_static_pie instead of _dl_start to compute load
2857         address in static PIE.
2859 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2861         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2863 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2865         [BZ #13605]
2866         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2867         * localedata/locales/shn_MM: New file.
2869 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2871         [BZ #22321]
2872         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2873         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2874         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2875         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2876         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2877         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2879 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2881         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2883 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2885         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2887         [BZ #22322]
2888         * sysdeps/mips/bits/long-double.h: Move to ....
2889         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2891 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2893         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2895 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2896             H.J. Lu  <hongjiu.lu@intel.com>
2898         [BZ #22299]
2899         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2900         GLRO(dl_platform) to NULL.
2901         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2902         (modules-names): Add tst-platformmod-1 and
2903         x86_64/tst-platformmod-2.
2904         (CFLAGS-tst-platform-1.c): New.
2905         (CFLAGS-tst-platformmod-1.c): Likewise.
2906         (CFLAGS-tst-platformmod-2.c): Likewise.
2907         (LDFLAGS-tst-platformmod-2.so): Likewise.
2908         ($(objpfx)tst-platform-1): Likewise.
2909         ($(objpfx)tst-platform-1.out): Likewise.
2910         (tst-platform-1-ENV): Likewise.
2911         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2912         * sysdeps/x86_64/tst-platform-1.c: New file.
2913         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2914         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2916 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2918         [BZ #13994]
2919         * locale/iso-639.def: Add Karbi.
2920         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2921         * localedata/locales/mjw_IN: New file.
2923 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2925         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2926         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2927         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2928         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2929         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2930         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2931         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2932         <bits/floatn.h>.
2933         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2934         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2935         * manual/math.texi (Mathematics): Document additional architecture
2936         support for _Float128.
2937         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2938         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2939         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2940         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2941         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2942         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2943         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2944         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2945         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2946         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2947         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2948         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2949         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2950         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2951         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2953 2017-10-18  Renlin Li  <renlin.li@arm.com>
2955         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2956         _DYNAMIC symbol to calculate load address.
2958 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2960         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2961         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2962         summary bits.
2963         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2964         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2966 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2968         [BZ #16777]
2969         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2970         and improve readability by using more ASCII.
2971         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2972         and improve readability by using more ASCII.
2974 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2976         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2977         not all targets support atomics on bool.
2979 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2981         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2982         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2983         __f128.
2984         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2985         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2986         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2987         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2988         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2989         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2991 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2993         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2994         defines.
2996 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2998         [BZ #22159]
2999         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
3000         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
3001         (do_check_remalloced_chunk): Fix build bug.
3002         (do_check_malloc_state): Add assert that checks arena->top.
3003         (malloc_consolidate): Remove initialization.
3004         (int_mallinfo): Remove call to malloc_consolidate.
3005          (__libc_mallopt): Clarify why malloc_consolidate is needed.
3007 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3009         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
3010         (have_fastchunks): Remove.
3011         (clear_fastchunks): Remove.
3012         (set_fastchunks): Remove.
3013         (malloc_state): Add have_fastchunks.
3014         (malloc_init_state): Use have_fastchunks.
3015         (do_check_malloc_state): Remove incorrect invariant checks.
3016         (_int_malloc): Use have_fastchunks.
3017         (_int_free): Likewise.
3018         (malloc_consolidate): Likewise.
3020 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
3022         * malloc/malloc.c (tcache_put): Inline.
3023         (tcache_get): Inline.
3025 2017-10-17  Jordi Mallach  <jordi@gnu.org>
3027         Aurelien Jarno  <aurelien@aurel32.net>
3028         [BZ #2522]
3029         * localedata/locales/ca_ES@valencia: New file.
3030         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
3032 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
3034         [BZ #22296]
3035         * math/math.h: Let signbit use the builtin in C++ mode with gcc
3036         < 6.x
3038 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3040         * scripts/build-many-glibcs.py (Context.add_all_configs):
3041         Add arm-linux-gnueabihf multiarch extra_glibcs.
3043         * sysdeps/generic/ifunc-init.h: New file.
3044         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
3046 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
3048         [BZ #22019]
3049         * localedata/locales/el_GR: Set n_cs_precedes to 0.
3050         * localedata/locales/el_CY: copy "el_GR" because it is identical.
3051         * stdlib/tst-strfmon_l.c: adapt test case.
3053 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3055         * sysdeps/generic/float128-abi.h: New file.
3056         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
3057         non-__prefixed symbols to ....
3058         * math/Versions: ... here.  Include <float128-abi.h>.
3059         * stdlib/Versions ... and here.  Include <float128-abi.h>
3061 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3063         * version.h (VERSION): Switch to ".9000" as the development
3064         version suffix.
3066 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3068         [BZ #22050]
3069         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
3070         compat_symbol_reference to access non-default version.
3072 2017-10-16  Florian Weimer  <fweimer@redhat.com>
3074         * malloc/Makefile (others-extras): Set to mcheck-init.o.
3076 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
3078         * include/shlib-compat.h (compat_symbol_reference): Update
3079         comment.
3081 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
3083         * math/Makefile (test-types): Add
3084         $(type-float128-$(float128-alias-fcts)).
3085         * math/test-float128.h (TYPE_STR): Define conditional on
3086         [FLT128_MANT_DIG == LDBL_MANT_DIG].
3087         (ULP_IDX): Likewise.
3088         (ULP_I_IDX): Likewise.
3090         * stdlib/strtold.c: Include <bits/floatn.h>
3091         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
3092         and later undefine as macro.  Define as weak alias if
3093         [!USE_WIDE_CHAR].
3094         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
3095         and later undefine as macro.  Define as weak alias if
3096         [USE_WIDE_CHAR].
3097         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
3098         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
3099         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3100         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3101         Define and later undefine as macro.  Define as weak alias if
3102         [USE_WIDE_CHAR].
3103         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
3104         <bits/floatn.h>.
3105         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
3106         Define and later undefine as macro.  Define as weak alias if
3107         [!USE_WIDE_CHAR].
3108         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
3109         Define and later undefine as macro.  Define as weak alias if
3110         [USE_WIDE_CHAR].
3112 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
3114         * localedata/collate-test.c (allocate_arrays): Don't use \n in
3115         record_verbose messages.
3117 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3119         [BZ #22052]
3120         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
3121         to silence -O3 -Wall warning with GCC 7.
3123 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
3125         * Makeconfig (+link-static-before-libc): Use the first of
3126         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
3127         * gmon/Makefile (tests): Add tst-gmon-static.
3128         (tests-static): Likewise.
3129         (CFLAGS-tst-gmon-static.c): New.
3130         (CRT-tst-gmon-static): Likewise.
3131         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
3132         (tst-gmon-static-ENV): Likewise.
3133         (tests-special): Likewise.
3134         ($(objpfx)tst-gmon-static.out): Likewise.
3135         (clean-tst-gmon-static-data): Likewise.
3136         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
3137         * gmon/tst-gmon-static-gprof.sh: New file.
3138         * gmon/tst-gmon-static.c: Likewise.
3140 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
3142         [BZ #22295]
3143         * locale/programs/linereader.c (get_string): Don't warn on
3144         non-symbolic character.
3146         [BZ #22294]
3147         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
3148         int_curr_symbol.
3150         [BZ #22292]
3151         * locale/programs/record-status.h: New file
3152         * locale/programs/locale.c: Add comment.
3153         * locale/programs/charmap-dir.c: Don't include error.h.
3154         (charmap_opendir): Use record_error.
3155         * locale/programs/charmap.c: Don't include error.h.
3156         (charmap_read): Use record_error, and record_warning.
3157         (parse_charmap): Likewise.
3158         * locale/programs/ld-address.c: Don't include error.h.
3159         (address_finish): Use record_error, and record_warning.
3160         * locale/programs/ld-collate.c: Don't include error.h.
3161         (collate_finish): Use record_error, and record_error_at_line.
3162         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
3163         (ctype_class_new): Likewise.
3164         (ctype_map_new): Likewise.
3165         (set_one_default): Likewise.
3166         (set_class_defaults): Likewise.
3167         (translit_flatten): Likewise.
3168         (allocate_arrays): Use record_error, and record_verbose.
3169         * locale/programs/ld-identification.c: Don't include error.h.
3170         (indentation_finish): Use record_error and record_warning.
3171         * locale/programs/ld-measurement.c: Don't include error.h.
3172         (measurement_finish): Use record_error.
3173         * locale/programs/ld-messages.c
3174         (message_finish): Likewise.
3175         * locale/programs/ld-monetary.c
3176         (monetary_finish): Likewise.
3177         * locale/programs/ld-name.c (name_finish): Use record_error
3178         and record_warning.
3179         * locale/programs/ld-numeric.c
3180         (numeric_finish): Use record_error.
3181         * locale/programs/ld-paper.c: Don't include error.h.
3182         (paper_finish): Use record_error.
3183         * locale/programs/ld-telephone.c: Don't include error.h.
3184         (telephone_finish): Use record_error.
3185         * locale/programs/ld-time.c (time_finish): Likewise.
3186         * locale/programs/linereader.h (lr_error): Make inline func.
3187         * locale/programs/localedef.c: Define recorded_warning_count,
3188         and recorded_error_count.
3189         (main): Use record_error. Use recorded_error_count and
3190         recorded_warning_count to issue correct error returns.
3191         (add_to_readlist): Use record_error.
3192         (find_locale): Likewise.
3193         (load_locale): Likewise.
3194         * locale/programs/localedef.h: Remove be_quiet
3195         and WITH_CUR_LOCALE.
3196         * locale/programs/locarchive.c (compare_from_file): Use
3197         record_error.
3198         * locale/programs/locfile.c (write_locale_data): Use
3199         record_error.
3200         * locale/programs/repertoire.c: Dont include error.h.
3201         (repertoire_complain): Use record_error.
3202         * localedata/tst-fmon.sh: Expect failures from localedef.
3203         * localedata/tst-locale.sh: Likewise.
3204         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
3206         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
3207         (REPORTS): Likewise.
3208         (check): Likewise.
3209         (i18n): Rename to...
3210         (i18n_ctype): ...this.
3211         (i18n-report): Rename to...
3212         (i18n_ctype-report): ...this.
3213         * localedata/locales/i18n_ctype: Regenerate.
3214         * localedata/locales/i18n: copy i18n_ctype.
3216 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3218         * stdlib/strfroml.c: Include <bits/floatn.h>.
3219         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
3220         Define before include of <stdlib.h> and undefine afterwards, then
3221         define as weak alias.
3223         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
3224         Undefine and restore default definition.  Use
3225         libm_alias_ldouble_other.
3227 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
3229         [BZ #22153]
3230         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
3231         in coredumps.
3233 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
3235         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3236         Assign sym_map to be map for local symbols, as TLS relocations
3237         use sym_map to determine whether the symbol is defined and to
3238         extract the TLS information.
3239         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3240         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3242 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3244         [BZ #22189]
3245         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
3246         (math_force_eval): Add powerpc version.
3248         [BZ #22142]
3249         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
3250         -DBL_MAX.
3251         (do_test): Likewise.
3252         * stdio-common/tst-printf.sh: Likewise.
3253         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
3254         ifdef clause in order to set the carry bit right.  Replace r0 by
3255         0 without changing the behavior.
3257 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3259         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
3260         <libm-alias-ldouble.h>.
3261         (fabsl): Define using libm_alias_ldouble.
3262         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
3263         <libm-alias-ldouble.h>.
3264         (fabsl): Define using libm_alias_ldouble.
3266         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
3267         Remove conditional code.
3269         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
3270         Rename to __clog10_internal_l.
3271         (__clog10_internal_l): Define aliases using
3272         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
3273         with __clog10.
3275 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3277         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
3278         * benchtests/sincosf-inputs: New file.
3279         * benchtests/cosf-inputs: New file.
3280         * benchtests/sinf-inputs: New file.
3282 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3284         * posix/tst-spawn.c (do_test): Wait for both children.
3286 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3288         [BZ #22284]
3289         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
3290         tests-pie): Add tst-gmon-pie.
3291         (CFLAGS-tst-gmon-pie.c): New.
3292         (CRT-tst-gmon-pie): Likewise.
3293         (tst-gmon-pie-ENV): Likewise.
3294         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3295         ($(objpfx)tst-gmon-pie.out): Likewise.
3296         (clean-tst-gmon-pie-data): Likewise.
3297         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3298         * gmon/gmon.c [PIC]: Include <link.h>.
3299         [PIC] (callback): New function.
3300         (write_hist): Add an argument for load address.  Subtract load
3301         address from PCs.
3302         (write_call_graph): Likewise.
3303         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3304         it to write_hist and write_call_graph.
3305         * gmon/tst-gmon-pie.c: New file.
3307 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3309         * math/Makefile (test-types-basic): New variable.
3310         (test-types): Likewise.
3311         (libm-test-support): Use $(test-types) instead of $(types).
3312         (libm-tests-base-normal): Likewise.
3313         (libm-tests-base-finite): Likewise.
3314         (libm-tests-base-inline): Likewise.
3315         (generated): Likewise.
3316         ($(objpfx)libm-test-support-$(t).c): Likewise.
3317         (libm-tests-for-type iterator): Likewise.
3318         (libm-test-support iterator): Likewise.
3319         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3320         (ulp_idx): Use ULP_IDX.
3321         * math/test-ldouble.h: Include <float.h>.
3322         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3323         (ULP_IDX): New macro.
3324         (ULP_I_IDX): Likewise.
3325         * math/test-double.h (ULP_IDX): Likewise.
3326         (ULP_I_IDX): Likewise.
3327         * math/test-float.h (ULP_IDX): Likewise.
3328         (ULP_I_IDX): Likewise.
3329         * math/test-float128.h (ULP_IDX): Likewise.
3330         (ULP_I_IDX): Likewise.
3332 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3334         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3335         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3336         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3337         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3338         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3339         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3340         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3341         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3342         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3343         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3344         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3345         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3346         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3347         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3348         (SINGLE_THREAD_BY_GLOBAL): Define.
3349         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3350         Likewise.
3351         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3352         Likewise.
3353         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3354         Likewise.
3355         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3356         Likewise.
3357         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3358         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3359         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3360         Likewise.
3362 2017-10-11  Andreas Schwab  <schwab@suse.de>
3364         * nis/Makefile (aux): Remove.
3365         * nscd/Makefile (aux): Add nscd_hash.
3366         (nscd-modules): Likewise.
3367         ($(objpfx)nscd): Don't depend on libnsl.
3368         * nscd/nscd_hash.c: New file.
3369         * nscd/nscd_hash.h: Likewise.
3370         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3371         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3372         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3373         instead of <nis/rpcsvc/nis.h>.
3374         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3376 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3378         [BZ #22078]
3379         Avoid large NSS buffers with many addresses, aliases.
3380         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3381         using dynarrays and struct alloc_buffer.
3382         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3383         (tst-nss-files-hosts-multi): Link with -ldl.
3384         * nss/tst-nss-files-hosts-multi.c: New file.
3386 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3388         [BZ #18023]
3389         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3390         scratch_buffer.  Eliminate gotos.
3392 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3394         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3395         libm_alias_ldouble_other.
3396         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3397         undefine and redefine.
3398         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3399         (exp10l): Do not define here.
3400         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3401         (weak_alias): Undefine and redefine.
3402         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3403         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3404         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3405         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3407         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3408         [!__fma] (fma): Define using libm_alias_double.
3409         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3410         [!__fmaf] (fmaf): Define using libm_alias_float.
3411         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3412         (fmal): Define using libm_alias_ldouble.
3414 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3416         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3417         New macro.
3418         (libm_alias_double_other): Likewise.
3419         (libm_alias_double_r): Use libm_alias_double_other_r.
3420         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3421         New macro.
3422         (libm_alias_float_other): Likewise.
3423         (libm_alias_float_r): Use libm_alias_float_other_r.
3424         * sysdeps/generic/libm-alias-float128.h
3425         (libm_alias_float128_other_r): New macro.
3426         (libm_alias_float128_other): Likewise.
3427         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3428         * sysdeps/generic/libm-alias-ldouble.h
3429         (libm_alias_ldouble_other_r): New macro.
3430         (libm_alias_ldouble_other): Likewise.
3431         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3432         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3433         (libm_alias_double_other_r): New macro.
3434         (libm_alias_double_other): Likewise.
3435         (libm_alias_double_r): Use libm_alias_double_other_r.
3436         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3437         (libm_alias_ldouble_other_r): New macro.
3438         (libm_alias_ldouble_other): Likewise.
3439         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3440         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3441         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3442         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3443         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3444         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3445         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3446         * math/w_exp2f.c: Use libm_alias_float_other.
3447         * math/w_expf.c: Likewise.
3448         * math/w_log2f.c: Likewise.
3449         * math/w_logf.c: Likewise.
3450         * math/w_powf.c: Likewise.
3451         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3452         [!__exp2f]: Use libm_alias_float_other.
3453         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3454         [!__expf]: Use libm_alias_float_other.
3455         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3456         [!__log2f]: Use libm_alias_float_other.
3457         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3458         [!__logf]: Use libm_alias_float_other.
3459         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3460         [!__powf]: Use libm_alias_float_other.
3462 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3464         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3465         function.
3466         (_nss_files_gethostbyname3_r): Call it.
3468 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3470         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3471         error.  Remove default definition of declare_mgen_alias.
3472         [!declare_mgen_alias_r]: Likewise.
3473         * sysdeps/generic/math-type-macros-double.h
3474         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3475         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3476         (declare_mgen_alias_r): Likewise.
3477         * sysdeps/generic/math-type-macros-float128.h
3478         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3479         * sysdeps/generic/math-type-macros-ldouble.h
3480         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3481         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3482         macro.
3483         (declare_mgen_alias_r_s): Likewise.
3484         (declare_mgen_alias_r): Likewise.
3485         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3486         (lgamma_r): Define using libm_alias_double_r.
3487         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3488         (lgammaf_r): Define using libm_alias_float_r.
3489         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3490         (lgammal_r): Define using libm_alias_ldouble_r.
3491         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3492         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3494 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3496         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3497         extern declaration.
3499 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3501         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3503 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3505         [BZ #21326]
3506         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3507         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3508         * math/Makefile (test-math-cxx11): New test.
3509         * math/test-math-cxx11.cc: New file.
3511 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3513         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3515         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3516         call to allocate the slave pty file descriptor.
3518 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3520         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3521         [!__fma] (fma): Define using libm_alias_double.
3522         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3523         [!__fma] (fma): Define using libm_alias_double.
3525         * sysdeps/ieee754/float128/float128_private.h: Include
3526         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3527         (libm_alias_ldouble_r): Undefine and redefine.
3528         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3529         <libm-alias-ldouble.h>.
3530         (asinhl): Define using libm_alias_ldouble.
3531         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3532         <libm-alias-ldouble.h>.
3533         (atanl): Define using libm_alias_ldouble.
3534         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3535         <libm-alias-ldouble.h>.
3536         (cbrtl): Define using libm_alias_ldouble.
3537         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3538         <libm-alias-ldouble.h>.
3539         (ceill): Define using libm_alias_ldouble.
3540         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3541         <libm-alias-ldouble.h>.
3542         (copysignl): Define using libm_alias_ldouble.
3543         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3544         <libm-alias-ldouble.h>.
3545         (cosl): Define using libm_alias_ldouble.
3546         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3547         <libm-alias-ldouble.h>.
3548         (erfl): Define using libm_alias_ldouble.
3549         (erfcl): Likewise.
3550         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3551         <libm-alias-ldouble.h>.
3552         (expm1l): Define using libm_alias_ldouble.
3553         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3554         <libm-alias-ldouble.h>.
3555         (fabsl): Define using libm_alias_ldouble.
3556         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3557         <libm-alias-ldouble.h>.
3558         (floorl): Define using libm_alias_ldouble.
3559         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3560         <libm-alias-ldouble.h>.
3561         (fmal): Define using libm_alias_ldouble.
3562         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3563         <libm-alias-ldouble.h>.
3564         (frexpl): Define using libm_alias_ldouble.
3565         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3566         libm_alias_ldouble.
3567         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3568         <libm-alias-ldouble.h>.
3569         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3570         libm_alias_ldouble.
3571         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3572         <libm-alias-ldouble.h>.
3573         (getpayloadl): Define using libm_alias_ldouble.
3574         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3575         <libm-alias-ldouble.h>.
3576         (llrintl): Define using libm_alias_ldouble.
3577         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3578         <libm-alias-ldouble.h>.
3579         (llroundl): Define using libm_alias_ldouble.
3580         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3581         <libm-alias-ldouble.h>.
3582         (logbl): Define using libm_alias_ldouble.
3583         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3584         <libm-alias-ldouble.h>.
3585         (lrintl): Define using libm_alias_ldouble.
3586         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3587         <libm-alias-ldouble.h>.
3588         (lroundl): Define using libm_alias_ldouble.
3589         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3590         <libm-alias-ldouble.h>.
3591         (modfl): Define using libm_alias_ldouble.
3592         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3593         <libm-alias-ldouble.h>.
3594         (nearbyintl): Define using libm_alias_ldouble.
3595         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3596         <libm-alias-ldouble.h>.
3597         (nextafterl): Define using libm_alias_ldouble.
3598         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3599         <libm-alias-ldouble.h>.
3600         (nextupl): Define using libm_alias_ldouble.
3601         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3602         <libm-alias-ldouble.h>.
3603         (remquol): Define using libm_alias_ldouble.
3604         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3605         <libm-alias-ldouble.h>.
3606         (rintl): Define using libm_alias_ldouble.
3607         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3608         <libm-alias-ldouble.h>.
3609         (roundevenl): Define using libm_alias_ldouble.
3610         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3611         <libm-alias-ldouble.h>.
3612         (roundl): Define using libm_alias_ldouble.
3613         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3614         using libm_alias_ldouble.
3615         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3616         <libm-alias-ldouble.h>.
3617         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3618         Define using libm_alias_ldouble.
3619         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3620         <libm-alias-ldouble.h>.
3621         (sincosl): Define using libm_alias_ldouble.
3622         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3623         <libm-alias-ldouble.h>.
3624         (sinl): Define using libm_alias_ldouble.
3625         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3626         <libm-alias-ldouble.h>.
3627         (tanhl): Define using libm_alias_ldouble.
3628         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3629         <libm-alias-ldouble.h>.
3630         (tanl): Define using libm_alias_ldouble.
3631         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3632         <libm-alias-ldouble.h>.
3633         (totalorderl): Define using libm_alias_ldouble.
3634         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3635         <libm-alias-ldouble.h>.
3636         (totalordermagl): Define using libm_alias_ldouble.
3637         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3638         <libm-alias-ldouble.h>.
3639         (truncl): Define using libm_alias_ldouble.
3640         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3641         libm_alias_ldouble.
3642         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3643         libm_alias_ldouble.
3644         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3645         <libm-alias-ldouble.h>.
3646         (weak_alias): Do not undefine and redefine.
3647         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3648         (copysignl): Define with long_double_symbol only if [IS_IN
3649         (libc)].
3650         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3651         <libm-alias-ldouble.h>.
3652         (weak_alias): Do not undefine and redefine.
3653         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3654         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3655         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3656         <libm-alias-ldouble.h>.
3657         (weak_alias): Do not undefine and redefine.
3658         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3659         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3660         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3661         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3662         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3663         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3664         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3665         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3666         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3667         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3668         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3669         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3670         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3671         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3672         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3673         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3674         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3675         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3676         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3677         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3678         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3679         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3680         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3681         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3682         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3683         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3685 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3687         [BZ #22111]
3688         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3689         (tcache_thread_freeres): Set tcache_shutting_down before
3690         freeing the tcache.
3691         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3692         * malloc/tst-malloc-tcache-leak.c: New file.
3694 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3696         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3697         back to powerpc32 file.
3698         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3699         (memrchr): Add __memrchr_power8 to ifunc list.
3700         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3701         extra bytes for unaligned inputs.
3703 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3705         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3706         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3707         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3708         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3709         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3711 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3713         * sysdeps/arm/libm-test-ulps: Update.
3715         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3716         <libm-alias-ldouble.h>.
3717         (asinhl): Define using libm_alias_ldouble.
3718         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3719         <libm-alias-ldouble.h>.
3720         (cbrtl): Define using libm_alias_ldouble.
3721         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3722         <libm-alias-ldouble.h>.
3723         (copysignl): Define using libm_alias_ldouble.
3724         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3725         <libm-alias-ldouble.h>.
3726         (cosl): Define using libm_alias_ldouble.
3727         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3728         <libm-alias-ldouble.h>.
3729         (erfl): Define using libm_alias_ldouble.
3730         (erfcl): Likewise.
3731         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3732         <libm-alias-ldouble.h>.
3733         (fmal): Define using libm_alias_ldouble.
3734         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3735         <libm-alias-ldouble.h>.
3736         (frexpl): Define using libm_alias_ldouble.
3737         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3738         libm_alias_ldouble.
3739         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3740         <libm-alias-ldouble.h>.
3741         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3742         libm_alias_ldouble.
3743         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3744         <libm-alias-ldouble.h>.
3745         (getpayloadl): Define using libm_alias_ldouble.
3746         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3747         <libm-alias-ldouble.h>.
3748         (llrintl): Define using libm_alias_ldouble.
3749         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3750         <libm-alias-ldouble.h>.
3751         (llroundl): Define using libm_alias_ldouble.
3752         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3753         <libm-alias-ldouble.h>.
3754         (lrintl): Define using libm_alias_ldouble.
3755         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3756         <libm-alias-ldouble.h>.
3757         (lroundl): Define using libm_alias_ldouble.
3758         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3759         <libm-alias-ldouble.h>.
3760         (modfl): Define using libm_alias_ldouble.
3761         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3762         <libm-alias-ldouble.h>.
3763         (nextupl): Define using libm_alias_ldouble.
3764         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3765         <libm-alias-ldouble.h>.
3766         (remquol): Define using libm_alias_ldouble.
3767         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3768         <libm-alias-ldouble.h>.
3769         (roundevenl): Define using libm_alias_ldouble.
3770         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3771         <libm-alias-ldouble.h>.
3772         (roundl): Define using libm_alias_ldouble.
3773         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3774         using libm_alias_ldouble.
3775         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3776         <libm-alias-ldouble.h>.
3777         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3778         <libm-alias-ldouble.h>.
3779         (setpayloadsigl): Define using libm_alias_ldouble.
3780         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3781         <libm-alias-ldouble.h>.
3782         (sincosl): Define using libm_alias_ldouble.
3783         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3784         <libm-alias-ldouble.h>.
3785         (sinl): Define using libm_alias_ldouble.
3786         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3787         <libm-alias-ldouble.h>.
3788         (tanhl): Define using libm_alias_ldouble.
3789         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3790         <libm-alias-ldouble.h>.
3791         (tanl): Define using libm_alias_ldouble.
3792         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3793         <libm-alias-ldouble.h>.
3794         (totalorderl): Define using libm_alias_ldouble.
3795         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3796         <libm-alias-ldouble.h>.
3797         (totalordermagl): Define using libm_alias_ldouble.
3798         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3799         libm_alias_ldouble.
3800         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3801         libm_alias_ldouble.
3803 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3805         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3806         memmove_falkor.
3807         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3808         (__libc_ifunc_impl_list): Likewise.
3809         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3810         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3812         * benchtests/bench-memmove-walk.c: New file.
3813         * benchtests/Makefile (string-benchset): Add it.
3815         * benchtests/bench-memset-walk.c: New file.
3816         * benchtests/Makefile (string-benchset): Add it.
3818         * benchtests/bench-memcpy-walk.c: New file.
3819         * benchtests/Makefile (string-benchset): Add it.
3821 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3823         nscd: Eliminate compilation time dependency in the build output.
3824         * nscd/nscd_stat.c (STATDATA_VERSION)
3825         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3826         (STATDATA_VERSION_FULL): New macro definitions.
3827         (compilation): Remove.
3828         (struct statdata): Adjust version member.
3829         (send_stats): Set version from STATDATA_VERSION_FULL.
3830         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3832 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3834         * configure.ac (--enable-add-ons): Remove option.
3835         (machine): Do not mention add-ons in comment.
3836         (LIBC_PRECONFIGURE): Likewise.
3837         (add_ons): Remove variable and sanity checks and logic to locate
3838         add-ons.
3839         (add_ons_automatic): Remove variable.
3840         (configured_add_ons): Likewise.
3841         (add_ons_sfx): Likewise.
3842         (add_ons_pfx): Likewise.
3843         (add_on_subdirs): Likewise.
3844         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3845         consideration of add-ons in Implies handling.
3846         (sysdeps_add_ons): Likewise.
3847         * configure: Regenerated.
3848         * libidn/configure.ac: Remove.
3849         * libidn/configure: Likewise.
3850         * sysdeps/unix/inet/configure.ac: New file.
3851         * sysdeps/unix/inet/configure: New generated file.
3852         * sysdeps/unix/inet/Subdirs: Add libidn.
3853         * Makeconfig (sysdeps-srcdirs): Remove variable.
3854         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3855         ($(common-objpfx)config.status): Do not depend on add-on files.
3856         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3857         comment.
3858         (all-subdirs): Do not include $(add-on-subdirs).
3859         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3860         * config.make.in (add-ons): Remove variable.
3861         (add-on-subdirs): Likewise.
3862         (sysdeps-add-ons): Likewise.
3863         * manual/Makefile (add-chapters): Remove.
3864         ($(objpfx)texis): Do not depend on $(add-chapters).
3865         (nonexamples): Do not handle $(add-chapters).
3866         (examples): Do not handle $(add-ons).
3867         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3868         libc-texinfo.sh.
3869         * manual/install.texi (Installation): Do not mention add-ons.
3870         (--enable-add-ons): Do not document configure option.
3871         * INSTALL: Regenerated.
3872         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3873         * manual/maint.texi (Hierarchy Conventions): Do not mention
3874         add-ons.
3875         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3876         --enable-add-ons.
3877         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3878         add-ons.
3879         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3880         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3882 2017-10-05  Andreas Schwab  <schwab@suse.de>
3884         [BZ #15142]
3885         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3886         (_IO_flush_all_lockp): Always lock list_all_lock.
3887         (_IO_flush_all_linebuffered): Likewise.
3888         (_IO_unbuffer_all): Likewise.
3890 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3892         [BZ #15436]
3893         Do not flush stdio streams on abort.
3894         * stdlib/abort.c (fflush): Remove macro definition.
3895         (abort): Remove stages related to stdio flushing.
3897 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3899         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3901 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3903         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3905 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3907         * support/support_format_hostent.c (support_format_hostent): Add
3908         more error information for NETDB_INTERNAL.
3910 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3912         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3913         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3914         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3915         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3916         AC_DEFINE if multi-arch is enabled.
3917         * sysdeps/i386/configure: Regenerated.
3919 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3921         * Makeconfig (+link-static-before-libc): Use
3922         $(DEFAULT-LDFLAGS-$(@F)).
3923         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3924         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3925         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3927 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3929         * elf/Makefile (tests): Add tst-main1.
3930         (modules-names): Add tst-main1mod.
3931         ($(objpfx)tst-main1): New.
3932         (CRT-tst-main1): Likewise.
3933         (LDFLAGS-tst-main1): Likewise.
3934         (LDLIBS-tst-main1): Likewise.
3935         (tst-main1mod.so-no-z-defs): Likewise.
3936         * elf/tst-main1.c: New file.
3937         * elf/tst-main1mod.c: Likewise.
3939 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3941         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3943 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3945         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3946         (fma): Define using libm_alias_double.
3947         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3948         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3949         <math_ldbl_opt.h>.
3950         (fmal): Do not define as compat symbol here.
3951         * sysdeps/alpha/fpu/s_fma.c: New file.
3953 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3955         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3957 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3959         [BZ #22229]
3960         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3961         <math_ldbl_opt.h>
3962         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3963         and libc.
3964         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3965         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3966         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3967         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3969         Include <math_ldbl_opt.h>
3970         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3971         and libc.
3972         (compat_symbol): Undefine and redefine.
3973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3974         <math_ldbl_opt.h>
3975         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3976         (compat_symbol): Undefine and redefine.
3977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3978         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3979         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3980         GLIBC_2_1 for libm.
3981         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3982         GLIBC_2.0 copysignl symbol.
3983         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3984         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3986         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3988 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3990         * scripts/check-local-headers.sh: Ignore nspr4 header file
3991         directory in addition to nspr.
3993 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3995         [BZ #17956]
3996         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3997         * configure: Regenerate.
3998         * crypt/Makefile (nss-cpp-flags): New variable.
3999         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
4000         (CPPFLAGS-md5-crypt.c): Use it.
4001         * scripts/check-local-headers.sh: Ignore nspr header file
4002         directory.
4004 2017-10-04  Andreas Schwab  <schwab@suse.de>
4006         * nis/Makefile (services): Remove compat.
4007         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
4008         ($(objpfx)libnss_compat.so): Remove rule.
4009         * nis/Versions (libnss_compat): Remove.
4010         * nss/Makefile (services): Add compat.
4011         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
4012         * nss/Versions (libnss_compat): Define.
4013         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
4014         Don't include <rpc/types.h>.  Replace bool_t by bool.
4015         * nss/nss_compat/compat-initgroups.c: Likewise.
4016         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
4017         instead of <rpcsrv/ypclnt.h>.
4018         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
4019         yp_get_default_domain.
4020         * nss/nss_compat/compat-pwd.c: Likewise.
4021         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
4022         yp_get_default_domain.
4023         * nss/nss_compat/nisdomain.c: New file.
4024         * nss/nss_compat/nisdomain.h: Likewise.
4026 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4028         [BZ #22244]
4029         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
4030         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4032 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4034         [BZ #22243]
4035         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
4036         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
4038 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4040         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
4041         "movl main@GOTOFF(%ebx), %eax".
4043 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4045         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
4046         allow undefined _DYNAMIC in PIE libc.a.
4047         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4048         Likewse.
4050 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4052         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
4053         check _DYNAMIC.
4055 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4057         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
4058         check _DYNAMIC.
4060 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4062         * math/test-math-iscanonical.cc (error): Replace bool with int.
4064 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4066         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
4067         (modf): Define using libm_alias_double, only if [!__modf].
4068         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
4069         <libm-alias-double.h>.
4070         (modf): Define using libm_alias_double, only if [!__modf].
4071         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
4072         compat symbol here.
4073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
4074         (weak_alias): Do not undefine and redefine.
4075         (strong_alias): Likewise.
4076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
4077         (weak_alias): Likewise.
4078         (strong_alias): Likewise.
4080         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
4081         (logb): Define using libm_alias_double, only if [!__logb].
4082         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
4083         <libm-alias-double.h>.
4084         (logb): Define using libm_alias_double, only if [!__logb].
4085         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
4086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
4087         (weak_alias): Do not undefine and redefine.
4088         (strong_alias): Likewise.
4089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
4090         (weak_alias): Likewise.
4091         (strong_alias): Likewise.
4093 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4095         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
4096         Check SHARED instead PIC.
4098 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4100         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
4101         [!__fmaf] (fmaf): Define using libm_alias_float.
4103         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
4104         (frexp): Define using libm_alias_double.
4105         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
4106         <libm-alias-double.h>.
4107         (frexp): Define using libm_alias_double.
4108         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
4109         compat symbol here.
4111 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4113         [BZ #22235]
4114         * math/math.h: Trivial fix for unbalanced parentheses in comment.
4115         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
4116         (CFLAGS-test-math-iscanonical.cc): New variable.
4117         * math/test-math-iscanonical.cc: New file.
4118         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
4119         Provide a C++ implementation based on function overloading,
4120         rather than using __MATH_TG, which uses C-only builtins.
4121         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
4122         Likewise.
4123         * sysdeps/powerpc/powerpc64le/Makefile
4124         (CFLAGS-test-math-iscanonical.cc): New variable.
4126 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
4128         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
4129         (ceil): Define using libm_alias_double.
4130         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
4131         (floor): Define using libm_alias_double.
4132         * sysdeps/ieee754/dbl-64/s_llround.c: Include
4133         <libm-alias-double.h>.
4134         (llround): Define using libm_alias_double.
4135         * sysdeps/ieee754/dbl-64/s_lround.c: Include
4136         <libm-alias-double.h>.
4137         (lround): Define using libm_alias_double.
4138         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
4139         <libm-alias-double.h>.
4140         (nearbyint): Define using libm_alias_double.
4141         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
4142         <libm-alias-double.h>.
4143         (remquo): Define using libm_alias_double.
4144         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
4145         (rint): Define using libm_alias_double.
4146         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
4147         (round): Define using libm_alias_double.
4148         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
4149         (trunc): Define using libm_alias_double.
4150         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
4151         <libm-alias-double.h>.
4152         (ceil): Define using libm_alias_double.
4153         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
4154         <libm-alias-double.h>.
4155         (floor): Define using libm_alias_double.
4156         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
4157         <libm-alias-double.h>.
4158         (llround): Define using libm_alias_double.
4159         [_LP64] (lround): Likewise.
4160         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
4161         <libm-alias-double.h>.
4162         [!_LP64] (lround): Define using libm_alias_double.
4163         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
4164         <libm-alias-double.h>.
4165         (nearbyint): Define using libm_alias_double.
4166         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
4167         <libm-alias-double.h>.
4168         (remquo): Define using libm_alias_double.
4169         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
4170         <libm-alias-double.h>.
4171         (rint): Define using libm_alias_double.
4172         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
4173         <libm-alias-double.h>.
4174         (round): Define using libm_alias_double.
4175         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
4176         <libm-alias-double.h>.
4177         (trunc): Define using libm_alias_double.
4178         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
4179         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
4180         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
4181         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
4182         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
4183         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
4184         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
4185         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
4186         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
4188 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4190         * math/w_remainder.c: New file.
4191         * math/w_remainderf.c: New file.
4192         * math/w_remainderl.c: New file.
4194 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
4196         * elf/rtld.c (BOOTSTRAP_MAP): New.
4197         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
4198         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4199         Likewise.
4200         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4201         Likewise.
4202         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4203         Likewise.
4205 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4207         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
4208         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
4209         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
4210         rtld_hidden_data_ver): Define to empty.
4211         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
4212         __assert_perror_fail): Likewise.
4213         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4214         (__rewinddir): Likewise.
4215         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4216         (__profile_frequency): Likewise.
4217         * include/setjmp.h (__sigsetjmp): Likewise.
4218         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
4219         __libc_sigaction): Likewise.
4220         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
4221         not set hidden attribute.
4222         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
4223         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
4224         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
4225         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
4226         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
4227         __fxstatat64): Likewise.
4228         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4229         (__uname): Likewise.
4230         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4231         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
4232         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
4233         (NO_RTLD_HIDDEN): Set.
4234         * sysdeps/mach/hurd/configure: Refresh.
4235         * config.h.in: Refresh.
4237 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
4239         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
4240         (atan): Define using libm_alias_double.
4241         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
4242         (tan): Define using libm_alias_double.
4243         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
4244         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
4246         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
4247         define as weak alias of __atan.  Do not define any aliases if
4248         [__atan].
4249         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
4250         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
4251         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
4252         as weak alias of __tan.  Do not define any aliases if [__tan].
4253         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
4254         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
4255         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
4256         __atan.
4257         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
4258         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
4259         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
4260         and define as weak alias of __atan.
4261         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
4262         __atan.
4263         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
4264         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
4265         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
4266         define as weak alias of __tan.
4268 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4270         * math/w_lgamma.c: New file.
4271         * math/w_lgammaf.c: New file.
4272         * math/w_lgammal.c: New file.
4274 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4276         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
4277         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
4278         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
4279         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
4280         * sysdeps/ieee754/flt-32/w_logf.c: New file.
4281         * sysdeps/ieee754/flt-32/w_powf.c: New file.
4282         * sysdeps/i386/fpu/w_log2f.c: New file.
4283         * sysdeps/i386/fpu/w_logf.c: New file.
4284         * sysdeps/i386/fpu/w_powf.c: New file.
4285         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
4286         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
4287         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
4289 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4290             H.J. Lu  <hongjiu.lu@intel.com>
4292         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4293         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4294         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4295         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4296         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4297         the new expf code.
4298         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4299         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4300         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4301         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4302         * sysdeps/i386/fpu/w_exp2f.c: New file.
4303         * sysdeps/i386/fpu/w_expf.c: New file.
4304         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4305         * sysdeps/x86_64/fpu/w_expf.c: New file.
4307 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4309         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4310         (log2f): Likewise.
4311         (powf): Likewise.
4312         * math/w_log2f.c: New file.
4313         * math/w_logf.c: New file.
4314         * math/w_powf.c: New file.
4315         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4316         * math/w_logf_compat.c (__logf_compat): Likewise.
4317         * math/w_powf_compat.c (__powf_compat): Likewise.
4318         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4319         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4320         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4321         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4322         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4323         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4324         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4325         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4326         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4327         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4328         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4329         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4330         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4331         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4332         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4334         Likewise.
4335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4336         Likewise.
4337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4338         Likewise.
4339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4340         Likewise.
4341         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4342         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4343         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4344         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4345         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4346         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4347         Likewise.
4348         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4349         Likewise.
4350         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4351         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4352         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4354 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4356         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4357         (sysdep_routines): Add memrchr_power8.
4358         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4359         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4360         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4361         New file.
4362         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4363         (memrchr): Add __memrchr_power8 to ifunc list.
4364         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4366 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4368         [BZ #18822]
4369         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4370         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4371         libc_hidden_def.
4372         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4373         (__posix_fallocate64_l64): Likewise.
4375 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4377         [BZ #18822]
4378         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4379         (__sched_setaffinity_new): Add libc_hidden_proto and
4380         libc_hidden_def.
4382 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4384         [BZ #18822]
4385         * include/glob.h (__glob64): Add libc_hidden_proto.
4386         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4387         libc_hidden_def.
4389 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4391         [BZ #18822]
4392         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4393         attribute_hidden.
4395 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4397         [BZ #18822]
4398         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4400 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4402         [BZ #18822]
4403         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4404         libc_hidden_def.
4406 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4408         [BZ #18822]
4409         * csu/version.c (__libc_print_version): Add attribute_hidden.
4411 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4413         [BZ #18822]
4414         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4416 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4418         [BZ #18822]
4419         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4421 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4423         [BZ #18822]
4424         * nscd/nscd_helper.c (__nis_hash): New prototype.
4426 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4428         [BZ #18822]
4429         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4430         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4431         libc_hidden_def.
4432         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4433         * termios/tcgetattr.c (__tcgetattr): Likewise.
4435 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4437         [BZ #18822]
4438         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4439         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4440         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4441         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4442         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4444 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4446         [BZ #18822]
4447         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4449 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4451         [BZ #18822]
4452         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4453         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4455 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4457         [BZ #18822]
4458         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4460 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4462         [BZ #18822]
4463         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4464         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4466 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4468         [BZ #18822]
4469         * include/ifreq.h: New file.
4470         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4471         (__ifreq): Likewise.
4472         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4473         (__ifreq): Likewise.
4475 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4477         [BZ #18822]
4478         * include/idna.h: New file.
4479         * inet/getnameinfo.c: Include <idna.h> instead of
4480         <libidn/idna.h>.
4481         (__idna_to_unicode_lzlz): Removed.
4482         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4483         <libidn/idna.h>.
4484         (__idna_to_ascii_lz): Removed.
4485         (__idna_to_unicode_lzlz): Likewise.
4487 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4489         [BZ #18822]
4490         * include/plural-exp.h: New file.
4491         * intl/plural-exp.c: Include <plural-exp.h> instead of
4492         "plural-exp.h".
4494 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4496         [BZ #18822]
4497         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4498         "getsourcefilter.h".
4499         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4500         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4501         "getsourcefilter.h".
4502         (__get_sol): Removed.
4504 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4506         [BZ #18822]
4507         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4508         to ...
4509         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4511 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4513         [BZ #18822]
4514         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4515         attribute_hidden.
4517 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4519         [BZ #18822]
4520         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4522 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4524         [BZ #18822]
4525         * include/search.h (__tdestroy): Add libc_hidden_proto.
4526         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4528 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4530         [BZ #18822]
4531         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4533 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4535         [BZ #18822]
4536         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4537         attribute_hidden.
4539 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4541         [BZ #18822]
4542         * include/signal.h (__kill): Add libc_hidden_proto.
4543         (__sigblock): Likewise.
4544         (__sigprocmask): Likewise.
4545         (__sigaltstack): Likewise.
4546         * signal/kill.c (__kill): Add libc_hidden_def.
4547         * signal/sigblock.c (__sigblock): Likewise.
4548         * signal/sigprocmask.c (__sigprocmask): Likewise.
4549         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4550         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4551         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4552         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4553         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4554         Likewise.
4555         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4556         Likewise.
4557         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4558         (__sigprocmask): Likewise.
4559         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4560         Likewise.
4561         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4562         (__sigprocmask): Likewise.
4563         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4564         Likewise.
4566 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4568         [BZ #18822]
4569         * include/string.h (__strsep): Add libc_hidden_proto.
4570         * string/strsep.c (__strsep): Add libc_hidden_def.
4572 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4574         [BZ #18822]
4575         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4576         attribute_hidden.
4577         (__spawni): Likewise.
4579 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4581         [BZ #18822]
4582         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4583         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4584         libc_hidden_def.
4586 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4588         [BZ #18822]
4589         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4591 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4593         [BZ #18822]
4594         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4595         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4596         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4597         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4598         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4599         Likewise.
4600         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4601         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4603 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4605         [BZ #18822]
4606         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4607         (__dcigettext): Likewise.
4609 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4611         [BZ #18822]
4612         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4613         libc_hidden_proto.
4614         (__get_nprocs): Likewise.
4615         (__get_phys_pages): Likewise.
4616         (__get_avphys_pages): Likewise.
4617         (__get_child_max): Add attribute_hidden.
4618         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4619         (__get_nprocs): Likewise.
4620         (__get_phys_pages): Likewise.
4621         (__get_avphys_pages): Likewise.
4622         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4623         libc_hidden_def.
4624         (__get_nprocs): Likewise.
4625         (__get_phys_pages): Likewise.
4626         (__get_avphys_pages): Likewise.
4627         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4628         libc_hidden_def.
4629         (__get_nprocs_conf): Likewise.
4630         (__get_phys_pages): Likewise.
4631         (__get_avphys_pages): Likewise.
4633 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4635         [BZ #18822]
4636         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4637         attribute_hidden.
4638         (__netlink_close): Likewise.
4639         (__netlink_free_handle): Likewise.
4640         (__netlink_request): Likewise.
4642 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4644         [BZ #18822]
4645         * include/rpc/rpc.h (__rpc_thread_variables): Add
4646         attribute_hidden.
4647         (__rpc_thread_svc_cleanup): Likewise.
4648         (__rpc_thread_clnt_cleanup): Likewise.
4649         (__rpc_thread_key_cleanup): Likewise.
4651 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4653         [BZ #18822]
4654         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4655         (__writev): Likewise.
4656         * misc/readv.c (__readv): Add libc_hidden_def.
4657         * misc/writev.c (__writev): Likewise.
4658         * sysdeps/posix/readv.c (__readv): Likewise.
4659         * sysdeps/posix/writev.c (__writev): Likewise.
4660         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4661         (__readv): Likewise.
4662         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4663         (__writev): Likewise.
4665 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4667         [BZ #18822]
4668         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4669         (__regcomp): Add libc_hidden_proto.
4670         (__regexec): Likewise.
4671         (__regfree): Likewise.
4672         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4673         (__regfree): Likewise.
4674         * posix/regexec.c (__regexec): Likewise.
4676 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4678         [BZ #18822]
4679         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4680         (__getutent): Likewise.
4681         (__getutid): Likewise.
4682         (__getutline): Likewise.
4683         (__pututline): Likewise.
4684         (__getutent_r): Likewise.
4685         (__getutid_r): Likewise.
4686         (__getutline_r): Likewise.
4687         (__utmpname): Add attribute_hidden.
4688         (__setutent): Likewise.
4689         (__endutent): Likewise.
4690         * login/getutent.c (__getutent): Add libc_hidden_def.
4691         * login/getutent_r.c (__getutent_r): Likewise.
4692         (__pututline): Likewise.
4693         * login/getutid.c (__getutid): Likewise.
4694         * login/getutid_r.c (__getutid_r): Likewise.
4695         * login/getutline.c (__getutline): Likewise.
4696         * login/getutline_r.c (__getutline_r): Likewise.
4697         * login/updwtmp.c (__updwtmp): Likewise.
4699 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4701         [BZ #18822]
4702         * include/dirent.h (__opendir): Always add attribute_hidden.
4703         (__fdopendir): Likewise.
4704         (__closedir): Likewise.
4705         (__readdir): Likewise.
4706         (__readdir64): Add libc_hidden_proto.
4707         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4708         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4709         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4710         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4711         New alias.
4713 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4715         [BZ #18822]
4716         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4717         * include/netdb.h (__gethostbyaddr_r): Likewise.
4718         (__gethostbyname_r): Likewise.
4719         (__gethostbyname2_r): Likewise.
4720         (__getnetbyaddr_r): Likewise.
4721         (__getnetbyname_r): Likewise.
4722         (__getservbyname_r): Likewise.
4723         (__getservbyport_r): Likewise.
4724         (__getprotobyname_r): Likewise.
4725         (__getprotobynumber_r): Likewise.
4726         (__getnetgrent_r): Likewise.
4727         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4728         (__getrpcbynumber_r): Likewise.
4729         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4731 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4733         [BZ #18822]
4734         * include/stdio.h (__fcloseall): Add attribute_hidden.
4735         (__getline): Likewise.
4736         (__path_search): Likewise.
4737         (__gen_tempname): Likewise.
4738         (__libc_message): Likewise.
4739         (__flockfile): Likewise.
4740         (__funlockfile): Likewise.
4741         (__fxprintf): Likewise.
4742         (__fxprintf_nocancel): Likewise.
4744 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4746         [BZ #18822]
4747         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4748         (__sgetsgent_r): Likewise.
4750 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4752         [BZ #18822]
4753         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4754         (__statfs64): Likewise.
4755         (__fstatfs64): Likewise.
4756         * include/sys/statvfs.h (__statvfs64): Likewise.
4757         (__fstatvfs64): Likewise.
4758         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4759         (__statfs_filesize_max): Likewise.
4760         (__statfs_symlinks): Likewise.
4761         (__statfs_chown_restricted): Likewise.
4763 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4765         [BZ #18822]
4766         * include/time.h (__tzstring): Add attribute_hidden.
4767         (__tzfile_read): Likewise.
4768         (__tzfile_compute): Likewise.
4769         (__tzfile_default): Likewise.
4770         (__tzset_parse_tz): Likewise.
4771         (__offtime): Likewise.
4772         (__asctime_r): Likewise.
4773         (__tzset): Likewise.
4774         (__tz_convert): Likewise.
4775         (__getdate_r): Likewise.
4776         (__getclktck): Likewise.
4778 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4780         [BZ #18822]
4781         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4782         (__nscd_unmap): Likewise.
4783         (__nscd_cache_search): Likewise.
4784         (__nscd_get_nl_timestamp): Likewise.
4785         (__nscd_getpwnam_r): Likewise.
4786         (__nscd_getpwuid_r): Likewise.
4787         (__nscd_getgrnam_r): Likewise.
4788         (__nscd_getgrgid_r): Likewise.
4789         (__nscd_gethostbyname_r): Likewise.
4790         (__nscd_gethostbyname2_r): Likewise.
4791         (__nscd_gethostbyaddr_r): Likewise.
4792         (__nscd_getai): Likewise.
4793         (__nscd_getgrouplist): Likewise.
4794         (__nscd_getservbyname_r): Likewise.
4795         (__nscd_getservbyport_r): Likewise.
4796         (__nscd_innetgr): Likewise.
4797         (__nscd_setnetgrent): Likewise.
4799 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4801         [BZ #18822]
4802         * include/gmp.h: Declare internal functions only if _ISOMAC is
4803         undefined.
4804         (__mpn_extract_double): Add attribute_hidden.
4805         (__mpn_extract_long_double): Likewise.
4806         (__mpn_extract_float128): Likewise.
4807         (__mpn_construct_float): Likewise.
4808         (__mpn_construct_double): Likewise.
4809         (__mpn_construct_long_double): Likewise.
4810         (__mpn_construct_float128): Likewise.
4811         (mpn_add_1): Likewise.
4812         (mpn_addmul_1): Likewise.
4813         (mpn_add_n): Likewise.
4814         (mpn_cmp): Likewise.
4815         (mpn_divrem): Likewise.
4816         (mpn_lshift): Likewise.
4817         (mpn_mul): Likewise.
4818         (mpn_mul_1): Likewise.
4819         (mpn_rshift): Likewise.
4820         (mpn_sub_1): Likewise.
4821         (mpn_submul_1): Likewise.
4822         (mpn_sub_n): Likewise.
4824 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4826         [BZ #18822]
4827         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4828         (__wcscat): Likewise.
4829         (__btowc): Likewise.
4830         (__wcrtomb): Likewise.
4831         (__mbsrtowcs): Likewise.
4832         (__wcsrtombs): Likewise.
4833         (__mbsnrtowcs): Likewise.
4834         (__wcsnrtombs): Likewise.
4835         (__wcsncpy): Likewise.
4836         (__wcpncpy): Likewise.
4837         (__wmemcpy): Likewise.
4838         (__wmempcpy): Likewise.
4839         (__wmemmove): Likewise.
4840         (__wcschrnul): Likewise.
4841         (__vfwscanf): Likewise.
4842         (__vswprintf): Likewise.
4843         (__fwprintf): Likewise.
4844         (__vfwprintf): Likewise.
4846 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4848         [BZ #18822]
4849         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4850         (__getgrgid_r): Likewise.
4851         (__getgrnam_r): Likewise.
4852         * include/pwd.h (__getpwuid_r): Likewise.
4853         (__getpwnam_r): Likewise.
4854         (__fgetpwent_r): Likewise.
4855         * include/shadow.h (__getspnam_r): Likewise.
4856         (__sgetspent_r): Likewise.
4857         (__fgetspent_r): Likewise.
4859 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4861         [BZ #18822]
4862         * include/unistd.h (__access): Add attribute_hidden.
4863         (__lseek64): Likewise.
4864         (__libc_pread64): Likewise.
4865         (__pipe2): Likewise.
4866         (__sleep): Likewise.
4867         (__chdir): Likewise.
4868         (__fchdir): Likewise.
4869         (__getcwd): Likewise.
4870         (__rmdir): Likewise.
4871         (__execvpe): Likewise.
4872         (__execve): Likewise.
4873         (__setsid): Likewise.
4874         (__getuid): Likewise.
4875         (__geteuid): Likewise.
4876         (__getgid): Likewise.
4877         (__getegid): Likewise.
4878         (__getgroups): Likewise.
4879         (__group_member): Likewise.
4880         (__ttyname_r): Likewise.
4881         (__isatty): Likewise.
4882         (__readlink): Likewise.
4883         (__unlink): Likewise.
4884         (__gethostname): Likewise.
4885         (__profil): Likewise.
4886         (__getdtablesize): Likewise.
4887         (__brk): Likewise.
4888         (__ftruncate): Likewise.
4889         (__ftruncate64): Likewise.
4891 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4893         [BZ #18822]
4894         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4895         * argp/argp-fs-xinl.c: Likewise.
4896         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4897         * argp/argp-parse.c: Include <argp.h>.
4898         * argp/argp-xinl.c: Likewise.
4899         * include/argp-fmtstream.h: New file.
4900         * include/argp.h (__argp_error): Add attribute_hidden.
4901         (__argp_failure): Likewise.
4902         (__argp_input): Likewise.
4903         (__argp_state_help): Likewise.
4905 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4907         [BZ #18822]
4908         * include/wchar.h (____wcstof_l_internal): New prototype.
4909         (____wcstod_l_internal): Likewise.
4910         (____wcstold_l_internal): Likewise.
4911         (____wcstol_l_internal): Likewise.
4912         (____wcstoul_l_internal): Likewise.
4913         (____wcstoll_l_internal): Likewise.
4914         (____wcstoull_l_internal): Likewise.
4915         (____wcstof128_l_internal): Likewise.
4916         * sysdeps/ieee754/float128/wcstof128.c
4917         (____wcstof128_l_internal): Removed.
4918         * sysdeps/ieee754/float128/wcstof128_l.c
4919         (____wcstof128_l_internal): Likewise.
4920         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4921         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4922         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4923         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4924         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4925         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4926         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4927         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4928         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4929         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4933         [BZ #18822]
4934         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4935         instead of <sys/statvfs.h>.
4936         (__internal_statvfs): Removed.
4937         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4938         instead of <sys/statvfs.h>.
4939         (__internal_statvfs64): Removed.
4940         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4941         "internal_statvfs.h" instead of <sys/statvfs.h>.
4942         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4943         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4944         instead of <sys/statvfs.h>.
4945         (__internal_statvfs): Removed.
4946         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4947         instead of <sys/statvfs.h>.
4948         (__internal_statvfs64): Removed.
4950 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4952         [BZ #18822]
4953         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4954         (__gconv_close): Likewise.
4955         (__gconv): Likewise.
4956         (__gconv_find_transform): Likewise.
4957         (__gconv_lookup_cache): Likewise.
4958         (__gconv_compare_alias_cache): Likewise.
4959         (__gconv_load_cache): Likewise.
4960         (__gconv_get_path): Likewise.
4961         (__gconv_close_transform): Likewise.
4962         (__gconv_release_cache): Likewise.
4963         (__gconv_find_shlib): Likewise.
4964         (__gconv_release_shlib): Likewise.
4965         (__gconv_get_builtin_trans): Likewise.
4966         (__gconv_compare_alias): Likewise.
4967         * include/dlfcn.h (_dlerror_run): Likewise.
4968         * include/stdio.h (__fortify_fail_abort): Likewise.
4969         * include/time.h (__tz_compute): Likewise.
4970         (__strptime_internal): Likewise.
4971         * intl/gettextP.h (_nl_find_domain): Likewise.
4972         (_nl_load_domain): Likewise.
4973         (_nl_find_msg): Likewise.
4974         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4975         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4976         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4977         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4978         (__gai_find_request): Likewise.
4979         (__gai_remove_request): Likewise.
4980         (__gai_notify): Likewise.
4981         (__gai_notify_only): Likewise.
4982         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4983         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4984         (_dl_non_dynamic_init): Likewise.
4985         (_dl_aux_init): Likewise.
4986         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4987         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4988         Likewise.
4989         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4990         (__wcsmbs_clone_conv): Likewise.
4991         (__wcsmbs_named_conv): Likewise.
4993 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4995         [BZ #18822]
4996         * include/stdlib.h (__random): Add attribute_hidden.
4997         (__random_r): Likewise.
4998         (__srandom_r): Likewise.
4999         (__initstate_r): Likewise.
5000         (__setstate_r): Likewise.
5001         (__erand48_r): Likewise.
5002         (__nrand48_r): Likewise.
5003         (__jrand48_r): Likewise.
5004         (__srand48_r): Likewise.
5005         (__seed48_r): Likewise.
5006         (__lcong48_r): Likewise.
5007         (__drand48_iterate): Likewise.
5008         (__setenv): Likewise.
5009         (__unsetenv): Likewise.
5010         (__clearenv): Likewise.
5011         (__ptsname_r): Likewise.
5012         (__posix_openpt): Likewise.
5013         (__add_to_environ): Likewise.
5014         (__realpath): Add libc_hidden_proto.
5015         (__ecvt_r): Likewise.
5016         (__fcvt_r): Likewise.
5017         (__qecvt_r): Likewise.
5018         (__qfcvt_r): Likewise.
5019         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
5020         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
5022 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5024         [BZ #18822]
5025         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
5026         * include/time.h (__mktime_internal): Likewise.
5027         * libio/iolibio.h (__fopen_internal): Likewise.
5029 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
5031         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
5032         pointer in frame.
5033         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
5034         Correct offset used to restore PIC register.
5036 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
5038         [BZ libc/22165]
5039         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
5040         code to load address of __getcontext_ret when generating PIC code.
5042 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
5044         * elf/Makefile (tests-static-internal): Add
5045         tst-tls1-static-non-pie.
5046         (LDFLAGS-tst-tls1-static-non-pie): New.
5047         * elf/tst-tls1-static-non-pie.c: New file.
5049 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5051         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
5052         (asinh): Define using libm_alias_double.
5053         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
5054         (cbrt): Define using libm_alias_double.
5055         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
5056         <libm-alias-double.h>.
5057         (copysign): Define using libm_alias_double.
5058         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
5059         (erf): Define using libm_alias_double.
5060         (erfc): Likewise.
5061         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
5062         (expm1): Define using libm_alias_double.
5063         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
5064         (fabs): Define using libm_alias_double.
5065         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
5066         libm_alias_double.
5067         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
5068         <libm-alias-double.h>.
5069         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
5070         libm_alias_double.
5071         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
5072         <libm-alias-double.h>.
5073         (getpayload): Define using libm_alias_double.
5074         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
5075         <libm-alias-double.h>.
5076         (llrint): Define using libm_alias_double.
5077         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
5078         (lrint): Define using libm_alias_double.
5079         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
5080         <libm-alias-double.h>.
5081         (nextup): Define using libm_alias_double.
5082         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
5083         <libm-alias-double.h>.
5084         (roundeven): Define using libm_alias_double.
5085         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
5086         libm_alias_double.
5087         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
5088         <libm-alias-double.h>.
5089         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
5090         using libm_alias_double.
5091         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
5092         (cos): Define using libm_alias_double.
5093         (sin): Likewise.
5094         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
5095         <libm-alias-double.h>.
5096         (sincos): Define using libm_alias_double.
5097         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
5098         (tanh): Define using libm_alias_double.
5099         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
5100         <libm-alias-double.h>.
5101         (totalorder): Define using libm_alias_double.
5102         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
5103         <libm-alias-double.h>.
5104         (totalordermag): Define using libm_alias_double.
5105         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
5106         libm_alias_double.
5107         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
5108         libm_alias_double.
5109         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
5110         <libm-alias-double.h>.
5111         (getpayload): Define using libm_alias_double.
5112         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
5113         <libm-alias-double.h>.
5114         (roundeven): Define using libm_alias_double.
5115         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
5116         <libm-alias-double.h>.
5117         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
5118         <libm-alias-double.h>.
5119         (totalorder): Define using libm_alias_double.
5120         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
5121         <libm-alias-double.h>.
5122         (totalordermag): Define using libm_alias_double.
5123         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
5124         libc compat symbol here.
5125         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
5126         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
5127         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
5128         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
5129         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
5130         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
5131         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
5132         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
5133         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
5134         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
5136 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5138         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
5139         _dl_relocate_static_pie instead of _dl_start to compute load
5140         address in static PIE.  Return 0 if _DYNAMIC is undefined for
5141         static executable.
5143 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5145         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
5146         _DYNAMIC is undefined for static executable.
5148 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5150         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
5152 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
5154         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5156 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5158         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
5159         (__ieee754_lgamma_r): Use fabs rather than __fabs.
5160         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
5161         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
5162         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
5163         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
5164         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
5165         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
5166         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
5167         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5168         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5169         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
5170         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5171         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
5172         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5173         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5174         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
5176 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
5178         * math/bits/cmathcalls.h (cimag): Remove inline.
5179         (creal): Remove inline.
5180         (conj): Remove inline.
5182 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5184         * math/Makefile (type-float-routines): Add e_powf_log2_data.
5185         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
5186         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
5187         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
5188         (issignalingf_inline): Likewise.
5189         (POWF_LOG2_TABLE_BITS): Likewise.
5190         (POWF_LOG2_POLY_ORDER): Likewise.
5191         (POWF_SCALE_BITS): Likewise.
5192         (POWF_SCALE): Likewise.
5193         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
5194         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
5195         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
5197 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5199         * math/Makefile (type-float-routines): Add e_log2f_data.
5200         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
5201         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
5202         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
5203         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
5204         * sysdeps/i386/fpu/e_log2f_data.c: New file.
5205         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
5206         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
5208 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5210         * math/Makefile (type-float-routines): Add e_logf_data.
5211         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
5212         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
5213         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
5214         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
5215         * sysdeps/i386/fpu/e_logf_data.c: New file.
5216         * sysdeps/ia64/fpu/e_logf_data.c: New file.
5217         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
5219 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5221         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
5222         undefined _DYNAMIC in PIE libc.a.
5223         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
5224         Likewse.
5226 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5228         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
5229         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
5230         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
5231         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
5232         (__signbit): Remove.
5233         (__signbitl): Remove.
5234         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
5235         (__signbit): Remove.
5236         (__signbitl): Remove.
5237         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
5238         (__signbit): Remove.
5239         (__signbitl): Remove.
5240         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
5241         (__signbit): Remove.
5242         (__signbitl): Remove.
5243         * sysdeps/tile/bits/mathinline.h: Delete file.
5244         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
5245         (__signbit): Remove.
5246         (__signbitl): Remove.
5248 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5250         * math/math.h: Improve handling of C99 isgreater macros.
5251         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
5252         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
5253         * sysdeps/powerpc/bits/mathinline.h: Likewise.
5254         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5255         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5257 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5259         * sysdeps/aarch64/libm-test-ulps: Update.
5261 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
5263         [BZ #22225]
5264         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5265         math_opt_barrier on argument when doing arithmetic on it.
5266         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5267         Likewise.  Use math_force_eval not math_opt_barrier after
5268         arithmetic.
5269         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
5270         math_opt_barrier on argument when doing arithmetic on it.
5271         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5272         Likewise.
5274 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5276         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
5277         libc_hidden_def.
5278         (__freeifaddrs): Likewise.
5280 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5282         * include/dirent.h (__dirfd): New declaration.
5283         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
5284         alias.
5285         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
5286         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
5287         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
5288         * include/unistd.h (__revoke): New declaration.
5289         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
5290         alias.
5291         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5292         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5293         revoke.
5294         * include/dirent.h (__seekdir): New declaration.
5295         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5296         redefine as weak alias.
5297         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5298         of seekdir.
5299         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5300         and use libc_hidden_def on them.
5301         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5302         them.
5303         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5304         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5305         instead of getifaddrs and freeifaddrs.
5307 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5309         [BZ #18822]
5310         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5311         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5312         (__dso_handle): Remove declaration.
5313         * dlfcn/tstatexit.c (__dso_handle): Removed.
5314         (main): Don't check __dso_handle.
5315         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5316         (main): Don't check __dso_handle.
5317         * include/dso_handle.h: New file.
5318         * malloc/mtrace.c: Include <dso_handle.h>.
5319         (mtrace): Pass __dso_handle directly.
5320         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5321         (__dso_handle): Remove declaration.
5322         (__pthread_atfork): Pass __dso_handle directly.
5323         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5324         (__dso_handle): Removed.
5325         * posix/wordexp-test.c: Include <dso_handle.h>.
5326         (__dso_handle): Remove declaration.
5327         (__app_register_atfork): Pass __dso_handle directly.
5328         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5329         (__dso_handle): Remove declaration.
5330         (at_quick_exit): Pass __dso_handle directly.
5331         * stdlib/atexit.c: Include <dso_handle.h>.
5332         (__dso_handle): Remove declaration.
5333         (atexit): Pass __dso_handle directly.
5334         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5335         (__dso_handle): Removed.
5337 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5339         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5340         using VDSO.
5342 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5344         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5345         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5346         values to correct default value for given type.
5348 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5350         [BZ #22101]
5351         * elf/Makefile (tests): Add tst-debug1.
5352         ($(objpfx)tst-debug1): New.
5353         ($(objpfx)tst-debug1.out): Likewise.
5354         ($(objpfx)tst-debug1mod1.so): Likewise.
5355         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5356         with p_filesz == 0.
5357         * elf/tst-debug1.c: New file.
5359 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5361         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5362         Define using __ifunc.
5364 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5366         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5367         exp2f() values.
5369 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5371         [BZ #22156]
5372         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5374 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5376         * resolv/Makefile (tests-internal): Fix typo in comment.
5378 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5380         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5382 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5384         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5385         Use an union instead of a max_align_t array for __space,
5386         so that __space is the same size on all platforms.
5387         * malloc/scratch_buffer_grow_preserve.c
5388         (__libc_scratch_buffer_grow_preserve): Likewise.
5390         [BZ #22183]
5391         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5392         version to 2.
5393         * posix/Makefile (routines): Add glob-lstat-compat and
5394         glob64-lstat-compat.
5395         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5396         * posix/glob-lstat-compat.c: New file.
5397         * posix/glob64-lstat-compat.c: Likewise.
5398         * posix/tst-glob_lstat_compat.c: Likewise.
5399         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5400         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5401         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5402         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5403         Likewise.
5404         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5405         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5406         * posix/glob.c (glob_lstat): New function.
5407         (glob): Rename to __glob and add versioned symbol to 2.27.
5408         (glob_in_dir): Use glob_lstat.
5409         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5410         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5411         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5412         2.27.
5413         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5414         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5415         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5416         gl_lstat on glob call.
5417         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5418         and glob64 symbols.
5419         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5420         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5421         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5422         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5423         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5424         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5425         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5426         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5427         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5428         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5429         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5430         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5432         Likewise.
5433         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5435         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5436         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5437         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5438         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5439         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5440         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5441         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5442         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5443         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5444         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5446 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5448         * configure.ac (AS): Require binutils 2.25 or later.
5449         * configure: Regenerated.
5451 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5453         [BZ #22207]
5454         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5455         VM size.
5457 2017-09-25  DJ Delorie  <dj@redhat.com>
5459         [BZ #22161]
5460         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5461         resetting timeout.
5463 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5465         * sysdeps/ieee754/dbl-64/sincos32.h
5466         [SINCCOS32_H]: Remove define.
5467         [SINCOS32_H]: Define.
5469 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5471         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5472         (exp2f): Likewise.
5473         * math/w_exp2f.c: New file.
5474         * math/w_expf.c: New file.
5475         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5476         * math/w_expf_compat.c (__expf_compat): Likewise.
5477         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5478         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5479         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5480         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5481         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5482         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5483         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5484         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5485         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5486         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5487         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5488         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5489         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5490         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5492         Likewise.
5493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5494         Likewise.
5495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5496         Likewise.
5497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5498         Likewise.
5499         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5500         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5501         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5502         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5503         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5504         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5505         Likewise.
5506         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5507         Likewise.
5508         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5509         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5510         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5512 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5514         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5515         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5516         (roundtoint, converttoint): Likewise.
5517         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5518         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5519         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5520         * sysdeps/ieee754/flt-32/math_config.h: New file.
5521         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5522         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5523         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5524         * sysdeps/i386/fpu/math_errf.c: New file.
5525         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5526         * sysdeps/ia64/fpu/math_errf.c: New file.
5527         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5528         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5530 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5532         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5533         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5534         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5535         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5536         to make sure that these symbols are defined.
5537         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5538         of <limits.h>
5539         (__need_NULL): Do not define.
5540         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5541         alignment.
5542         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5543         CMGROUP_MAX, cmsgcred): Do not define.
5544         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5545         NULL.
5546         * bits/socket.h: Likewise.
5547         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5548         __gettimeofday instead of gettimeofday.
5549         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5550         instead of settimeofday.
5552 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5554         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5555         (asinhf): Define using libm_alias_float.
5556         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5557         (atanf): Define using libm_alias_float.
5558         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5559         (cbrtf): Define using libm_alias_float.
5560         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5561         (ceilf): Define using libm_alias_float.
5562         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5563         <libm-alias-float.h>.
5564         (copysignf): Define using libm_alias_float.
5565         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5566         (cosf): Define using libm_alias_float.
5567         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5568         (erff): Define using libm_alias_float.
5569         (erfcf): Likewise.
5570         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5571         (expm1f): Define using libm_alias_float.
5572         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5573         (fabsf): Define using libm_alias_float.
5574         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5575         (floorf): Define using libm_alias_float.
5576         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5577         (frexpf): Define using libm_alias_float.
5578         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5579         libm_alias_float.
5580         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5581         <libm-alias-float.h>.
5582         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5583         libm_alias_float.
5584         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5585         <libm-alias-float.h>.
5586         (getpayloadf): Define using libm_alias_float.
5587         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5588         <libm-alias-float.h>.
5589         (llrintf): Define using libm_alias_float.
5590         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5591         <libm-alias-float.h>.
5592         (llroundf): Define using libm_alias_float.
5593         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5594         (logbf): Define using libm_alias_float.
5595         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5596         (lrintf): Define using libm_alias_float.
5597         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5598         (lroundf): Define using libm_alias_float.
5599         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5600         (modff): Define using libm_alias_float.
5601         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5602         <libm-alias-float.h>.
5603         (nearbyintf): Define using libm_alias_float.
5604         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5605         <libm-alias-float.h>.
5606         (nextafterf): Define using libm_alias_float.
5607         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5608         <libm-alias-float.h>.
5609         (nextupf): Define using libm_alias_float.
5610         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5611         <libm-alias-float.h>.
5612         (remquof): Define using libm_alias_float.
5613         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5614         (rintf): Define using libm_alias_float.
5615         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5616         <libm-alias-float.h>.
5617         (roundevenf): Define using libm_alias_float.
5618         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5619         (roundf): Define using libm_alias_float.
5620         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5621         using libm_alias_float.
5622         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5623         <libm-alias-float.h>.
5624         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5625         Define using libm_alias_float.
5626         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5627         <libm-alias-float.h>.
5628         (sincosf): Define using libm_alias_float.
5629         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5630         (sinf): Define using libm_alias_float.
5631         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5632         (tanf): Define using libm_alias_float.
5633         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5634         (tanhf): Define using libm_alias_float.
5635         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5636         <libm-alias-float.h>.
5637         (totalorderf): Define using libm_alias_float.
5638         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5639         <libm-alias-float.h>.
5640         (totalordermagf): Define using libm_alias_float.
5641         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5642         (truncf): Define using libm_alias_float.
5643         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5644         libm_alias_float.
5645         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5646         libm_alias_float.
5648 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5650         [BZ #22146]
5651         math/math.h: Let fpclassify use the builtin in C++ mode, even
5652         when optimazing for size.
5654 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5656         * csu/Makefile (generated): Do not add version-info.h.
5657         (before-compile): Likewise.
5658         (all-Banner-files): Remove variable.
5659         ($(objpfx)version-info.h): Remove rule.
5660         * csu/version.c (banner): Do not include "version-info.h".
5661         * libidn/Banner: Remove.
5662         * manual/contrib.texi (Simon Josefsson): New entry.
5664 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5666         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5667         Remove conditionals on LDBL_MANT_DIG.
5668         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5669         (__ieee754_lgammal_r): Likewise.
5671 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5673         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5674         _Float128 and L().
5675         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5676         _Float128 and L(). Replace _Float128 with long double and L(x)
5677         with xL, throughout the file.
5678         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5679         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5680         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5681         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5683 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5685         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5686         sysdeps/ieee754/ldbl-128ibm.
5687         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5688         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5689         of including it.  Keep _Float128 and L() intact.  These will be
5690         reviewed by a separate patch.
5691         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5692         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5693         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5694         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5696 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5698         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5699         (__finitef128): Define to __redirect___finitef128.
5700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5701         (__isinff128): Define to __redirect___isinff128.
5702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5703         (__isnanf128): Define to __redirect___isnanf128.
5705 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5707         * sysdeps/powerpc/powerpc64le/Makefile
5708         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5709         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5711 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5712             Carlos O'Donell  <carlos@redhat.com>
5714         [BZ #22180]
5715         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5716         * stdlib/test-dlclose-exit-race.c: New file.
5717         * stdlib/test-dlclose-exit-race-helper.c: New file.
5718         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5720 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5722         * crypt/Banner: Remove file.
5723         * nptl/Banner: Likewise.
5724         * resolv/Banner: Likewise.
5725         * soft-fp/Banner: Likewise.
5726         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5727         ($(objpfx)version.d): Remove dependency on banner.h.
5728         ($(objpfx)version.os): Likewise.
5729         * nptl/version.c (banner): Do not include banner.h.
5730         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5731         Jelinek and BIND code.
5733 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5734             Carlos O'Donell  <carlos@redhat.com>
5736         * support/xdlfcn.h: New file.
5737         * support/xdlfcn.c: New file.
5738         * support/Makefile (libsupport-routines): Add xdlfcn.
5739         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5741 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5743         [BZ #20142]
5744         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5745         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5746         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5747         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5748         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5749         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5750         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5751         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5753 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5754             Ricky Zhou  <rickyz@google.com>
5755             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5757         [BZ #14333]
5758         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5759         Remove atomics.
5760         (__new_exitfn): Fail registration when we finished at_exit processing.
5761         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5762         * stdlib/on_exit.c (__on_exit): Likewise.
5763         * stdlib/exit.c (__exit_funcs_done): New variable.
5764         (__run_exit_handlers): Use __exit_funcs_lock.
5765         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5766         declarations.
5767         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5768         (test-cxa_atexit-race, test-on_exit-race): New tests.
5769         * stdlib/test-atexit-race-common.c: New file.
5770         * stdlib/test-atexit-race.c: New file.
5771         * stdlib/test-at_quick_exit-race.c: New file.
5772         * stdlib/test-cxa_atexit-race.c: New file.
5773         * stdlib/test-on_exit-race.c: New file.
5775 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5777         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5778         * benchtests/exp2f-inputs: Copy of expf-inputs.
5779         * benchtests/log2f-inputs: Copy of logf-inputs.
5781 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5783         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5784         Explicitly take address of first element of array arguments in
5785         call to INLINE_SYSCALL.
5787 2017-09-19  Andreas Schwab  <schwab@suse.de>
5789         [BZ #22134]
5790         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5791         execveat first.
5792         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5793         unimplemented.
5794         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5795         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5796         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5797         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5798         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5799         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5800         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5801         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5802         * posix/Makefile (tests): Add tst-fexecve.
5803         * posix/tst-fexecve.c: New file.
5805 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5807         * benchtests/Makefile: Add logf benchmark.
5808         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5810 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5812         * benchtests/Makefile: Add expf benchmark.
5813         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5815 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5817         * csu/Makefile: Add -funwind-tables to libc-start.c.
5818         * debug/Makefile: Add -funwind-tables to backtrace.c.
5819         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5820         * sysdeps/arm/Makefile: Likewise.
5821         * sysdeps/i386/Makefile: Likewise.
5822         * sysdeps/m68k/Makefile: Likewise.
5823         * sysdeps/mips/Makefile: Likewise.
5824         * sysdeps/nios2/Makefile: Likewise.
5825         * sysdeps/sh/Makefile: Likewise.
5826         * sysdeps/sparc/Makefile: Likewise.
5828 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5830         * benchtests/Makefile (bench-math): Add trunc and truncf.
5831         (CFLAGS-bench-trunc.c): New variable.
5832         (CFLAGS-bench-truncf.c): Likewise.
5833         * benchtests/trunc-inputs: New file.
5834         * benchtests/truncf-inputs: Likewise.
5836 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5838         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5840 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5842         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5843         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5844         redefine.
5845         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5846         (exp10l): Define as weak alias.
5847         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5848         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5849         and redefine.
5850         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5851         (remainderl): Define as weak alias.
5853         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5854         (fmal): Define using libm_alias_ldouble.
5855         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5856         (acoshl): Define using libm_alias_ldouble.
5857         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5858         (acosl): Define using libm_alias_ldouble.
5859         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5860         (asinl): Define using libm_alias_ldouble.
5861         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5862         (atan2l): Define using libm_alias_ldouble.
5863         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5864         (atanhl): Define using libm_alias_ldouble.
5865         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5866         (coshl): Define using libm_alias_ldouble.
5867         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5868         (exp10l): Define using libm_alias_ldouble.
5869         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5870         (exp2l): Define using libm_alias_ldouble.
5871         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5872         (expl): Define using libm_alias_ldouble.
5873         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5874         (fmodl): Define using libm_alias_ldouble.
5875         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5876         (hypotl): Define using libm_alias_ldouble.
5877         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5878         (j0l): Define using libm_alias_ldouble.
5879         (y0l): Likewise.
5880         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5881         (j1l): Define using libm_alias_ldouble.
5882         (y1l): Likewise.
5883         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5884         (jnl): Define using libm_alias_ldouble.
5885         (ynl): Likewise.
5886         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5887         (log10l): Define using libm_alias_ldouble.
5888         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5889         (log2l): Define using libm_alias_ldouble.
5890         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5891         (logl): Define using libm_alias_ldouble.
5892         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5893         (powl): Define using libm_alias_ldouble.
5894         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5895         (remainderl): Define using libm_alias_ldouble.
5896         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5897         (sinhl): Define using libm_alias_ldouble.
5898         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5899         (sqrtl): Define using libm_alias_ldouble.
5900         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5901         (tgammal): Define using libm_alias_ldouble.
5902         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5903         (exp10l): Do not use long_double_symbol here.
5904         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5905         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5906         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5907         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5908         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5909         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5910         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5911         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5912         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5913         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5914         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5915         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5916         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5917         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5918         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5919         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5920         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5921         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5922         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5923         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5924         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5925         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5927 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5929         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5930         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5932 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5934         * io/read.c (read): Add libc_hidden_weak.
5935         * sysdeps/mach/hurd/read.c (read): Likewise.
5936         * io/write.c (write): Likewise.
5937         * sysdeps/mach/hurd/write.c (write): Likewise.
5938         * io/pread64.c (__pread64): Likewise.
5939         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5940         * posix/pread64.c (__pread64): Add libc_hidden_def.
5942 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5944         * benchtests/scripts/compare_strings.py: New option -g.
5945         (draw_graph): Print a message that a graph is being generated.
5946         (process_results): Generate graph only if -g is passed.
5947         (main): Process option -g.
5949         * benchtests/scripts/compare_strings.py (process_results):
5950         Better spacing for output.
5952         * benchtests/scripts/compare_strings.py: Use argparse.
5953         * benchtests/README: Document existence of compare_strings.py.
5955 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5957         * math/s_fma.c: Include <libm-alias-double.h>.
5958         (fma): Define using libm_alias_double.
5959         * math/s_nextafter.c: Include <libm-alias-double.h>.
5960         (nextafter): Define using libm_alias_double.
5961         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5962         (acos): Define using libm_alias_double.
5963         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5964         (aocsh): Define using libm_alias_double.
5965         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5966         (asin): Define using libm_alias_double.
5967         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5968         (atan2): Define using libm_alias_double.
5969         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5970         (atanh): Define using libm_alias_double.
5971         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5972         (cosh): Define using libm_alias_double.
5973         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5974         (exp10): Define using libm_alias_double.
5975         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5976         (exp2): Define using libm_alias_double.
5977         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5978         (exp): Define using libm_alias_double.
5979         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5980         (fmod): Define using libm_alias_double.
5981         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5982         (hypot): Define using libm_alias_double.
5983         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5984         (j0): Define using libm_alias_double.
5985         (y0): Likewise.
5986         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5987         (j1): Define using libm_alias_double.
5988         (y1): Likewise.
5989         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5990         (jn): Define using libm_alias_double.
5991         (yn): Likewise.
5992         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5993         (log10): Define using libm_alias_double.
5994         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5995         (log2): Define using libm_alias_double.
5996         * math/w_log_compat.c: Include <libm-alias-double.h>.
5997         (log): Define using libm_alias_double.
5998         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5999         (pow): Define using libm_alias_double.
6000         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
6001         (remainder): Define using libm_alias_double.
6002         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
6003         (sinh): Define using libm_alias_double.
6004         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
6005         (sqrt): Define using libm_alias_double.
6006         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
6007         (tgamma): Define using libm_alias_double.
6008         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
6009         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
6010         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
6011         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
6012         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
6013         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
6014         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
6015         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
6016         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
6017         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
6018         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
6019         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
6020         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
6021         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
6022         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
6023         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
6024         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
6025         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
6026         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
6027         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
6028         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
6029         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
6030         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
6031         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
6032         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
6034         * math/e_acoshl.c: Remove.
6035         * math/e_acosl.c: Likewise.
6036         * math/e_asinl.c: Likewise.
6037         * math/e_atan2l.c: Likewise.
6038         * math/e_atanhl.c: Likewise.
6039         * math/e_coshl.c: Likewise.
6040         * math/e_expl.c: Likewise.
6041         * math/e_fmodl.c: Likewise.
6042         * math/e_gammal_r.c: Likewise.
6043         * math/e_hypotl.c: Likewise.
6044         * math/e_j0l.c: Likewise.
6045         * math/e_j1l.c: Likewise.
6046         * math/e_jnl.c: Likewise.
6047         * math/e_lgammal_r.c: Likewise.
6048         * math/e_log10l.c: Likewise.
6049         * math/e_log2l.c: Likewise.
6050         * math/e_logl.c: Likewise.
6051         * math/e_powl.c: Likewise.
6052         * math/e_rem_pio2l.c: Likewise.
6053         * math/e_sinhl.c: Likewise.
6054         * math/e_sqrtf128.c: Likewise.
6055         * math/e_sqrtl.c: Likewise.
6056         * math/k_cosl.c: Likewise.
6057         * math/k_sinl.c: Likewise.
6058         * math/k_tanl.c: Likewise.
6059         * math/s_asinhl.c: Likewise.
6060         * math/s_atanl.c: Likewise.
6061         * math/s_cbrtl.c: Likewise.
6062         * math/s_erfl.c: Likewise.
6063         * math/s_expm1l.c: Likewise.
6064         * math/s_log1pl.c: Likewise.
6065         * math/s_tanhl.c: Likewise.
6067 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6069         [BZ #21745]
6070         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
6071         [$(subdir) = math] (sysdep_calls): New variable.  Has the
6072         previous contents of sysdep_routines, but re-sorted..
6073         [$(subdir) = math] (sysdep_routines): Re-use the contents from
6074         sysdep_calls.
6075         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
6076         defined in sysdep_calls and replace by the respective m_* names.
6077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
6078         (compat_symbol): Undefine to avoid duplicated compat symbols in
6079         libc.
6081 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
6083         * math/s_fmaf.c: Include <libm-alias-float.h>.
6084         (fmaf): Define using libm_alias_float.
6085         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
6086         (acosf): Define using libm_alias_float.
6087         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
6088         (acoshf): Define using libm_alias_float.
6089         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
6090         (asinf): Define using libm_alias_float.
6091         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
6092         (atan2f): Define using libm_alias_float.
6093         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
6094         (atanhf): Define using libm_alias_float.
6095         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
6096         (coshf): Define using libm_alias_float.
6097         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
6098         (exp10f): Define using libm_alias_float.
6099         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
6100         (fmodf): Define using libm_alias_float.
6101         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
6102         (hypotf): Define using libm_alias_float.
6103         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
6104         (j0f): Define using libm_alias_float.
6105         (y0f): Likewise.
6106         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
6107         (j1f): Define using libm_alias_float.
6108         (y1f): Likewise.
6109         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
6110         (jnf): Define using libm_alias_float.
6111         (ynf): Likewise.
6112         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
6113         (log10f): Define using libm_alias_float.
6114         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
6115         (log2f): Define using libm_alias_float.
6116         * math/w_logf_compat.c: Include <libm-alias-float.h>.
6117         (logf): Define using libm_alias_float.
6118         * math/w_powf_compat.c: Include <libm-alias-float.h>.
6119         (powf): Define using libm_alias_float.
6120         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
6121         (remainderf): Define using libm_alias_float.
6122         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
6123         (sinhf): Define using libm_alias_float.
6124         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
6125         (sqrtf): Define using libm_alias_float.
6126         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
6127         (tgammaf): Define using libm_alias_float.
6129 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6131         * include/math.h (roundeven): Change hidden_proto call to
6132         __roundeven.
6133         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
6134         alias.
6135         [NO_LONG_DOUBLE] (__j0l): New strong alias.
6136         (y0): Rename to __y0 and define as weak alias.
6137         [NO_LONG_DOUBLE] (__y0l): New strong alias.
6138         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
6139         alias.
6140         (y0f): Rename to __y0f and define as weak alias.
6141         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
6142         alias.
6143         [NO_LONG_DOUBLE] (__j1l): New strong alias.
6144         (y1): Rename to __y1 and define as weak alias.
6145         [NO_LONG_DOUBLE] (__y1l): New strong alias.
6146         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
6147         alias.
6148         (y1f): Rename to __y1f and define as weak alias.
6149         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
6150         alias.
6151         [NO_LONG_DOUBLE] (__jnl): New strong alias.
6152         (yn): Rename to __yn and define as weak alias.
6153         [NO_LONG_DOUBLE] (__ynl): New strong alias.
6154         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
6155         alias.
6156         (ynf): Rename to __ynf and define as weak alias.
6157         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
6158         (fromfp): Define as weak alias.
6159         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
6160         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
6161         (fromfpx): Define as weak alias.
6162         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
6163         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
6164         __getpayload and define as weak alias.
6165         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6166         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
6167         __roundeven and define as weak alias.
6168         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6169         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
6170         __setpayload.
6171         (setpayload): Define as weak alias.
6172         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
6173         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
6174         __setpayloadsig.
6175         (setpayloadsig): Define as weak alias.
6176         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
6177         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
6178         __totalorder and define as weak alias.
6179         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6180         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
6181         to __totalordermag and define as weak alias.
6182         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6183         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
6184         (ufromfp): Define as weak alias.
6185         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
6186         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
6187         __ufromfpx.
6188         (ufromfpx): Define as weak alias.
6189         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
6190         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
6191         Rename to __getpayload and define as weak alias.
6192         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
6193         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
6194         Rename to __roundeven and define as weak alias.
6195         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
6196         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
6197         Rename to __totalorder and define as weak alias.
6198         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6199         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
6200         (totalordermag): Rename to __totalordermag and define as weak
6201         alias.
6202         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6203         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
6204         macro.
6205         (__roundevenl): Likewise.
6206         (__totalorderl): Likewise.
6207         (__totalordermagl): Likewise
6208         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
6209         __fromfpf128.
6210         (fromfpf128): Define as weak alias.
6211         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
6212         __fromfpxf128.
6213         (fromfpxf128): Define as weak alias.
6214         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
6215         __setpayloadf128.
6216         (setpayloadf128): Define as weak alias.
6217         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
6218         __setpayloadsigf128.
6219         (setpayloadsigf128): Define as weak alias.
6220         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
6221         __ufromfpf128.
6222         (ufromfpf128): Define as weak alias.
6223         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
6224         __ufromfpxf128.
6225         (ufromfpxf128): Define as weak alias.
6226         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
6227         (fromfpf): Define as weak alias.
6228         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
6229         __fromfpxf.
6230         (fromfpxf): Define as weak alias.
6231         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
6232         __getpayloadf and define as weak alias.
6233         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
6234         __roundevenf and define as weak alias.
6235         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
6236         __setpayloadf.
6237         (setpayloadf): Define as weak alias.
6238         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
6239         __setpayloadsigf.
6240         (setpayloadsigf): Define as weak alias.
6241         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
6242         __totalorderf and define as weak alias.
6243         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
6244         Rename to __totalordermagf and define as weak alias.
6245         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
6246         __ufromfpf.
6247         (ufromfpf): Define as weak alias.
6248         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
6249         __ufromfpxf.
6250         (ufromfpxf): Define as weak alias.
6251         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
6252         __fromfpl.
6253         (fromfpl): Define as weak alias.
6254         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
6255         __fromfpxl.
6256         (fromfpxl): Define as weak alias.
6257         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
6258         to __getpayloadl and define as weak alias.
6259         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
6260         __roundevenl and define as weak alias.
6261         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
6262         __setpayloadl.
6263         (setpayloadl): Define as weak alias.
6264         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
6265         __setpayloadsigl.
6266         (setpayloadsigl): Define as weak alias.
6267         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
6268         to __totalorderl and define as weak alias.
6269         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
6270         Rename to __totalordermagl and define as weak alias.
6271         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
6272         __ufromfpl.
6273         (ufromfpl): Define as weak alias.
6274         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
6275         __ufromfpxl.
6276         (ufromfpxl): Define as weak alias.
6277         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
6278         __fromfpl.
6279         (fromfpl): Define as weak alias.
6280         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
6281         __fromfpxl.
6282         (fromfpxl): Define as weak alias.
6283         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
6284         Rename to __getpayloadl and define as weak alias.
6285         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
6286         to __roundevenl and define as weak alias.  Call __roundeven
6287         instead of roundeven.
6288         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
6289         __setpayloadl.
6290         (setpayloadl): Define as weak alias.
6291         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6292         __setpayloadsigl.
6293         (setpayloadsigl): Define as weak alias.
6294         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6295         Rename to __totalorderl and define as weak alias.
6296         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6297         Rename to __totalordermagl and define as weak alias.
6298         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6299         __ufromfpl.
6300         (ufromfpl): Define as weak alias.
6301         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6302         __ufromfpxl.
6303         (ufromfpxl): Define as weak alias.
6304         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6305         __fromfpl.
6306         (fromfpl): Define as weak alias.
6307         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6308         __fromfpxl.
6309         (fromfpxl): Define as weak alias.
6310         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6311         __getpayloadl and define as weak alias.
6312         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6313         __roundevenl and define as weak alias.
6314         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6315         __setpayloadl.
6316         (setpayloadl): Define as weak alias.
6317         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6318         __setpayloadsigl.
6319         (setpayloadsigl): Define as weak alias.
6320         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6321         __totalorderl and define as weak alias.
6322         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6323         Rename to __totalordermagl and define as weak alias.
6324         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6325         __ufromfpl.
6326         (ufromfpl): Define as weak alias.
6327         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6328         __ufromfpxl.
6329         (ufromfpxl): Define as weak alias.
6331 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6333         * benchtests/bench-string.h (realloc_bufs): New function.
6334         (test_init): Call it.
6335         * benchtests/bench-memset-large.c (do_test): Likewise.
6336         * benchtests/bench-memset.c (do_test): Likewise.
6338         * benchtests/bench-memset-large.c: Print output in JSON
6339         format.
6340         * benchtests/bench-memset.c: Likewise.
6342 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6344         [BZ #21084]
6345         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6346         * iconvdata/Makefile: Add IBM858.
6347         * iconvdata/gconv-modules: Likewise.
6348         * iconvdata/tst-tables.sh: Likewise.
6349         * iconvdata/ibm858.c: New file.
6350         * localedata/charmaps/IBM858: Likewise.
6352 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6354         [BZ #22023]
6355         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6356         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6358 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6360         [BZ #22112]
6361         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6362         and add tel_int_fmt.
6364 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6366         * sysdeps/generic/libm-alias-float128.h: New file.
6367         * sysdeps/generic/math-type-macros-float128.h: Include
6368         <libm-alias-float128.h>.
6369         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6371 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6373         * sysdeps/generic/libm-alias-ldouble.h: New file.
6374         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6375         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6376         * sysdeps/generic/math-type-macros-ldouble.h: Include
6377         <libm-alias-ldouble.h>.
6378         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6379         libm_alias_ldouble.
6381 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6383         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6384         * math/w_exp_compat.c: ... here.
6385         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6386         * math/w_expf_compat.c: ... here.
6387         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6388         * math/w_expl_compat.c: ... here.
6389         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6390         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6391         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6392         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6394 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6396         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6397         redefine.
6398         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6399         macro.
6400         (ldexpl): Only define as compat symbol for libc, not libm.
6401         (scalbnl): Define as compat symbol for libc here.
6402         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6403         define for [IS_IN (libc)].
6404         (__ldexpl_2): Remove alias.
6405         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6406         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6407         name in long_double_symbol call.
6408         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6409         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6410         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6411         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6412         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6413         Remove macro.
6414         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6415         Define as compat symbol.
6417 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6419         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6420         * sysdeps/unix/sysv/linux/alpha/Makefile
6421         [$(subdir) = csu] (sysdep_routines): Remove rule.
6423 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6425         * sysdeps/generic/libm-alias-double.h: New file.
6426         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6427         * sysdeps/generic/math-type-macros-double.h: Include
6428         <libm-alias-double.h>.
6429         [declare_mgen_alias] (declare_mgen_alias): Define to use
6430         libm_alias_double.
6431         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6432         (M_LIBM_NEED_COMPAT): Remove macro.
6433         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6434         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6435         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6436         code.
6437         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6438         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6439         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6440         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6441         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6442         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6443         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6444         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6445         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6446         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6447         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6448         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6449         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6450         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6451         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6452         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6453         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6454         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6455         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6456         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6457         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6458         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6459         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6460         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6461         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6462         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6463         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6464         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6465         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6466         macro.
6467         (declare_mgen_alias): New macro.
6468         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6469         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6471         (M_LIBM_NEED_COMPAT): Remove macro.
6472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6473         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6474         <first-versions.h>.
6475         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6476         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6478 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6480         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6481         (declare_mgen_alias_2): Remove.
6482         * sysdeps/generic/math-type-macros-double.h
6483         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6484         Likewise.
6485         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6486         alias.
6487         (ldexp): Define with declare_mgen_alias.
6488         (scalbn): Likewise.
6490 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6492         * grp/initgroups.c: Include config.h.
6493         (DEFAULT_CONFIG): New macro.
6494         (internal_getgrouplist): Use DEFAULT_CONFIG.
6495         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6496         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6497         (DEFAULT_DEFCONFIG): New macro.
6498         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6499         * nss/grp-lookup.c: Include config.h
6500         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6501         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6502         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6503         * manual/nss.texi: Update default values section.
6505 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6507         [BZ #21967]
6508         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6509         New.
6510         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6511         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6512         Handle MathVec_Prefer_No_AVX512.
6513         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6514         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6515         is set.
6517 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6519         * posix/sched_primax.c (__sched_get_priority_max): Add
6520         libc_hidden_def.
6521         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6522         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6523         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6524         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6525         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6526         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6527         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6528         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6529         Add aliases.
6531 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6533         * sysdeps/generic/libm-alias-float.h: New file.
6534         * sysdeps/generic/math-type-macros-float.h: Include
6535         <libm-alias-float.h>.
6536         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6538 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6540         [BZ #22093]
6541         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6542         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6543         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6544         (HWCAP_IMPORTANT): Likewise.
6545         (HWCAP_X86_64): New enum.
6546         (HWCAP_X86_AVX512_1): Updated.
6547         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6548         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6549         (modules-names): Add x86_64/tst-x86_64mod-1.
6550         (LDFLAGS-tst-x86_64mod-1.so): New.
6551         ($(objpfx)tst-x86_64-1): Likewise.
6552         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6553         (tst-x86_64-1-clean): Likewise.
6554         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6555         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6557 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6559         * po/sv.po: Update translations.
6560         * po/fr.po: Likewise.
6562 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6564         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6565         seconds.
6566         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6567         seconds.
6568         * elf/rtld-Rules: Fix $(error) use.
6570 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6572         [BZ #14925]
6573         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6574         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6575         * localedata/locales/bn_BD: “Bengali” was still used in some
6576         comments. Change it to “Bangla”.
6578 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6580         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6582 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6584         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6585         thunderx2t99p1 to list of cpu names.
6586         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6587         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6589 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6591         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6592         Use strcmp instead of tunable_is_name.
6594 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6596         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6597         (F_GET_RW_HINT): New macro.
6598         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6599         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6600         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6601         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6602         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6603         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6604         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6605         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6606         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6608         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6609         (F_ADD_SEALS): New macro.
6610         [__USE_GNU] (F_GET_SEALS): Likewise.
6611         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6612         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6613         [__USE_GNU] (F_SEAL_GROW): Likewise.
6614         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6616 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6618         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6619         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6620         * posix/glob_internal.h (__glob_pattern_type):
6621         * posix/glob.c (glob):
6622         * posix/glob_pattern_p.c (__glob_pattern_p):
6623         Use them.
6625         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6626         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6627         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6628         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6629         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6631         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6632         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6633         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6634         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6635         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6636         * sysdeps/wordsize-64/glob.c: Likewise.
6637         * sysdeps/wordsize-64/glob64.c: Likewise.
6638         * sysdeps/wordsize-64/globfree.c: Likewise.
6639         * sysdeps/wordsize-64/globfree64.c: Likewise.
6640         * sysdeps/unix/sysv/linux/glob.c: New file.
6641         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6642         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6643         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6644         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6645         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6646         adds !GLOB_NO_OLD_VERSION as an extra condition.
6647         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6648         using relative path instead of absolute one.
6649         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6650         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6651         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6652         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6653         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6654         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6656         [BZ #1062]
6657         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6658         (glob): Use the same scratch buffer for both getlogin_r and
6659         getpwnam_r.  Don’t require preallocation of the login name.  This
6660         simplifies storage allocation, and corrects the handling of
6661         long login names.
6663         [BZ #1062]
6664         * posix/glob.c (glob): Port recent patches to platforms
6665         lacking getpwnam_r.
6666         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6667         returns an error number rather than setting errno.
6669         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6670         instead of GCC extension.
6671         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6672         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6673         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6675         [BZ #866]
6676         [BZ #1062]
6677         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6678         * posix/bug-glob1.c: Remove file.
6679         * posix/tst-glob_symlinks.c: New file.
6680         * posix/glob.c (__lstat64): New macro.
6681         (is_dir): New function.
6682         (glob, glob_in_dir): Match symlinks even if they are dangling.
6683         (link_stat, link_exists_p): Remove.  All uses removed.
6685         [BZ #1062]
6686         [BZ #19971]
6687         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6688         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6689         All uses removed.
6691         [BZ #1062]
6692         CVE-2017-15671
6693         * posix/Makefile (routines): Add globfree, globfree64, and
6694         glob_pattern_p.
6695         * posix/flexmember.h: New file.
6696         * posix/glob_internal.h: Likewise.
6697         * posix/glob_pattern_p.c: Likewise.
6698         * posix/globfree.c: Likewise.
6699         * posix/globfree64.c: Likewise.
6700         * sysdeps/gnu/globfree64.c: Likewise.
6701         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6702         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6703         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6704         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6705         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6706         * sysdeps/wordsize-64/globfree.c: Likewise.
6707         * sysdeps/wordsize-64/globfree64.c: Likewise.
6708         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6709         [NDEBUG): Remove comments.
6710         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6711         (dirent_type): New type.  Use uint_fast8_t not
6712         uint8_t, as C99 does not require uint8_t.
6713         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6714         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6715         unless it is needed; this saves a byte on platforms lacking d_ino.
6716         (readdir_result_type, readdir_result_skip_entry):
6717         New functions, replacing ...
6718         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6719          these functions, which were removed.  This makes the callers
6720         easier to read.  All callers changed.
6721         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6722         (size_add_wrapv, glob_use_alloca): New static functions.
6723         (glob, glob_in_dir): Check for size_t overflow in several places,
6724         and fix some size_t checks that were not quite right.
6725         Remove old code using SHELL since Bash no longer
6726         uses this.
6727         (glob, prefix_array): Separate MS code better.
6728         (glob_in_dir): Remove old Amiga and VMS code.
6729         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6730         separate files.
6731         (glob_in_dir): Do not rely on undefined behavior in accessing
6732         struct members beyond their bounds.  Use a flexible array member
6733         instead
6734         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6735         0/1.  Caller changed.
6736         (glob): Fix memory leaks.
6737         * posix/glob64 (globfree64): Move to separate file.
6738         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6739         (globfree64): Remove hidden alias.
6740         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6741         oldglob.
6742         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6743         separate file.
6744         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6745         define.
6746         Move compat code to separate file.
6747         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6748         separate file.
6750 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6752         * resolv/tst-resolv-qtypes.c (domain): Changed to
6753         "const char domain[] =".
6755 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6757         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6758         version to 3.1.6.
6760         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6761         (TCP_MD5SIG_EXT): Likewise.
6762         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6763         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6764         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6766         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6768 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6770         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6772 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6774         [BZ #22100]
6775         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6777 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6779         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6780         before assuming that the file is empty.  Avoid testing buffer content
6781         when nread == 0.
6783 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6785         [BZ #18858]
6786         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6787         Remove define.
6788         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6789         Likewise.
6790         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6791         Likewise.
6792         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6793         Likewise.
6794         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6795         Likewise.
6796         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6797         Likewise.
6798         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6799         Likewise.
6801 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6803         * malloc/dynarray_emplace_enlarge.c
6804         (__libc_dynarray_emplace_enlarge): Add missing else.
6806 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6808         [BZ #22096]
6809         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6810         case of failure to obtain the global conf object.
6812 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6814         [BZ #22095]
6815         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6816         dynarray allocation failure.
6818 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6820         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6821         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6822         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6823         New functions.
6824         (response): Call them.  Add 'p', '6' flag processing.
6825         (test_reverse): New function.
6826         (test_get2_any): Call it.
6827         (test_no_inet6): Add 'p' test.
6828         (test_inet6): Likewise.
6830 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6832         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6833         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6834         the QNAME.
6835         (test_gai): Adjust query names.  Add additional tests.
6836         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6837         test_get2.  Adjust query names.  Add additional tests.
6838         (test_no_inet6): New function, extracted from threadfunc.
6839         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6840         Add additional tests.
6842 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6844         [BZ #22070]
6845         * localedata/unicode-gen/utf8_gen.py: Set the width for
6846         characters with Prepended_Concatenation_Mark property to 1
6847         * localedata/charmaps/UTF-8: Updated using the improved script.
6849 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6851         [BZ #21750]
6852         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6853         use the range notation for all ranges of neighbouring characters
6854         with the same width.
6856 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6858         * sysdeps/generic/math-type-macros-double.h: Include
6859         <math-svid-compat.h>.
6860         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6861         * sysdeps/generic/math-type-macros-float.h: Include
6862         <math-svid-compat.h>.
6863         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6864         * sysdeps/generic/math-type-macros-ldouble.h: Include
6865         <math-svid-compat.h>.
6866         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6867         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6868         condition.
6869         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6870         * math/w_acosf_compat.c: Likewise.
6871         * math/w_acosh_compat.c: Likewise.
6872         * math/w_acoshf_compat.c: Likewise.
6873         * math/w_acoshl_compat.c: Likewise.
6874         * math/w_acosl_compat.c: Likewise.
6875         * math/w_asin_compat.c: Likewise.
6876         * math/w_asinf_compat.c: Likewise.
6877         * math/w_asinl_compat.c: Likewise.
6878         * math/w_atan2_compat.c: Likewise.
6879         * math/w_atan2f_compat.c: Likewise.
6880         * math/w_atan2l_compat.c: Likewise.
6881         * math/w_atanh_compat.c: Likewise.
6882         * math/w_atanhf_compat.c: Likewise.
6883         * math/w_atanhl_compat.c: Likewise.
6884         * math/w_cosh_compat.c: Likewise.
6885         * math/w_coshf_compat.c: Likewise.
6886         * math/w_coshl_compat.c: Likewise.
6887         * math/w_exp10_compat.c: Likewise.
6888         * math/w_exp10f_compat.c: Likewise.
6889         * math/w_exp10l_compat.c: Likewise.
6890         * math/w_exp2_compat.c: Likewise.
6891         * math/w_exp2f_compat.c: Likewise.
6892         * math/w_exp2l_compat.c: Likewise.
6893         * math/w_fmod_compat.c: Likewise.
6894         * math/w_fmodf_compat.c: Likewise.
6895         * math/w_fmodl_compat.c: Likewise.
6896         * math/w_hypot_compat.c: Likewise.
6897         * math/w_hypotf_compat.c: Likewise.
6898         * math/w_hypotl_compat.c: Likewise.
6899         * math/w_j0_compat.c: Likewise.
6900         * math/w_j0f_compat.c: Likewise.
6901         * math/w_j0l_compat.c: Likewise.
6902         * math/w_j1_compat.c: Likewise.
6903         * math/w_j1f_compat.c: Likewise.
6904         * math/w_j1l_compat.c: Likewise.
6905         * math/w_jn_compat.c: Likewise.
6906         * math/w_jnf_compat.c: Likewise.
6907         * math/w_jnl_compat.c: Likewise.
6908         * math/w_lgamma_r_compat.c: Likewise.
6909         * math/w_lgammaf_r_compat.c: Likewise.
6910         * math/w_lgammal_r_compat.c: Likewise.
6911         * math/w_log10_compat.c: Likewise.
6912         * math/w_log10f_compat.c: Likewise.
6913         * math/w_log10l_compat.c: Likewise.
6914         * math/w_log2_compat.c: Likewise.
6915         * math/w_log2f_compat.c: Likewise.
6916         * math/w_log2l_compat.c: Likewise.
6917         * math/w_log_compat.c: Likewise.
6918         * math/w_logf_compat.c: Likewise.
6919         * math/w_logl_compat.c: Likewise.
6920         * math/w_pow_compat.c: Likewise.
6921         * math/w_powf_compat.c: Likewise.
6922         * math/w_powl_compat.c: Likewise.
6923         * math/w_remainder_compat.c: Likewise.
6924         * math/w_remainderf_compat.c: Likewise.
6925         * math/w_remainderl_compat.c: Likewise.
6926         * math/w_sinh_compat.c: Likewise.
6927         * math/w_sinhf_compat.c: Likewise.
6928         * math/w_sinhl_compat.c: Likewise.
6929         * math/w_sqrt_compat.c: Likewise.
6930         * math/w_sqrtf_compat.c: Likewise.
6931         * math/w_sqrtl_compat.c: Likewise.
6932         * math/w_tgamma_compat.c: Likewise.
6933         * math/w_tgammaf_compat.c: Likewise.
6934         * math/w_tgammal_compat.c: Likewise.
6935         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6936         [LIBM_SVID_COMPAT].
6937         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6938         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6939         [LIBM_SVID_COMPAT].
6940         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6941         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6942         [LIBM_SVID_COMPAT].
6943         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6944         * sysdeps/i386/fpu/w_sqrt.c: New file.
6945         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6946         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6947         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6948         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6949         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6950         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6951         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6952         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6953         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6954         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6955         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6956         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6957         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6958         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6959         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6960         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6961         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6962         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6963         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6964         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6965         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6966         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6967         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6968         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6969         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6970         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6971         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6972         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6973         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6974         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6975         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6976         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6977         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6978         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6979         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6980         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6981         * sysdeps/ia64/fpu/w_log.c: Likewise.
6982         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6983         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6984         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6985         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6986         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6987         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6988         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6989         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6990         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6991         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6992         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6993         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6994         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6995         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6996         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6997         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6998         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6999         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
7000         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
7001         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
7002         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
7003         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
7004         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
7005         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
7006         [LIBM_SVID_COMPAT].
7007         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7008         * sysdeps/ieee754/k_standard.c: Likewise.
7009         * sysdeps/ieee754/k_standardf.c: Likewise.
7010         * sysdeps/ieee754/k_standardl.c: Likewise.
7011         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7012         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7013         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7014         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
7015         long_double_symbol call on [LIBM_SVID_COMPAT].
7016         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
7017         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
7018         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
7019         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
7020         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
7021         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
7022         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
7023         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
7024         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
7025         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
7026         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
7027         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7028         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
7029         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
7030         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
7031         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
7032         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
7033         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
7034         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
7035         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
7036         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
7037         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
7039 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
7041         * include/shlib-compat.h (TEST_COMPAT): New Macro.
7042         * malloc/tst-mallocstate.c: Convert from test-skeleton
7043         to test-driver.  Ifdef code using TEST_COMPAT macro.
7044         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
7045         * math/test-matherr.c: Likewise.
7047 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
7049         [BZ #22086]
7050         * debug/pcprofiledump.c (main): Use byte-swapped mask when
7051         comparing word with byte-swapped constant.
7053 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
7055         [BZ #20498]
7056         * locale/iso-639.def: add Miskito.
7057         * localedata/SUPPORTED: Add miq_NI/UTF-8.
7058         * localedata/locales/miq_NI: New file.
7060 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
7062         [BZ #18822]
7063         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
7064         (__mkdir): Likewise.
7065         * io/chmod.c (__chmod): Add libc_hidden_def.
7066         * io/mkdir.c (__mkdir): Likewise.
7067         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
7068         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
7069         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
7070         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
7072 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7074         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7075         version to 4.13.
7077         [BZ #22082]
7078         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
7079         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
7081 2017-09-04  Florian Weimer  <fweimer@redhat.com>
7083         * math/math.h: Issue warning if log is defined.
7085 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
7087         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7088         kernel version to 4.13.
7090 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7092         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
7093         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
7094         parameter.
7095         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
7096         just <bits/types.h>.
7097         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
7098         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
7099         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
7100         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
7101         * misc/preadv2.c: Include <errno.h>.
7102         * misc/preadv64v2.c: Include <errno.h>.
7103         * misc/pwritev2.c: Include <errno.h>.
7104         * misc/pwritev64v2.c: Include <errno.h>.
7105         * sysdeps/posix/preadv2.c: Include <errno.h>.
7106         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
7107         Fix <unistd.h> inclusion.
7108         * sysdeps/posix/pwritev2.c: Include <errno.h>.
7109         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
7110         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
7111         __strtoul_internal): New functions.
7112         * sysdeps/posix/pause.c: Include <sigsetops.h>.
7113         * sysdeps/posix/system.c: Include <sigsetops.h>.
7114         * sysdeps/mach/hurd/i386/Makefile
7115         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
7116         [$(subdir) = csu] (sysdep-only-routines): Likewise.
7117         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
7118         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
7119         __feraiseexcept_renamed to feraiseexcept instead of
7120         __GI_feraiseexcept.
7121         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
7122         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
7123         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
7124         RWF_NOWAIT): Define to 0 if undefined already.
7125         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
7126         boils down to 0.
7127         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
7128         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
7130 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7132         * manual/math.texi (pow10): Do not document.
7133         (pow10f): Likewise.
7134         (pow10l): Likewise.
7135         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
7136         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
7137         * math/libm-test-exp10.inc (pow10_test): Remove.
7138         (do_test): Do not call pow10.
7139         * math/w_exp10_compat.c (pow10): Make into compat symbol.
7140         [NO_LONG_DOUBLE] (pow10l): Likewise.
7141         * math/w_exp10f_compat.c (pow10f): Likewise.
7142         * math/w_exp10l_compat.c (pow10l): Likewise.
7143         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
7144         (pow10): Make into compat symbol.
7145         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
7146         (pow10f): Make into compat symbol.
7147         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
7148         (pow10l): Make into compat symbol.
7149         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
7150         pow10.
7151         (CFLAGS-nldbl-pow10.c): Remove variable..
7152         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
7153         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
7154         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
7155         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
7156         Undefine and redefine.
7157         (pow10l): Make into compat symbol.
7158         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
7159         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
7160         * sysdeps/arm/libm-test-ulps: Likewise.
7161         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
7162         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7163         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7164         * sysdeps/microblaze/libm-test-ulps: Likewise.
7165         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
7166         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7167         * sysdeps/nios2/libm-test-ulps: Likewise.
7168         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7169         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
7170         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7171         * sysdeps/sh/libm-test-ulps: Likewise.
7172         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7173         * sysdeps/tile/libm-test-ulps: Likewise.
7174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7176 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7178         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
7180 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7182         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
7183         "../ChangeLog.old/ChangeLog.8".
7184         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
7185         "../ChangeLog.old/ChangeLog.14".
7187 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7189         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
7190         Threads Library.
7192 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
7194         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
7196 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7198         * csu/version.c (banner): Remove "by Roland McGrath et al.".
7199         * nptl/Banner: Remove "by Ulrich Drepper et al.".
7201 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7203         * stdlib/tst-atexit-common.c (do_test): Test support for at least
7204         32 atexit handlers.
7206 2017-09-01  Zack Weinberg  <zackw@panix.com>
7208         * math/math.h (HUGE_VAL): Improve commentary.
7210 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7211             Andreas Schwab  <schwab@suse.de>
7213         [BZ #21530]
7214         * include/stdio.h (__gen_tempfd): New function.
7215         * stdio-common/Makefile (routines): Add gentempfd.
7216         * stdio-common/gentempfd.c: New file.
7217         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
7218         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
7219         unnamed file first.
7221 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7223         [BZ #21915]
7224         [BZ #21922]
7225         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
7226         result to determine success or failure, not the errno value.
7227         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
7228         (tst-nss-files-hosts-erange): Link with -ldl.
7229         * nss/tst-nss-files-hosts-erange.c: New file.
7230         * nss/tst-resolv-basic.c (response): Handle nodata.example.
7231         (do_test): Add NO_DATA tests.
7232         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
7233         (do_test): Call it.
7235 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7237         [BZ #21922]
7238         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
7239         coming from gethostbyname2_r.
7241 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7243         * support/namespace.h (struct support_chroot_configuration): Add
7244         hosts, host_conf.
7245         (struct support_chroot): Add path_hosts, path_host_conf.
7246         * support/support_chroot.c (write_file): New function.
7247         (support_chroot_create): Call it to process /etc/resolv.conf,
7248         /etc/hosts, /etc/host.conf.
7249         (support_chroot_free): Update.
7251 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7253         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
7254         status indicates it is set.
7256 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
7259         function lookup failures more reliable.
7261 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7263         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
7264         (getcanonname): Likewise.
7265         (gaih_inet): Likewise.
7267 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7269         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
7270         (getcanonname): Likewise.
7271         (gaih_inet): Likewise.
7273 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7274             Richard Henderson <rth@twiddle.net>
7276         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
7277         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
7278         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
7279         (IREG_SIZE, OREG_SIZE): New macros.
7280         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
7281         (IREG_SIZE, OREG_SIZE): New macros.
7282         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
7283         (IREG_SIZE): New macro.
7284         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
7285         (IREG_SIZE): New macro.
7286         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
7287         New includes.
7288         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
7289         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7290         (__CONCATX): Handle exceptions correctly on large values that may
7291         set FE_INVALID.
7292         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7293         Initialize if not already set.
7294         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7296 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7298         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7299         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7300         Likewise.
7301         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7302         Likewise.
7303         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7304         Likewise.
7305         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7306         Likewise.
7307         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7308         Likewise.
7309         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7310         Likewise.
7311         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7312         Likewise.
7313         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7314         (NO_CANCELLATION): Likewise.
7315         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7316         Likewise.
7317         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7318         Likewise.
7319         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7320         Likewise.
7321         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7322         (NO_CANCELLATION): Likewise.
7323         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7324         (NO_CANCELLATION): Likewise.
7325         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7326         Likewise
7327         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7328         Likewise.
7329         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7330         Likewise.
7331         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7332         Likewise.
7333         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7334         hidden prototype.
7335         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7336         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7338 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7340         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7341         in resolver call.
7343 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7345         * include/libc-symbols.h (internal_function): Remove.
7347 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7349         * stdlib/fmtmsg.c (internal_addseverity): Remove
7350         internal_function.
7352 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7354         * stdio-common/printf_fp.c (group_number): Remove
7355         internal_function.
7356         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7358 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7360         * posix/fnmatch.c (internal_function): Remove definition.
7361         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7362         * posix/regcomp.c (peek_token, init_word_char)
7363         (duplicate_node_closure, fetch_token, peek_token)
7364         (peek_token_bracket, build_range_exp, build_collating_symbol):
7365         Likewise.
7366         * posix/regex_internal.c (re_string_construct_common)
7367         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7368         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7369         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7370         (re_string_translate_buffer, re_string_reconstruct)
7371         (re_string_peek_byte_case, re_string_fetch_byte_case)
7372         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7373         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7374         (re_node_set_add_intersect, re_node_set_init_union)
7375         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7376         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7377         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7378         (re_acquire_state_context): Likewise.
7379         * posix/regex_internal.h (internal_function): Remove definition.
7380         (re_string_realloc_buffers, build_wcs_buffer)
7381         (build_wcs_upper_buffer, build_upper_buffer)
7382         (re_string_translate_buffer, re_string_context_at)
7383         (re_string_char_size_at, re_string_wchar_at)
7384         (re_string_elem_size_at): Likewise.
7385         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7386         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7387         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7388         (re_search_internal, re_search_2_stub, re_search_stub)
7389         (re_copy_regs, prune_impossible_nodes, check_matching)
7390         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7391         (free_fail_stack_return, sift_states_iter_mb)
7392         (sift_states_backward, build_sifted_states)
7393         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7394         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7395         (check_subexp_limits, sift_states_bkref, merge_state_array)
7396         (find_recover_state, transit_state, merge_state_with_log)
7397         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7398         (transit_state_mb, transit_state_bkref, get_subexp)
7399         (get_subexp_sub, find_subexp_node, check_arrival)
7400         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7401         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7402         (check_node_accept_bytes, find_collation_sequence_value)
7403         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7404         (acquire_init_state_context, check_halt_node_context)
7405         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7406         (sub_epsilon_src_nodes): Likewise.
7407         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7408         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7409         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7410         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7411         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7412         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7413         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7414         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7415         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7416         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7417         (PREADV): Likewise.
7418         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7419         (PREADV): Likewise.
7420         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7421         (PWRITEV): Likewise.
7422         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7423         (PWRITEV): Likewise.
7424         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7425         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7427 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7429         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7430         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7431         Remove internal_function.
7432         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7433         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7434         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7435         (__deallocate_stack, __libc_pthread_init)
7436         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7437         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7438         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7439         Likewise.
7440         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7441         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7442         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7443         Likewise.
7444         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7445         (__pthread_mutex_unlock_usercnt): Likewise.
7447 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7449         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7450         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7451         (fts_safe_changedir): Remove internal_function.
7452         * io/ftw.c (internal_function): Remove definition.
7453         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7455 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7457         * inet/deadline.c (__deadline_current_time)
7458         (__deadline_from_timeval, __deadline_to_ms): Remove
7459         internal_function.
7460         * inet/getnameinfo.c (nrl_domainname): Likewise.
7461         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7462         * inet/inet6_option.c (add_pad): Likewise.
7463         * inet/net-internal.h (__deadline_current_time)
7464         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7465         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7466         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7467         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7469 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7471         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7472         include <bits/nan.h>.
7473         * math/Makefile (headers): Remove bits/nan.h.
7474         * bits/nan.h: Remove.
7475         * sysdeps/ieee754/bits/nan.h: Likewise.
7476         * sysdeps/mips/bits/nan.h: Likewise.
7478         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7479         not include <bits/inf.h>.
7480         * math/Makefile (headers): Remove bits/inf.h.
7481         * bits/inf.h: Remove.
7482         * sysdeps/ieee754/bits/inf.h: Likewise.
7484         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7485         bits/huge_vall.h or bits/huge_val_flt128.h.
7486         (HUGE_VAL): Define directly here.
7487         [__USE_ISOC99] (HUGE_VALF): Likewise.
7488         [__USE_ISOC99] (HUGE_VALL): Likewise.
7489         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7490         (HUGE_VAL_F128): Likewise.
7491         * math/Makefile (headers): Remove bits/huge_val.h,
7492         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7493         * bits/huge_val.h: Remove.
7494         * bits/huge_val_flt128.h: Likewise.
7495         * bits/huge_valf.h: Likewise.
7496         * bits/huge_vall.h: Likewise.
7497         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7498         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7499         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7500         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7501         * sysdeps/sh/bits/huge_val.h: Likewise.
7502         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7503         * sysdeps/x86/bits/huge_vall.h: Likewise.
7505 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7507         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7508         internal_function.
7509         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7510         Likewise.
7511         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7512         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7513         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7514         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7515         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7516         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7517         * elf/dl-libc.c (dlerror_run): Likewise.
7518         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7519         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7520         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7521         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7522         Likewise.
7523         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7524         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7525         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7526         * elf/dl-profile.c (_dl_start_profile): Likewise.
7527         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7528         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7529         Likewise.
7530         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7531         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7532         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7533         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7534         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7535         (_dl_allocate_tls_storage): Likewise.
7536         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7537         (_dl_check_all_versions): Likewise.
7538         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7539         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7540         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7541         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7542         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7543         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7544         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7545         internal_function from __dl_start.
7546         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7547         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7548         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7549         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7550         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7551         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7552         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7553         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7554         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7555         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7556         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7557         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7558         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7559         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7560         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7561         Likewise.
7562         (struct rtld_global_ro): Remove internal_function from the
7563         _dl_lookup_symbol_x member.
7564         (_dl_symbol_value): Remove.  No longer defined anywhere.
7565         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7566         internal_function.
7567         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7568         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7569         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7570         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7571         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7572         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7573         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7574         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7575         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7576         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7577         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7578         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7580 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7582         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7583         Remove internal_function.
7584         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7585         Likewise.
7586         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7587         Likewise.
7589 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7591         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7592         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7593         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7595 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7597         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7598         (__gai_enqueue_request): Remove internal_function.
7599         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7600         (__gai_remove_request, __gai_notify, __gai_notify_only)
7601         (__gai_sigqueue): Likewise.
7602         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7603         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7604         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7605         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7606         Likewise.
7608 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7610         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7611         * include/dirent.h (__opendirat, __getdents, __getdents64)
7612         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7613         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7614         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7615         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7616         Likewise.
7617         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7619 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7621         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7622         internal_function.
7623         (GETCWD_RETURN_TYPE): Likewise.
7625 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7627         * include/time.h (__tz_compute, __strptime_internal): Remove
7628         internal_function.
7629         * time/strptime_l.c (__strptime_internal): Likewise.
7630         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7632 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7634         * iconv/gconv.c (__gconv): Remove internal_function.
7635         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7636         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7637         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7638         (__gconv_release_cache): Likewise.
7639         * iconv/gconv_close.c (__gconv_close): Likewise.
7640         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7641         (read_conf_file, __gconv_get_path): Likewise.
7642         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7643         (__gconv_release_step, gen_steps, increment_counter)
7644         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7645         (__gconv_close_transform, free_modules_db): Likewise.
7646         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7647         Likewise.
7648         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7649         (__gconv_find_transform, __gconv_lookup_cache)
7650         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7651         (__gconv_close_transform, __gconv_release_cache)
7652         (__gconv_loaded_object, __gconv_release_shlib)
7653         (__gconv_compare_alias): Likewise.
7654         * iconv/gconv_open.c (__gconv_open): Likewise.
7655         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7656         * iconv/iconvconfig.c (add_module): Likewise.
7657         * intl/dcigettext.c (plural_lookup, guess_category_value)
7658         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7659         * intl/eval-plural.h (plural_eval): Likewise.
7660         * intl/finddomain.c (_nl_find_domain): Likewise.
7661         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7662         (_nl_load_domain, _nl_find_msg): Likewise.
7663         (internal_function): Remove definition.
7664         * intl/loadinfo.h (internal_function): Likewise.
7665         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7666         internal_function.
7667         * intl/localealias.c (internal_function): Remove definition.
7668         (read_alias_file): Remove internal_function.
7669         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7670         * intl/plural-exp.h (internal_function): Remove definition.
7671         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7672         internal_function.
7673         * intl/plural.c: Regenerate.
7674         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7675         * locale/coll-lookup.c (__collidx_table_lookup)
7676         (__collseq_table_lookup): Likewise.
7677         * locale/coll-lookup.h (__collidx_table_lookup)
7678         (__collseq_table_lookup): Likewise.
7679         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7680         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7681         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7682         (_nl_unload_locale): Likewise.
7683         * locale/localeinfo.h (struct __locale_data): Remove
7684         internal_function from cleanup member.
7685         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7686         (_nl_remove_locale, _nl_load_locale_from_archive)
7687         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7688         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7689         (_nl_cleanup_time): Remove internal_function.
7690         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7691         (_nl_parse_alt_digit): Likewise.
7692         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7693         (_nl_select_era_entry): Likewise.
7694         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7695         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7696         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7697         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7698         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7700 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7702         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7703         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7704         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7705         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7706         Likewise.
7707         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7708         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7709         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7710         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7711         Likewise.
7712         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7714 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7716         * misc/getttyent.c (skip, value): Remove internal_function.
7717         * misc/syslog.c (openlog_internal): Likewise.
7718         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7720 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7722         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7723         (__nss_rewrite_field): Remove internal_function.
7724         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7725         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7726         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7727         * nss/nsswitch.c (nss_parse_file, nss_getline)
7728         (nss_parse_service_list, nss_new_service): Likewise.
7729         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7730         * nss/valid_field.c (__nss_valid_field): Likewise.
7731         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7733 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7735         * malloc/arena.c (__malloc_fork_lock_parent)
7736         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7737         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7738         internal_function from defintions.
7739         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7740         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7741         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7742         internal_function from declarations.
7743         * malloc/malloc.c (internal_function): Do not define.
7744         (mem2mem_check): Remove internal_function from declaration.
7745         (munmap_chunk, mremap_chunk): Remove internal_function.
7746         * malloc/mtrace.c (tr_where): Likewise.
7748 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7750         * include/rpc/pmap_clnt.h (__get_socket): Remove
7751         internal_function.
7752         * sunrpc/auth_des.c (synchronize): Likewise.
7753         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7754         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7755         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7756         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7757         (key_call): Likewise.
7758         * sunrpc/pm_getport.c (__get_socket): Likewise.
7759         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7760         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7761         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7762         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7763         (invalidate): Likewise.
7764         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7765         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7766         (set_input_fragment, get_input_bytes): Likewise.
7768 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7770         * malloc/malloc.c (_int_free): Remove locked variable and related
7771         asserts.
7773 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7775         [BZ #22051]
7776         * Makerules (build-module-helper-objlist): Filter out
7777         $(elf-objpfx)sofini.os.
7778         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7779         needed.
7781 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7783         * libio/fcloseall.c: Assume weak_alias is defined.
7784         * libio/feof.c: Likewise.
7785         * libio/fileno.c: Likewise.
7786         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7787         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7788         definitions.
7789         (_IO_file_open): Call __open directly.
7790         (_IO_new_file_sync): Assume ESPIPE is defined.
7791         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7792         (_IO_new_file_write): Call __write directly.
7793         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7794         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7795         * libio/genops.c: Assume _LIBC is defined.
7796         (save_for_backup): Remove internal_function.
7797         * libio/getc.c: Assume weak_alias is defined.
7798         * libio/getwc.c: Likewise.
7799         * libio/iofclose.c: Assume _LIBC is defined.
7800         * libio/iofdopen.c: Likewise.
7801         (_IO_fcntl): Remove macro definition.
7802         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7803         Call __fcntl directly.
7804         * libio/iofflush.c: Assume weak_alias is defined.
7805         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7806         defined.
7807         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7808         * libio/iofgets.c: Likewise.
7809         * libio/iofopen.c: Assume _LIBC is defined.
7810         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7811         * libio/iofputs.c: Assume weak_alias is defined.
7812         * libio/iofread.c: Likewise.
7813         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7814         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7815         * libio/ioftell.c: Assume weak_alias is defined.
7816         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7817         * libio/iofwide.c: Assume _LIBC is defined.
7818         (_IO_fwide): Drop SHARED conditional because it is implied by
7819         SHLIB_COMPAT.
7820         * libio/iofwrite.c: Assume weak_alias is defined.
7821         * libio/iogetdelim.c: Likewise.
7822         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7823         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7824         (_IO_getwline): Call __wmemcpy directly.
7825         * libio/iopopen.c: Assume _LIBC is defined.
7826         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7827         (_IO_close): Remove macro definitions.
7828         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7829         _exit directly.
7830         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7831         directly.
7832         * libio/ioputs.c: Assume weak_alias is defined.
7833         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7834         * libio/iosetbuffer.c: Assume weak_alias is defined.
7835         * libio/iosetvbuf.c: Likewise.
7836         * libio/ioungetc.c: Likewise.
7837         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7838         libc_hidden_def, libc_hidden_weak, NULL are defined.
7839         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7840         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7841         defined.
7842         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7843         definitions.
7844         (_IO_old_file_init_internal): Drop SHARED conditional because it
7845         is implied by SHLIB_COMPAT.
7846         (_IO_old_file_fopen): Call __open directly.
7847         (_IO_old_file_sync): Assume ESPIPE is defined.
7848         (_IO_old_file_write): Call __write directly.
7849         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7850         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7851         Call __fcntl directly.
7852         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7853         (_IO_old_fgetpos): Assume EIO is defined.
7854         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7855         (_IO_old_fgetpos64): Assume EIO is defined.
7856         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7857         (_IO_old_fsetpos): Assume EIO is defined.
7858         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7859         (_IO_old_fsetpos64): Assume EIO is defined.
7860         * libio/oldiopopen.c:  Assume _LIBC is defined.
7861         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7862         (_IO_close): Remove macro definitions.
7863         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7864         directly.
7865         (_IO_old_proc_close): Call __close, __waitpid directly.
7866         * libio/put.c: Assume weak_alias is defined.
7867         * libio/stdfiles.c: Assume _LIBC is defined.
7868         * libio/stdio.c: Likewise.
7869         * libio/wfileops.c: Likewise.
7870         (_IO_wfile_sync): Assume ESPIPE is defined.
7871         * libio/wgenops.c: Assume _LIBC is defined.
7872         (save_for_wbackup): Remove internal_function.
7874 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7876         * malloc/malloc.c (top_check): Change return type to void.  Remove
7877         internal_function.
7878         * malloc/hooks.c (top_check): Likewise.
7879         (malloc_check, realloc_check, memalign_check): Adjust.
7881 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7883         [BZ #21457]
7884         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7885         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7886         sigcontext and namespace requirements.
7887         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7888         * sysdeps/m68k/sys/ucontext.h: Likewise.
7889         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7890         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7891         <bits/sigcontext.h>.
7892         (__ctx): Define earlier.
7893         (mcontext_t): Define structure contents rather than using struct
7894         sigcontext.
7895         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7896         __glibc_reserved1 instead of __reserved.
7897         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7898         <bits/sigcontext.h>.
7899         (__ctx): Define earlier.
7900         (mcontext_t): Define structure contents rather than using struct
7901         sigcontext.
7902         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7903         mcontext_t instead of struct sigcontext.
7904         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7905         <bits/sigcontext.h>.
7906         (__ctx): Define earlier.
7907         (mcontext_t): Define structure contents rather than using struct
7908         sigcontext.
7909         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7910         <bits/sigcontext.h>.
7911         (__ctx): Define earlier.
7912         (mcontext_t): Define structure contents rather than using struct
7913         sigcontext.
7914         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7915         mcontext_t instead of struct sigcontext.
7916         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7917         mcontext_t instead of struct sigcontext.
7918         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7919         <bits/sigcontext.h>.
7920         (__ctx): New macro.
7921         (struct __ia64_fpreg_mcontext): New type.
7922         (mcontext_t): Define structure contents rather than using struct
7923         sigcontext.
7924         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7925         (uc_sigmask): Define using __ctx.
7926         (uc_stack): Likewise.
7927         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7928         <bits/sigcontext.h>.
7929         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7930         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7931         <bits/sigcontext.h>.
7932         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7933         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7934         <bits/sigcontext.h>.
7935         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7936         <bits/sigcontext.h>.
7937         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7938         <bits/sigcontext.h>.
7939         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7940         <bits/sigcontext.h>.
7941         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7942         <bits/sigcontext.h>.
7943         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7944         <bits/sigcontext.h>.
7945         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7946         <bits/sigcontext.h>.
7947         (__ctx): Define earlier.
7948         (mcontext_t): Define structure contents rather than using struct
7949         sigcontext.
7950         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7951         <bits/sigcontext.h>.  Include <bits/types.h>.
7952         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7953         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7954         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7955         (test-xfail-UNIX98/signal.h/conform): Likewise.
7956         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7957         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7958         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7959         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7960         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7961         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7962         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7963         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7964         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7966 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7968         * malloc/dynarray_emplace_enlarge.c
7969         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7970         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7971         * malloc/tst-dynarray.c (test_long_overflow): New function.
7972         (do_test): Call it.
7974 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7976         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7977         (set_arena_corrupt): Remove definitions.
7978         (mtrim): Do not check for corrupt arena.
7979         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7980         Likewise.
7982 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7984         [BZ #21754]
7985         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7986         check_action.
7987         (ptmalloc_init): Do not set or use check_action.
7988         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7989         call to malloc_printerr.  Remove return statement.
7990         (free_check): Likewise.  Remove arena unlock.
7991         (top_check): Update comment.  Adjust call to malloc_printerr.
7992         Remove heap repair code.
7993         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7994         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7995         (sysmalloc): Adjust call to malloc_printerr.
7996         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7997         statement.
7998         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7999         Remove errout label and corresponding gotos.
8000         (_int_free): Likewise.  Remove arena unlock.
8001         (do_set_mallopt_check): Do not set check_action.
8002         (malloc_printerr): Adjust parameter list.  Do not mark arena as
8003         corrupt.
8004         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
8005         comment.
8006         * manual/probes.texi (Memory Allocation Probes): Remove
8007         memory_mallopt_check_action.
8009 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
8011         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
8012         Use pointer to uint64_t instead of long int for sp.
8014 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8016         [BZ #21754]
8017         * malloc/malloc.c (malloc_printerr): Always terminate the process,
8018         without printing a backtrace.  Do not leak any information in the
8019         error message.
8020         * manual/memory.texi (Heap Consistency Checking): Update.
8021         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
8023 2017-08-30  Florian Weimer  <fweimer@redhat.com>
8025         Do not scale NPTL tests with available number of CPUs.
8026         * nptl/tst-cond16.c (count): Set to constant value of 8.
8027         * nptl/tst-cond18.c (count): Likewise.
8029 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8031         [BZ #22035]
8032         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
8033         Define to take a second argument that is a macro that
8034         concatentates a suffix, not the suffix itself.
8035         (__CONCAT_d): New macro.
8036         (__CONCAT_f): Likewise.
8037         (__CONCAT_l): Likewise.
8039 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
8041         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
8042         by child.
8044 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8045             Aurelien Jarno  <aurelien@aurel32.net>
8046             Maciej W. Rozycki  <macro@imgtec.com>
8048         [BZ #21956]
8049         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
8050         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
8051         `mips16-syscall6' and `mips16-syscall7'.
8052         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
8053         (CFLAGS-mips16-syscall7.c): Remove.
8054         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
8055         Remove `__mips16_syscall5', `__mips16_syscall6' and
8056         `__mips16_syscall7'.
8057         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
8058         (__mips16_syscall0): Rename `__mips16_syscall_return' to
8059         `__mips_syscall_return'.
8060         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
8061         (__mips16_syscall1): Likewise.
8062         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
8063         (__mips16_syscall2): Likewise.
8064         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
8065         (__mips16_syscall3): Likewise.
8066         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
8067         (__mips16_syscall4): Likewise.
8068         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
8069         Remove.
8070         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
8071         Remove.
8072         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
8073         Remove.
8074         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
8075         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
8076         `__mips16_syscall5'.  Remove prototype.
8077         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
8078         `__mips16_syscall6'.  Remove prototype.
8079         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
8080         `__mips16_syscall7'.  Remove prototype.
8081         (__nomips16, __mips16_syscall_return): Move to...
8082         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
8083         (__nomips16, __mips_syscall_return): ... here.
8084         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
8085         `__mips16_syscall_return' to `__mips_syscall_return'.
8086         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
8087         `internal_syscall##nr'.
8088         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
8089         `internal_syscall##nr'.
8090         (FORCE_FRAME_POINTER): Remove.
8091         (__mips_syscall5): New prototype.
8092         (internal_syscall5): Rewrite to call `__mips_syscall5'.
8093         (__mips_syscall6): New prototype.
8094         (internal_syscall6): Rewrite to call `__mips_syscall6'.
8095         (__mips_syscall7): New prototype.
8096         (internal_syscall7): Rewrite to call `__mips_syscall7'.
8097         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
8098         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
8099         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
8100         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
8101         (sysdep_routines): Add libc-do-syscall.
8102         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
8103         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
8105 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8107         [BZ #21672]
8108         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
8109         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
8110         (advise_stack_range): New function.
8111         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
8112         stack non required to advise_stack_range at allocatestack.c
8114 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8116         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
8118 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8120         [BZ #22026]
8121         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
8122         __end_fct.  Mangle __end_fct after setting it to NULL.
8123         * iconv/Makefile (tests): Add tst-gconv-init-failure.
8124         (modules-names, modules-names-tests): Add
8125         tst-gconv-init-failure-mod.
8126         (gconv-modules): New target.
8127         (tst-gconv-init-failure-mod.so): Link against libsupport.
8128         (tst-gconv-init-failure): Depend on gconv-modules,
8129         tst-gconv-init-failure-mod.so.
8130         * iconv/tst-gconv-init-failure-mod.c: New file.
8131         * iconv/tst-gconv-init-failure.c: Likewise.
8132         * iconv/test-gconv-modules: Likewise.
8134 2017-08-29  Florian Weimer  <fweimer@redhat.com>
8136         [BZ #22025]
8137         * iconv/gconv_db.c (free_derivation): Remove redundant
8138         parentheses.
8139         (gen_steps): Unconditionally mangle __btowc_fct after
8140         initialization.
8141         (increment_counter): Likewise.  Do not call init_fct for internal
8142         modules.
8144 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
8146         [BZ #22028]
8147         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8148         (_MSUF_): Remove macro.
8149         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
8150         Likewise.
8151         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
8152         (__REDIRFROM_X): New macro.
8153         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
8154         Likewise.
8155         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
8156         (__REDIRTO_X): Likewise.
8157         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
8158         arguments.
8159         (__MATH_REDIRCALL_2): Likewise.
8160         (__MATH_REDIRCALL_INTERNAL): Likewise.
8161         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8162         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
8163         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
8164         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8165         * math/test-finite-macros.c: New file.
8166         * math/Makefile (tests): Add test-finite-macros.
8167         (CFLAGS-test-finite-macros.c): New variable.
8169 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
8170             Jeff Law  <law@redhat.com>
8172         [BZ #22025]
8173         Mangle NULL pointers in iconv/gconv.
8174         * iconv/gconv_cache.c (find_module): Demangle init_fct before
8175         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
8176         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
8177         is non-NULL before demangling the end_fct.  Check for NULL
8178         end_fct after demangling.
8179         (__gconv_release_step): Demangle the end_fct before checking
8180         it for NULL.   Remove assert on __shlibc_handle != NULL.
8181         (gen_steps): Don't check btowc_fct for NULL before mangling.
8182         Demangle init_fct before checking for NULL.
8183         (increment_counter): Likewise.
8184         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
8185         end_fct for NULL before mangling.
8186         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
8187         for NULL.
8189 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
8191         [BZ #21971]
8192         * locale/iso-639.def: add Morisyen.
8194 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8196         [BZ #21930]
8197         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
8198         (iszero): New C++ implementation that does not use
8199         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
8200         signaling nans are enabled, since __builtin_types_compatible_p
8201         is a C-only feature.
8202         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
8203         defined, include ieee754_float128.h for access to the union and
8204         member ieee854_float128.ieee.
8205         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
8206         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
8207         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8208         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
8209         options of test-math-zero on powerpc64le.
8211 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
8213         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
8214         Change double to float.
8216 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
8218         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
8219         unconditional.
8220         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
8221         conditional code; define contents only for [LIBM_SVID_COMPAT].
8223 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8225         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
8226         (abi-lp64_be-options): Remove.
8227         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
8228         (abi-hard-options): Likewise.
8229         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
8230         (abi-o32_hard-options, abi-o32_soft_2008-options)
8231         (abi-o32_hard_2008-options, abi-n32_soft-options)
8232         (abi-n32_hard-options, abi-n32_soft_2008-options)
8233         (abi-n32_hard_2008-options, abi-n64_soft-options)
8234         (abi-n64_hard-options, abi-n64_soft_2008-options)
8235         (abi-n64_hard_2008-options): Likewise.
8236         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
8237         (abi-64-v1-options, abi-64-v2-options): Likewise.
8238         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
8239         (abi-64-options): Likewise.
8240         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
8241         (abi-64-options): Likewise.
8242         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
8243         (abi-64-options): Likewise.
8244         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
8245         (abi-64-options, abi-x32-options): Likewise.
8247 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8249         Store supported list of SYS_* system calls in the source tree.
8250         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8251         (bits/syscall.h): Generate from list file.
8252         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
8253         [$(subdir) = misc] (tests): Add tst-syscall-list.
8254         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
8255         [$(subdir) = misc] (tst-syscall-list-macros.list)
8256         [$(subdir) = misc] (tst-syscall-list-nr.list)
8257         (tst-syscall-list-sys.list): Helper targets for new
8258         tst-syscall-list test.
8259         [$(subdir) = misc] (tst-syscall-list.out): Run test script
8260         tst-syscall-list.sh.
8261         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
8262         target. Do not include bits/syscall.d.
8263         [$(subdir) = misc] (generated): Do not update.
8264         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
8265         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
8266         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
8267         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
8269 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
8271         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
8272         (tst-cxa_atexit, tst-on_exit): Likewise.
8273         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
8274         tst-cxa_atexit, and tst-on_exit.
8275         * stdlib/tst-atexit-common.c: New file.
8276         * stdlib/tst-atexit.c: New file.
8277         * stdlib/tst-at_quick_exit.c: New file.
8278         * stdlib/tst-cxa_atexit.c: New file.
8279         * stdlib/tst-on_exit.c: New file.
8281 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8283         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
8284         * mach/stack_chk_fail_local.c: New file.
8285         * hurd/stack_chk_fail_local.c: New file.
8286         * mach/Machrules ($(interface-library)-routines): Add
8287         stack_chk_fail_local.
8288         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
8289         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
8290         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8291         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8292         * hurd/Makefile (CFLAGS-hurdstartup.o,
8293         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8295 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8297         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8298         (index_cpu_*, index_arch_*): Removed.
8300 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8302         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8303         Use uint64_t instead of unsigned long.
8305 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8307         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8308         [__HAVE_DISTINCT_FLOAT128].
8310         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8311         of <bits/math-finite.h>.
8312         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8313         inclusion of <bits/math-finite.h>.
8314         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8315         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8316         __NO_LONG_DOUBLE_MATH].
8317         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8318         (__MATH_REDIRCALL_2): Likewise.
8319         (__MATH_REDIRCALL_INTERNAL): Likewise.
8320         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8321         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8322         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8325         Remove file.
8326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8327         Likewise.
8328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8329         Likewise.
8330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8331         Likewise.
8332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8333         Likewise.
8334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8335         Likewise.
8336         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8337         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8338         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8339         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8341         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8342         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8343         w_sqrtf_compat-ppc32.
8345 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8347         * math/math.h [defined __cplusplus] (issignaling): In the long
8348         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8349         is not defined.  Call __issignaling, otherwise.
8351 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8353         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8354         syscall definitions and replace __builtin_expect with __glibc_likely.
8355         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8356         syscall.
8357          (SYSCALL_CANCELLABLE): Removedefinition
8358         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8359         definition.
8360         (PSEUDO_END): Likewise.
8361         [IS_IN (libpthread)] (CENABLE): Likewise.
8362         [IS_IN (libpthread)] (CDISABLE): Likewise.
8363         [IS_IN (libc)] (CENABLE): Likewise.
8364         [IS_IN (libc)] (CENABLE): Likewise.
8365         [IS_IN (librt)] (CDISABLE): Likewise.
8366         [IS_IN (librt)] (CDISABLE): Likewise.
8367         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8368         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8369         definition.
8370         (PSEUDO_END): Likewise.
8371         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8372         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8373         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8374         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8375         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8376         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8377         (CENABLE): Likewise.
8378         (CDISABLE): Likewise.
8379         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8380         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8381         defintion.
8382         (PSEUDO_END): Likewise.
8383         [IS_IN (libpthread)] (CENABLE): Likewise.
8384         [IS_IN (libpthread)] (CDISABLE): Likewise.
8385         [IS_IN (libc)] (CENABLE): Likewise.
8386         [IS_IN (libc)] (CENABLE): Likewise.
8387         [IS_IN (librt)] (CDISABLE): Likewise.
8388         [IS_IN (librt)] (CDISABLE): Likewise.
8389         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8390         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8391         definition.
8392         (PSEUDO_END): Likewise.
8393         [IS_IN (libpthread)] (CENABLE): Likewise.
8394         [IS_IN (libpthread)] (CDISABLE): Likewise.
8395         [IS_IN (libc)] (CENABLE): Likewise.
8396         [IS_IN (libc)] (CENABLE): Likewise.
8397         [IS_IN (librt)] (CDISABLE): Likewise.
8398         [IS_IN (librt)] (CDISABLE): Likewise.
8399         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8400         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8401         definition.
8402         (PSEUDO_END): Likewise.
8403         [IS_IN (libpthread)] (CENABLE): Likewise.
8404         [IS_IN (libpthread)] (CDISABLE): Likewise.
8405         [IS_IN (libc)] (CENABLE): Likewise.
8406         [IS_IN (libc)] (CENABLE): Likewise.
8407         [IS_IN (librt)] (CDISABLE): Likewise.
8408         [IS_IN (librt)] (CDISABLE): Likewise.
8409         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8410         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8411         definition.
8412         (PSEUDO_END): Likewise.
8413         [IS_IN (libpthread)] (CENABLE): Likewise.
8414         [IS_IN (libpthread)] (CDISABLE): Likewise.
8415         [IS_IN (libc)] (CENABLE): Likewise.
8416         [IS_IN (libc)] (CENABLE): Likewise.
8417         [IS_IN (librt)] (CDISABLE): Likewise.
8418         [IS_IN (librt)] (CDISABLE): Likewise.
8419         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8420         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8421         definition.
8422         (PSEUDO_END): Likewise.
8423         [IS_IN (libpthread)] (CENABLE): Likewise.
8424         [IS_IN (libpthread)] (CDISABLE): Likewise.
8425         [IS_IN (libc)] (CENABLE): Likewise.
8426         [IS_IN (libc)] (CENABLE): Likewise.
8427         [IS_IN (librt)] (CDISABLE): Likewise.
8428         [IS_IN (librt)] (CDISABLE): Likewise.
8429         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8430         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8431         definition.
8432         (PSEUDO_END): Likewise.
8433         [IS_IN (libpthread)] (CENABLE): Likewise.
8434         [IS_IN (libpthread)] (CDISABLE): Likewise.
8435         [IS_IN (libc)] (CENABLE): Likewise.
8436         [IS_IN (libc)] (CENABLE): Likewise.
8437         [IS_IN (librt)] (CDISABLE): Likewise.
8438         [IS_IN (librt)] (CDISABLE): Likewise.
8439         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8440         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8441         Remove definition.
8442         (PSEUDO_END): Likewise.
8443         [IS_IN (libpthread)] (CENABLE): Likewise.
8444         [IS_IN (libpthread)] (CDISABLE): Likewise.
8445         [IS_IN (libc)] (CENABLE): Likewise.
8446         [IS_IN (libc)] (CENABLE): Likewise.
8447         [IS_IN (librt)] (CDISABLE): Likewise.
8448         [IS_IN (librt)] (CDISABLE): Likewise.
8449         (SINGLE_THREAD_P): Likewise.
8450         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8451         definition.
8452         (PSEUDO_END): Likewise.
8453         [IS_IN (libpthread)] (CENABLE): Likewise.
8454         [IS_IN (libpthread)] (CDISABLE): Likewise.
8455         [IS_IN (libc)] (CENABLE): Likewise.
8456         [IS_IN (libc)] (CENABLE): Likewise.
8457         [IS_IN (librt)] (CDISABLE): Likewise.
8458         [IS_IN (librt)] (CDISABLE): Likewise.
8459         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8460         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8461         definition.
8462         (PSEUDO_END): Likewise.
8463         [IS_IN (libpthread)] (CENABLE): Likewise.
8464         [IS_IN (libpthread)] (CDISABLE): Likewise.
8465         [IS_IN (libc)] (CENABLE): Likewise.
8466         [IS_IN (libc)] (CENABLE): Likewise.
8467         [IS_IN (librt)] (CDISABLE): Likewise.
8468         [IS_IN (librt)] (CDISABLE): Likewise.
8469         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8470         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8471         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8472         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8473         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8474         definition.
8475         (PSEUDO_END): Likewise.
8476         [IS_IN (libpthread)] (CENABLE): Likewise.
8477         [IS_IN (libpthread)] (CDISABLE): Likewise.
8478         [IS_IN (libc)] (CENABLE): Likewise.
8479         [IS_IN (libc)] (CENABLE): Likewise.
8480         [IS_IN (librt)] (CDISABLE): Likewise.
8481         [IS_IN (librt)] (CDISABLE): Likewise.
8482         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8483         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8484         definition.
8485         (PSEUDO_END): Likewise.
8486         [IS_IN (libpthread)] (CENABLE): Likewise.
8487         [IS_IN (libpthread)] (CDISABLE): Likewise.
8488         [IS_IN (libc)] (CENABLE): Likewise.
8489         [IS_IN (libc)] (CENABLE): Likewise.
8490         [IS_IN (librt)] (CDISABLE): Likewise.
8491         [IS_IN (librt)] (CDISABLE): Likewise.
8492         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8493         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8494         definition.
8495         (PSEUDO_END): Likewise.
8496         [IS_IN (libpthread)] (CENABLE): Likewise.
8497         [IS_IN (libpthread)] (CDISABLE): Likewise.
8498         [IS_IN (libc)] (CENABLE): Likewise.
8499         [IS_IN (libc)] (CENABLE): Likewise.
8500         [IS_IN (librt)] (CDISABLE): Likewise.
8501         [IS_IN (librt)] (CDISABLE): Likewise.
8502         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8503         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8504         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8505         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8506         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8507         definition.
8508         (PSEUDO_END): Likewise.
8509         [IS_IN (libpthread)] (CENABLE): Likewise.
8510         [IS_IN (libpthread)] (CDISABLE): Likewise.
8511         [IS_IN (libc)] (CENABLE): Likewise.
8512         [IS_IN (libc)] (CENABLE): Likewise.
8513         [IS_IN (librt)] (CDISABLE): Likewise.
8514         [IS_IN (librt)] (CDISABLE): Likewise.
8515         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8516         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8517         definition.
8518         (PSEUDO_END): Likewise.
8519         [IS_IN (libpthread)] (CENABLE): Likewise.
8520         [IS_IN (libpthread)] (CDISABLE): Likewise.
8521         [IS_IN (libc)] (CENABLE): Likewise.
8522         [IS_IN (libc)] (CENABLE): Likewise.
8523         [IS_IN (librt)] (CDISABLE): Likewise.
8524         [IS_IN (librt)] (CDISABLE): Likewise.
8525         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8527 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8529         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8531 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8533         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8535 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8537         [BZ #21982]
8538         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8539         middle and outer with size_t instead of int.  Repleace %d and
8540         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8541         "MAX (outer, nchars - 64)" to support unsigned outer and
8542         nchars.  Also exit loop when outer == 0.
8544 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8546         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8547         * include/signal.h (__sigsuspend_nocancel): Likewise.
8548         * include/time.h (__nanosleep_nocancel): Likewise.
8549         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8550         * login/utmp_file.c: Include non cancellable syscall header.
8551         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8552         prototype.
8554 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8556         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8557         .byte sequences with AVX512F instructions.
8558         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8559         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8560         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8561         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8562         Likewise.
8563         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8564         Likewise.
8566 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8567             Steve Ellcey  <sellcey@cavium.com>
8569         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8570         Use PTR_REG macro in cmp instruction.
8572 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8574         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8575         Change the return type of the ifunc resolver to match the return
8576         type of the target function.
8578 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8580         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8581         (preadv64): Likewise.
8582         (pwrite64(: Likewise.
8583         (pwritev64): Likewise.
8585         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8586         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8587         (LOAD_ARGS_0): Likewise.
8588         (LOAD_ARGS_1): Likewise.
8589         (LOAD_ARGS_2): Likewise.
8590         (LOAD_ARGS_3): Likewise.
8591         (LOAD_ARGS_4): Likewise.
8592         (LOAD_ARGS_5): Likewise.
8593         (LOAD_ARGS_6): Likewise.
8594         (LOAD_REGS_0): Likewise.
8595         (LOAD_REGS_1): Likewise.
8596         (LOAD_REGS_2): Likewise.
8597         (LOAD_REGS_3): Likewise.
8598         (LOAD_REGS_4): Likewise.
8599         (LOAD_REGS_5): Likewise.
8600         (LOAD_REGS_6): Likewise.
8601         (ASM_ARGS_0): Likewise.
8602         (ASM_ARGS_1): Likewise.
8603         (ASM_ARGS_2): Likewise.
8604         (ASM_ARGS_3): Likewise.
8605         (ASM_ARGS_4): Likewise.
8606         (ASM_ARGS_5): Likewise.
8607         (ASM_ARGS_6): Likewise.
8608         (LOAD_ARGS_TYPES_1): Likewise.
8609         (LOAD_ARGS_TYPES_2): Likewise.
8610         (LOAD_ARGS_TYPES_3): Likewise.
8611         (LOAD_ARGS_TYPES_4): Likewise.
8612         (LOAD_ARGS_TYPES_5): Likewise.
8613         (LOAD_ARGS_TYPES_6): Likewise.
8614         (LOAD_REGS_TYPES_1): Likewise.
8615         (LOAD_REGS_TYPES_2): Likewise.
8616         (LOAD_REGS_TYPES_3): Likewise.
8617         (LOAD_REGS_TYPES_4): Likewise.
8618         (LOAD_REGS_TYPES_5): Likewise.
8619         (LOAD_REGS_TYPES_6): Likewise.
8620         (TYPEFY): New define.
8621         (ARGIFY): Likewise.
8622         (internal_syscall0): Likewise.
8623         (internal_syscall1): Likewise.
8624         (internal_syscall2): Likewise.
8625         (internal_syscall3): Likewise.
8626         (internal_syscall4): Likewise.
8627         (internal_syscall5): Likewise.
8628         (internal_syscall6): Likewise.
8629         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8630         (INTERNAL_SYSCALL_NCS): Remove define.
8631         (internal_syscall1): Add define.
8633 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8635         * math/w_remainder_compat.c: Remove duplicate inclusion of
8636         math-svid-compat.h.
8637         * math/w_remainderf_compat.c: Likewise.
8638         * math/w_remainderl_compat.c: Likewise.
8640 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8644 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8646         [BZ #21684]
8647         * math/tgmath.h (__floating_type): Simplify definitions.
8648         (__real_integer_type): New macro.
8649         (__complex_integer_type): Likewise.
8650         (__expr_is_real): Likewise.
8651         (__tgmath_real_type_sub): Update comment to describe handling of
8652         complex types.
8653         (__tgmath_complex_type_sub): New macro.
8654         (__tgmath_complex_type): Likewise.
8655         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8656         (__TGMATH_CF128): Use __expr_is_real.
8657         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8658         __expr_is_real.
8659         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8660         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8661         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8662         integer types.
8664 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8666         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8667         macro.
8668         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8669         alias.
8670         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8671         Likewise.
8673         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8674         nanosleep_not_cancel with __nanosleep_nocancel.
8675         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8676         (__nanosleep_nocancel): New macro.
8677         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8678         function.
8679         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8680         macro.
8681         (__nanosleep_nocancel): New prototype.
8683         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8684         pause_not_cancel with __pause_nocancel.
8685         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8686         (__pause_nocancel): New macro.
8687         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8688         macro.
8689         (__pause_nocancel): New prototype.
8690         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8692 2017-08-22  Martin Sebor  <msebor@redhat.com>
8694         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8695         to return a pointer to the same type as the target function.
8697 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8699         [BZ #18822]
8700         [BZ #21986]
8701         * include/printf.h (__printf_fphex): Add attribute_hidden.
8702         (__guess_grouping): New prototype.
8703         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8704         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8705         libc_hidden_proto and libc_hidden_def.
8706         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8707         (__vstrfmon_l): Remove the third argument passed to
8708         __guess_grouping.
8710 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8712         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8713         definition for issignaling that does not rely on __MATH_TG,
8714         since __MATH_TG uses __builtin_types_compatible_p, which is only
8715         available in C mode.
8716         (CFLAGS-test-math-issignaling.cc): New variable.
8717         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8718         * math/test-math-issignaling.cc: New test for C++ implementation
8719         of type-generic issignaling.
8720         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8721         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8722         options of test-math-issignaling on powerpc64le.
8724 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8726         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8727         building libc.a.
8728         (hidden_proto): Likewise.
8729         (hidden_tls_proto): Likewise.
8730         (__hidden_proto): Likewise.
8732 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8734         math: Statically link tests of internal functionality.
8735         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8736         atest-exp2.
8737         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8738         (gmp-objs): Remove assignment.
8739         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8741 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8743         [BZ #21987]
8744         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8745         and copy to ...
8746         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8747         ... here.
8748         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8749         ... and here.
8751         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8752         variable definitions above inclusion of ../Rules.
8754 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8756         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8757         case calling __builtin_unreachable.
8759 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8761         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8762         __waitpid_nocancel.
8763         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8764         (__waitpid_nocancel): New macro.
8765         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8766         macro.
8767         (__waitpid_nocancel): Replace macro with a function.
8768         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8769         function.
8771         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8772         __fcntl_nocancel.
8773         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8774         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8776         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8777         __writev_nocancel_nostatus.
8778         (write_call_graph): Likewise.
8779         (write_bb_counts): Likewise.
8780         * resolv/herror.c (herror): Likewise.
8781         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8782         macro.
8783         (__writev_nocancel_nostatus): New macro.
8784         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8785         Remove macro.
8786         (__writev_nocancel_nostatus): New function.
8788 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8790         Revert:
8791         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8793         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8794         building libc.a.
8795         (hidden_proto): Likewise.
8796         (hidden_tls_proto): Likewise.
8797         (__hidden_proto): Likewise.
8799         [BZ #21973]
8800         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8801         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8803         Likewise.
8804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8805         Likewise.
8806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8807         Likewise.
8808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8809         Likewise.
8810         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8811         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8812         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8813         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8814         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8815         GLIBC_2.0 sqrtl symbol.
8817         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8818         [__USE_MISC] (_LIB_VERSION): Likewise.
8819         [__USE_MISC] (struct exception): Likewise.
8820         [__USE_MISC] (matherr): Likewise.
8821         [__USE_MISC] (DOMAIN): Likewise.
8822         [__USE_MISC] (SING): Likewise.
8823         [__USE_MISC] (OVERFLOW): Likewise.
8824         [__USE_MISC] (UNDERFLOW): Likewise.
8825         [__USE_MISC] (TLOSS): Likewise.
8826         [__USE_MISC] (PLOSS): Likewise.
8827         [__USE_MISC] (HUGE): Likewise.
8828         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8829         * math/math-svid-compat.h: New file.
8830         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8831         and matherrl.
8832         * include/math.h [!_ISOMAC] (__matherr): Remove.
8833         * manual/arith.texi (FP Exceptions): Do not document matherr.
8834         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8835         (tests-internal): New variable.
8836         (install-lib): Do not add libieee.a.
8837         (non-lib.a): Likewise.
8838         (extra-objs): Do not add libieee.a and ieee-math.o.
8839         (CPPFLAGS-s_lib_version.c): Remove variable.
8840         ($(objpfx)libieee.a): Remove rule.
8841         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8842         * math/ieee-math.c: Remove.
8843         * math/libm-test-support.c (matherr): Remove.
8844         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8845         and license notices.  Include <math-svid-compat.h> and
8846         <shlib-compat.h>.
8847         (matherr): Undefine as macro.  Use compat_symbol_reference.
8848         (_LIB_VERSION): Likewise.
8849         * math/test-matherr-2.c: New file.
8850         * math/test-matherr-3.c: Likewise.
8851         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8852         declaration.
8853         (__kernel_standard_f): Likewise.
8854         (__kernel_standard_l): Likewise.
8855         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8856         <math_private.h>.  Include <math-svid-compat.h>.
8857         (_LIB_VERSION): Undefine as macro.
8858         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8859         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8860         [LIBM_SVID_COMPAT], use compat_symbol.
8861         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8862         <math_private.h>.  Include <math-svid-compat.h>.
8863         (matherr): Undefine as macro.
8864         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8865         compat_symbol.
8866         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8867         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8868         compat_symbol_reference.
8869         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8870         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8871         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8872         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8873         (MATHERR_D): Remove declaration.
8874         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8875         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8876         [LIBM_BUILD] (pmatherrf): Likewise.
8877         [LIBM_BUILD] (pmatherr): Likewise.
8878         [LIBM_BUILD] (pmatherrl): Likewise.
8879         (DOMAIN): Likewise.
8880         (SING): Likewise.
8881         (OVERFLOW): Likewise.
8882         (UNDERFLOW): Likewise.
8883         (TLOSS): Likewise.
8884         (PLOSS): Likewise.
8885         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8886         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8887         compat_symbol.
8888         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8889         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8890         compat_symbol.
8891         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8892         * math/w_acos_compat.c: Likewise.
8893         * math/w_acosf_compat.c: Likewise.
8894         * math/w_acosh_compat.c: Likewise.
8895         * math/w_acoshf_compat.c: Likewise.
8896         * math/w_acoshl_compat.c: Likewise.
8897         * math/w_acosl_compat.c: Likewise.
8898         * math/w_asin_compat.c: Likewise.
8899         * math/w_asinf_compat.c: Likewise.
8900         * math/w_asinl_compat.c: Likewise.
8901         * math/w_atan2_compat.c: Likewise.
8902         * math/w_atan2f_compat.c: Likewise.
8903         * math/w_atan2l_compat.c: Likewise.
8904         * math/w_atanh_compat.c: Likewise.
8905         * math/w_atanhf_compat.c: Likewise.
8906         * math/w_atanhl_compat.c: Likewise.
8907         * math/w_cosh_compat.c: Likewise.
8908         * math/w_coshf_compat.c: Likewise.
8909         * math/w_coshl_compat.c: Likewise.
8910         * math/w_exp10_compat.c: Likewise.
8911         * math/w_exp10f_compat.c: Likewise.
8912         * math/w_exp10l_compat.c: Likewise.
8913         * math/w_exp2_compat.c: Likewise.
8914         * math/w_exp2f_compat.c: Likewise.
8915         * math/w_exp2l_compat.c: Likewise.
8916         * math/w_fmod_compat.c: Likewise.
8917         * math/w_fmodf_compat.c: Likewise.
8918         * math/w_fmodl_compat.c: Likewise.
8919         * math/w_hypot_compat.c: Likewise.
8920         * math/w_hypotf_compat.c: Likewise.
8921         * math/w_hypotl_compat.c: Likewise.
8922         * math/w_j0_compat.c: Likewise.
8923         * math/w_j0f_compat.c: Likewise.
8924         * math/w_j0l_compat.c: Likewise.
8925         * math/w_j1_compat.c: Likewise.
8926         * math/w_j1f_compat.c: Likewise.
8927         * math/w_j1l_compat.c: Likewise.
8928         * math/w_jn_compat.c: Likewise.
8929         * math/w_jnf_compat.c: Likewise.
8930         * math/w_jnl_compat.c: Likewise.
8931         * math/w_lgamma_main.c: Likewise.
8932         * math/w_lgamma_r_compat.c: Likewise.
8933         * math/w_lgammaf_main.c: Likewise.
8934         * math/w_lgammaf_r_compat.c: Likewise.
8935         * math/w_lgammal_main.c: Likewise.
8936         * math/w_lgammal_r_compat.c: Likewise.
8937         * math/w_log10_compat.c: Likewise.
8938         * math/w_log10f_compat.c: Likewise.
8939         * math/w_log10l_compat.c: Likewise.
8940         * math/w_log2_compat.c: Likewise.
8941         * math/w_log2f_compat.c: Likewise.
8942         * math/w_log2l_compat.c: Likewise.
8943         * math/w_log_compat.c: Likewise.
8944         * math/w_logf_compat.c: Likewise.
8945         * math/w_logl_compat.c: Likewise.
8946         * math/w_pow_compat.c: Likewise.
8947         * math/w_powf_compat.c: Likewise.
8948         * math/w_powl_compat.c: Likewise.
8949         * math/w_remainder_compat.c: Likewise.
8950         * math/w_remainderf_compat.c: Likewise.
8951         * math/w_remainderl_compat.c: Likewise.
8952         * math/w_scalb_compat.c: Likewise.
8953         * math/w_scalbf_compat.c: Likewise.
8954         * math/w_scalbl_compat.c: Likewise.
8955         * math/w_sinh_compat.c: Likewise.
8956         * math/w_sinhf_compat.c: Likewise.
8957         * math/w_sinhl_compat.c: Likewise.
8958         * math/w_sqrt_compat.c: Likewise.
8959         * math/w_sqrtf_compat.c: Likewise.
8960         * math/w_sqrtl_compat.c: Likewise.
8961         * math/w_tgamma_compat.c: Likewise.
8962         * math/w_tgammaf_compat.c: Likewise.
8963         * math/w_tgammal_compat.c: Likewise.
8964         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8965         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8966         * sysdeps/ieee754/k_standard.c: Likewise.
8967         * sysdeps/ieee754/k_standardf.c: Likewise.
8968         * sysdeps/ieee754/k_standardl.c: Likewise.
8969         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8970         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8971         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8972         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8973         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8974         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8975         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8976         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8977         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8979         Likewise.
8980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8981         Likewise.
8982         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8983         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8984         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8985         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8987 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8989         [BZ #21864]
8990         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8991         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8992         Move before inclusion of ../Rules.
8994 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8996         [BZ #21972]
8997         * assert/assert.h (assert): Use static_cast (bool) for C++.
8998         Use the ternary operator in the warning branch for GNU C.
8999         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
9000         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
9001         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
9002         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
9003         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
9005 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9007         [BZ #18822]
9008         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9009         (__syscall_clock_gettime): Add attribute_hidden.
9010         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
9011         (__start_context): Likewise.
9013 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9015         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
9016         building libc.a.
9017         (hidden_proto): Likewise.
9018         (hidden_tls_proto): Likewise.
9019         (__hidden_proto): Likewise.
9021 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9023         * include/libc-symbols.h (attribute_hidden): Enable hidden
9024         visibility in libc.a compiled with PIE.
9026 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9028         [BZ #18822]
9029         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
9030         Add attribute_hidden.
9032 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9034         [BZ #21864]
9035         * Makerules (all-nonlib): Add $(others-extras).
9036         * catgets/Makefile (others-extras): New.
9037         * elf/Makefile (others-extras): Likewise.
9038         * nss/Makefile (others-extras): Likewise.
9040 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9042         [BZ #18822]
9043         * csu/libc-start.c (__libc_multiple_libcs): Removed.
9044         * elf/dl-open.c: Include <libc-internal.h>.
9045         (__libc_multiple_libcs): Removed.
9046         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
9047         <hp-timing.h>.
9048         * include/libc-internal.h (__libc_multiple_libcs): New.
9049         * misc/sbrk.c: Include <libc-internal.h>.
9050         (__libc_multiple_libcs): Removed.
9052 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
9054         [BZ #18822]
9055         * grp/initgroups.c (__nss_group_database): Removed.
9056         (__nss_initgroups_database): Likewise.
9057         * nscd/gai.c (__nss_hosts_database): Likewise.
9058         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
9059         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
9060         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
9061         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
9062         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
9063         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
9064         attribute_hidden.
9065         * nss/nsswitch.c (__nss_database_custom): Define only if
9066         USE_NSCD is defined.
9067         (__nss_configure_lookup): Use __nss_database_custom only if
9068         USE_NSCD is defined.
9069         * nss/nsswitch.h (__nss_database_custom): Declare only if
9070         USE_NSCD is defined.  Add attribute_hidden.
9071         (__nss_setent): Add attribute_hidden.
9072         (__nss_endent): Likewise.
9073         (__nss_getent_r): Likewise.
9074         (__nss_getent): Likewise.
9075         (DEFINE_DATABASE): Declare __nss_##arg##_database.
9077 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9079         [BZ #18822]
9080         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
9081         libc_hidden_proto and libc_hidden_def.
9083 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9085         [BZ #18822]
9086         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
9087         Add libc_hidden_proto.
9088         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
9089         Add libc_hidden_def.
9091 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9093         [BZ #21974]
9094         * gmon/Makefile (routines): Remove bb_init_func and
9095         bb_exit_func.
9096         (elide-routines.os): Removed.
9097         * gmon/bb_exit_func.c: Likewise.
9098         * gmon/bb_init_func.c: Likewise.
9099         * include/sys/gmon.h (__bb): Likewise.
9100         (__bb_init_func): Likewise.
9101         (__bb_exit_func): Likewise.
9102         * sysdeps/alpha/bb_init_func.S: Likewise.
9104 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9106         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
9107         * include/setjmp.h (____longjmp_chk): Here.  Add
9108         attribute_hidden.
9110 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9112         [BZ #18822]
9113         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
9114         attribute_hidden.
9115         (__strspn_sse2): Likewise.
9117 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9119         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
9120         (close_not_cancel_no_status): Likewise.
9121         (__close_nocancel): New macro.
9122         (__close_nocancel_nostatus): Likewise.
9123         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
9124         macro.
9125         (close_not_cancel): Likewise.
9126         (close_not_cancel_no_status): Likewise.
9127         (__close_nocancel): New prototype.
9128         (__close_nocancel_nostatus): New function.
9129         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
9130         * catgets/open_catalog.c (__open_catalog): Replace
9131         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
9132         * gmon/gmon.c (write_gmon): Likewise.
9133         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9134         * intl/loadmsgcat.c (close): Likewise.
9135         * io/ftw.c (open_dir_stream): Likewise.
9136         (ftw_startup): Likewise.
9137         * libio/fileops.c (_IO_file_open): Likewise.
9138         (_IO_file_close_mmap): Likewise.
9139         (_IO_file_close): Likewise.
9140         * libio/iopopen.c (_IO_dup2): Likewise.
9141         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9142         * locale/loadlocale.c (_nl_load_locale): Likewise.
9143         * login/utmp_file.c (pututline_file): Likewise.
9144         (endutent_file): Likewise.
9145         * misc/daemon.c (daemon): Likewise.
9146         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9147         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9148         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9149         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9150         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9151         * nscd/nscd_helper.c (open_socket): Likewise.
9152         (__nscd_open_socket): Likewise.
9153         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9154         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
9155         (__nscd_innetgr): Likewise.
9156         * nss/nss_db/db-open.c (internal_setent): Likewise.
9157         * resolv/res-close.c (__res_iclose): Likewise.
9158         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
9159         * sysdeps/posix/closedir.c (__closedir): Likewise.
9160         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
9161         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9162         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9163         (opendir_tail): Likewise.
9164         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9165         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
9166         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9167         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9168         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9169         (gethostid): Likewise.
9170         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9171         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9172         Likewise.
9173         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9174         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
9175         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9176         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9177         Likewise.
9178         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
9179         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
9180         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9181         Likewise.
9182         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
9183         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9184         Likewise.
9185         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9186         Likewise.
9187         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9188         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9189         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9190         __close_nocancel.
9192         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
9193         (openat_not_cancel_3): Likewise.
9194         (openat64_not_cancel_3): Likewise).
9195         (openat_not_cancel_3): Likewise).
9196         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
9197         macro.
9198         (openat_not_cancel_3): Likewise.
9199         (openat64_not_cancel): Likewise.
9200         (openat64_not_cancel_3): Likewise.
9201         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
9202         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
9203         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
9204         __open{64}_nocancel.
9205         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9206         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9207         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9209 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9211         [BZ #18822]
9212         * include/argz.h (__argz_create_sep): New function prototype.
9213         (__argz_append): Likewise.
9214         (__argz_add): Likewise.
9215         (__argz_add_sep): Likewise.
9216         (__argz_delete): Likewise.
9217         (__argz_insert): Likewise.
9218         (__argz_replace): Likewise.
9219         * string/argz.h (__argz_create_sep): Removed.
9220         (__argz_append): Likewise.
9221         (__argz_add): Likewise.
9222         (__argz_add_sep): Likewise.
9223         (__argz_delete): Likewise.
9224         (__argz_insert): Likewise.
9225         (__argz_replace): Likewise.
9227 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9229         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
9230         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
9231         (GNU_PROPERTY_STACK_SIZE): Likewie.
9232         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
9233         (GNU_PROPERTY_LOPROC): Likewise.
9234         (GNU_PROPERTY_HIPROC): Likewise.
9235         (GNU_PROPERTY_LOUSER): Likewise.
9236         (GNU_PROPERTY_HIUSER): Likewise.
9237         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
9238         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
9239         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
9240         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
9241         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
9242         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
9243         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
9244         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
9245         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
9246         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
9247         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
9248         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
9249         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
9250         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
9251         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
9252         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
9253         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
9254         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
9255         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
9256         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
9257         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
9258         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
9259         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
9261 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9263         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
9264         in C++ mode.
9266 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9268         [BZ #21930]
9269         * math/math.h (isinf): Check if in C or C++ mode before using
9270         __builtin_types_compatible_p, since this is a C mode feature.
9272 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9274         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
9275         (__write_nocancel): New macro.
9276         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
9277         Rewrite as a function prototype.
9278         (write_not_cancel): Remove macro.
9279         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
9280         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
9281         (write_gmon): Likewise.
9282         * libio/fileops.c (_IO_new_file_write): Likewise.
9283         * login/utmp_file.c (pututline_file): Likewise.
9284         (updwtmp_file): Likewise.
9285         * stdio-common/psiginfo.c (psiginfo): Likewise.
9286         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9287         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9288         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9289         Likewise.
9290         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9291         Likewise.
9293         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9294         (__read_nocancel): New macro.
9295         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9296         __read_nocancel.
9297         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9298         macro.
9299         (__read_nocancel): New prototype.
9300         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9301         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9302         with __read_nocancel.
9303         * intl/loadmsgcat.c (read): Likewise.
9304         * libio/fileops.c (_IO_file_read): Likewise.
9305         * locale/loadlocale.c (_nl_load_locale): Likewise.
9306         * login/utmp_file.c (getutent_r_file): Likewise.
9307         (internal_getut_r): Likewise.
9308         (getutline_r_file): Likewise.
9309         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9310         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9311         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9312         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9313         Likewise.
9314         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9315         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9316         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9317         Likewise.
9318         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9319         Likewise.
9320         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9321         Likewise.
9322         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9323         Likewise.
9324         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9326 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9328         [BZ #21966]
9329         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9330         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9331         usable.
9333 2017-08-17  DJ Delorie  <dj@redhat.com>
9335         * bug17079.c: Update to new test harness.
9336         * test-digits-dots.c: Likewise.
9337         * test-netdb.c: Likewise.
9338         * tst-field.c: Likewise.
9339         * tst-nss-getpwent.c: Likewise.
9340         * tst-nss-static.c: Likewise.
9341         * tst-nss-test1.c: Likewise.
9342         * tst-nss-test2.c: Likewise.
9343         * tst-nss-test3.c: Likewise.
9344         * tst-nss-test4.c: Likewise.
9345         * tst-nss-test5.c: Likewise.
9347 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9349         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9350         (open_not_cancel_2): Likewise.
9351         (open_nocancel): New macro.
9352         (open64_nocancel): Likewise.
9353         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9354         (open_not_cancel_2): Likewise.
9355         (__open_nocancel): New prototype.
9356         (__open64_nocancel): Likewise.
9357         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9358         __open_nocancel.
9359         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9360         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9361         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9362         with __open_nocancel.
9363         * csu/check_fds.c (check_one_fd): Likewise.
9364         * gmon/gmon.c (write_gmon): Likewise.
9365         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9366         * intl/loadmsgcat.c (open): Likewise.
9367         * libio/fileops.c (_IO_file_open): Likewise.
9368         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9369         * locale/loadlocale.c (_nl_load_locale): Likewise.
9370         * login/utmp_file.c (setutent_file): Likewise.
9371         * misc/daemon.c (daemon): Likewise.
9372         * nss/nss_db/db-open.c (internal_setent): Likewise.
9373         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9374         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9375         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9376         (__opendir): Likewise.
9377         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9378         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9379         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9380         (gethostid): Likewise.
9381         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9382         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9383         Likewise.
9384         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9385         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9386         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9387         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9388         Likewise.
9389         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9390         Likewise.
9391         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9392         Likewise.
9393         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9394         Likewise.
9395         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9396         Likewise.
9397         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9398         Likewise.
9399         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9400         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9402 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9404         * benchtests/bench-skeleton.c (main): Add support for
9405         latency benchmarking.
9406         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9408 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9410         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9411         the startup object.
9413 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9415         * include/sys/socket.h (__opensock): Remove internal_function.
9416         * socket/opensock.c (__opensock): Likewise.
9417         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9419 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9421         [BZ #21944]
9422         * signal/bits/types/__sigval_t.h: New file.
9423         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9424         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9425         and define sigval_t using __sigval_t.
9426         * include/bits/types/__sigval_t.h: New file.
9427         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9428         instead of <bits/types/__sigval_t.h>.
9429         (struct sigevent): Use __sigval_t instead of sigval_t.
9430         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9431         instead of <bits/types/__sigval_t.h>.
9432         (siginfo_t): Use __sigval_t instead of sigval_t.
9433         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9434         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9435         (struct sigevent): Use __sigval_t instead of sigval_t.
9436         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9437         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9438         (siginfo_t): Use __sigval_t instead of sigval_t.
9439         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9441 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9443         * NEWS: Remove "[Add new features here]" for 2.27.
9445 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9447         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9448         libc.so.
9450 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9452         * NEWS: Mention x86-64 FMA optimization.
9454 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9456         [BZ #21912]
9457         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9458         Add e_expf-fma.
9459         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9460         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9461         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9463 2017-08-16  Andreas Schwab  <schwab@suse.de>
9465         [BZ #16750]
9466         CVE-2009-5064
9467         * elf/ldd.bash.in: Never run file directly.
9469 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9471         [BZ #21955]
9472         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9473         (L(SP_INF_0)): Likewise.
9475 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9477         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9478         run-built-tests.
9480 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9482         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9483         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9484         BROKEN_THREAD_SIGNALS code.
9485         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9486         request_list): Remove caller_pid member used for
9487         BROKEN_THREAD_SIGNALS.
9488         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9489         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9490         Remove BROKEN_THREAD_SIGNALS support.
9491         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9492         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9494 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9496         * gmon/Makefile (tests): Add tst-gmon.
9497         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9498         Set.
9499         (tests-special): Add tst-gmon-prof.out.
9500         (tst-gmon.out): Depend on clean-tst-gmon-data.
9501         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9502         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9503         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9504         startup object.
9505         * aclocal.m4 (GPROF): Set and substitute.
9506         * config.amke.in (GPROF): Set.
9507         * configure: Regenerate.
9509 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9511         * elf/elf.h A (NT_PPC_TAR): New macro.
9512         (NT_PPC_PPR): Likewise.
9513         (NT_PPC_DSCR): Likewise.
9514         (NT_PPC_EBB): Likewise.
9515         (NT_PPC_PMU): Likewise.
9516         (NT_PPC_TM_CGPR): Likewise.
9517         (NT_PPC_TM_CFPR): Likewise.
9518         (NT_PPC_TM_CVMX): Likewise.
9519         (NT_PPC_TM_CVSX): Likewise.
9520         (NT_PPC_TM_SPR): Likewise.
9521         (NT_PPC_TM_CTAR): Likewise.
9522         (NT_PPC_TM_CPPR): Likewise.
9523         (NT_PPC_TM_CDSCR): Likewise.
9525 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9527         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9528         regparm (2) instead of internal_function.
9529         (_MCOUNT_DECL): Adjust.
9531 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9533         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9534         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9536 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9538         * conform/data/sys/wait.h-data (si_value): Do not expect for
9539         XPG42.
9541 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9543         [BZ #21962]
9544         NSS: Create stubs for accidentally exported lookup functions.
9545         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9546         Remove declaration.
9547         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9548         (ether_hostton): Call __nss_ethers_lookup2 instead.
9549         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9550         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9551         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9552         (setup): Call __nss_netgroup_lookup2 instead.
9553         * nss/Makefile (routines): Add compat-lookup.
9554         * nss/Versions (GLIBC_2.27): Add symbol version.
9555         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9556         (DB_COMPAT_FCT): Remove.
9557         * nss/compat-lookup.c: New file.
9558         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9559         from databases.def.
9560         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9561         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9562         (netname2user): Call __nss_publickey_lookup2 instead.
9563         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9564         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9565         instead.
9567 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9568             Sergei Trofimovich  <slyfox@inbox.ru>
9570         [BZ #21908]
9571         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9572         Rename to MMAP2_PAGE_UNIT.
9573         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9574         __OFF_T_MATCHES_OFF64_T is not defined.
9575         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9576         uint64_t.
9577         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9578         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9580 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9582         i386: Do not set internal_function.
9583         * config.h.in (USE_REGPARMS, internal_function): Remove.
9584         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9585         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9587 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9589         * elf/dl-init.c (_dl_init): Remove internal_function.
9590         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9591         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9593 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9595         * elf/rtld.c (_dl_start): Remove internal_function.
9596         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9597         _dl_start.
9599 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9601         * elf/dl-fini.c (_dl_fini): Remove internal_function
9602         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9604 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9606         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9607         (bit_cpu_SHSTK): Likewise.
9608         (index_cpu_IBT): Likewise.
9609         (index_cpu_SHSTK): Likewise.
9610         (reg_IBT): Likewise.
9611         (reg_SHSTK): Likewise.
9612         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9613         Handle index_cpu_IBT and index_cpu_SHSTK.
9615 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9617         [BZ #19982]
9618         * po/fr.po: Fix spelling mistake.
9620 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9622         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9623         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9624         (_dl_catch_error, _dl_receive_error): Likewise.
9625         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9626         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9627         (_dl_deallocate_tls): Likewise.
9628         * include/dlfcn.h (_dl_addr): Likewise.
9629         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9630         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9631         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9632         Likewise.
9634 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9636         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9637         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9638         internal_function.
9639         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9641 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9643         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9644         internal_function.
9645         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9646         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9647         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9648         internal_function from _dl_make_stack_executable_hook member.
9649         (_dl_make_stack_executable): Remove internal_function.
9650         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9651         Likewise.
9652         * sysdeps/unix/sysv/linux/dl-execstack.c
9653         (_dl_make_stack_executable): Likewise.
9655 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9657         * sysdeps/unix/sysv/linux/netlinkaccess.h
9658         (__netlink_assert_response): Remove internal_function.
9659         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9660         (__netlink_assert_response): Likewise.
9662 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9664         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9665         internal_function.
9666         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9668 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9670         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9671         internal_function.
9672         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9673         * inet/netgroup.h (__internal_setnetgrent)
9674         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9675         * inet/getnetgrent_r.c (__internal_setnetgrent)
9676         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9677         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9678         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9679         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9680         * nss/nsswitch.h (db_lookup_function): Likewise.
9682 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9684         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9685         Remove internal_function.
9686         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9687         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9688         message argument on the stack.
9689         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9690         Likeweise.
9692 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9694         Adapt test case data to the changes in the thousands
9695         separators.
9697         [BZ #20756]
9698         * localedata/tst-langinfo.sh: Adapt test case data.
9699         * stdlib/tst-strfmon_l.c: Likewise.
9700         * stdlib/tst-strtod4.c: Likewise.
9701         * stdlib/tst-strtod5i.c: Likewise.
9703 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9705         [BZ #21242]
9706         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9707         Suppress pedantic warning resulting from statement expression.
9708         (__ASSERT_FUNCTION): Add missing __extension__.
9710 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9712         * benchtests/bench-memmove-large.c: Print output in JSON
9713         format.
9714         * benchtests/bench-memmove.c: Likewise.
9716         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9717         * benchtests/bench-memchr.c (do_one_test): Likewise.
9718         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9719         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9720         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9721         * benchtests/bench-memmove.c (do_one_test): Likewise.
9722         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9723         * benchtests/bench-memset.c (do_one_test): Likewise.
9724         * benchtests/bench-string.h (test_init): Remove memsets.
9726 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9728         * manual/lang.texi
9729         (Computing the Width of an Integer Data Type): Rename section to
9730         "Width of an Integer Type".  Remove inaccurate statement regarding
9731         lack of C language facilities for determining width of integer
9732         types, and reorder content to improve flow and context of
9733         discussion.
9735 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9737         * lang.texi (va_copy): Change standard from ISO to C99.
9738         (__va_copy): Add standard and header annotation.
9739         Update description for clarity of origins and current use.
9741 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9743         [BZ #21941]
9744         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9745         xssqrtqp requires operands to be in Vector Registers
9746         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9747         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9748         (__ieee754_sqrtf128): Likewise.
9750 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9752         * sysdeps/aarch64/memcmp.S (memcmp):
9753         Rewrite of optimized memcmp.
9755 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9757         Introduce ld.so exceptions.
9758         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9759         (_dl_exception_create, _dl_exception_create_format)
9760         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9761         (_dl_catch_exception): Declare.
9762         (_dl_catch_error): Update comment.
9763         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9764         errstring, malloced members with exception member.
9765         (_dl_out_of_memory): Remove.
9766         (fatal_error): New function, extracted from _dl_signal_error.
9767         (_dl_signal_exception, _dl_signal_cexception): New functions.
9768         (_dl_signal_error): Call _dl_exception_create to allocate an
9769         exception object.
9770         (_dl_catch_exception): New function, based on _dl_catch_error.
9771         (_dl_catch_error): Implement using _dl_catch_exception.
9772         * elf/dl-exception.c: New file.
9773         * elf/Makefile (dl-routines): Add dl-exception.
9774         (elide-routines.os): Likewise.
9775         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9776         _dl_exception_create_format, _dl_exception_free.
9777         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9778         _dl_signal_exception.
9779         * elf/dl-lookup.c (make_string): Remove.
9780         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9781         _dl_signal_cexception, _dl_exception_free.
9782         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9783         _dl_signal_exception.
9784         * elf/dl-sym.c (do_sym): Likewise.
9785         * elf/dl-version.c (make_string): Remove.
9786         (match_symbol): Use _dl_exception_create_format,
9787         _dl_signal_cexception, _dl_exception_free.
9788         (_dl_check_map_versions): Likewise.
9789         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9790         _dl_catch_exception.
9791         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9792         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9793         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9794         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9795         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9796         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9797         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9798         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9799         Likewise.
9800         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9802         (ld.so): Likewise.
9803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9804         (ld.so): Likewise.
9805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9806         Likewise.
9807         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9808         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9809         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9810         Likewise.
9811         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9812         Likewise.
9813         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9815 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9817         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9818         attribute_hidden, internal_function.
9819         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9820         internal_function.
9822 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9824         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9825         function which calls __builtin_unreachable.
9827 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9829         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9830         Indian monetary formatting
9831         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9832         test cases.
9834 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9836         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9837         Fix typo in comment.
9839         [BZ #21928]
9840         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9841         PTRACE_SEIZE_DEVEL): Remove.
9842         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9843         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9844         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9845         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9846         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9848 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9850         * posix/bits/types.h (__qaddr_t): Remove.
9852         [BZ #21457]
9853         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9854         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9855         __glibc_reserved1.
9856         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9857         (ucontext_t): Use __ctx with uc_flags.
9858         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9859         (__ctxt): Likewise.
9860         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9861         __glibc_reserved1.
9862         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9863         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9864         __glibc_reserved1.
9865         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9866         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9867         __glibc_reserved1.
9868         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9869         macro.
9870         (ucontext_t): Use __ctx with uc_flags.
9871         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9872         (ucontext_t): Use __ctx with uc_flags.
9873         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9874         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9875         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9876         (ucontext_t): Use __ctx with uc_flags.
9877         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9878         undefine further down.
9879         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9880         __glibc_reserved1.
9881         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9882         undefine further down.
9883         (ucontext_t): Use __ctx with uc_flags.
9884         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9885         undefine further down.
9886         (ucontext_t): Use __ctx with uc_flags.
9887         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9888         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9889         Rename uc_pad to __glibc_reserved1.
9890         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9891         undefine further down.
9892         (ucontext_t): Use __ctx with uc_flags.
9893         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9894         further down.
9895         (ucontext_t): Use __ctx with uc_flags.
9896         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9897         __ctx with uc_flags.
9898         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9899         (ucontext_t): Use __ctx with uc_flags.
9900         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9901         __ctx with uc_flags.
9903 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9905         [BZ #21932]
9906         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9907         before early return.
9909 2017-08-09  Andreas Schwab  <schwab@suse.de>
9911         [BZ #21041]
9912         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9913         renamed alias.
9915         [BZ #21041]
9916         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9917         tst-compat-forwarder.
9918         (modules-names): Add tst-compat-forwarder-mod.
9919         ($(objpfx)tst-compat-forwarder): Depend on
9920         $(objpfx)tst-compat-forwarder-mod.so.
9921         * nptl/tst-compat-forwarder.c: New file.
9922         * nptl/tst-compat-forwarder-mod.c: New file.
9924 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9926         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9927         comments.
9929         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9930         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9931         memcpy_falkor.
9932         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9933         Bump.
9934         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9935         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9936         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9937         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9938         Add falkor.
9939         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9940         New macro.
9942 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9944         [BZ #759]
9945         * manual/setjmp.texi (getcontex): Document uc_stack value
9946         compatibility differences.
9948 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9950         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9951         (old_malloc_hook): Likewise.
9952         (old_memalign_hook): Likewise.
9953         (old_realloc_hook): Likewise.
9954         (struct hdr): Likewise.
9955         (flood): Likewise.
9956         (freehook): Likewise.
9957         (mallochook): Likewise.
9958         (memalignhook): Likewise.
9959         (reallochook): Likewise.
9960         (mprobe): Likewise.
9961         * malloc/mtrace.c (mallwatch): Likewise.
9962         (tr_old_free_hook): Likewise.
9963         (tr_old_malloc_hook): Likewise.
9964         (tr_old_realloc_hook): Likewise.
9965         (tr_old_memalign_hook): Likewise.
9966         (tr_where): Likewise.
9967         (lock_and_info): Likewise.
9968         (tr_freehook): Likewise.
9969         (tr_mallochook): Likewise.
9970         (tr_reallochook): Likewise.
9971         (tr_memalignhook): Likewise.
9972         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9973         * misc/mmap.c (__mmap): Likewise.
9974         * misc/mmap64.c (__mmap64): Likewise.
9975         * misc/mprotect.c (__mprotect): Likewise.
9976         * misc/msync.c (msync): Likewise.
9977         * misc/munmap.c (__munmap): Likewise.
9978         * posix/posix_madvise.c (posix_madvise): Likewise.
9979         * socket/send.c (__send): Likewise.
9980         * socket/sendto.c (__sendto): Likewise.
9981         * socket/setsockopt.c (__setsockopt): Likewise.
9982         * string/memcmp.c (__ptr_t): Remove macro.
9983         (MEMCMP): Use void * instead of ptr_t.
9984         * string/memrchr.c (__ptr_t): Remove macro.
9985         (__memrchr): Use void * instead of ptr_t.
9986         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9987         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9988         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9989         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9990         * sysdeps/mach/msync.c (msync): Likewise.
9991         * sysdeps/mach/munmap.c (__munmap): Likewise.
9992         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9993         Likewise.
9994         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9995         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9996         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9997         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9998         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9999         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
10000         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
10001         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
10002         Likewise.
10003         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
10004         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
10005         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
10006         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
10007         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
10008         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
10009         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
10010         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
10011         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
10012         Likewise.
10013         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
10014         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
10015         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
10016         (MEMCMP): Use void * instead of ptr_t.
10017         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
10018         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
10020 2017-08-08  Florian Weimer  <fweimer@redhat.com>
10022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
10023         return statement.
10025 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
10027         [BZ #21913]
10028         * csu/libc-tls.c: Include <startup.h> first.
10029         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
10030         * elf/dl-tunables.c: Include <startup.h> first.
10031         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
10032         * sysdeps/generic/startup.h: New file.
10033         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
10034         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
10035         (I386_USE_SYSENTER): New.  Defined to 0.
10037 2017-08-08  Andreas Schwab  <schwab@suse.de>
10039         [BZ #21041]
10040         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
10041         * nptl/pt-system.c (system): Likewise.
10043 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10045         [BZ #21780]
10046         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
10047         EOPNOTSUPP.
10048         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
10049         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
10050         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
10051         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
10052         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
10053         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
10054         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
10056 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
10058         [BZ #21899]
10059         * bits/sigaction.h (struct sigaction): Define sa_handler and
10060         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
10061         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10062         [__USE_XOPEN_EXTENDED].
10063         (SA_RESTART): Likewise.
10064         (SA_NODEFER): Likewise.
10065         (SA_RESETHAND): Likewise.
10066         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
10067         (struct sigaction): Define sa_handler and sa_sigaction using union
10068         also for [__USE_XOPEN_EXTENDED].
10069         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10070         [__USE_XOPEN_EXTENDED].
10071         (SA_RESTART): Likewise.
10072         (SA_NODEFER): Likewise.
10073         (SA_RESETHAND): Likewise.
10074         * sysdeps/unix/sysv/linux/bits/sigaction.h
10075         (struct sigaction): Define sa_handler and sa_sigaction using union
10076         also for [__USE_XOPEN_EXTENDED].
10077         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10078         [__USE_XOPEN_EXTENDED].
10079         (SA_RESTART): Likewise.
10080         (SA_NODEFER): Likewise.
10081         (SA_RESETHAND): Likewise.
10082         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
10083         (struct sigaction): Define sa_handler and sa_sigaction using union
10084         also for [__USE_XOPEN_EXTENDED].
10085         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10086         [__USE_XOPEN_EXTENDED].
10087         (SA_RESTART): Likewise.
10088         (SA_NODEFER): Likewise.
10089         (SA_RESETHAND): Likewise.
10090         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
10091         (struct sigaction): Define sa_handler and sa_sigaction using union
10092         also for [__USE_XOPEN_EXTENDED].
10093         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10094         [__USE_XOPEN_EXTENDED].
10095         (SA_RESTART): Likewise.
10096         (SA_NODEFER): Likewise.
10097         (SA_RESETHAND): Likewise.
10098         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
10099         (struct sigaction): Define sa_handler and sa_sigaction using union
10100         also for [__USE_XOPEN_EXTENDED].
10101         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10102         [__USE_XOPEN_EXTENDED].
10103         (SA_RESTART): Likewise.
10104         (SA_NODEFER): Likewise.
10105         (SA_RESETHAND): Likewise.
10106         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
10107         (struct sigaction): Define sa_handler and sa_sigaction using union
10108         also for [__USE_XOPEN_EXTENDED].
10109         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10110         [__USE_XOPEN_EXTENDED].
10111         (SA_RESTART): Likewise.
10112         (SA_NODEFER): Likewise.
10113         (SA_RESETHAND): Likewise.
10114         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
10115         (struct sigaction): Define sa_handler and sa_sigaction using union
10116         also for [__USE_XOPEN_EXTENDED].
10117         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10118         [__USE_XOPEN_EXTENDED].
10119         (SA_RESTART): Likewise.
10120         (SA_NODEFER): Likewise.  Define directly rather than as alias.
10121         (SA_RESETHAND): Likewise.
10122         (SA_INTERRUPT): Define only for [__USE_MISC].
10123         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
10124         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
10125         [__USE_MISC].
10126         (SA_STACK): Define only for [__USE_MISC].
10127         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
10128         (struct sigaction): Define sa_handler and sa_sigaction using union
10129         also for [__USE_XOPEN_EXTENDED].
10130         (SA_ONSTACK): Change [__USE_UNIX98] condition to
10131         [__USE_XOPEN_EXTENDED].
10132         (SA_RESTART): Likewise.
10133         (SA_NODEFER): Likewise.
10134         (SA_RESETHAND): Likewise.
10135         (SA_NOPTRACE): Define only for [__USE_MISC].
10137         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
10138         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
10139         (struct catalog_info): Likewise.
10140         * inet/htontest.c (lo): Likewise.
10141         (foo): Likewise.
10142         * inet/inet_lnaof.c (inet_lnaof): Likewise.
10143         * inet/inet_net.c (inet_network): Likewise.
10144         * inet/inet_netof.c (inet_netof): Likewise.
10145         * inet/rcmd.c (__ivaliduser): Likewise.
10146         (iruserok): Likewise.
10147         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
10148         * locale/programs/locale-spec.c (locale_special): Likewise.
10149         * nis/nis_findserv.c (struct findserv_req): Likewise.
10150         (__nis_findfastest_with_timeout): Likewise.
10151         * nss/test-netdb.c (test_network): Likewise.
10152         * resolv/inet_neta.c (inet_neta): Likewise.
10153         * resolv/ns_date.c (ns_datetosecs): Likewise.
10154         (SECS_PER_DAY): Likewise.
10155         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
10156         Likewise.
10157         * resolv/res_comp.c (__putlong): Likewise.
10158         (__putshort): Likewise.
10159         (_getlong): Likewise.
10160         (_getshort): Likewise.
10161         * resolv/res_debug.c (p_time): Likewise.
10162         (precsize_ntoa): Likewise.
10163         (precsize_aton): Likewise.
10164         (latlon2ul): Likewise.
10165         (loc_aton): Likewise.
10166         (loc_ntoa): Likewise.
10167         * resolv/res_hconf.c (struct netaddr): Likewise.
10168         (_res_hconf_reorder_addrs): Likewise.
10169         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
10170         (clnttcp_control): Likewise.
10171         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10172         (clntudp_control): Likewise.
10173         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
10174         (clntunix_control): Likewise.
10175         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
10176         * sunrpc/rpc/auth.h (union des_block): Likewise.
10177         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
10178         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
10179         (xdrrec_create): Likewise.
10180         (xdrrec_endofrecord): Likewise.
10181         (flush_out): Likewise.
10182         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
10183         (xdrstdio_putlong): Likewise.
10184         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
10185         Likewise.
10187         * misc/sys/cdefs.h (__long_double_t): Remove.
10188         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
10189         instead of __long_double_t,
10190         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
10192 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10194         * benchtests/scripts/compare_strings.py: Avoid display error when
10195         running on a text terminal.
10197         * benchtests/scripts/compare_strings.py (main): Add an
10198         optional -base option.
10199         (process_results): New argument base_func.
10201         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
10202         hardcoding memcpy.
10203         * benchtests/bench-memcpy-large.c (test_name): Likewise.
10204         * benchtests/bench-memcpy-random.c (test_name): Likewise.
10206 2017-08-07  Andreas Schwab  <schwab@suse.de>
10208         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
10209         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
10210         * intl/Makefile ($(objpfx)tst-gettext.out)
10211         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
10212         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
10213         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
10214         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
10215         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
10216         * posix/Makefile ($(objpfx)globtest.out)
10217         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
10218         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
10219         ($(objpfx)tst-printf.out): Likewise.
10220         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
10221         ($(objpfx)tst-setcontext3.out): Likewise.
10223 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10225         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10226         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
10227         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
10228         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
10229         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
10230         and mptan-fma.
10231         (CFLAGS-doasin-fma.c): New.
10232         (CFLAGS-dosincos-fma.c): Likewise.
10233         (CFLAGS-e_asin-fma.c): Likewise.
10234         (CFLAGS-e_atan2-fma.c): Likewise.
10235         (CFLAGS-e_exp-fma.c): Likewise.
10236         (CFLAGS-e_log-fma.c): Likewise.
10237         (CFLAGS-e_pow-fma.c): Likewise.
10238         (CFLAGS-halfulp-fma.c): Likewise.
10239         (CFLAGS-mpa-fma.c): Likewise.
10240         (CFLAGS-mpatan-fma.c): Likewise.
10241         (CFLAGS-mpatan2-fma.c): Likewise.
10242         (CFLAGS-mpexp-fma.c): Likewise.
10243         (CFLAGS-mplog-fma.c): Likewise.
10244         (CFLAGS-mpsqrt-fma.c): Likewise.
10245         (CFLAGS-mptan-fma.c): Likewise.
10246         (CFLAGS-s_atan-fma.c): Likewise.
10247         (CFLAGS-sincos32-fma.c): Likewise.
10248         (CFLAGS-slowexp-fma.c): Likewise.
10249         (CFLAGS-slowpow-fma.c): Likewise.
10250         (CFLAGS-s_sin-fma.c): Likewise.
10251         (CFLAGS-s_tan-fma.c): Likewise.
10252         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
10253         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
10254         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
10255         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
10256         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
10257         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10258         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
10259         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
10260         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
10261         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
10262         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
10263         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
10264         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
10265         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10266         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10267         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
10268         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
10269         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
10270         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
10271         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
10272         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
10273         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10274         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10275         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
10276         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10277         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10278         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10279         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
10280         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10281         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10282         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10284 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
10286         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
10287         (min_of_type_f): New macro.
10288         (min_of_type_): Likewise.
10289         (min_of_type_l): Likewise.
10290         (min_of_type_f128): Likewise.
10291         (min_of_type): Define using __MATH_TG and taking an expression
10292         argument.
10293         (math_check_force_underflow): Pass expression instead of type to
10294         min_of_type.
10295         (math_check_force_underflow_nonneg): Likewise.
10297 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10299         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10300         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10301         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10303 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10305         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10306         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10307         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10308         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10309         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10310         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10311         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10312         memmove_chk-nonshared and memset_chk-nonshared
10313         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10314         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10315         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10316         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10317         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10318         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10319         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10320         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10321         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10322         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10323         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10324         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10325         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10326         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10327         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10328         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10329         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10330         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10331         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10332         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10333         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10334         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10335         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10336         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10337         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10338         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10339         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10340         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10341         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10342         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10343         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10344         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10345         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10346         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10347         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10348         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10349         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10350         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10351         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10352         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10353         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10354         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10355         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10356         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10357         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10358         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10359         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10360         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10361         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10362         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10363         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10364         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10365         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10366         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10367         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10368         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10369         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10370         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10371         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10372         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10373         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10374         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10375         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10376         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10377         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10378         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10379         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10380         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10381         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10382         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10383         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10384         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10385         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10386         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10387         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10388         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10389         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10390         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10391         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10392         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10393         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10394         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10395         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10396         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10397         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10398         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10399         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10400         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10401         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10402         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10403         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10404         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10405         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10406         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10407         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10408         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10409         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10410         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10411         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10412         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10413         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10414         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10415         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10416         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10417         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10418         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10419         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10420         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10422 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10424         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10425         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10426         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10427         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10428         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10429         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10430         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10431         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10432         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10433         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10434         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10435         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10436         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10437         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10438         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10439         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10440         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10441         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10442         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10443         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10444         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10445         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10446         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10447         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10448         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10449         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10450         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10451         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10452         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10453         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10454         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10455         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10456         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10457         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10458         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10459         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10460         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10461         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10462         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10463         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10464         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10465         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10466         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10467         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10468         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10469         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10470         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10471         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10472         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10473         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10474         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10475         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10476         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10477         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10478         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10479         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10480         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10481         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10482         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10483         ...
10484         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10485         Don't include <sysdep.h> nor <init-arch.h>.
10486         (_ZGVbN2v_cos): Removed.
10487         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10488         ...
10489         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10490         Don't include <sysdep.h> nor <init-arch.h>.
10491         (_ZGVdN4v_cos): Removed.
10492         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10493         ...
10494         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10495         Don't include <sysdep.h> nor <init-arch.h>.
10496         (_ZGVeN8v_cos): Removed.
10497         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10498         ...
10499         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10500         Don't include <sysdep.h> nor <init-arch.h>.
10501         (_ZGVbN2v_exp): Removed.
10502         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10503         ...
10504         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10505         Don't include <sysdep.h> nor <init-arch.h>.
10506         (_ZGVdN4v_exp): Removed.
10507         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10508         ...
10509         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10510         Don't include <sysdep.h> nor <init-arch.h>.
10511         (_ZGVeN8v_exp): Removed.
10512         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10513         ...
10514         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10515         Don't include <sysdep.h> nor <init-arch.h>.
10516         (_ZGVbN2v_log): Removed.
10517         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10518         ...
10519         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10520         Don't include <sysdep.h> nor <init-arch.h>.
10521         (_ZGVdN4v_log): Removed.
10522         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10523         ...
10524         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10525         Don't include <sysdep.h> nor <init-arch.h>.
10526         (_ZGVeN8v_log): Removed.
10527         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10528         ...
10529         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10530         Don't include <sysdep.h> nor <init-arch.h>.
10531         (_ZGVbN2vv_pow): Removed.
10532         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10533         ...
10534         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10535         Don't include <sysdep.h> nor <init-arch.h>.
10536         (_ZGVdN4vv_pow): Removed.
10537         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10538         ...
10539         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10540         Don't include <sysdep.h> nor <init-arch.h>.
10541         (_ZGVeN8vv_pow): Removed.
10542         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10543         ...
10544         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10545         Don't include <sysdep.h> nor <init-arch.h>.
10546         (_ZGVbN2v_sin): Removed.
10547         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10548         ...
10549         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10550         Don't include <sysdep.h> nor <init-arch.h>.
10551         (_ZGVbN4v_sin): Removed.
10552         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10553         ...
10554         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10555         Don't include <sysdep.h> nor <init-arch.h>.
10556         (_ZGVbN8v_sin): Removed.
10557         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10558         ...
10559         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10560         Don't include <sysdep.h> nor <init-arch.h>.
10561         (_ZGVbN2vvv_sincos): Removed.
10562         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10563         ...
10564         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10565         Don't include <sysdep.h> nor <init-arch.h>.
10566         (_ZGVdN4vvv_sincos): Removed.
10567         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10568         ...
10569         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10570         Don't include <sysdep.h> nor <init-arch.h>.
10571         (_ZGVeN8vvv_sincos): Removed.
10572         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10573         ...
10574         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10575         Don't include <sysdep.h> nor <init-arch.h>.
10576         (_ZGVeN16v_cosf): Removed.
10577         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10578         ...
10579         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10580         Don't include <sysdep.h> nor <init-arch.h>.
10581         (_ZGVbN4v_cosf): Removed.
10582         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10583         ...
10584         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10585         Don't include <sysdep.h> nor <init-arch.h>.
10586         (_ZGVdN8v_cosf): Removed.
10587         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10588         ...
10589         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10590         Don't include <sysdep.h> nor <init-arch.h>.
10591         (_ZGVeN16v_expf): Removed.
10592         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10593         ...
10594         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10595         Don't include <sysdep.h> nor <init-arch.h>.
10596         (_ZGVbN4v_expf): Removed.
10597         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10598         ...
10599         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10600         Don't include <sysdep.h> nor <init-arch.h>.
10601         (_ZGVdN8v_expf): Removed.
10602         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10603         ...
10604         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10605         Don't include <sysdep.h> nor <init-arch.h>.
10606         (_ZGVeN16v_logf): Removed.
10607         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10608         ...
10609         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10610         Don't include <sysdep.h> nor <init-arch.h>.
10611         (_ZGVbN4v_logf): Removed.
10612         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10613         ...
10614         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10615         Don't include <sysdep.h> nor <init-arch.h>.
10616         (_ZGVdN8v_logf): Removed.
10617         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10618         ...
10619         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10620         Don't include <sysdep.h> nor <init-arch.h>.
10621         (_ZGVeN16vv_powf): Removed.
10622         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10623         ...
10624         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10625         Don't include <sysdep.h> nor <init-arch.h>.
10626         (_ZGVbN4vv_powf): Removed.
10627         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10628         ...
10629         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10630         Don't include <sysdep.h> nor <init-arch.h>.
10631         (_ZGVdN8vv_powf): Removed.
10632         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10633         ...
10634         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10635         Don't include <sysdep.h> nor <init-arch.h>.
10636         (_ZGVeN16vvv_sincosf): Removed.
10637         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10638         ...
10639         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10640         Don't include <sysdep.h> nor <init-arch.h>.
10641         (_ZGVbN4vvv_sincosf): Removed.
10642         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10643         ...
10644         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10645         Don't include <sysdep.h> nor <init-arch.h>.
10646         (_ZGVdN8vvv_sincosf): Removed.
10647         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10648         ...
10649         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10650         Don't include <sysdep.h> nor <init-arch.h>.
10651         (_ZGVeN16v_sinf): Removed.
10652         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10653         ...
10654         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10655         Don't include <sysdep.h> nor <init-arch.h>.
10656         (_ZGVbN4v_sinf): Removed.
10657         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10658         ...
10659         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10660         Don't include <sysdep.h> nor <init-arch.h>.
10661         (_ZGVdN8v_sinf): Removed.
10663 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10665         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10666         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10667         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10668         s_rint-sse4_1 and s_rintf-sse4_1.
10669         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10670         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10671         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10672         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10673         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10674         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10675         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10676         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10677         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10678         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10679         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10680         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10681         (__ceil): Removed.
10682         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10683         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10684         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10685         (__ceilf): Removed.
10686         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10687         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10688         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10689         (__floor): Removed.
10690         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10691         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10692         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10693         (__floorf): Removed.
10694         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10695         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10696         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10697         (__nearbyint): Removed.
10698         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10699         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10700         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10701         (__nearbyintf): Removed.
10702         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10703         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10704         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10705         (__rint): Removed.
10706         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10707         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10708         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10709         (__rintf): Removed.
10711 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10713         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10714         SHARED.  Avoid dynamic relocation against main in static PIE.
10716 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10718         [BZ #21815]
10719         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10720         (LDFLAGS-tst-prelink): Likewise.
10722 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10724         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10725         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10726         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10727         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10728         (INTERNAL_SYSCALL_NCS): Likewise.
10729         (LOADARGS_1): Likewise.
10730         (LOADARGS_5): Likewise.
10731         (RESTOREARGS_1): Likewise.
10732         (RESTOREARGS_5): Likewise.
10734 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10736         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10737         (MEMPCPY_SYMBOL): Likewise.
10738         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10739         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10740         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10741         in libc.a.
10742         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10743         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10744         Likewise.
10745         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10746         (__hidden_ver1): Don't use in libc.a.
10747         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10748         (__mempcpy): Don't create a weak alias in libc.a.
10749         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10750         libc.a.
10751         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10752         (__hidden_ver1): Don't use in libc.a.
10754 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10756         * config.make.in (have-insert): New.
10757         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10758         supports INSERT in linker script.
10759         (AC_SUBST(libc_cv_insert): New.
10760         * configure: Regenerated.
10761         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10762         if $(have-insert) == yes.
10764 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10766         * elf/Makefile (tests): Add vismain only if
10767         $(have-protected-data) == yes.
10768         (tests-pie): Likewise.
10770 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10772         [BZ #21871]
10773         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10774         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10776 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10778         [BZ #21790]
10779         * sysdeps/i386/i586/memset.S
10780         (__memset_zero_constant_len_parameter): Removed.
10781         * sysdeps/i386/i686/memset.S
10782         (__memset_zero_constant_len_parameter): Likewise.
10783         * sysdeps/i386/i686/multiarch/memset_chk.S
10784         (__memset_zero_constant_len_parameter): Likewise.
10785         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10786         Likewise.
10788 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10790         * stdlib/getentropy.c (getentropy): Change return type to int.
10792 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10794         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10796 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10798         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10799         u_intN_t.
10800         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10801         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10802         Likewise.
10803         (ieee_float_shape_type): Likewise.
10804         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10805         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10806         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10807         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10808         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10809         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10810         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10811         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10812         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10813         Likewise.
10814         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10815         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10816         (__ieee754_yn): Likewise.
10817         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10818         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10819         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10820         Likewise.
10821         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10822         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10823         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10824         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10825         (__erfc): Likewise.
10826         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10827         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10828         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10829         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10830         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10831         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10832         Likewise.
10833         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10834         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10835         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10836         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10837         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10838         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10839         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10840         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10841         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10842         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10843         (__issignaling): Likewise.
10844         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10845         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10846         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10847         Likewise.
10848         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10849         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10850         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10851         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10852         Likewise.
10853         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10854         Likewise.
10855         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10856         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10857         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10858         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10859         (__erfcf): Likewise.
10860         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10861         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10862         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10863         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10864         Likewise.
10865         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10866         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10867         Likewise.
10868         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10869         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10870         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10871         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10872         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10873         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10874         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10875         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10876         Likewise.
10877         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10878         Likewise.
10879         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10880         Likewise.
10881         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10882         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10883         Likewise.
10884         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10885         Likewise.
10886         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10887         (__ieee754_ynl): Likewise.
10888         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10889         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10890         Likewise.
10891         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10892         Likewise.
10893         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10894         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10895         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10896         Likewise.
10897         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10898         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10899         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10900         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10901         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10902         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10903         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10904         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10905         Likewise.
10906         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10907         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10908         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10909         Likewise.
10910         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10911         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10912         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10913         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10914         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10915         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10916         Likewise.
10917         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10918         Likewise.
10919         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10920         Likewise.
10921         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10922         Likewise.
10923         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10924         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10925         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10926         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10927         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10928         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10929         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10930         Likewise.
10931         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10932         Likewise.
10933         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10934         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10935         Likewise.
10936         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10937         (__ieee754_remainderl): Likewise.
10938         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10939         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10940         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10941         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10942         Likewise.
10943         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10944         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10945         Likewise.
10946         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10947         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10948         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10949         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10950         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10951         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10952         Likewise.
10953         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10954         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10955         (__ieee754_y0l): Likewise.
10956         (pzero): Likewise.
10957         (qzero): Likewise.
10958         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10959         (__ieee754_y1l): Likewise.
10960         (pone): Likewise.
10961         (qone): Likewise.
10962         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10963         (__ieee754_ynl): Likewise.
10964         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10965         (__ieee754_lgammal_r): Likewise.
10966         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10967         Likewise.
10968         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10969         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10970         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10971         (__erfcl): Likewise.
10972         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10973         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10974         Likewise.
10975         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10976         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10977         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10978         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10979         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10980         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10981         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10982         Likewise.
10983         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10984         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10985         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10986         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10987         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10988         Likewise.
10989         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10990         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10991         Likewise.
10992         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10993         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10994         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10995         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10996         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10998 2017-08-03  Florian Weimer  <fweimer@redhat.com>
11000         [BZ #21885]
11001         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
11002         on memory allocation failure.
11004 2017-08-03  Alan Modra  <amodra@gmail.com>
11006         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
11007         tst-tlsopt-powerpc.c with function name change and no test harness.
11008         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
11009         Call tls_get_addr_opt_test.
11010         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
11011         (modules-names): Add mod-tlsopt-powerpc.
11012         (mod-tlsopt-powerpc.so-no-z-defs): Define.
11013         (tst-tlsopt-powerpc): Depend on .so.
11014         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
11015         define.  Expand use in TLS_GD and TLS_LD.
11017 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11019         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
11020         function.
11021         * sysdeps/posix/shm_open.c: Include <pthread.h>.
11023 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11025         [BZ #21686]
11026         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
11027         comparing size with that of double.
11028         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11029         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11030         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11031         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11032         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11033         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
11034         unsigned __int128 types.
11036 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
11038         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
11039         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
11040         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
11041         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
11042         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
11044 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11046         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
11048 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11050         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
11051         of SHARED.
11052         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
11053         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11054         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11055         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11056         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11057         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11058         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11060 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
11062         [BZ #21685]
11063         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
11064         bit-field expressions passed to sizeof or typeof.
11065         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11066         (__TGMATH_F128): Likewise.
11067         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11068         (__TGMATH_CF128): Likewise.
11069         (__TGMATH_UNARY_REAL_ONLY): Likewise.
11070         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
11071         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
11072         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
11073         (__TGMATH_BINARY_REAL_ONLY): Likewise.
11074         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11075         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11076         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
11077         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11078         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
11079         (__TGMATH_UNARY_REAL_IMAG): Likewise.
11080         (__TGMATH_UNARY_IMAG): Likewise.
11081         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
11082         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11083         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
11084         type.
11085         (define_vars_for_type): Handle bit_field type specially.
11086         (Tests.__init__): Declare structure with bit-field element.
11088 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11090         [BZ #21791]
11091         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
11092         (MEMCPY_CHK): Define only if SHARED is defined.
11093         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
11094         Likewise.
11095         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
11096         Likewise.
11098 See ChangeLog.18 for earlier changes.