nptl: Add workaround for ASSERT_PTHREAD_INTERNAL_SIZE with GCC 4.9
[glibc.git] / ChangeLog
blobc72be0c3012e67426a0bf8d24f113d71525af238
1 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
4         -Wmissing-braces on GCC 4.9.
6 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
8         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
9         * sysdeps/s390/s390-32/start.S (_start): Likewise
10         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
11         (thread_start): Likewise.
12         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
13         (thread_start): Likewise.
14         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
15         (__makecontext_ret): Likewise.
16         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
17         (__makecontext_ret): Likewise.
19 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
21         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22         __wcschrnul): Remove attribute_hidden.
24 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26         regex: don't assume uint64_t or uint32_t
27         This avoids -Werror=overflow errors for 32-bit systems in
28         the 64-bit case.  Problem reported by Joseph Myers in:
29         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
30         Also, when this code is used in Gnulib it ports to platforms
31         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
32         them, and on some 32-bit compilers there is no uint64_t.
33         Problem reported by Gianluigi Tiesi in:
34         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
35         * posix/regcomp.c (init_word_char): Don't assume that the types
36         uint64_t and uint32_t exist.  Adapted from Gnulib patch
37         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
38         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
40 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
42         * sysdeps/aarch64/memset-reg.h: New file.
43         * sysdeps/aarch64/memset.S: Use it.
44         (__memset): Rename to MEMSET macro.
45         [ZVA_MACRO]: Use zva_macro.
46         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
47         Add memset_generic and memset_falkor.
48         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
49         (__libc_ifunc_impl_list): Add memset ifuncs.
50         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
51         local variable zva_size.
52         * sysdeps/aarch64/multiarch/memset.c: New file.
53         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
54         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
55         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
56         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
57         (DCZID_DZP_MASK): New macro.
58         (DCZID_BS_MASK): Likewise.
59         (init_cpu_features): Read and set zva_size.
60         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
61         (struct cpu_features): New member zva_size.
63         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
64         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
65         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
67         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
68         backwards.  Fix timing computation.
69         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
70         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
71         on memset by N at a time.  Fix timing computation.
73 2017-11-20  Florian Weimer  <fweimer@redhat.com>
75         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
76         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
78 2017-11-19  Florian Weimer  <fweimer@redhat.com>
80         manual: Document mprotect
81         * manual/memory.texi (Memory Protection): New section.
82         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
83         documentation of PROT_* flags and reference the Memory Protection
84         section instead.
86 2017-11-19  Florian Weimer  <fweimer@redhat.com>
88         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
89         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
90         (Scatter-Gather): ... to here.  Remove misleading comment.
92 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
94         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
95         style.
97         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
98         when /proc/<pid>/setgroups does not exist.
100 2017-11-18  Florian Weimer  <fweimer@redhat.com>
102         * sysdeps/unix/sysv/linux/tst-ttyname.c
103         (become_root_in_mount_ns): Remove.
104         (do_in_chroot_1): Call support_enter_mount_namespace.
105         (do_in_chroot_2): Likewise.
106         (do_test): Call support_become_root early.
108 2017-11-18  Florian Weimer  <fweimer@redhat.com>
110         * support/namespace.h (support_enter_mount_namespace): Declare.
111         * support/support_enter_mount_namespace.c: New file.
112         * support/Makefile (libsupport-routines): Add
113         support_enter_mount_namespace.
115 2017-11-18  Florian Weimer  <fweimer@redhat.com>
117         * support/temp_file.c (support_create_temp_directory): Use
118         test_dir and do not rely on the presence of the XXXXXX suffix.
119         * support/temp_file.h (support_create_temp_directory): Update
120         comment.
121         * support/tst-xreadlink.c (do_test): Adjust.
122         * support/support_chroot.c (support_chroot_create): Likewise.
124 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
126         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
127         macro.
128         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
129         htm-no-suspend.
131 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
133         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
134         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
135         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
136         (ceill): Define using libm_alias_ldouble.
137         * sysdeps/x86_64/fpu/s_copysignl.S: Include
138         <libm-alias-ldouble.h>.
139         (copysignl): Define using libm_alias_ldouble.
140         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
141         (fabsl): Define using libm_alias_ldouble.
142         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
143         (floorl): Define using libm_alias_ldouble.
144         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
145         (fmaxl): Define using libm_alias_ldouble.
146         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
147         (fminl): Define using libm_alias_ldouble.
148         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
149         (llrintl): Define using libm_alias_ldouble.
150         (lrintl): Likewise.
151         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
152         <libm-alias-ldouble.h>.
153         (nearbyintl): Define using libm_alias_ldouble.
154         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
155         (truncl): Define using libm_alias_ldouble.
156         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
157         <libm-alias-ldouble.h>.
158         (lrintl): Define using libm_alias_ldouble.
160         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
161         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
162         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
163         (asinhl): Define using libm_alias_ldouble.
164         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
165         (atanl): Define using libm_alias_ldouble.
166         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
167         (cbrtl): Define using libm_alias_ldouble.
168         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
169         (ceill): Define using libm_alias_ldouble.
170         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
171         (copysignl): Define using libm_alias_ldouble.
172         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
173         (fabsl): Define using libm_alias_ldouble.
174         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
175         (floorl): Define using libm_alias_ldouble.
176         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
177         (fmaxl): Define using libm_alias_ldouble.
178         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
179         (fminl): Define using libm_alias_ldouble.
180         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
181         (frexpl): Define using libm_alias_ldouble.
182         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
183         (llrintl): Define using libm_alias_ldouble.
184         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
185         (logbl): Define using libm_alias_ldouble.
186         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
187         (lrintl): Define using libm_alias_ldouble.
188         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
189         (nearbyintl): Define using libm_alias_ldouble.
190         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
191         (nextafterl): Define using libm_alias_ldouble.
192         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
193         (remquol): Define using libm_alias_ldouble.
194         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
195         (rintl): Define using libm_alias_ldouble.
196         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
197         (truncl): Define using libm_alias_ldouble.
198         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
199         (fmaxl): Define using libm_alias_ldouble.
200         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
201         (fminl): Define using libm_alias_ldouble.
203         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
204         to C syntax instead of availability and properties of types.
205         * bits/floatn.h [!__ASSEMBLER]: Likewise.
206         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
207         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
208         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
209         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
210         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
212 2017-11-17  Florian Weimer  <fweimer@redhat.com>
214         support_become_root: Enable file creation in namespaces.
215         * support/support_become_root.c (setup_mapping): New function.
216         (support_become_root): Call it.
218 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
220         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
221         macro.
223 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
225         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
226         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
228 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
230         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
232         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
233         version to 4.14.
235 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
237         * INSTALL: Fix botched up regeneration.
239         * NEWS: Update sourceare link to https.
240         * configure.ac: Likewise.
241         * crypt/md5test-giant.c: Likewise.
242         * dlfcn/bug-atexit1.c: Likewise.
243         * dlfcn/bug-atexit2.c: Likewise.
244         * localedata/README: Likewise.
245         * malloc/tst-mallocfork.c: Likewise.
246         * manual/install.texi: Likewise.
247         * nptl/tst-pthread-getattr.c: Likewise.
248         * stdio-common/tst-fgets.c: Likewise.
249         * stdio-common/tst-fwrite.c: Likewise.
250         * sunrpc/Makefile: Likewise.
251         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
252         * wcsmbs/tst-mbrtowc2.c: Likewise.
253         * configure: Regenerate.
254         * INSTALL: Regenerate.
256 2017-11-15  Martin Sebor  <msebor@redhat.com>
258         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
259         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
260         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
262 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
264         [BZ #22145]
265         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
266         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
268         [BZ #22145]
269         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
270         Defer is_pty check until end of the function.
271         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
273         [BZ #22145]
274         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
275         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
276         (ttyname): Likewise.
277         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
278         (__ttyname_r): Likewise.
280         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
281         int to bool.
283         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
285         * manual/terminal.texi (Is It a Terminal):
286         Mention ENODEV for ttyname and ttyname_r.
288 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
290         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
291         constant and macro.
293         * sysdeps/unix/sysv/linux/bits/mman-linux.h
294         [__USE_MISC] (MADV_WIPEONFORK): New macro.
295         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
296         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
297         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
298         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
300 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
302         * signal/sigrelse.c (sigrelse): Optimize implementation.
304         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
305         (__sigpause): Rely on __sigsuspend to implement single thread
306         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
308 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
310         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
311         kernel version to 4.14.
313 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
315         [BZ #22442]
316         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
317         Check if ifname is too long.
319 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
321         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
323 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
325         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
326         was accidentally lost.
328 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
330         * localedata/locales/az_IR: Add standard copyright header.
332 2017-11-15  Florian Weimer  <fweimer@redhat.com>
334         [BZ #22439]
335         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
336         not just the top one.  Output a new "subheaps" statistic.
338 2017-11-15  Florian Weimer  <fweimer@redhat.com>
340         [BZ #22408]
341         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
342         under the per-arena lock.
343         * malloc/Makefile (tests): Add tst-malloc_info.
344         (tst-malloc_info): Link with libpthread.
345         * malloc/tst-malloc_info.c: New file.
347 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
349         [BZ #21660]
350         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
351         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
352         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
353         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
354         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
355         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
356         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
357         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
358         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
359         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
360         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
361         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
362         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
363         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
364         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
365         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
366         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
367         (__floating_type): Likewise.
368         (__real_integer_type): Likewise.
369         (__complex_integer_type): Likewise.
370         (__expr_is_real): Likewise.
371         (__tgmath_real_type_sub): Likewise.
372         (__tgmath_real_type): Likewise.
373         (__tgmath_complex_type_sub): Likewise.
374         (__tgmath_complex_type): Likewise.
375         (__TGMATH_F128): Likewise.
376         (__TGMATH_CF128): Likewise.
377         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
378         new macros.
379         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
380         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
381         Likewise.
382         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
383         Likewise.
384         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
385         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
386         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
387         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
388         Likewise.
389         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
390         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
391         Likewise.
392         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
393         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
394         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
395         Likewise.
396         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
397         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
398         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
399         (cimag): Likewise.
400         (creal): Likewise.
402 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
404         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
405         for stpncpy calls for GCC 8.
406         (test_strncat): Disable -Wstringop-truncation warning for strncat
407         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
408         strncat call for GCC 7.
409         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
410         calls for GCC 8.
411         (test_memcmp): Use memcpy instead of strncpy for calls not copying
412         trailing NUL.
414         * string/bug-strncat1.c: Include <libc-diag.h>.
415         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
417 2017-11-13  Claude Paroz <claude@2xlibre.net>
419         [BZ #22387]
420         * localedata/locales/aa_DJ: Improved readibility by replacing
421         <Uxxxx> sequences in the ASCII printable range by their ASCII
422         character equivalents.
423         * localedata/locales/aa_ER: Likewise.
424         * localedata/locales/aa_ER@saaho: Likewise.
425         * localedata/locales/aa_ET: Likewise.
426         * localedata/locales/af_ZA: Likewise.
427         * localedata/locales/agr_PE: Likewise.
428         * localedata/locales/ak_GH: Likewise.
429         * localedata/locales/am_ET: Likewise.
430         * localedata/locales/anp_IN: Likewise.
431         * localedata/locales/ar_AE: Likewise.
432         * localedata/locales/ar_BH: Likewise.
433         * localedata/locales/ar_DZ: Likewise.
434         * localedata/locales/ar_EG: Likewise.
435         * localedata/locales/ar_IN: Likewise.
436         * localedata/locales/ar_IQ: Likewise.
437         * localedata/locales/ar_JO: Likewise.
438         * localedata/locales/ar_KW: Likewise.
439         * localedata/locales/ar_LB: Likewise.
440         * localedata/locales/ar_LY: Likewise.
441         * localedata/locales/ar_MA: Likewise.
442         * localedata/locales/ar_OM: Likewise.
443         * localedata/locales/ar_QA: Likewise.
444         * localedata/locales/ar_SA: Likewise.
445         * localedata/locales/ar_SD: Likewise.
446         * localedata/locales/ar_SS: Likewise.
447         * localedata/locales/ar_SY: Likewise.
448         * localedata/locales/ar_TN: Likewise.
449         * localedata/locales/ar_YE: Likewise.
450         * localedata/locales/as_IN: Likewise.
451         * localedata/locales/ast_ES: Likewise.
452         * localedata/locales/ayc_PE: Likewise.
453         * localedata/locales/az_AZ: Likewise.
454         * localedata/locales/az_IR: Likewise.
455         * localedata/locales/be_BY: Likewise.
456         * localedata/locales/be_BY@latin: Likewise.
457         * localedata/locales/bem_ZM: Likewise.
458         * localedata/locales/ber_DZ: Likewise.
459         * localedata/locales/ber_MA: Likewise.
460         * localedata/locales/bg_BG: Likewise.
461         * localedata/locales/bhb_IN: Likewise.
462         * localedata/locales/bho_IN: Likewise.
463         * localedata/locales/bi_VU: Likewise.
464         * localedata/locales/bn_BD: Likewise.
465         * localedata/locales/bn_IN: Likewise.
466         * localedata/locales/bo_CN: Likewise.
467         * localedata/locales/bo_IN: Likewise.
468         * localedata/locales/br_FR: Likewise.
469         * localedata/locales/brx_IN: Likewise.
470         * localedata/locales/bs_BA: Likewise.
471         * localedata/locales/byn_ER: Likewise.
472         * localedata/locales/ca_AD: Likewise.
473         * localedata/locales/ca_ES: Likewise.
474         * localedata/locales/ca_FR: Likewise.
475         * localedata/locales/ca_IT: Likewise.
476         * localedata/locales/ce_RU: Likewise.
477         * localedata/locales/chr_US: Likewise.
478         * localedata/locales/cmn_TW: Likewise.
479         * localedata/locales/crh_UA: Likewise.
480         * localedata/locales/cs_CZ: Likewise.
481         * localedata/locales/csb_PL: Likewise.
482         * localedata/locales/cv_RU: Likewise.
483         * localedata/locales/cy_GB: Likewise.
484         * localedata/locales/da_DK: Likewise.
485         * localedata/locales/de_AT: Likewise.
486         * localedata/locales/de_BE: Likewise.
487         * localedata/locales/de_CH: Likewise.
488         * localedata/locales/de_DE: Likewise.
489         * localedata/locales/de_IT: Likewise.
490         * localedata/locales/de_LI: Likewise.
491         * localedata/locales/de_LU: Likewise.
492         * localedata/locales/doi_IN: Likewise.
493         * localedata/locales/dv_MV: Likewise.
494         * localedata/locales/dz_BT: Likewise.
495         * localedata/locales/el_CY: Likewise.
496         * localedata/locales/el_GR: Likewise.
497         * localedata/locales/en_AG: Likewise.
498         * localedata/locales/en_AU: Likewise.
499         * localedata/locales/en_BW: Likewise.
500         * localedata/locales/en_CA: Likewise.
501         * localedata/locales/en_DK: Likewise.
502         * localedata/locales/en_GB: Likewise.
503         * localedata/locales/en_HK: Likewise.
504         * localedata/locales/en_IE: Likewise.
505         * localedata/locales/en_IL: Likewise.
506         * localedata/locales/en_IN: Likewise.
507         * localedata/locales/en_NG: Likewise.
508         * localedata/locales/en_NZ: Likewise.
509         * localedata/locales/en_PH: Likewise.
510         * localedata/locales/en_SG: Likewise.
511         * localedata/locales/en_US: Likewise.
512         * localedata/locales/en_ZA: Likewise.
513         * localedata/locales/en_ZM: Likewise.
514         * localedata/locales/en_ZW: Likewise.
515         * localedata/locales/eo: Likewise.
516         * localedata/locales/es_AR: Likewise.
517         * localedata/locales/es_BO: Likewise.
518         * localedata/locales/es_CL: Likewise.
519         * localedata/locales/es_CO: Likewise.
520         * localedata/locales/es_CR: Likewise.
521         * localedata/locales/es_CU: Likewise.
522         * localedata/locales/es_DO: Likewise.
523         * localedata/locales/es_EC: Likewise.
524         * localedata/locales/es_ES: Likewise.
525         * localedata/locales/es_GT: Likewise.
526         * localedata/locales/es_HN: Likewise.
527         * localedata/locales/es_MX: Likewise.
528         * localedata/locales/es_NI: Likewise.
529         * localedata/locales/es_PA: Likewise.
530         * localedata/locales/es_PE: Likewise.
531         * localedata/locales/es_PR: Likewise.
532         * localedata/locales/es_PY: Likewise.
533         * localedata/locales/es_SV: Likewise.
534         * localedata/locales/es_US: Likewise.
535         * localedata/locales/es_UY: Likewise.
536         * localedata/locales/es_VE: Likewise.
537         * localedata/locales/et_EE: Likewise.
538         * localedata/locales/eu_ES: Likewise.
539         * localedata/locales/eu_ES@euro: Likewise.
540         * localedata/locales/fa_IR: Likewise.
541         * localedata/locales/ff_SN: Likewise.
542         * localedata/locales/fi_FI: Likewise.
543         * localedata/locales/fil_PH: Likewise.
544         * localedata/locales/fo_FO: Likewise.
545         * localedata/locales/fr_BE: Likewise.
546         * localedata/locales/fr_CA: Likewise.
547         * localedata/locales/fr_CH: Likewise.
548         * localedata/locales/fr_FR: Likewise.
549         * localedata/locales/fr_LU: Likewise.
550         * localedata/locales/fur_IT: Likewise.
551         * localedata/locales/fy_DE: Likewise.
552         * localedata/locales/fy_NL: Likewise.
553         * localedata/locales/ga_IE: Likewise.
554         * localedata/locales/gd_GB: Likewise.
555         * localedata/locales/gez_ER: Likewise.
556         * localedata/locales/gez_ET: Likewise.
557         * localedata/locales/gl_ES: Likewise.
558         * localedata/locales/gu_IN: Likewise.
559         * localedata/locales/gv_GB: Likewise.
560         * localedata/locales/ha_NG: Likewise.
561         * localedata/locales/hak_TW: Likewise.
562         * localedata/locales/he_IL: Likewise.
563         * localedata/locales/hi_IN: Likewise.
564         * localedata/locales/hif_FJ: Likewise.
565         * localedata/locales/hne_IN: Likewise.
566         * localedata/locales/hr_HR: Likewise.
567         * localedata/locales/hsb_DE: Likewise.
568         * localedata/locales/ht_HT: Likewise.
569         * localedata/locales/hu_HU: Likewise.
570         * localedata/locales/hy_AM: Likewise.
571         * localedata/locales/i18n: Likewise.
572         * localedata/locales/ia_FR: Likewise.
573         * localedata/locales/id_ID: Likewise.
574         * localedata/locales/ig_NG: Likewise.
575         * localedata/locales/ik_CA: Likewise.
576         * localedata/locales/is_IS: Likewise.
577         * localedata/locales/it_CH: Likewise.
578         * localedata/locales/it_IT: Likewise.
579         * localedata/locales/iu_CA: Likewise.
580         * localedata/locales/ja_JP: Likewise.
581         * localedata/locales/ka_GE: Likewise.
582         * localedata/locales/kk_KZ: Likewise.
583         * localedata/locales/kl_GL: Likewise.
584         * localedata/locales/kn_IN: Likewise.
585         * localedata/locales/ko_KR: Likewise.
586         * localedata/locales/kok_IN: Likewise.
587         * localedata/locales/ks_IN: Likewise.
588         * localedata/locales/ks_IN@devanagari: Likewise.
589         * localedata/locales/ku_TR: Likewise.
590         * localedata/locales/kw_GB: Likewise.
591         * localedata/locales/ky_KG: Likewise.
592         * localedata/locales/lb_LU: Likewise.
593         * localedata/locales/lg_UG: Likewise.
594         * localedata/locales/li_BE: Likewise.
595         * localedata/locales/li_NL: Likewise.
596         * localedata/locales/lij_IT: Likewise.
597         * localedata/locales/ln_CD: Likewise.
598         * localedata/locales/lo_LA: Likewise.
599         * localedata/locales/lt_LT: Likewise.
600         * localedata/locales/lv_LV: Likewise.
601         * localedata/locales/lzh_TW: Likewise.
602         * localedata/locales/mag_IN: Likewise.
603         * localedata/locales/mai_IN: Likewise.
604         * localedata/locales/mg_MG: Likewise.
605         * localedata/locales/mhr_RU: Likewise.
606         * localedata/locales/mi_NZ: Likewise.
607         * localedata/locales/mk_MK: Likewise.
608         * localedata/locales/ml_IN: Likewise.
609         * localedata/locales/mn_MN: Likewise.
610         * localedata/locales/mni_IN: Likewise.
611         * localedata/locales/mr_IN: Likewise.
612         * localedata/locales/ms_MY: Likewise.
613         * localedata/locales/mt_MT: Likewise.
614         * localedata/locales/my_MM: Likewise.
615         * localedata/locales/nan_TW: Likewise.
616         * localedata/locales/nan_TW@latin: Likewise.
617         * localedata/locales/nb_NO: Likewise.
618         * localedata/locales/nds_DE: Likewise.
619         * localedata/locales/nds_NL: Likewise.
620         * localedata/locales/ne_NP: Likewise.
621         * localedata/locales/nhn_MX: Likewise.
622         * localedata/locales/niu_NU: Likewise.
623         * localedata/locales/niu_NZ: Likewise.
624         * localedata/locales/nl_AW: Likewise.
625         * localedata/locales/nl_BE: Likewise.
626         * localedata/locales/nl_NL: Likewise.
627         * localedata/locales/nn_NO: Likewise.
628         * localedata/locales/nr_ZA: Likewise.
629         * localedata/locales/nso_ZA: Likewise.
630         * localedata/locales/oc_FR: Likewise.
631         * localedata/locales/om_ET: Likewise.
632         * localedata/locales/om_KE: Likewise.
633         * localedata/locales/or_IN: Likewise.
634         * localedata/locales/os_RU: Likewise.
635         * localedata/locales/pa_IN: Likewise.
636         * localedata/locales/pa_PK: Likewise.
637         * localedata/locales/pap_AW: Likewise.
638         * localedata/locales/pap_CW: Likewise.
639         * localedata/locales/pl_PL: Likewise.
640         * localedata/locales/ps_AF: Likewise.
641         * localedata/locales/pt_BR: Likewise.
642         * localedata/locales/pt_PT: Likewise.
643         * localedata/locales/quz_PE: Likewise.
644         * localedata/locales/raj_IN: Likewise.
645         * localedata/locales/ro_RO: Likewise.
646         * localedata/locales/ru_RU: Likewise.
647         * localedata/locales/ru_UA: Likewise.
648         * localedata/locales/rw_RW: Likewise.
649         * localedata/locales/sa_IN: Likewise.
650         * localedata/locales/sat_IN: Likewise.
651         * localedata/locales/sc_IT: Likewise.
652         * localedata/locales/sd_IN: Likewise.
653         * localedata/locales/sd_IN@devanagari: Likewise.
654         * localedata/locales/se_NO: Likewise.
655         * localedata/locales/sgs_LT: Likewise.
656         * localedata/locales/shs_CA: Likewise.
657         * localedata/locales/si_LK: Likewise.
658         * localedata/locales/sid_ET: Likewise.
659         * localedata/locales/sk_SK: Likewise.
660         * localedata/locales/sl_SI: Likewise.
661         * localedata/locales/sm_WS: Likewise.
662         * localedata/locales/so_DJ: Likewise.
663         * localedata/locales/so_ET: Likewise.
664         * localedata/locales/so_KE: Likewise.
665         * localedata/locales/so_SO: Likewise.
666         * localedata/locales/sq_AL: Likewise.
667         * localedata/locales/sq_MK: Likewise.
668         * localedata/locales/sr_ME: Likewise.
669         * localedata/locales/sr_RS: Likewise.
670         * localedata/locales/sr_RS@latin: Likewise.
671         * localedata/locales/ss_ZA: Likewise.
672         * localedata/locales/st_ZA: Likewise.
673         * localedata/locales/sv_FI: Likewise.
674         * localedata/locales/sv_SE: Likewise.
675         * localedata/locales/sw_KE: Likewise.
676         * localedata/locales/sw_TZ: Likewise.
677         * localedata/locales/szl_PL: Likewise.
678         * localedata/locales/ta_IN: Likewise.
679         * localedata/locales/ta_LK: Likewise.
680         * localedata/locales/tcy_IN: Likewise.
681         * localedata/locales/te_IN: Likewise.
682         * localedata/locales/tg_TJ: Likewise.
683         * localedata/locales/th_TH: Likewise.
684         * localedata/locales/the_NP: Likewise.
685         * localedata/locales/ti_ER: Likewise.
686         * localedata/locales/ti_ET: Likewise.
687         * localedata/locales/tig_ER: Likewise.
688         * localedata/locales/tk_TM: Likewise.
689         * localedata/locales/tl_PH: Likewise.
690         * localedata/locales/tn_ZA: Likewise.
691         * localedata/locales/to_TO: Likewise.
692         * localedata/locales/tpi_PG: Likewise.
693         * localedata/locales/tr_CY: Likewise.
694         * localedata/locales/tr_TR: Likewise.
695         * localedata/locales/ts_ZA: Likewise.
696         * localedata/locales/tt_RU: Likewise.
697         * localedata/locales/tt_RU@iqtelif: Likewise.
698         * localedata/locales/ug_CN: Likewise.
699         * localedata/locales/uk_UA: Likewise.
700         * localedata/locales/unm_US: Likewise.
701         * localedata/locales/ur_IN: Likewise.
702         * localedata/locales/ur_PK: Likewise.
703         * localedata/locales/uz_UZ: Likewise.
704         * localedata/locales/uz_UZ@cyrillic: Likewise.
705         * localedata/locales/ve_ZA: Likewise.
706         * localedata/locales/vi_VN: Likewise.
707         * localedata/locales/wa_BE: Likewise.
708         * localedata/locales/wae_CH: Likewise.
709         * localedata/locales/wal_ET: Likewise.
710         * localedata/locales/wo_SN: Likewise.
711         * localedata/locales/xh_ZA: Likewise.
712         * localedata/locales/yi_US: Likewise.
713         * localedata/locales/yo_NG: Likewise.
714         * localedata/locales/yue_HK: Likewise.
715         * localedata/locales/yuw_PG: Likewise.
716         * localedata/locales/zh_CN: Likewise.
717         * localedata/locales/zh_HK: Likewise.
718         * localedata/locales/zh_SG: Likewise.
719         * localedata/locales/zh_TW: Likewise.
720         * localedata/locales/zu_ZA: Likewise.
722 2017-11-13  Florian Weimer  <fweimer@redhat.com>
724         * support/next_to_fault.h, support/next_to_fault.c: New files.
725         * support/Makefile (libsupport-routines): Add next_to_fault.
726         * resolv/tst-inet_pton.c (struct next_to_fault)
727         (next_to_fault_allocate, next_to_fault_free): Remove.
728         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
730 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
732         * elf/dl-support.c: Include <dl-procruntime.c>.
733         * include/link.h: Include <link_map.h>.
734         * sysdeps/generic/dl-procruntime.c: New file.
735         * sysdeps/generic/link_map.h: Likewise.
736         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
737         the writable ld.so namespace.
739 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
741         timezone: pacify GCC -Wstringop-truncation
742         Problem reported by Martin Sebor in:
743         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
744         * timezone/zic.c (writezone): Use memcpy, not strncpy.
746 2017-11-12  Florian Weimer  <fweimer@redhat.com>
748         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
749         tst-xreadlink.
750         (tests): Add tst-xreadlink.
751         * support/support.h (xstrndup): Declare.
752         * support/xunistd.h (xunlink, xreadlink): Declare.
753         * support/temp_file.h (support_create_temp_directory): Declare.
754         * support/temp_file.c (support_create_temp_directory): New function.
755         * support/support_chroot.c (support_chroot_create): Use it.
756         * support/xreadlink.c: New file.
757         * support/xstrndup.c: Likewise.
758         * support/xunlink.c: Likewise.
759         * support/tst-xreadlink.c: Likewise.
761 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
763         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
765 2017-11-11  Florian Weimer  <fweimer@redhat.com>
767         [BZ #22409]
768         [BZ #22412]
769         * resolv/res_comp.c (printable_string, binary_hnok)
770         (binary_leading_dash): New functions.
771         (res_hnok): Reimplement using these functions and ns_name_pton.
772         (res_ownok): Likewise.
773         (res_mailok): Reimplement using printable_string, ns_name_pton and
774         binary_hnok.
775         (res_dnok): Reimplement using printable_string and ns_name_pton.
776         * resolv/tst-res_hnok.c (tests): Add additional tests.
777         (LETTERDIGITS, PRINTABLE): Define.
778         (do_test): Adjust one_char results.
780 2017-11-11  Florian Weimer  <fweimer@redhat.com>
782         [BZ #22413]
783         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
784         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
786 2017-11-11  Florian Weimer  <fweimer@redhat.com>
788         * resolv/tst-ns_name_pton.c: New file.
789         * resolv/Makefile (tests): Add tst-ns_name_pton.
790         (tst-ns_name_pton): Link against libresolv.
792 2017-11-11  Florian Weimer  <fweimer@redhat.com>
794         * resolv/tst-res_hnok.c: New file.
795         * resolv/Makefile (tests): Add tst-res_hnok.
796         (tst-res_hnok): Link against libresolv.
798 2017-11-11  Florian Weimer  <fweimer@redhat.com>
800         * resolv/tst-resolv-network.c: Use test framework instead explicit
801         main function.
803 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
805         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
806         <jmp_buf-macros.h>.
807         [!_ISOMAC] (STR_HELPER): New.
808         [!_ISOMAC] (STR): Likewise.
809         [!_ISOMAC] (TEST_SIZE): Likewise.
810         [!_ISOMAC] (TEST_ALIGN): Likewise.
811         [!_ISOMAC] (TEST_OFFSET): Likewise.
812         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
813         field offsets of jmp_buf as well as sigjmp_buf.
814         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
815         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
816         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
817         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
818         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
819         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
820         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
821         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
822         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
823         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
824         Likewise.
825         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
826         Likewise.
827         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
829         Likewise.
830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
831         Likewise.
832         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
833         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
834         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
835         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
836         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
837         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
838         Likewise.
839         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
840         Likewise.
841         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
842         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
843         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
845 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
847         * include/float.h
848         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
849         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
850         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
851         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
852         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
853         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
854         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
855         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
856         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
857         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
858         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
859         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
860         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
861         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
862         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
863         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
864         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
865         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
866         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
867         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
868         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
869         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
870         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
871         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
872         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
873         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
874         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
875         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
876         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
877         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
878         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
879         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
880         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
881         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
882         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
883         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
884         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
885         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
886         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
887         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
888         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
889         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
890         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
891         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
892         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
893         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
894         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
895         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
896         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
897         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
898         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
899         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
900         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
901         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
902         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
903         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
904         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
905         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
906         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
907         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
908         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
909         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
910         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
911         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
912         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
913         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
914         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
915         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
916         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
917         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
918         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
919         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
920         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
921         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
922         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
923         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
924         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
925         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
926         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
927         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
928         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
929         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
930         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
931         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
932         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
933         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
934         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
935         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
937         * stdlib/tst-strtod.h (F16): New macro.
938         (F32): Likewise.
939         (F64): Likewise.
940         (F32X): Likewise.
941         (F64X): Likewise.
942         (F128X): Likewise.
943         (IF_FLOAT16): Likewise.
944         (IF_FLOAT32): Likewise.
945         (IF_FLOAT64): Likewise.
946         (IF_FLOAT32X): Likewise.
947         (IF_FLOAT64X): Likewise.
948         (IF_FLOAT128X): Likewise.
949         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
950         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
951         (STRTOD_TEST_FOREACH): Likewise.
952         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
953         (CHOOSE_f64): Likewise.
954         (CHOOSE_f32x): Likewise.
955         (CHOOSE_f64x): Likewise.
957 2017-11-07  Andreas Schwab  <schwab@suse.de>
959         * nptl/Makefile (tests-internal): Remove tst-typesizes.
961 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
963         [BZ #22403]
964         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
965         to be escaped.
966         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
967         to be escaped.
969 2017-11-07  Claude Paroz <claude@2xlibre.net>
971         [BZ #22403]
972         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
973         to be escaped.
974         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
975         to be escaped.
976         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
977         to be escaped.
979 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
981         [BZ #22298]
982         * nptl/allocatestack.c (allocate_stack): Check if
983         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
984         __PTHREAD_MUTEX_HAVE_PREV is defined.
985         * nptl/descr.h (pthread): Likewise.
986         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
987         Likewise.
988         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
989         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
990         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
991         * sysdeps/nptl/bits/thread-shared-types.h
992         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
993         defines.
994         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
995         of __WORDSIZE for internal layout.
996         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
997         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
998         instead of __WORDSIZE whether to use an union for __spins and __list
999         fields.
1000         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
1001         case.
1002         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
1003         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
1004         defines.
1005         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
1006         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1007         Likewise.
1008         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
1009         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1010         Likewise.
1011         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
1012         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1013         Likewise.
1014         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
1015         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1016         Likewise.
1017         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
1018         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1019         Likewise.
1020         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
1021         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1022         Likewise.
1023         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
1024         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1025         Likewise.
1026         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
1027         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1028         Likewise.
1029         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
1030         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1031         Likewise.
1032         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
1033         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1034         Likewise.
1035         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
1036         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1037         Likewise.
1038         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
1039         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1040         Likewise.
1041         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
1042         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1043         Likewise.
1044         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
1045         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1046         Likewise.
1048         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
1049         New macros.
1050         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
1051         checks for expected input type size.
1052         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
1053         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
1054         Likewise.
1055         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
1056         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
1057         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
1058         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1059         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
1060         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
1061         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
1062         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
1063         superflous runtime assert check.
1064         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
1065         Likewise.
1066         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
1067         Likewise.
1068         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
1069         Likewise.
1070         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
1071         Likewise.
1072         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
1073         Likewise.
1074         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
1075         Likewise.
1076         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
1077         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
1078         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
1079         Likewise.
1080         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
1081         Likewise.
1082         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
1083         Likewise.
1084         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
1085         Likewise.
1086         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
1087         Likewise.
1088         * nptl/pthread_attr_setinheritsched.c
1089         (__pthread_attr_setinheritsched): Likewise.
1090         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1091         Likewise.
1092         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
1093         Likewise.
1094         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1095         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1096         __old_pthread_attr_setstack): Likewise.
1097         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1098         Likewise.
1099         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1100         Likewise.
1101         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1102         Likewise.
1103         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1104         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1105         Likewise.
1106         * nptl/tst-typesizes.c: Remove file.
1108         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1109         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1110         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1111         checks for internal pthread_mutex_t offsets.
1112         * sysdeps/aarch64/nptl/pthread-offsets.h
1113         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1114         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1115         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1116         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1117         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1118         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1119         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1120         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1121         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1122         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1123         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1124         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1125         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1126         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1127         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1128         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1129         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1130         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1132 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1134         * bits/mman-linux.h: Move ...
1135         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1136         comment.
1137         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1138         outdated comment.
1140 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1142         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1143         Redefine STRNLEN as __strnlen_power8.
1145 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1147         * signal/sighold.c (sighold): Optimize implementation.
1149         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1150         __NR_rt_sigqueueinfo.
1152         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1153         __sigtimedwait.
1154         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1155         assume __NR_rt_sigtimedwait.
1156         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1157         and add LIBC_CANCEL_HANDLED for cancellation marking.
1158         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1160         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1161         (sysdeps_routines): Add memchr_noneon.
1162         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1163         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1164         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1165         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1166         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1167         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1168         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1170         * sysdeps/arm/arm-ifunc.h: New file.
1171         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1172         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1173         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1174         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1175         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1176         (__memcpy_neon): Avoid create hidden alias.
1177         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1178         (__memcpy_vfp): Likewise.
1179         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1180         (sysdep_routines): Add memcpy_arm.
1181         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1183 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1185         [BZ #22362]
1186         * Makerules (make-link-multidir): New.
1187         * config.make.in (multidir): New.
1188         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1189         * configure: Regenerated.
1190         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1191         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1192         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1193         New target.
1195 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1197         [BZ #22402]
1198         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1199         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1201 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1203         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1204         to be escaped.
1206 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1208         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1210 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1212         * math/math.h [__HAVE_DISTINCT_FLOAT16
1213         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1214         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1215         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1216         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1217         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1218         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1219         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1220         (__MATH_TG_F32): New macro.
1221         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1222         (__MATH_TG_F64X): Likewise.
1223         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1224         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1226 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1228         * po/de.po: Update translations.
1229         * po/ru.po: Likewise.
1231 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1233         * manual/filesys.texi (Hard Links): Document linkat.
1235 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1237         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1238         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1239         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1240         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1241         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1242         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1243         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1244         the same as _Float128.
1245         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1246         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1247         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1249         * stdlib/stdlib.h
1250         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1251         Declare.
1252         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1253         Likewise.
1254         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1255         Likewise.
1256         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1257         (strtof32x): Likewise.
1258         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1259         (strtof64x): Likewise.
1260         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1261         (strtof128x): Likewise.
1262         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1263         (strfromf16): Likewise.
1264         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1265         (strfromf32): Likewise.
1266         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1267         (strfromf64): Likewise.
1268         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1269         (strfromf32x): Likewise.
1270         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1271         (strfromf64x): Likewise.
1272         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1273         (strfromf128x): Likewise.
1274         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1275         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1276         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1277         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1278         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1279         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1281 2017-11-03  Richard Henderson  <rth@twiddle.net>
1283         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1285 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1287         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1289 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1291         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1292         DT_TLSDESC_GOT initialization.
1293         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1294         (_dl_tlsdesc_resolve_hold): Likewise.
1295         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1296         (_dl_tlsdesc_resolve_hold): Likewise.
1297         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1298         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1300 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1302         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1304 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1306         [BZ #18572]
1307         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1308         non-lazily for R_ARM_TLS_DESC.
1310 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1312         [BZ #17078]
1313         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1314         R_ARM_TLS_DESC case.
1315         (elf_machine_lazy_rel): Remove the prelink check.
1317 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1319         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1320         DT_TLSDESC_GOT initialization.
1321         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1322         (_dl_tlsdesc_resolve_rela): Likewise.
1323         (_dl_tlsdesc_resolve_hold): Likewise.
1324         (_dl_tlsdesc_undefweak): Remove ldar.
1325         (_dl_tlsdesc_dynamic): Likewise.
1326         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1327         (_dl_tlsdesc_resolve_rela): Likewise.
1328         (_dl_tlsdesc_resolve_hold): Likewise.
1329         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1330         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1331         (_dl_tlsdesc_resolve_rela): Likewise.
1332         (_dl_tlsdesc_resolve_hold): Likewise.
1334 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1336         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1337         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1339 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1341         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1342         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1344 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1346         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1347         Declare.
1348         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1349         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1350         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1351         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1352         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1353         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1354         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1355         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1356         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1357         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1358         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1360 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1362         [BZ #22382]
1363         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1364         * localedata/locales/tpi_PG: Add standard header.
1366 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1368         test-errno-linux: quotactl can fail with EPERM in containers.
1369         * sysdeps/unix/sysv/linux/test-errno-linux.c
1370         (LIST, LIST_FORWARD): New macros.
1371         (check_error_in_list): New function.
1372         (test_wrp_rv): Accept list of permitted error codes.
1373         (test_wrp_rv2): Remove.
1374         (test_wrp): Call test_wrp_rv with list of error codes.
1375         (test_wrp2): Accept list of error codes.
1376         (do_test): Adjust.  Allow EPERM for quotactl.
1378 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1380         * stdio-common/bug16.c (do_test): Use array_length.
1381         * stdio-common/errlist.c (_sys_nerr): Likewise.
1382         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1383         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1384         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1385         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1386         (do_test): Use array_length.
1387         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1388         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1389         * stdio-common/tst-printf-round.c (do_test): Likewise.
1390         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1391         (CHECK): Use array_length.
1392         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1393         * stdio-common/tstscanf.c (main): Likewise.
1394         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1396 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1398         Add array_length and array_end macros.
1399         * include/array_length.h: New file.
1401 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1403         [BZ #22332]
1404         * posix/tst-glob-tilde.c (do_noescape): New variable.
1405         (one_test): Process it.
1406         (do_test): Set do_noescape.  Add unescaping test case.
1408 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1410         * math/complex.h
1411         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1412         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1413         with appropriate macros defined and undefined.
1414         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1415         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1416         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1417         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1418         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1419         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1420         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1421         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1422         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1423         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1425         * math/complex.h
1426         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1427         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1428         that for long double.  Do not condition define and undefine of
1429         _Mdouble_complex_ on [__CFLOAT128].
1431 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1433         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1434         of <sysdeps/generic/sysdep.h>.
1435         (ALIGNARG): Removed.
1436         (ASM_SIZE_DIRECTIVE): Likewise.
1437         (ENTRY): Likewise.
1438         (END): Likewise.
1439         (ENTRY_CHK): Likewise.
1440         (END_CHK): Likewise.
1441         (syscall_error): Likewise.
1442         (mcount): Likewise.
1443         (PSEUDO_END): Likewise.
1444         (L): Likewise.
1445         (atom_text_section): Likewise.
1446         * sysdeps/x86/sysdep.h: New file.
1447         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1448         of <sysdeps/generic/sysdep.h>.
1449         (ALIGNARG): Removed.
1450         (ASM_SIZE_DIRECTIVE): Likewise.
1451         (ENTRY): Likewise.
1452         (END): Likewise.
1453         (ENTRY_CHK): Likewise.
1454         (END_CHK): Likewise.
1455         (syscall_error): Likewise.
1456         (mcount): Likewise.
1457         (PSEUDO_END): Likewise.
1458         (L): Likewise.
1459         (atom_text_section): Likewise.
1461 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1463         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1464         category of LC_CTYPE set to "i18n:2012".
1465         * localedata/locales/i18n_ctype: Regenerate.
1467 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1469         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1470         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1471         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1472         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1474         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1475         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1476         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1477         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1479 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1481         * math/complex.h
1482         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1483         New macro.
1484         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1485         Likewise.
1486         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1487         Likewise.
1488         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1489         (CMPLXF32X): Likewise.
1490         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1491         (CMPLXF64X): Likewise.
1492         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1493         (CMPLXF128X): Likewise.
1495         * math/math.h
1496         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1497         (__MATH_EVAL_FMT2): Define to add 0.0f.
1499 2017-10-31  Alan Modra  <amodra@gmail.com>
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1502         include sysdep.h.
1503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1507         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1512         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1514         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1516         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1517         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1518         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1519         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1520         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1521         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1522         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1523         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1524         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1525         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1526         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1527         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1528         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1529         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1530         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1531         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1532         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1533         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1534         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1535         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1536         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1537         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1538         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1539         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1540         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1541         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1542         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1543         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1544         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1545         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1546         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1547         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1548         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1549         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1550         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1551         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1552         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1553         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1554         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1555         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1556         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1557         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1558         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1559         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1560         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1561         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1562         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1563         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1564         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1565         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1566         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1567         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1568         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1569         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1570         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1571         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1574         include sysdep.h and math_ldbl_opt.h.
1576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1577         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1579         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1580         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1582         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1585         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1587         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1588         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1592         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1594         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1603 2017-10-31  Alan Modra  <amodra@gmail.com>
1605         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1606         string/strncase_l.c, not string/strncase.c.
1607         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1608         (libc_hidden_def): Redefine.
1610 2017-10-31  Alan Modra  <amodra@gmail.com>
1612         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1613         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1614         (__strcasecmp): Don't define.
1616 2017-10-31  Alan Modra  <amodra@gmail.com>
1618         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1619         IS_IN (libc).
1620         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1621         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1622         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1624 2017-10-31  Alan Modra  <amodra@gmail.com>
1626         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1627         USE_AS_STPNCPY.
1629 2017-10-31  Alan Modra  <amodra@gmail.com>
1631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1632         Redefine only when SHARED.
1634 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1636         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1637         Include <bits/math-finite.h> with appropriate macros defined and
1638         undefined.
1639         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1640         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1641         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1642         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1643         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1645         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1646         [!_Mlong_double_] (_Mlong_double_): Likewise.
1647         [!_Mfloat16_] (_Mfloat16_): Likewise.
1648         [!_Mfloat32_] (_Mfloat32_): Likewise.
1649         [!_Mfloat64_] (_Mfloat64_): Likewise.
1650         [!_Mfloat128_] (_Mfloat128_): Likewise.
1651         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1652         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1653         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1654         (_Mdouble_): Define without indirection through those macros.
1655         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1656         [!_Mfloat128_] (_Mfloat128_): Likewise.
1657         [_Mlong_double_] (_Mlong_double_): Likewise.
1658         (_Mdouble_): Define without indirection through those macros.
1659         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1660         not add -D_Mlong_double_=double.
1661         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1662         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1664 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1666         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1668 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1670         * sysdeps/x86/libc-start.c: Reformat.
1672 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1674         [BZ #22353]
1675         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1676         (1): Renamed to ...
1677         (L(Src0)): This.
1678         (L(Src1)): New.
1679         (L(Src2)): Likewise.
1680         (L(1)): Renamed to ...
1681         (L(Src3)): This.
1683 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1685         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1686         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1687         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1688         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1689         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1690         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1691         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1692         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1693         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1694         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1695         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1696         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1697         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1698         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1699         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1700         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1701         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1702         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1703         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1704         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1705         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1706         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1707         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1708         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1709         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1710         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1711         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1712         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1713         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1714         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1715         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1716         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1717         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1718         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1719         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1720         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1721         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1722         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1723         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1724         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1725         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1726         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1727         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1728         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1729         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1730         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1731         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1732         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1733         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1734         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1735         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1736         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1737         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1738         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1739         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1740         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1741         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1742         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1743         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1744         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1745         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1746         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1747         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1748         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1749         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1750         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1752 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1754         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1755         always defined.
1756         * io/tst-mkdirat.c (do_test): Likewise.
1757         * io/tst-mkfifoat.c (do_test): Likewise.
1758         * io/tst-mknodat.c (do_test): Likewise.
1759         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1760         * locale/programs/locale.c (select_dirs): Likewise.
1761         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1762         * posix/bug-glob2.c (my_readdir): Likewise.
1763         * posix/tst-dir.c (main): Likewise.
1764         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1765         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1767 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1769         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1770         just __USE_GNU.
1772 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1774         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1775         Convert to support/test-driver.c.
1776         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1777         New macro parameters.
1778         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1779         * posix/tst-gnuglob.c: New file.
1780         * posix/tst-gnuglob64.c: Likewise.
1781         * posix/Makefile (tests): Add tst-gnuglob64.
1783 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1785         [BZ #19485]
1786         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1787         and use a better translation for March in “mon”.
1788         * localedata/locales/csb_PL: Use more ASCII to improve the
1789         readability of the source.
1791 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1793         [BZ #13953]
1794         * localedata/locales/km_KH: Use ASCII as much
1795         as possible for better readability of the source and
1796         remove useless comments.
1797         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1798         was commented out and apparently wrong anyway because it was
1799         using Lao characters. If Buddhist era should be used
1800         for km_KH, a native speaker should write the correct formaat
1801         for Khmer.
1802         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1803         (According to CLDR, the first weekday for Cambodia is Sunday).
1804         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1805         (These were using Lao characters which must be wrong. If we get
1806         the correct data from a native speaker, we could add it back, until
1807         then it is better not to have name_mr and name_mrs at all than
1808         having it wrong).
1810 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1812         * locale/loadlocale.c: Correct size of
1813         _nl_value_type_LC_<category> arrays.
1815 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1817         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1818         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1819         with appropriate macros defined and undefined.
1820         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1821         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1822         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1823         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1824         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1826 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1828         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1829         "-O2 -march=i586".
1831 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1833         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1834         with lowercase letters to make it agree with CLDR.
1836 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1838         [BZ #15260]
1839         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1840         first letters of yesstr and nostr in yesexpr and noexpr,
1841         not for the full words.
1842         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1843         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1844         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1845         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1846         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1847         first letters of yesstr and nostr in yesexpr and noexpr,
1848         until now only English was matched in yesexpr and noexpr.
1849         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1850         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1851         fil but not for tl. As tl and fil are very similar, using fil
1852         is probably better than using English.
1854 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1856         [BZ #21706]
1857         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1858         in yesstr and nostr.
1860 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1862         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1863         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1864         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1865         Likewise.
1866         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1867         Likewise.
1868         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1869         Likewise.
1870         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1871         Likewise.
1872         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1873         (SNANF128X): Likewise.
1875         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1876         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1877         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1878         (HUGE_VAL_F32): Likewise.
1879         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1880         (HUGE_VAL_F64): Likewise.
1881         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1882         (HUGE_VAL_F32X): Likewise.
1883         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1884         (HUGE_VAL_F64X): Likewise.
1885         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1886         (HUGE_VAL_F128X): Likewise.
1888 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1890         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1891         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1892         for the br_FR locale.
1894 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1896         [BZ #21706]
1897         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1899 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1901         * locale/programs/record-status.h: Define globals, and function
1902         prototypes. Move function bodies...
1903         * locale/programs/record-status.c: ... to here. New file.
1904         * iconv/Makefile (iconv_prog-modules): Add record-status.
1905         * locale/Makefile (lib-modules): Likewise.
1906         * iconv/iconv_prog.c: Remove verbose.
1907         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1908         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1909         record a warning about ASCII compatibility.
1910         * locale/programs/ld-monetary.c (monetary_finish): If
1911         warn_int_curr_symbol is true then record a warning about the symbol
1912         not being in our ISO 4217 list.
1913         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1914         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1915         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1916         (OPT_NO_WARN): Define.
1917         (OPT_WARN): Define.
1918         (options): Add entry for --no-warnings, and --warnings.
1919         (set_warnings): New function to enable/disable warnings.
1920         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1921         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1922         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1923         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1924         Pass flags to generate_locale.
1925         (generate_locale): Accept new flag argument and pass it to localedef
1926         invocation.
1927         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1928         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1930         * localedata/Makefile (test-input-data): Use full file name.
1931         * localedata/da_DK.in: Rename to...
1932         * localedata/da_DK.ISO-8859-1.in: ...this.
1933         * localedata/de_DE.in: Rename to...
1934         * localedata/de_DE.ISO-8859-1.in: ...this.
1935         * localedata/en_US.in: Rename to...
1936         * localedata/en_US.ISO-8859-1.in: ...this.
1937         * localedata/fr_FR.in: Rename to...
1938         * localedata/fr_FR.UTF-8.in: ... this.
1939         * localedata/hr_HR.in: Rename to...
1940         * localedata/hr_HR.ISO-8859-2.in: ...this.
1941         * localedata/hu_HU.in: Rename to...
1942         * localedata/hu_HU.UTF-8.in: ...this.
1943         * localedata/si_LK.in: Rename to...
1944         * localedata/si_LK.UTF-8.in: ...this.
1945         * localedata/sv_SE.in: Rename to...
1946         * localedata/sv_SE.ISO-8859-1.in: ...this.
1947         * localedata/tr_TR.in: Rename to...
1948         * localedata/tr_TR.UTF-8.in: ...this.
1949         * localedata/uk_UA.in: Rename to...
1950         * localedata/uk_UA.UTF-8.in: ...this.
1951         * localedata/sort-test.sh: Test file is locale name with the
1952         suffix.
1954         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1955         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1956         file.
1957         * localedata/locales/i18n_ctype: Regenerate.
1958         * localedata/locales/tr_TR: Likewise.
1959         * localedata/locales/translit_circle: Likewise.
1960         * localedata/locales/translit_cjk_compat: Likewise.
1961         * localedata/locales/translit_combining: Likewise.
1962         * localedata/locales/translit_compat: Likewise.
1963         * localedata/locales/translit_font: Likewise.
1964         * localedata/locales/translit_fraction: Likewise.
1966 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1968         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1969         lxvd2x/stxvd2x with lvx/stvx.
1970         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1972 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1974         * include/alloc_buffer.h: Replace "if if " with "if " in
1975         comments.
1976         * sysdeps/mips/memcpy.S: Likkewise.
1977         * sysdeps/mips/memset.S: Likewise.
1978         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1979         Likewise.
1980         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1981         Likewise.
1982         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1983         Likewise.
1985 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1987         [BZ #15261]
1988         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1989         yesexpr and noexpr.
1990         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1991         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1992         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1993         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1994         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1995         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1996         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1998 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2000         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
2001         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2002         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2003         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2004         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2005         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
2006         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2007         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2008         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2009         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2010         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2011         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2013 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2015         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
2016         as possible for better readability of the source.
2017         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
2018         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
2019         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
2020         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
2021         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
2022         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
2023         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
2024         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
2025         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2026         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
2027         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
2028         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
2029         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
2030         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
2031         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
2032         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
2033         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
2034         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
2035         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
2036         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
2037         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
2038         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
2039         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
2040         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
2041         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
2042         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
2043         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
2044         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
2045         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
2046         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
2047         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
2048         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2049         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
2050         * localedata/locales/en_US (LC_MESSAGES): Likewise.
2051         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
2052         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
2053         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
2054         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
2055         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
2056         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
2057         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
2058         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
2059         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
2060         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
2061         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
2062         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
2063         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
2064         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
2065         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
2066         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
2067         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
2068         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
2069         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
2070         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2071         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2072         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
2073         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
2074         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2075         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
2076         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
2077         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
2078         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
2079         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
2080         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
2081         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
2082         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
2083         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
2084         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
2085         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
2086         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
2087         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
2088         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
2089         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
2090         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
2091         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2092         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
2093         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2094         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2095         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2096         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2097         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2098         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2099         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2100         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2101         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2102         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2103         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2104         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2105         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2106         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2107         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2108         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2109         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2110         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2111         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2112         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2113         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2114         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2115         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2116         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2117         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2118         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2119         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2120         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2121         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2122         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2123         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2124         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2125         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2126         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2127         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2128         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2129         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2130         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2131         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2132         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2133         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2134         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2135         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2136         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2137         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2138         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2139         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2140         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2141         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2142         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2143         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2144         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2145         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2146         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2147         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2148         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2149         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2150         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2151         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2152         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2153         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2154         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2155         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2156         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2157         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2158         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2159         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2160         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2161         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2162         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2163         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2164         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2165         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2166         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2167         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2168         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2169         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2170         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2171         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2172         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2173         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2174         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2175         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2176         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2177         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2178         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2179         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2180         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2181         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2182         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2183         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2184         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2185         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2186         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2187         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2188         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2189         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2190         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2192 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2194         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2195         (Use first letters of yesstr and nostr correctly instead of using
2196         full words).
2198 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2200         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2201         (Use first letters of yesstr and nostr correctly).
2203 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2205         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2206         also check for the first characters of yesstr and nostr.
2207         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2208         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2210 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2212         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2213         also check for Chinese characters.
2215 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2217         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2218         match also for the contents of yesstr and nostr. As the first letter
2219         of yesstr and nostr is equal, checking only for the first letter
2220         is not enough.
2222 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2224         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2225         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2227 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2229         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2230         of main contributor.
2232 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2234         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2235         instead of using English.
2237 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2239         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2240         by including the first letters of nostr and yesexpr in the regexp.
2241         Also make it more readable by using ASCII where possible.
2243 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2245         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2246         the first letter of nostr in the regexp. It agrees with CLDR now.
2247         Also make it more readable by using ASCII where possible.
2249 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2251         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2252         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2253         these strings contain a U+17D6 (which somewhat looks like a colon)
2254         instead of a real colon to separate the full words for “yes”
2255         and “no” from the single letter responses.
2257 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2259         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2260         it agree with CLDR (include the first letter of yesstr).
2261         Also make it more readable by using ASCII where possible.
2263 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2265         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2266         and improve yesexpr and noexpr. The yesstr and nostr apparently
2267         came from CLDR. And CLDR has a bug there: these strings contain
2268         a U+0903 (which looks like a colon) instead of a real colon
2269         to separate the full words for “yes” and “no” from the single
2270         letter responses.
2272 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2274         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2275         letters of the full yesstr and nostr in yesexpr and noexpr.
2277 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2279         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2280         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2281         * localedata/locales/an_ES: Make source more readable by using ASCII
2282         where possible.
2284 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2286         [BZ #20952]
2287         * localedata/locales/yuw_PG: New file.
2288         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2289         * locale/iso-639.def: Add Yau (Uruwa).
2291 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2293         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2295 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2297         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2298         (__libc_realloc): Likewise.
2299         (_mid_memalign): Likewise.
2300         (__libc_calloc): Likewise.
2302 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2304         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2305         by adding the generic +1 and -0 as in all other locales.
2306         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2307         day names and make it more readable by using ASCII where possible.
2309 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2311         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2312         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2314 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2316         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2317         WNOHANG in waitpid call.
2319 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2321         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2322         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2324         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2325         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2326         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2327         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2328         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2329         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2330         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2331         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2332         variables.
2334 2017-10-23  Michael Collison  <michael.collison@arm.com>
2336         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2337         with __builtin_sqrt.
2338         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2339         with __builtin_sqrtf.
2340         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2341         with __builtin_ceil.
2342         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2343         with __builtin_ceilf.
2344         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2345         with __builtin_floor.
2346         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2347         with __builtin_floorf.
2348         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2349         with __builtin_fma.
2350         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2351         with __builtin_fmaf.
2352         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2353         with __builtin_fmax.
2354         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2355         with __builtin_fmaxf.
2356         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2357         with __builtin_fmin.
2358         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2359         with __builtin_fminf.
2360         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2361         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2362         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2363         with builtin_rint and conversion to int.
2364         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2365         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2366         with builtin_llround.
2367         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2368         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2369         with builtin_rint and conversion to long int.
2370         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2371         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2372         with builtin_lround.
2373         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2374         with builtin_lroundf.
2375         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2376         statements with __builtin_nearbyint.
2377         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2378         statements with __builtin_nearbyintf.
2379         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2380         with __builtin_rint.
2381         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2382         with __builtin_rintf.
2383         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2384         with __builtin_round.
2385         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2386         with __builtin_roundf.
2387         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2388         with __builtin_trunc.
2389         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2390         with __builtin_truncf.
2391         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2392         and s_l[l]round[f].c too.
2394 2017-10-23  Alan Modra  <amodra@gmail.com>
2396         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2397         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2399 2017-10-23  Alan Modra  <amodra@gmail.com>
2401         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2402         Move LR save and frame setup/teardown and LR restore to
2403         immediately around memset call.  Provide cfi.
2405 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2407         * sysdeps/i386/fpu/e_powf.S: Removed.
2408         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2409         * sysdeps/i386/fpu/w_powf.c: Likewise.
2410         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2411         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2412         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2413         Add e_powf-sse2.
2414         (CFLAGS-e_powf-sse2.c): New.
2415         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2416         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2418 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2420         * sysdeps/i386/fpu/e_log2f.S: Removed.
2421         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2422         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2423         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2424         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2425         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2426         Add e_log2f-sse2.
2427         (CFLAGS-e_log2f-sse2.c): New.
2428         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2429         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2431 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2433         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2434         Add e_powf-fma.
2435         (CFLAGS-e_powf-fma.c): New.
2436         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2437         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2439 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2441         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2442         Add e_log2f-fma.
2443         (CFLAGS-e_log2f-fma.c): New.
2444         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2445         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2447 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2449         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2450         Add e_logf-fma.
2451         (CFLAGS-e_logf-fma.c): New.
2452         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2453         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2455 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2457         * sysdeps/i386/fpu/e_logf.S: Removed.
2458         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2459         * sysdeps/i386/fpu/w_logf.c: Likewise.
2460         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2461         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2462         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2463         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2464         Add e_logf-sse2.
2465         (CFLAGS-e_logf-sse2.c): New.
2466         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2467         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2469 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2471         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2472         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2473         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2474         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2475         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2476         Add e_exp2f-sse2.
2477         (CFLAGS-e_exp2f-sse2.c): New.
2478         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2479         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2481 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2483         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2484         Add e_exp2f-fma.
2485         (CFLAGS-e_exp2f-fma.c): New.
2486         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2487         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2489 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2491         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2492         * sysdeps/i386/fpu/e_expf.S: Likewise.
2493         * sysdeps/i386/fpu/math_errf.c: Likewise.
2494         * sysdeps/i386/fpu/w_expf.c: Likewise.
2495         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2496         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2497         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2498         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2499         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2500         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2501         Remove e_expf-ia32.
2502         (CFLAGS-e_expf-sse2.c): New.
2503         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2504         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2506 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2508         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2509         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2510         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2511         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2512         e_expf.c.
2513         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2514         New.
2515         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2516         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2517         Renamed to ...
2518         (__redirect_expf): This.
2519         (SYMBOL_NAME): Changed to expf.
2520         (__ieee754_expf): Renamed to ...
2521         (__expf): This.
2522         (__GI___expf): This.
2523         (__ieee754_expf): Add strong_alias.
2524         (__expf_finite): Likewise.
2525         (__expf): New.
2526         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2528 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2530         [BZ #22332]
2531         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2532         unescaping.
2534 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2536         * posix/Makefile (tests): Add tst-glob-tilde.
2537         (tests-special): Add tst-glob-tilde-mem.out
2538         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2539         (tst-glob-tilde-mem.out): Add mtrace check.
2540         * posix/tst-glob-tilde.c: New file.
2542 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2544         * bits/floatn-common.h: New file.
2545         * math/Makefile (headers): Add bits/floatn-common.h.
2546         * bits/floatn.h: Include <bits/floatn-common.h>.
2547         * sysdeps/ia64/bits/floatn.h: Likewise.
2548         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2549         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2550         * sysdeps/powerpc/bits/floatn.h: Likewise.
2551         * sysdeps/x86/bits/floatn.h: Likewise.
2553 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2555         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2556         indicates whether compiler emits an warning for alias for
2557         functions with incompatible types.
2559         [BZ #22273]
2560         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2561         the auxiliary process is terminated by a signal before calling _exit
2562         or execve.
2564 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2566         [BZ #21265]
2567         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2568         New.
2569         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2570         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2571         and bit_arch_XSAVEC_Usable if needed.
2572         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2573         and bit_arch_Use_dl_runtime_resolve_opt.
2574         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2575         Removed.
2576         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2577         (bit_arch_Prefer_No_AVX512): Updated.
2578         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2579         (bit_arch_XSAVEC_Usable): New.
2580         (STATE_SAVE_OFFSET): Likewise.
2581         (STATE_SAVE_MASK): Likewise.
2582         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2583         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2584         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2585         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2586         (index_arch_XSAVEC_Usable): New.
2587         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2588         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2589         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2590         is enabled.
2591         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2592         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2593         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2594         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2595         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2596         _dl_runtime_resolve_xsavec.
2597         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2598         Removed.
2599         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2600         instead of VEC_SIZE.
2601         (REGISTER_SAVE_BND0): Removed.
2602         (REGISTER_SAVE_BND1): Likewise.
2603         (REGISTER_SAVE_BND3): Likewise.
2604         (REGISTER_SAVE_RAX): Always defined to 0.
2605         (VMOV): Removed.
2606         (_dl_runtime_resolve_avx): Likewise.
2607         (_dl_runtime_resolve_avx_slow): Likewise.
2608         (_dl_runtime_resolve_avx_opt): Likewise.
2609         (_dl_runtime_resolve_avx512): Likewise.
2610         (_dl_runtime_resolve_avx512_opt): Likewise.
2611         (_dl_runtime_resolve_sse): Likewise.
2612         (_dl_runtime_resolve_sse_vex): Likewise.
2613         (USE_FXSAVE): New.
2614         (_dl_runtime_resolve_fxsave): Likewise.
2615         (USE_XSAVE): Likewise.
2616         (_dl_runtime_resolve_xsave): Likewise.
2617         (USE_XSAVEC): Likewise.
2618         (_dl_runtime_resolve_xsavec): Likewise.
2619         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2620         Removed.
2621         (_dl_runtime_resolve_avx512_opt): Likewise.
2622         (_dl_runtime_resolve_avx): Likewise.
2623         (_dl_runtime_resolve_avx_opt): Likewise.
2624         (_dl_runtime_resolve_sse): Likewise.
2625         (_dl_runtime_resolve_sse_vex): Likewise.
2626         (_dl_runtime_resolve_fxsave): New.
2627         (_dl_runtime_resolve_xsave): Likewise.
2628         (_dl_runtime_resolve_xsavec): Likewise.
2630 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2632         [BZ #22320]
2633         CVE-2017-15670
2634         * posix/glob.c (__glob): Fix one-byte overflow.
2636 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2638         * malloc/malloc.c (sysdep-cancel.h): Add include.
2640 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2642         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2644 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2646         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2647         (tests): Remove $(objpfx)ga_test depdendency.
2648         * resolv/ga_test.c: Remove file.
2650 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2652         [BZ #18812]
2653         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2654         * localedata/locales/kab_DZ: New file.
2656 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2658         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2659         _dl_relocate_static_pie instead of _dl_start to compute load
2660         address in static PIE.
2662 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2664         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2666 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2668         [BZ #13605]
2669         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2670         * localedata/locales/shn_MM: New file.
2672 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2674         [BZ #22321]
2675         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2676         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2677         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2678         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2679         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2680         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2682 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2684         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2686 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2688         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2690         [BZ #22322]
2691         * sysdeps/mips/bits/long-double.h: Move to ....
2692         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2694 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2696         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2698 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2699             H.J. Lu  <hongjiu.lu@intel.com>
2701         [BZ #22299]
2702         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2703         GLRO(dl_platform) to NULL.
2704         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2705         (modules-names): Add tst-platformmod-1 and
2706         x86_64/tst-platformmod-2.
2707         (CFLAGS-tst-platform-1.c): New.
2708         (CFLAGS-tst-platformmod-1.c): Likewise.
2709         (CFLAGS-tst-platformmod-2.c): Likewise.
2710         (LDFLAGS-tst-platformmod-2.so): Likewise.
2711         ($(objpfx)tst-platform-1): Likewise.
2712         ($(objpfx)tst-platform-1.out): Likewise.
2713         (tst-platform-1-ENV): Likewise.
2714         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2715         * sysdeps/x86_64/tst-platform-1.c: New file.
2716         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2717         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2719 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2721         [BZ #13994]
2722         * locale/iso-639.def: Add Karbi.
2723         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2724         * localedata/locales/mjw_IN: New file.
2726 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2728         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2729         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2730         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2731         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2732         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2733         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2734         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2735         <bits/floatn.h>.
2736         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2737         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2738         * manual/math.texi (Mathematics): Document additional architecture
2739         support for _Float128.
2740         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2741         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2742         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2743         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2744         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2745         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2746         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2747         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2748         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2749         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2750         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2751         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2752         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2753         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2754         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2756 2017-10-18  Renlin Li  <renlin.li@arm.com>
2758         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2759         _DYNAMIC symbol to calculate load address.
2761 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2763         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2764         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2765         summary bits.
2766         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2767         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2769 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2771         [BZ #16777]
2772         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2773         and improve readability by using more ASCII.
2774         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2775         and improve readability by using more ASCII.
2777 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2779         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2780         not all targets support atomics on bool.
2782 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2784         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2785         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2786         __f128.
2787         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2788         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2789         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2790         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2791         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2792         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2794 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2796         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2797         defines.
2799 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2801         [BZ #22159]
2802         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2803         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2804         (do_check_remalloced_chunk): Fix build bug.
2805         (do_check_malloc_state): Add assert that checks arena->top.
2806         (malloc_consolidate): Remove initialization.
2807         (int_mallinfo): Remove call to malloc_consolidate.
2808          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2810 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2812         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2813         (have_fastchunks): Remove.
2814         (clear_fastchunks): Remove.
2815         (set_fastchunks): Remove.
2816         (malloc_state): Add have_fastchunks.
2817         (malloc_init_state): Use have_fastchunks.
2818         (do_check_malloc_state): Remove incorrect invariant checks.
2819         (_int_malloc): Use have_fastchunks.
2820         (_int_free): Likewise.
2821         (malloc_consolidate): Likewise.
2823 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2825         * malloc/malloc.c (tcache_put): Inline.
2826         (tcache_get): Inline.
2828 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2830         Aurelien Jarno  <aurelien@aurel32.net>
2831         [BZ #2522]
2832         * localedata/locales/ca_ES@valencia: New file.
2833         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2835 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2837         [BZ #22296]
2838         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2839         < 6.x
2841 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2843         * scripts/build-many-glibcs.py (Context.add_all_configs):
2844         Add arm-linux-gnueabihf multiarch extra_glibcs.
2846         * sysdeps/generic/ifunc-init.h: New file.
2847         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2849 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2851         [BZ #22019]
2852         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2853         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2854         * stdlib/tst-strfmon_l.c: adapt test case.
2856 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2858         * sysdeps/generic/float128-abi.h: New file.
2859         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2860         non-__prefixed symbols to ....
2861         * math/Versions: ... here.  Include <float128-abi.h>.
2862         * stdlib/Versions ... and here.  Include <float128-abi.h>
2864 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2866         * version.h (VERSION): Switch to ".9000" as the development
2867         version suffix.
2869 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2871         [BZ #22050]
2872         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2873         compat_symbol_reference to access non-default version.
2875 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2877         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2879 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2881         * include/shlib-compat.h (compat_symbol_reference): Update
2882         comment.
2884 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2886         * math/Makefile (test-types): Add
2887         $(type-float128-$(float128-alias-fcts)).
2888         * math/test-float128.h (TYPE_STR): Define conditional on
2889         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2890         (ULP_IDX): Likewise.
2891         (ULP_I_IDX): Likewise.
2893         * stdlib/strtold.c: Include <bits/floatn.h>
2894         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2895         and later undefine as macro.  Define as weak alias if
2896         [!USE_WIDE_CHAR].
2897         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2898         and later undefine as macro.  Define as weak alias if
2899         [USE_WIDE_CHAR].
2900         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2901         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2902         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2903         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2904         Define and later undefine as macro.  Define as weak alias if
2905         [USE_WIDE_CHAR].
2906         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2907         <bits/floatn.h>.
2908         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2909         Define and later undefine as macro.  Define as weak alias if
2910         [!USE_WIDE_CHAR].
2911         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2912         Define and later undefine as macro.  Define as weak alias if
2913         [USE_WIDE_CHAR].
2915 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2917         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2918         record_verbose messages.
2920 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2922         [BZ #22052]
2923         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2924         to silence -O3 -Wall warning with GCC 7.
2926 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2928         * Makeconfig (+link-static-before-libc): Use the first of
2929         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2930         * gmon/Makefile (tests): Add tst-gmon-static.
2931         (tests-static): Likewise.
2932         (CFLAGS-tst-gmon-static.c): New.
2933         (CRT-tst-gmon-static): Likewise.
2934         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2935         (tst-gmon-static-ENV): Likewise.
2936         (tests-special): Likewise.
2937         ($(objpfx)tst-gmon-static.out): Likewise.
2938         (clean-tst-gmon-static-data): Likewise.
2939         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2940         * gmon/tst-gmon-static-gprof.sh: New file.
2941         * gmon/tst-gmon-static.c: Likewise.
2943 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2945         [BZ #22295]
2946         * locale/programs/linereader.c (get_string): Don't warn on
2947         non-symbolic character.
2949         [BZ #22294]
2950         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2951         int_curr_symbol.
2953         [BZ #22292]
2954         * locale/programs/record-status.h: New file
2955         * locale/programs/locale.c: Add comment.
2956         * locale/programs/charmap-dir.c: Don't include error.h.
2957         (charmap_opendir): Use record_error.
2958         * locale/programs/charmap.c: Don't include error.h.
2959         (charmap_read): Use record_error, and record_warning.
2960         (parse_charmap): Likewise.
2961         * locale/programs/ld-address.c: Don't include error.h.
2962         (address_finish): Use record_error, and record_warning.
2963         * locale/programs/ld-collate.c: Don't include error.h.
2964         (collate_finish): Use record_error, and record_error_at_line.
2965         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2966         (ctype_class_new): Likewise.
2967         (ctype_map_new): Likewise.
2968         (set_one_default): Likewise.
2969         (set_class_defaults): Likewise.
2970         (translit_flatten): Likewise.
2971         (allocate_arrays): Use record_error, and record_verbose.
2972         * locale/programs/ld-identification.c: Don't include error.h.
2973         (indentation_finish): Use record_error and record_warning.
2974         * locale/programs/ld-measurement.c: Don't include error.h.
2975         (measurement_finish): Use record_error.
2976         * locale/programs/ld-messages.c
2977         (message_finish): Likewise.
2978         * locale/programs/ld-monetary.c
2979         (monetary_finish): Likewise.
2980         * locale/programs/ld-name.c (name_finish): Use record_error
2981         and record_warning.
2982         * locale/programs/ld-numeric.c
2983         (numeric_finish): Use record_error.
2984         * locale/programs/ld-paper.c: Don't include error.h.
2985         (paper_finish): Use record_error.
2986         * locale/programs/ld-telephone.c: Don't include error.h.
2987         (telephone_finish): Use record_error.
2988         * locale/programs/ld-time.c (time_finish): Likewise.
2989         * locale/programs/linereader.h (lr_error): Make inline func.
2990         * locale/programs/localedef.c: Define recorded_warning_count,
2991         and recorded_error_count.
2992         (main): Use record_error. Use recorded_error_count and
2993         recorded_warning_count to issue correct error returns.
2994         (add_to_readlist): Use record_error.
2995         (find_locale): Likewise.
2996         (load_locale): Likewise.
2997         * locale/programs/localedef.h: Remove be_quiet
2998         and WITH_CUR_LOCALE.
2999         * locale/programs/locarchive.c (compare_from_file): Use
3000         record_error.
3001         * locale/programs/locfile.c (write_locale_data): Use
3002         record_error.
3003         * locale/programs/repertoire.c: Dont include error.h.
3004         (repertoire_complain): Use record_error.
3005         * localedata/tst-fmon.sh: Expect failures from localedef.
3006         * localedata/tst-locale.sh: Likewise.
3007         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
3009         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
3010         (REPORTS): Likewise.
3011         (check): Likewise.
3012         (i18n): Rename to...
3013         (i18n_ctype): ...this.
3014         (i18n-report): Rename to...
3015         (i18n_ctype-report): ...this.
3016         * localedata/locales/i18n_ctype: Regenerate.
3017         * localedata/locales/i18n: copy i18n_ctype.
3019 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3021         * stdlib/strfroml.c: Include <bits/floatn.h>.
3022         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
3023         Define before include of <stdlib.h> and undefine afterwards, then
3024         define as weak alias.
3026         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
3027         Undefine and restore default definition.  Use
3028         libm_alias_ldouble_other.
3030 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
3032         [BZ #22153]
3033         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
3034         in coredumps.
3036 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
3038         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3039         Assign sym_map to be map for local symbols, as TLS relocations
3040         use sym_map to determine whether the symbol is defined and to
3041         extract the TLS information.
3042         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3043         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3045 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3047         [BZ #22189]
3048         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
3049         (math_force_eval): Add powerpc version.
3051         [BZ #22142]
3052         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
3053         -DBL_MAX.
3054         (do_test): Likewise.
3055         * stdio-common/tst-printf.sh: Likewise.
3056         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
3057         ifdef clause in order to set the carry bit right.  Replace r0 by
3058         0 without changing the behavior.
3060 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3062         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
3063         <libm-alias-ldouble.h>.
3064         (fabsl): Define using libm_alias_ldouble.
3065         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
3066         <libm-alias-ldouble.h>.
3067         (fabsl): Define using libm_alias_ldouble.
3069         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
3070         Remove conditional code.
3072         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
3073         Rename to __clog10_internal_l.
3074         (__clog10_internal_l): Define aliases using
3075         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
3076         with __clog10.
3078 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3080         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
3081         * benchtests/sincosf-inputs: New file.
3082         * benchtests/cosf-inputs: New file.
3083         * benchtests/sinf-inputs: New file.
3085 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3087         * posix/tst-spawn.c (do_test): Wait for both children.
3089 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3091         [BZ #22284]
3092         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
3093         tests-pie): Add tst-gmon-pie.
3094         (CFLAGS-tst-gmon-pie.c): New.
3095         (CRT-tst-gmon-pie): Likewise.
3096         (tst-gmon-pie-ENV): Likewise.
3097         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3098         ($(objpfx)tst-gmon-pie.out): Likewise.
3099         (clean-tst-gmon-pie-data): Likewise.
3100         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3101         * gmon/gmon.c [PIC]: Include <link.h>.
3102         [PIC] (callback): New function.
3103         (write_hist): Add an argument for load address.  Subtract load
3104         address from PCs.
3105         (write_call_graph): Likewise.
3106         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3107         it to write_hist and write_call_graph.
3108         * gmon/tst-gmon-pie.c: New file.
3110 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3112         * math/Makefile (test-types-basic): New variable.
3113         (test-types): Likewise.
3114         (libm-test-support): Use $(test-types) instead of $(types).
3115         (libm-tests-base-normal): Likewise.
3116         (libm-tests-base-finite): Likewise.
3117         (libm-tests-base-inline): Likewise.
3118         (generated): Likewise.
3119         ($(objpfx)libm-test-support-$(t).c): Likewise.
3120         (libm-tests-for-type iterator): Likewise.
3121         (libm-test-support iterator): Likewise.
3122         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3123         (ulp_idx): Use ULP_IDX.
3124         * math/test-ldouble.h: Include <float.h>.
3125         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3126         (ULP_IDX): New macro.
3127         (ULP_I_IDX): Likewise.
3128         * math/test-double.h (ULP_IDX): Likewise.
3129         (ULP_I_IDX): Likewise.
3130         * math/test-float.h (ULP_IDX): Likewise.
3131         (ULP_I_IDX): Likewise.
3132         * math/test-float128.h (ULP_IDX): Likewise.
3133         (ULP_I_IDX): Likewise.
3135 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3137         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3138         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3139         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3140         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3141         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3142         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3143         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3144         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3145         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3146         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3147         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3148         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3149         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3150         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3151         (SINGLE_THREAD_BY_GLOBAL): Define.
3152         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3153         Likewise.
3154         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3155         Likewise.
3156         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3157         Likewise.
3158         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3159         Likewise.
3160         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3161         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3162         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3163         Likewise.
3165 2017-10-11  Andreas Schwab  <schwab@suse.de>
3167         * nis/Makefile (aux): Remove.
3168         * nscd/Makefile (aux): Add nscd_hash.
3169         (nscd-modules): Likewise.
3170         ($(objpfx)nscd): Don't depend on libnsl.
3171         * nscd/nscd_hash.c: New file.
3172         * nscd/nscd_hash.h: Likewise.
3173         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3174         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3175         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3176         instead of <nis/rpcsvc/nis.h>.
3177         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3179 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3181         [BZ #22078]
3182         Avoid large NSS buffers with many addresses, aliases.
3183         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3184         using dynarrays and struct alloc_buffer.
3185         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3186         (tst-nss-files-hosts-multi): Link with -ldl.
3187         * nss/tst-nss-files-hosts-multi.c: New file.
3189 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3191         [BZ #18023]
3192         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3193         scratch_buffer.  Eliminate gotos.
3195 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3197         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3198         libm_alias_ldouble_other.
3199         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3200         undefine and redefine.
3201         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3202         (exp10l): Do not define here.
3203         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3204         (weak_alias): Undefine and redefine.
3205         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3206         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3207         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3208         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3210         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3211         [!__fma] (fma): Define using libm_alias_double.
3212         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3213         [!__fmaf] (fmaf): Define using libm_alias_float.
3214         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3215         (fmal): Define using libm_alias_ldouble.
3217 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3219         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3220         New macro.
3221         (libm_alias_double_other): Likewise.
3222         (libm_alias_double_r): Use libm_alias_double_other_r.
3223         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3224         New macro.
3225         (libm_alias_float_other): Likewise.
3226         (libm_alias_float_r): Use libm_alias_float_other_r.
3227         * sysdeps/generic/libm-alias-float128.h
3228         (libm_alias_float128_other_r): New macro.
3229         (libm_alias_float128_other): Likewise.
3230         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3231         * sysdeps/generic/libm-alias-ldouble.h
3232         (libm_alias_ldouble_other_r): New macro.
3233         (libm_alias_ldouble_other): Likewise.
3234         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3235         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3236         (libm_alias_double_other_r): New macro.
3237         (libm_alias_double_other): Likewise.
3238         (libm_alias_double_r): Use libm_alias_double_other_r.
3239         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3240         (libm_alias_ldouble_other_r): New macro.
3241         (libm_alias_ldouble_other): Likewise.
3242         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3243         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3244         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3245         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3246         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3247         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3248         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3249         * math/w_exp2f.c: Use libm_alias_float_other.
3250         * math/w_expf.c: Likewise.
3251         * math/w_log2f.c: Likewise.
3252         * math/w_logf.c: Likewise.
3253         * math/w_powf.c: Likewise.
3254         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3255         [!__exp2f]: Use libm_alias_float_other.
3256         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3257         [!__expf]: Use libm_alias_float_other.
3258         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3259         [!__log2f]: Use libm_alias_float_other.
3260         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3261         [!__logf]: Use libm_alias_float_other.
3262         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3263         [!__powf]: Use libm_alias_float_other.
3265 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3267         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3268         function.
3269         (_nss_files_gethostbyname3_r): Call it.
3271 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3273         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3274         error.  Remove default definition of declare_mgen_alias.
3275         [!declare_mgen_alias_r]: Likewise.
3276         * sysdeps/generic/math-type-macros-double.h
3277         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3278         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3279         (declare_mgen_alias_r): Likewise.
3280         * sysdeps/generic/math-type-macros-float128.h
3281         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3282         * sysdeps/generic/math-type-macros-ldouble.h
3283         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3284         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3285         macro.
3286         (declare_mgen_alias_r_s): Likewise.
3287         (declare_mgen_alias_r): Likewise.
3288         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3289         (lgamma_r): Define using libm_alias_double_r.
3290         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3291         (lgammaf_r): Define using libm_alias_float_r.
3292         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3293         (lgammal_r): Define using libm_alias_ldouble_r.
3294         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3295         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3297 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3299         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3300         extern declaration.
3302 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3304         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3306 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3308         [BZ #21326]
3309         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3310         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3311         * math/Makefile (test-math-cxx11): New test.
3312         * math/test-math-cxx11.cc: New file.
3314 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3316         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3318         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3319         call to allocate the slave pty file descriptor.
3321 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3323         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3324         [!__fma] (fma): Define using libm_alias_double.
3325         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3326         [!__fma] (fma): Define using libm_alias_double.
3328         * sysdeps/ieee754/float128/float128_private.h: Include
3329         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3330         (libm_alias_ldouble_r): Undefine and redefine.
3331         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3332         <libm-alias-ldouble.h>.
3333         (asinhl): Define using libm_alias_ldouble.
3334         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3335         <libm-alias-ldouble.h>.
3336         (atanl): Define using libm_alias_ldouble.
3337         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3338         <libm-alias-ldouble.h>.
3339         (cbrtl): Define using libm_alias_ldouble.
3340         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3341         <libm-alias-ldouble.h>.
3342         (ceill): Define using libm_alias_ldouble.
3343         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3344         <libm-alias-ldouble.h>.
3345         (copysignl): Define using libm_alias_ldouble.
3346         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3347         <libm-alias-ldouble.h>.
3348         (cosl): Define using libm_alias_ldouble.
3349         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3350         <libm-alias-ldouble.h>.
3351         (erfl): Define using libm_alias_ldouble.
3352         (erfcl): Likewise.
3353         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3354         <libm-alias-ldouble.h>.
3355         (expm1l): Define using libm_alias_ldouble.
3356         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3357         <libm-alias-ldouble.h>.
3358         (fabsl): Define using libm_alias_ldouble.
3359         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3360         <libm-alias-ldouble.h>.
3361         (floorl): Define using libm_alias_ldouble.
3362         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3363         <libm-alias-ldouble.h>.
3364         (fmal): Define using libm_alias_ldouble.
3365         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3366         <libm-alias-ldouble.h>.
3367         (frexpl): Define using libm_alias_ldouble.
3368         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3369         libm_alias_ldouble.
3370         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3371         <libm-alias-ldouble.h>.
3372         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3373         libm_alias_ldouble.
3374         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3375         <libm-alias-ldouble.h>.
3376         (getpayloadl): Define using libm_alias_ldouble.
3377         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3378         <libm-alias-ldouble.h>.
3379         (llrintl): Define using libm_alias_ldouble.
3380         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3381         <libm-alias-ldouble.h>.
3382         (llroundl): Define using libm_alias_ldouble.
3383         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3384         <libm-alias-ldouble.h>.
3385         (logbl): Define using libm_alias_ldouble.
3386         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3387         <libm-alias-ldouble.h>.
3388         (lrintl): Define using libm_alias_ldouble.
3389         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3390         <libm-alias-ldouble.h>.
3391         (lroundl): Define using libm_alias_ldouble.
3392         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3393         <libm-alias-ldouble.h>.
3394         (modfl): Define using libm_alias_ldouble.
3395         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3396         <libm-alias-ldouble.h>.
3397         (nearbyintl): Define using libm_alias_ldouble.
3398         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3399         <libm-alias-ldouble.h>.
3400         (nextafterl): Define using libm_alias_ldouble.
3401         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3402         <libm-alias-ldouble.h>.
3403         (nextupl): Define using libm_alias_ldouble.
3404         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3405         <libm-alias-ldouble.h>.
3406         (remquol): Define using libm_alias_ldouble.
3407         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3408         <libm-alias-ldouble.h>.
3409         (rintl): Define using libm_alias_ldouble.
3410         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3411         <libm-alias-ldouble.h>.
3412         (roundevenl): Define using libm_alias_ldouble.
3413         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3414         <libm-alias-ldouble.h>.
3415         (roundl): Define using libm_alias_ldouble.
3416         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3417         using libm_alias_ldouble.
3418         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3419         <libm-alias-ldouble.h>.
3420         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3421         Define using libm_alias_ldouble.
3422         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3423         <libm-alias-ldouble.h>.
3424         (sincosl): Define using libm_alias_ldouble.
3425         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3426         <libm-alias-ldouble.h>.
3427         (sinl): Define using libm_alias_ldouble.
3428         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3429         <libm-alias-ldouble.h>.
3430         (tanhl): Define using libm_alias_ldouble.
3431         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3432         <libm-alias-ldouble.h>.
3433         (tanl): Define using libm_alias_ldouble.
3434         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3435         <libm-alias-ldouble.h>.
3436         (totalorderl): Define using libm_alias_ldouble.
3437         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3438         <libm-alias-ldouble.h>.
3439         (totalordermagl): Define using libm_alias_ldouble.
3440         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3441         <libm-alias-ldouble.h>.
3442         (truncl): Define using libm_alias_ldouble.
3443         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3444         libm_alias_ldouble.
3445         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3446         libm_alias_ldouble.
3447         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3448         <libm-alias-ldouble.h>.
3449         (weak_alias): Do not undefine and redefine.
3450         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3451         (copysignl): Define with long_double_symbol only if [IS_IN
3452         (libc)].
3453         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3454         <libm-alias-ldouble.h>.
3455         (weak_alias): Do not undefine and redefine.
3456         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3457         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3458         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3459         <libm-alias-ldouble.h>.
3460         (weak_alias): Do not undefine and redefine.
3461         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3462         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3463         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3464         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3465         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3466         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3467         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3468         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3469         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3470         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3471         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3472         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3473         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3474         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3475         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3476         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3477         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3478         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3479         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3480         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3481         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3482         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3483         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3484         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3485         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3486         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3488 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3490         [BZ #22111]
3491         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3492         (tcache_thread_freeres): Set tcache_shutting_down before
3493         freeing the tcache.
3494         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3495         * malloc/tst-malloc-tcache-leak.c: New file.
3497 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3499         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3500         back to powerpc32 file.
3501         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3502         (memrchr): Add __memrchr_power8 to ifunc list.
3503         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3504         extra bytes for unaligned inputs.
3506 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3508         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3509         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3510         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3511         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3512         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3514 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3516         * sysdeps/arm/libm-test-ulps: Update.
3518         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3519         <libm-alias-ldouble.h>.
3520         (asinhl): Define using libm_alias_ldouble.
3521         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3522         <libm-alias-ldouble.h>.
3523         (cbrtl): Define using libm_alias_ldouble.
3524         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3525         <libm-alias-ldouble.h>.
3526         (copysignl): Define using libm_alias_ldouble.
3527         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3528         <libm-alias-ldouble.h>.
3529         (cosl): Define using libm_alias_ldouble.
3530         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3531         <libm-alias-ldouble.h>.
3532         (erfl): Define using libm_alias_ldouble.
3533         (erfcl): Likewise.
3534         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3535         <libm-alias-ldouble.h>.
3536         (fmal): Define using libm_alias_ldouble.
3537         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3538         <libm-alias-ldouble.h>.
3539         (frexpl): Define using libm_alias_ldouble.
3540         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3541         libm_alias_ldouble.
3542         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3543         <libm-alias-ldouble.h>.
3544         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3545         libm_alias_ldouble.
3546         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3547         <libm-alias-ldouble.h>.
3548         (getpayloadl): Define using libm_alias_ldouble.
3549         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3550         <libm-alias-ldouble.h>.
3551         (llrintl): Define using libm_alias_ldouble.
3552         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3553         <libm-alias-ldouble.h>.
3554         (llroundl): Define using libm_alias_ldouble.
3555         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3556         <libm-alias-ldouble.h>.
3557         (lrintl): Define using libm_alias_ldouble.
3558         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3559         <libm-alias-ldouble.h>.
3560         (lroundl): Define using libm_alias_ldouble.
3561         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3562         <libm-alias-ldouble.h>.
3563         (modfl): Define using libm_alias_ldouble.
3564         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3565         <libm-alias-ldouble.h>.
3566         (nextupl): Define using libm_alias_ldouble.
3567         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3568         <libm-alias-ldouble.h>.
3569         (remquol): Define using libm_alias_ldouble.
3570         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3571         <libm-alias-ldouble.h>.
3572         (roundevenl): Define using libm_alias_ldouble.
3573         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3574         <libm-alias-ldouble.h>.
3575         (roundl): Define using libm_alias_ldouble.
3576         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3577         using libm_alias_ldouble.
3578         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3579         <libm-alias-ldouble.h>.
3580         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3581         <libm-alias-ldouble.h>.
3582         (setpayloadsigl): Define using libm_alias_ldouble.
3583         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3584         <libm-alias-ldouble.h>.
3585         (sincosl): Define using libm_alias_ldouble.
3586         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3587         <libm-alias-ldouble.h>.
3588         (sinl): Define using libm_alias_ldouble.
3589         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3590         <libm-alias-ldouble.h>.
3591         (tanhl): Define using libm_alias_ldouble.
3592         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3593         <libm-alias-ldouble.h>.
3594         (tanl): Define using libm_alias_ldouble.
3595         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3596         <libm-alias-ldouble.h>.
3597         (totalorderl): Define using libm_alias_ldouble.
3598         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3599         <libm-alias-ldouble.h>.
3600         (totalordermagl): Define using libm_alias_ldouble.
3601         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3602         libm_alias_ldouble.
3603         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3604         libm_alias_ldouble.
3606 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3608         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3609         memmove_falkor.
3610         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3611         (__libc_ifunc_impl_list): Likewise.
3612         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3613         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3615         * benchtests/bench-memmove-walk.c: New file.
3616         * benchtests/Makefile (string-benchset): Add it.
3618         * benchtests/bench-memset-walk.c: New file.
3619         * benchtests/Makefile (string-benchset): Add it.
3621         * benchtests/bench-memcpy-walk.c: New file.
3622         * benchtests/Makefile (string-benchset): Add it.
3624 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3626         nscd: Eliminate compilation time dependency in the build output.
3627         * nscd/nscd_stat.c (STATDATA_VERSION)
3628         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3629         (STATDATA_VERSION_FULL): New macro definitions.
3630         (compilation): Remove.
3631         (struct statdata): Adjust version member.
3632         (send_stats): Set version from STATDATA_VERSION_FULL.
3633         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3635 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3637         * configure.ac (--enable-add-ons): Remove option.
3638         (machine): Do not mention add-ons in comment.
3639         (LIBC_PRECONFIGURE): Likewise.
3640         (add_ons): Remove variable and sanity checks and logic to locate
3641         add-ons.
3642         (add_ons_automatic): Remove variable.
3643         (configured_add_ons): Likewise.
3644         (add_ons_sfx): Likewise.
3645         (add_ons_pfx): Likewise.
3646         (add_on_subdirs): Likewise.
3647         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3648         consideration of add-ons in Implies handling.
3649         (sysdeps_add_ons): Likewise.
3650         * configure: Regenerated.
3651         * libidn/configure.ac: Remove.
3652         * libidn/configure: Likewise.
3653         * sysdeps/unix/inet/configure.ac: New file.
3654         * sysdeps/unix/inet/configure: New generated file.
3655         * sysdeps/unix/inet/Subdirs: Add libidn.
3656         * Makeconfig (sysdeps-srcdirs): Remove variable.
3657         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3658         ($(common-objpfx)config.status): Do not depend on add-on files.
3659         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3660         comment.
3661         (all-subdirs): Do not include $(add-on-subdirs).
3662         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3663         * config.make.in (add-ons): Remove variable.
3664         (add-on-subdirs): Likewise.
3665         (sysdeps-add-ons): Likewise.
3666         * manual/Makefile (add-chapters): Remove.
3667         ($(objpfx)texis): Do not depend on $(add-chapters).
3668         (nonexamples): Do not handle $(add-chapters).
3669         (examples): Do not handle $(add-ons).
3670         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3671         libc-texinfo.sh.
3672         * manual/install.texi (Installation): Do not mention add-ons.
3673         (--enable-add-ons): Do not document configure option.
3674         * INSTALL: Regenerated.
3675         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3676         * manual/maint.texi (Hierarchy Conventions): Do not mention
3677         add-ons.
3678         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3679         --enable-add-ons.
3680         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3681         add-ons.
3682         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3683         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3685 2017-10-05  Andreas Schwab  <schwab@suse.de>
3687         [BZ #15142]
3688         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3689         (_IO_flush_all_lockp): Always lock list_all_lock.
3690         (_IO_flush_all_linebuffered): Likewise.
3691         (_IO_unbuffer_all): Likewise.
3693 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3695         [BZ #15436]
3696         Do not flush stdio streams on abort.
3697         * stdlib/abort.c (fflush): Remove macro definition.
3698         (abort): Remove stages related to stdio flushing.
3700 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3702         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3704 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3706         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3708 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3710         * support/support_format_hostent.c (support_format_hostent): Add
3711         more error information for NETDB_INTERNAL.
3713 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3715         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3716         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3717         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3718         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3719         AC_DEFINE if multi-arch is enabled.
3720         * sysdeps/i386/configure: Regenerated.
3722 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3724         * Makeconfig (+link-static-before-libc): Use
3725         $(DEFAULT-LDFLAGS-$(@F)).
3726         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3727         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3728         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3730 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3732         * elf/Makefile (tests): Add tst-main1.
3733         (modules-names): Add tst-main1mod.
3734         ($(objpfx)tst-main1): New.
3735         (CRT-tst-main1): Likewise.
3736         (LDFLAGS-tst-main1): Likewise.
3737         (LDLIBS-tst-main1): Likewise.
3738         (tst-main1mod.so-no-z-defs): Likewise.
3739         * elf/tst-main1.c: New file.
3740         * elf/tst-main1mod.c: Likewise.
3742 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3744         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3746 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3748         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3749         (fma): Define using libm_alias_double.
3750         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3751         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3752         <math_ldbl_opt.h>.
3753         (fmal): Do not define as compat symbol here.
3754         * sysdeps/alpha/fpu/s_fma.c: New file.
3756 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3758         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3760 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3762         [BZ #22229]
3763         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3764         <math_ldbl_opt.h>
3765         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3766         and libc.
3767         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3768         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3769         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3770         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3772         Include <math_ldbl_opt.h>
3773         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3774         and libc.
3775         (compat_symbol): Undefine and redefine.
3776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3777         <math_ldbl_opt.h>
3778         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3779         (compat_symbol): Undefine and redefine.
3780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3781         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3782         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3783         GLIBC_2_1 for libm.
3784         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3785         GLIBC_2.0 copysignl symbol.
3786         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3787         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3789         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3791 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3793         * scripts/check-local-headers.sh: Ignore nspr4 header file
3794         directory in addition to nspr.
3796 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3798         [BZ #17956]
3799         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3800         * configure: Regenerate.
3801         * crypt/Makefile (nss-cpp-flags): New variable.
3802         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3803         (CPPFLAGS-md5-crypt.c): Use it.
3804         * scripts/check-local-headers.sh: Ignore nspr header file
3805         directory.
3807 2017-10-04  Andreas Schwab  <schwab@suse.de>
3809         * nis/Makefile (services): Remove compat.
3810         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3811         ($(objpfx)libnss_compat.so): Remove rule.
3812         * nis/Versions (libnss_compat): Remove.
3813         * nss/Makefile (services): Add compat.
3814         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3815         * nss/Versions (libnss_compat): Define.
3816         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3817         Don't include <rpc/types.h>.  Replace bool_t by bool.
3818         * nss/nss_compat/compat-initgroups.c: Likewise.
3819         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3820         instead of <rpcsrv/ypclnt.h>.
3821         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3822         yp_get_default_domain.
3823         * nss/nss_compat/compat-pwd.c: Likewise.
3824         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3825         yp_get_default_domain.
3826         * nss/nss_compat/nisdomain.c: New file.
3827         * nss/nss_compat/nisdomain.h: Likewise.
3829 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3831         [BZ #22244]
3832         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3833         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3835 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3837         [BZ #22243]
3838         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3839         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3841 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3843         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3844         "movl main@GOTOFF(%ebx), %eax".
3846 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3848         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3849         allow undefined _DYNAMIC in PIE libc.a.
3850         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3851         Likewse.
3853 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3855         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3856         check _DYNAMIC.
3858 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3860         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3861         check _DYNAMIC.
3863 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3865         * math/test-math-iscanonical.cc (error): Replace bool with int.
3867 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3869         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3870         (modf): Define using libm_alias_double, only if [!__modf].
3871         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3872         <libm-alias-double.h>.
3873         (modf): Define using libm_alias_double, only if [!__modf].
3874         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3875         compat symbol here.
3876         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3877         (weak_alias): Do not undefine and redefine.
3878         (strong_alias): Likewise.
3879         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3880         (weak_alias): Likewise.
3881         (strong_alias): Likewise.
3883         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3884         (logb): Define using libm_alias_double, only if [!__logb].
3885         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3886         <libm-alias-double.h>.
3887         (logb): Define using libm_alias_double, only if [!__logb].
3888         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3890         (weak_alias): Do not undefine and redefine.
3891         (strong_alias): Likewise.
3892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3893         (weak_alias): Likewise.
3894         (strong_alias): Likewise.
3896 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3898         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3899         Check SHARED instead PIC.
3901 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3903         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3904         [!__fmaf] (fmaf): Define using libm_alias_float.
3906         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3907         (frexp): Define using libm_alias_double.
3908         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3909         <libm-alias-double.h>.
3910         (frexp): Define using libm_alias_double.
3911         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3912         compat symbol here.
3914 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3916         [BZ #22235]
3917         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3918         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3919         (CFLAGS-test-math-iscanonical.cc): New variable.
3920         * math/test-math-iscanonical.cc: New file.
3921         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3922         Provide a C++ implementation based on function overloading,
3923         rather than using __MATH_TG, which uses C-only builtins.
3924         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3925         Likewise.
3926         * sysdeps/powerpc/powerpc64le/Makefile
3927         (CFLAGS-test-math-iscanonical.cc): New variable.
3929 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3931         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3932         (ceil): Define using libm_alias_double.
3933         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3934         (floor): Define using libm_alias_double.
3935         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3936         <libm-alias-double.h>.
3937         (llround): Define using libm_alias_double.
3938         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3939         <libm-alias-double.h>.
3940         (lround): Define using libm_alias_double.
3941         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3942         <libm-alias-double.h>.
3943         (nearbyint): Define using libm_alias_double.
3944         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3945         <libm-alias-double.h>.
3946         (remquo): Define using libm_alias_double.
3947         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3948         (rint): Define using libm_alias_double.
3949         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3950         (round): Define using libm_alias_double.
3951         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3952         (trunc): Define using libm_alias_double.
3953         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3954         <libm-alias-double.h>.
3955         (ceil): Define using libm_alias_double.
3956         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3957         <libm-alias-double.h>.
3958         (floor): Define using libm_alias_double.
3959         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3960         <libm-alias-double.h>.
3961         (llround): Define using libm_alias_double.
3962         [_LP64] (lround): Likewise.
3963         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3964         <libm-alias-double.h>.
3965         [!_LP64] (lround): Define using libm_alias_double.
3966         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3967         <libm-alias-double.h>.
3968         (nearbyint): Define using libm_alias_double.
3969         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3970         <libm-alias-double.h>.
3971         (remquo): Define using libm_alias_double.
3972         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3973         <libm-alias-double.h>.
3974         (rint): Define using libm_alias_double.
3975         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3976         <libm-alias-double.h>.
3977         (round): Define using libm_alias_double.
3978         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3979         <libm-alias-double.h>.
3980         (trunc): Define using libm_alias_double.
3981         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3982         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3983         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3984         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3985         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3986         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3987         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3988         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3989         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3991 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3993         * math/w_remainder.c: New file.
3994         * math/w_remainderf.c: New file.
3995         * math/w_remainderl.c: New file.
3997 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3999         * elf/rtld.c (BOOTSTRAP_MAP): New.
4000         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
4001         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4002         Likewise.
4003         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4004         Likewise.
4005         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4006         Likewise.
4008 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4010         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
4011         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
4012         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
4013         rtld_hidden_data_ver): Define to empty.
4014         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
4015         __assert_perror_fail): Likewise.
4016         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4017         (__rewinddir): Likewise.
4018         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4019         (__profile_frequency): Likewise.
4020         * include/setjmp.h (__sigsetjmp): Likewise.
4021         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
4022         __libc_sigaction): Likewise.
4023         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
4024         not set hidden attribute.
4025         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
4026         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
4027         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
4028         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
4029         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
4030         __fxstatat64): Likewise.
4031         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4032         (__uname): Likewise.
4033         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4034         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
4035         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
4036         (NO_RTLD_HIDDEN): Set.
4037         * sysdeps/mach/hurd/configure: Refresh.
4038         * config.h.in: Refresh.
4040 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
4042         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
4043         (atan): Define using libm_alias_double.
4044         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
4045         (tan): Define using libm_alias_double.
4046         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
4047         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
4049         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
4050         define as weak alias of __atan.  Do not define any aliases if
4051         [__atan].
4052         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
4053         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
4054         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
4055         as weak alias of __tan.  Do not define any aliases if [__tan].
4056         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
4057         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
4058         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
4059         __atan.
4060         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
4061         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
4062         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
4063         and define as weak alias of __atan.
4064         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
4065         __atan.
4066         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
4067         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
4068         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
4069         define as weak alias of __tan.
4071 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4073         * math/w_lgamma.c: New file.
4074         * math/w_lgammaf.c: New file.
4075         * math/w_lgammal.c: New file.
4077 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4079         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
4080         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
4081         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
4082         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
4083         * sysdeps/ieee754/flt-32/w_logf.c: New file.
4084         * sysdeps/ieee754/flt-32/w_powf.c: New file.
4085         * sysdeps/i386/fpu/w_log2f.c: New file.
4086         * sysdeps/i386/fpu/w_logf.c: New file.
4087         * sysdeps/i386/fpu/w_powf.c: New file.
4088         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
4089         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
4090         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
4092 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4093             H.J. Lu  <hongjiu.lu@intel.com>
4095         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4096         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4097         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4098         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4099         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4100         the new expf code.
4101         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4102         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4103         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4104         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4105         * sysdeps/i386/fpu/w_exp2f.c: New file.
4106         * sysdeps/i386/fpu/w_expf.c: New file.
4107         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4108         * sysdeps/x86_64/fpu/w_expf.c: New file.
4110 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4112         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4113         (log2f): Likewise.
4114         (powf): Likewise.
4115         * math/w_log2f.c: New file.
4116         * math/w_logf.c: New file.
4117         * math/w_powf.c: New file.
4118         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4119         * math/w_logf_compat.c (__logf_compat): Likewise.
4120         * math/w_powf_compat.c (__powf_compat): Likewise.
4121         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4122         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4123         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4124         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4125         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4126         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4127         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4128         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4129         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4130         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4131         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4132         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4133         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4134         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4135         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4137         Likewise.
4138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4139         Likewise.
4140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4141         Likewise.
4142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4143         Likewise.
4144         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4145         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4146         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4147         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4148         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4150         Likewise.
4151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4152         Likewise.
4153         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4154         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4155         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4157 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4159         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4160         (sysdep_routines): Add memrchr_power8.
4161         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4162         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4163         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4164         New file.
4165         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4166         (memrchr): Add __memrchr_power8 to ifunc list.
4167         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4169 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4171         [BZ #18822]
4172         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4173         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4174         libc_hidden_def.
4175         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4176         (__posix_fallocate64_l64): Likewise.
4178 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4180         [BZ #18822]
4181         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4182         (__sched_setaffinity_new): Add libc_hidden_proto and
4183         libc_hidden_def.
4185 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4187         [BZ #18822]
4188         * include/glob.h (__glob64): Add libc_hidden_proto.
4189         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4190         libc_hidden_def.
4192 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4194         [BZ #18822]
4195         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4196         attribute_hidden.
4198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4200         [BZ #18822]
4201         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4203 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4205         [BZ #18822]
4206         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4207         libc_hidden_def.
4209 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4211         [BZ #18822]
4212         * csu/version.c (__libc_print_version): Add attribute_hidden.
4214 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4216         [BZ #18822]
4217         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4219 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4221         [BZ #18822]
4222         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4224 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4226         [BZ #18822]
4227         * nscd/nscd_helper.c (__nis_hash): New prototype.
4229 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4231         [BZ #18822]
4232         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4233         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4234         libc_hidden_def.
4235         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4236         * termios/tcgetattr.c (__tcgetattr): Likewise.
4238 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4240         [BZ #18822]
4241         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4242         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4243         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4244         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4245         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4247 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4249         [BZ #18822]
4250         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4252 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4254         [BZ #18822]
4255         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4256         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4258 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4260         [BZ #18822]
4261         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4263 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4265         [BZ #18822]
4266         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4267         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4269 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4271         [BZ #18822]
4272         * include/ifreq.h: New file.
4273         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4274         (__ifreq): Likewise.
4275         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4276         (__ifreq): Likewise.
4278 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4280         [BZ #18822]
4281         * include/idna.h: New file.
4282         * inet/getnameinfo.c: Include <idna.h> instead of
4283         <libidn/idna.h>.
4284         (__idna_to_unicode_lzlz): Removed.
4285         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4286         <libidn/idna.h>.
4287         (__idna_to_ascii_lz): Removed.
4288         (__idna_to_unicode_lzlz): Likewise.
4290 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4292         [BZ #18822]
4293         * include/plural-exp.h: New file.
4294         * intl/plural-exp.c: Include <plural-exp.h> instead of
4295         "plural-exp.h".
4297 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4299         [BZ #18822]
4300         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4301         "getsourcefilter.h".
4302         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4303         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4304         "getsourcefilter.h".
4305         (__get_sol): Removed.
4307 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4309         [BZ #18822]
4310         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4311         to ...
4312         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4314 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4316         [BZ #18822]
4317         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4318         attribute_hidden.
4320 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4322         [BZ #18822]
4323         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4325 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4327         [BZ #18822]
4328         * include/search.h (__tdestroy): Add libc_hidden_proto.
4329         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4331 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4333         [BZ #18822]
4334         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4336 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4338         [BZ #18822]
4339         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4340         attribute_hidden.
4342 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4344         [BZ #18822]
4345         * include/signal.h (__kill): Add libc_hidden_proto.
4346         (__sigblock): Likewise.
4347         (__sigprocmask): Likewise.
4348         (__sigaltstack): Likewise.
4349         * signal/kill.c (__kill): Add libc_hidden_def.
4350         * signal/sigblock.c (__sigblock): Likewise.
4351         * signal/sigprocmask.c (__sigprocmask): Likewise.
4352         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4353         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4354         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4355         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4356         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4357         Likewise.
4358         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4359         Likewise.
4360         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4361         (__sigprocmask): Likewise.
4362         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4363         Likewise.
4364         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4365         (__sigprocmask): Likewise.
4366         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4367         Likewise.
4369 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4371         [BZ #18822]
4372         * include/string.h (__strsep): Add libc_hidden_proto.
4373         * string/strsep.c (__strsep): Add libc_hidden_def.
4375 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4377         [BZ #18822]
4378         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4379         attribute_hidden.
4380         (__spawni): Likewise.
4382 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4384         [BZ #18822]
4385         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4386         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4387         libc_hidden_def.
4389 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4391         [BZ #18822]
4392         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4394 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4396         [BZ #18822]
4397         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4398         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4399         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4400         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4401         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4402         Likewise.
4403         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4404         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4406 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4408         [BZ #18822]
4409         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4410         (__dcigettext): Likewise.
4412 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4414         [BZ #18822]
4415         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4416         libc_hidden_proto.
4417         (__get_nprocs): Likewise.
4418         (__get_phys_pages): Likewise.
4419         (__get_avphys_pages): Likewise.
4420         (__get_child_max): Add attribute_hidden.
4421         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4422         (__get_nprocs): Likewise.
4423         (__get_phys_pages): Likewise.
4424         (__get_avphys_pages): Likewise.
4425         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4426         libc_hidden_def.
4427         (__get_nprocs): Likewise.
4428         (__get_phys_pages): Likewise.
4429         (__get_avphys_pages): Likewise.
4430         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4431         libc_hidden_def.
4432         (__get_nprocs_conf): Likewise.
4433         (__get_phys_pages): Likewise.
4434         (__get_avphys_pages): Likewise.
4436 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4438         [BZ #18822]
4439         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4440         attribute_hidden.
4441         (__netlink_close): Likewise.
4442         (__netlink_free_handle): Likewise.
4443         (__netlink_request): Likewise.
4445 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4447         [BZ #18822]
4448         * include/rpc/rpc.h (__rpc_thread_variables): Add
4449         attribute_hidden.
4450         (__rpc_thread_svc_cleanup): Likewise.
4451         (__rpc_thread_clnt_cleanup): Likewise.
4452         (__rpc_thread_key_cleanup): Likewise.
4454 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4456         [BZ #18822]
4457         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4458         (__writev): Likewise.
4459         * misc/readv.c (__readv): Add libc_hidden_def.
4460         * misc/writev.c (__writev): Likewise.
4461         * sysdeps/posix/readv.c (__readv): Likewise.
4462         * sysdeps/posix/writev.c (__writev): Likewise.
4463         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4464         (__readv): Likewise.
4465         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4466         (__writev): Likewise.
4468 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4470         [BZ #18822]
4471         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4472         (__regcomp): Add libc_hidden_proto.
4473         (__regexec): Likewise.
4474         (__regfree): Likewise.
4475         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4476         (__regfree): Likewise.
4477         * posix/regexec.c (__regexec): Likewise.
4479 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4481         [BZ #18822]
4482         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4483         (__getutent): Likewise.
4484         (__getutid): Likewise.
4485         (__getutline): Likewise.
4486         (__pututline): Likewise.
4487         (__getutent_r): Likewise.
4488         (__getutid_r): Likewise.
4489         (__getutline_r): Likewise.
4490         (__utmpname): Add attribute_hidden.
4491         (__setutent): Likewise.
4492         (__endutent): Likewise.
4493         * login/getutent.c (__getutent): Add libc_hidden_def.
4494         * login/getutent_r.c (__getutent_r): Likewise.
4495         (__pututline): Likewise.
4496         * login/getutid.c (__getutid): Likewise.
4497         * login/getutid_r.c (__getutid_r): Likewise.
4498         * login/getutline.c (__getutline): Likewise.
4499         * login/getutline_r.c (__getutline_r): Likewise.
4500         * login/updwtmp.c (__updwtmp): Likewise.
4502 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4504         [BZ #18822]
4505         * include/dirent.h (__opendir): Always add attribute_hidden.
4506         (__fdopendir): Likewise.
4507         (__closedir): Likewise.
4508         (__readdir): Likewise.
4509         (__readdir64): Add libc_hidden_proto.
4510         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4511         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4512         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4513         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4514         New alias.
4516 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4518         [BZ #18822]
4519         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4520         * include/netdb.h (__gethostbyaddr_r): Likewise.
4521         (__gethostbyname_r): Likewise.
4522         (__gethostbyname2_r): Likewise.
4523         (__getnetbyaddr_r): Likewise.
4524         (__getnetbyname_r): Likewise.
4525         (__getservbyname_r): Likewise.
4526         (__getservbyport_r): Likewise.
4527         (__getprotobyname_r): Likewise.
4528         (__getprotobynumber_r): Likewise.
4529         (__getnetgrent_r): Likewise.
4530         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4531         (__getrpcbynumber_r): Likewise.
4532         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4534 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4536         [BZ #18822]
4537         * include/stdio.h (__fcloseall): Add attribute_hidden.
4538         (__getline): Likewise.
4539         (__path_search): Likewise.
4540         (__gen_tempname): Likewise.
4541         (__libc_message): Likewise.
4542         (__flockfile): Likewise.
4543         (__funlockfile): Likewise.
4544         (__fxprintf): Likewise.
4545         (__fxprintf_nocancel): Likewise.
4547 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4549         [BZ #18822]
4550         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4551         (__sgetsgent_r): Likewise.
4553 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4555         [BZ #18822]
4556         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4557         (__statfs64): Likewise.
4558         (__fstatfs64): Likewise.
4559         * include/sys/statvfs.h (__statvfs64): Likewise.
4560         (__fstatvfs64): Likewise.
4561         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4562         (__statfs_filesize_max): Likewise.
4563         (__statfs_symlinks): Likewise.
4564         (__statfs_chown_restricted): Likewise.
4566 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4568         [BZ #18822]
4569         * include/time.h (__tzstring): Add attribute_hidden.
4570         (__tzfile_read): Likewise.
4571         (__tzfile_compute): Likewise.
4572         (__tzfile_default): Likewise.
4573         (__tzset_parse_tz): Likewise.
4574         (__offtime): Likewise.
4575         (__asctime_r): Likewise.
4576         (__tzset): Likewise.
4577         (__tz_convert): Likewise.
4578         (__getdate_r): Likewise.
4579         (__getclktck): Likewise.
4581 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4583         [BZ #18822]
4584         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4585         (__nscd_unmap): Likewise.
4586         (__nscd_cache_search): Likewise.
4587         (__nscd_get_nl_timestamp): Likewise.
4588         (__nscd_getpwnam_r): Likewise.
4589         (__nscd_getpwuid_r): Likewise.
4590         (__nscd_getgrnam_r): Likewise.
4591         (__nscd_getgrgid_r): Likewise.
4592         (__nscd_gethostbyname_r): Likewise.
4593         (__nscd_gethostbyname2_r): Likewise.
4594         (__nscd_gethostbyaddr_r): Likewise.
4595         (__nscd_getai): Likewise.
4596         (__nscd_getgrouplist): Likewise.
4597         (__nscd_getservbyname_r): Likewise.
4598         (__nscd_getservbyport_r): Likewise.
4599         (__nscd_innetgr): Likewise.
4600         (__nscd_setnetgrent): Likewise.
4602 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4604         [BZ #18822]
4605         * include/gmp.h: Declare internal functions only if _ISOMAC is
4606         undefined.
4607         (__mpn_extract_double): Add attribute_hidden.
4608         (__mpn_extract_long_double): Likewise.
4609         (__mpn_extract_float128): Likewise.
4610         (__mpn_construct_float): Likewise.
4611         (__mpn_construct_double): Likewise.
4612         (__mpn_construct_long_double): Likewise.
4613         (__mpn_construct_float128): Likewise.
4614         (mpn_add_1): Likewise.
4615         (mpn_addmul_1): Likewise.
4616         (mpn_add_n): Likewise.
4617         (mpn_cmp): Likewise.
4618         (mpn_divrem): Likewise.
4619         (mpn_lshift): Likewise.
4620         (mpn_mul): Likewise.
4621         (mpn_mul_1): Likewise.
4622         (mpn_rshift): Likewise.
4623         (mpn_sub_1): Likewise.
4624         (mpn_submul_1): Likewise.
4625         (mpn_sub_n): Likewise.
4627 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4629         [BZ #18822]
4630         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4631         (__wcscat): Likewise.
4632         (__btowc): Likewise.
4633         (__wcrtomb): Likewise.
4634         (__mbsrtowcs): Likewise.
4635         (__wcsrtombs): Likewise.
4636         (__mbsnrtowcs): Likewise.
4637         (__wcsnrtombs): Likewise.
4638         (__wcsncpy): Likewise.
4639         (__wcpncpy): Likewise.
4640         (__wmemcpy): Likewise.
4641         (__wmempcpy): Likewise.
4642         (__wmemmove): Likewise.
4643         (__wcschrnul): Likewise.
4644         (__vfwscanf): Likewise.
4645         (__vswprintf): Likewise.
4646         (__fwprintf): Likewise.
4647         (__vfwprintf): Likewise.
4649 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4651         [BZ #18822]
4652         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4653         (__getgrgid_r): Likewise.
4654         (__getgrnam_r): Likewise.
4655         * include/pwd.h (__getpwuid_r): Likewise.
4656         (__getpwnam_r): Likewise.
4657         (__fgetpwent_r): Likewise.
4658         * include/shadow.h (__getspnam_r): Likewise.
4659         (__sgetspent_r): Likewise.
4660         (__fgetspent_r): Likewise.
4662 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4664         [BZ #18822]
4665         * include/unistd.h (__access): Add attribute_hidden.
4666         (__lseek64): Likewise.
4667         (__libc_pread64): Likewise.
4668         (__pipe2): Likewise.
4669         (__sleep): Likewise.
4670         (__chdir): Likewise.
4671         (__fchdir): Likewise.
4672         (__getcwd): Likewise.
4673         (__rmdir): Likewise.
4674         (__execvpe): Likewise.
4675         (__execve): Likewise.
4676         (__setsid): Likewise.
4677         (__getuid): Likewise.
4678         (__geteuid): Likewise.
4679         (__getgid): Likewise.
4680         (__getegid): Likewise.
4681         (__getgroups): Likewise.
4682         (__group_member): Likewise.
4683         (__ttyname_r): Likewise.
4684         (__isatty): Likewise.
4685         (__readlink): Likewise.
4686         (__unlink): Likewise.
4687         (__gethostname): Likewise.
4688         (__profil): Likewise.
4689         (__getdtablesize): Likewise.
4690         (__brk): Likewise.
4691         (__ftruncate): Likewise.
4692         (__ftruncate64): Likewise.
4694 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4696         [BZ #18822]
4697         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4698         * argp/argp-fs-xinl.c: Likewise.
4699         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4700         * argp/argp-parse.c: Include <argp.h>.
4701         * argp/argp-xinl.c: Likewise.
4702         * include/argp-fmtstream.h: New file.
4703         * include/argp.h (__argp_error): Add attribute_hidden.
4704         (__argp_failure): Likewise.
4705         (__argp_input): Likewise.
4706         (__argp_state_help): Likewise.
4708 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4710         [BZ #18822]
4711         * include/wchar.h (____wcstof_l_internal): New prototype.
4712         (____wcstod_l_internal): Likewise.
4713         (____wcstold_l_internal): Likewise.
4714         (____wcstol_l_internal): Likewise.
4715         (____wcstoul_l_internal): Likewise.
4716         (____wcstoll_l_internal): Likewise.
4717         (____wcstoull_l_internal): Likewise.
4718         (____wcstof128_l_internal): Likewise.
4719         * sysdeps/ieee754/float128/wcstof128.c
4720         (____wcstof128_l_internal): Removed.
4721         * sysdeps/ieee754/float128/wcstof128_l.c
4722         (____wcstof128_l_internal): Likewise.
4723         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4724         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4725         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4726         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4727         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4728         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4729         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4730         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4731         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4732         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4734 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4736         [BZ #18822]
4737         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4738         instead of <sys/statvfs.h>.
4739         (__internal_statvfs): Removed.
4740         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4741         instead of <sys/statvfs.h>.
4742         (__internal_statvfs64): Removed.
4743         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4744         "internal_statvfs.h" instead of <sys/statvfs.h>.
4745         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4746         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4747         instead of <sys/statvfs.h>.
4748         (__internal_statvfs): Removed.
4749         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4750         instead of <sys/statvfs.h>.
4751         (__internal_statvfs64): Removed.
4753 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4755         [BZ #18822]
4756         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4757         (__gconv_close): Likewise.
4758         (__gconv): Likewise.
4759         (__gconv_find_transform): Likewise.
4760         (__gconv_lookup_cache): Likewise.
4761         (__gconv_compare_alias_cache): Likewise.
4762         (__gconv_load_cache): Likewise.
4763         (__gconv_get_path): Likewise.
4764         (__gconv_close_transform): Likewise.
4765         (__gconv_release_cache): Likewise.
4766         (__gconv_find_shlib): Likewise.
4767         (__gconv_release_shlib): Likewise.
4768         (__gconv_get_builtin_trans): Likewise.
4769         (__gconv_compare_alias): Likewise.
4770         * include/dlfcn.h (_dlerror_run): Likewise.
4771         * include/stdio.h (__fortify_fail_abort): Likewise.
4772         * include/time.h (__tz_compute): Likewise.
4773         (__strptime_internal): Likewise.
4774         * intl/gettextP.h (_nl_find_domain): Likewise.
4775         (_nl_load_domain): Likewise.
4776         (_nl_find_msg): Likewise.
4777         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4778         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4779         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4780         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4781         (__gai_find_request): Likewise.
4782         (__gai_remove_request): Likewise.
4783         (__gai_notify): Likewise.
4784         (__gai_notify_only): Likewise.
4785         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4786         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4787         (_dl_non_dynamic_init): Likewise.
4788         (_dl_aux_init): Likewise.
4789         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4790         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4791         Likewise.
4792         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4793         (__wcsmbs_clone_conv): Likewise.
4794         (__wcsmbs_named_conv): Likewise.
4796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4798         [BZ #18822]
4799         * include/stdlib.h (__random): Add attribute_hidden.
4800         (__random_r): Likewise.
4801         (__srandom_r): Likewise.
4802         (__initstate_r): Likewise.
4803         (__setstate_r): Likewise.
4804         (__erand48_r): Likewise.
4805         (__nrand48_r): Likewise.
4806         (__jrand48_r): Likewise.
4807         (__srand48_r): Likewise.
4808         (__seed48_r): Likewise.
4809         (__lcong48_r): Likewise.
4810         (__drand48_iterate): Likewise.
4811         (__setenv): Likewise.
4812         (__unsetenv): Likewise.
4813         (__clearenv): Likewise.
4814         (__ptsname_r): Likewise.
4815         (__posix_openpt): Likewise.
4816         (__add_to_environ): Likewise.
4817         (__realpath): Add libc_hidden_proto.
4818         (__ecvt_r): Likewise.
4819         (__fcvt_r): Likewise.
4820         (__qecvt_r): Likewise.
4821         (__qfcvt_r): Likewise.
4822         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4823         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4825 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4827         [BZ #18822]
4828         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4829         * include/time.h (__mktime_internal): Likewise.
4830         * libio/iolibio.h (__fopen_internal): Likewise.
4832 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4834         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4835         pointer in frame.
4836         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4837         Correct offset used to restore PIC register.
4839 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4841         [BZ libc/22165]
4842         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4843         code to load address of __getcontext_ret when generating PIC code.
4845 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4847         * elf/Makefile (tests-static-internal): Add
4848         tst-tls1-static-non-pie.
4849         (LDFLAGS-tst-tls1-static-non-pie): New.
4850         * elf/tst-tls1-static-non-pie.c: New file.
4852 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4854         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4855         (asinh): Define using libm_alias_double.
4856         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4857         (cbrt): Define using libm_alias_double.
4858         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4859         <libm-alias-double.h>.
4860         (copysign): Define using libm_alias_double.
4861         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4862         (erf): Define using libm_alias_double.
4863         (erfc): Likewise.
4864         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4865         (expm1): Define using libm_alias_double.
4866         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4867         (fabs): Define using libm_alias_double.
4868         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4869         libm_alias_double.
4870         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4871         <libm-alias-double.h>.
4872         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4873         libm_alias_double.
4874         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4875         <libm-alias-double.h>.
4876         (getpayload): Define using libm_alias_double.
4877         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4878         <libm-alias-double.h>.
4879         (llrint): Define using libm_alias_double.
4880         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4881         (lrint): Define using libm_alias_double.
4882         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4883         <libm-alias-double.h>.
4884         (nextup): Define using libm_alias_double.
4885         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4886         <libm-alias-double.h>.
4887         (roundeven): Define using libm_alias_double.
4888         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4889         libm_alias_double.
4890         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4891         <libm-alias-double.h>.
4892         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4893         using libm_alias_double.
4894         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4895         (cos): Define using libm_alias_double.
4896         (sin): Likewise.
4897         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4898         <libm-alias-double.h>.
4899         (sincos): Define using libm_alias_double.
4900         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4901         (tanh): Define using libm_alias_double.
4902         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4903         <libm-alias-double.h>.
4904         (totalorder): Define using libm_alias_double.
4905         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4906         <libm-alias-double.h>.
4907         (totalordermag): Define using libm_alias_double.
4908         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4909         libm_alias_double.
4910         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4911         libm_alias_double.
4912         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4913         <libm-alias-double.h>.
4914         (getpayload): Define using libm_alias_double.
4915         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4916         <libm-alias-double.h>.
4917         (roundeven): Define using libm_alias_double.
4918         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4919         <libm-alias-double.h>.
4920         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4921         <libm-alias-double.h>.
4922         (totalorder): Define using libm_alias_double.
4923         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4924         <libm-alias-double.h>.
4925         (totalordermag): Define using libm_alias_double.
4926         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4927         libc compat symbol here.
4928         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4929         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4930         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4931         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4932         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4933         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4934         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4935         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4936         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4937         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4939 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4941         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4942         _dl_relocate_static_pie instead of _dl_start to compute load
4943         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4944         static executable.
4946 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4948         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4949         _DYNAMIC is undefined for static executable.
4951 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4953         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4955 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4957         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4959 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4961         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4962         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4963         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4964         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4965         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4966         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4967         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4968         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4969         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4970         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4971         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4972         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4973         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4974         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4975         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4976         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4977         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4979 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4981         * math/bits/cmathcalls.h (cimag): Remove inline.
4982         (creal): Remove inline.
4983         (conj): Remove inline.
4985 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4987         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4988         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4989         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4990         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4991         (issignalingf_inline): Likewise.
4992         (POWF_LOG2_TABLE_BITS): Likewise.
4993         (POWF_LOG2_POLY_ORDER): Likewise.
4994         (POWF_SCALE_BITS): Likewise.
4995         (POWF_SCALE): Likewise.
4996         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4997         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4998         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
5000 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5002         * math/Makefile (type-float-routines): Add e_log2f_data.
5003         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
5004         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
5005         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
5006         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
5007         * sysdeps/i386/fpu/e_log2f_data.c: New file.
5008         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
5009         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
5011 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5013         * math/Makefile (type-float-routines): Add e_logf_data.
5014         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
5015         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
5016         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
5017         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
5018         * sysdeps/i386/fpu/e_logf_data.c: New file.
5019         * sysdeps/ia64/fpu/e_logf_data.c: New file.
5020         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
5022 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5024         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
5025         undefined _DYNAMIC in PIE libc.a.
5026         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
5027         Likewse.
5029 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5031         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
5032         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
5033         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
5034         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
5035         (__signbit): Remove.
5036         (__signbitl): Remove.
5037         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
5038         (__signbit): Remove.
5039         (__signbitl): Remove.
5040         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
5041         (__signbit): Remove.
5042         (__signbitl): Remove.
5043         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
5044         (__signbit): Remove.
5045         (__signbitl): Remove.
5046         * sysdeps/tile/bits/mathinline.h: Delete file.
5047         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
5048         (__signbit): Remove.
5049         (__signbitl): Remove.
5051 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5053         * math/math.h: Improve handling of C99 isgreater macros.
5054         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
5055         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
5056         * sysdeps/powerpc/bits/mathinline.h: Likewise.
5057         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5058         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5060 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5062         * sysdeps/aarch64/libm-test-ulps: Update.
5064 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
5066         [BZ #22225]
5067         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5068         math_opt_barrier on argument when doing arithmetic on it.
5069         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5070         Likewise.  Use math_force_eval not math_opt_barrier after
5071         arithmetic.
5072         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
5073         math_opt_barrier on argument when doing arithmetic on it.
5074         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5075         Likewise.
5077 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5079         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
5080         libc_hidden_def.
5081         (__freeifaddrs): Likewise.
5083 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5085         * include/dirent.h (__dirfd): New declaration.
5086         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
5087         alias.
5088         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
5089         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
5090         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
5091         * include/unistd.h (__revoke): New declaration.
5092         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
5093         alias.
5094         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5095         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5096         revoke.
5097         * include/dirent.h (__seekdir): New declaration.
5098         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5099         redefine as weak alias.
5100         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5101         of seekdir.
5102         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5103         and use libc_hidden_def on them.
5104         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5105         them.
5106         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5107         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5108         instead of getifaddrs and freeifaddrs.
5110 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5112         [BZ #18822]
5113         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5114         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5115         (__dso_handle): Remove declaration.
5116         * dlfcn/tstatexit.c (__dso_handle): Removed.
5117         (main): Don't check __dso_handle.
5118         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5119         (main): Don't check __dso_handle.
5120         * include/dso_handle.h: New file.
5121         * malloc/mtrace.c: Include <dso_handle.h>.
5122         (mtrace): Pass __dso_handle directly.
5123         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5124         (__dso_handle): Remove declaration.
5125         (__pthread_atfork): Pass __dso_handle directly.
5126         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5127         (__dso_handle): Removed.
5128         * posix/wordexp-test.c: Include <dso_handle.h>.
5129         (__dso_handle): Remove declaration.
5130         (__app_register_atfork): Pass __dso_handle directly.
5131         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5132         (__dso_handle): Remove declaration.
5133         (at_quick_exit): Pass __dso_handle directly.
5134         * stdlib/atexit.c: Include <dso_handle.h>.
5135         (__dso_handle): Remove declaration.
5136         (atexit): Pass __dso_handle directly.
5137         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5138         (__dso_handle): Removed.
5140 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5142         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5143         using VDSO.
5145 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5147         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5148         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5149         values to correct default value for given type.
5151 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5153         [BZ #22101]
5154         * elf/Makefile (tests): Add tst-debug1.
5155         ($(objpfx)tst-debug1): New.
5156         ($(objpfx)tst-debug1.out): Likewise.
5157         ($(objpfx)tst-debug1mod1.so): Likewise.
5158         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5159         with p_filesz == 0.
5160         * elf/tst-debug1.c: New file.
5162 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5164         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5165         Define using __ifunc.
5167 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5169         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5170         exp2f() values.
5172 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5174         [BZ #22156]
5175         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5177 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5179         * resolv/Makefile (tests-internal): Fix typo in comment.
5181 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5183         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5185 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5187         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5188         Use an union instead of a max_align_t array for __space,
5189         so that __space is the same size on all platforms.
5190         * malloc/scratch_buffer_grow_preserve.c
5191         (__libc_scratch_buffer_grow_preserve): Likewise.
5193         [BZ #22183]
5194         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5195         version to 2.
5196         * posix/Makefile (routines): Add glob-lstat-compat and
5197         glob64-lstat-compat.
5198         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5199         * posix/glob-lstat-compat.c: New file.
5200         * posix/glob64-lstat-compat.c: Likewise.
5201         * posix/tst-glob_lstat_compat.c: Likewise.
5202         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5203         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5204         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5205         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5206         Likewise.
5207         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5208         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5209         * posix/glob.c (glob_lstat): New function.
5210         (glob): Rename to __glob and add versioned symbol to 2.27.
5211         (glob_in_dir): Use glob_lstat.
5212         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5213         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5214         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5215         2.27.
5216         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5217         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5218         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5219         gl_lstat on glob call.
5220         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5221         and glob64 symbols.
5222         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5223         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5224         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5225         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5226         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5227         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5228         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5229         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5230         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5231         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5232         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5233         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5235         Likewise.
5236         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5238         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5239         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5240         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5241         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5242         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5245         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5246         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5247         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5249 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5251         * configure.ac (AS): Require binutils 2.25 or later.
5252         * configure: Regenerated.
5254 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5256         [BZ #22207]
5257         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5258         VM size.
5260 2017-09-25  DJ Delorie  <dj@redhat.com>
5262         [BZ #22161]
5263         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5264         resetting timeout.
5266 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5268         * sysdeps/ieee754/dbl-64/sincos32.h
5269         [SINCCOS32_H]: Remove define.
5270         [SINCOS32_H]: Define.
5272 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5274         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5275         (exp2f): Likewise.
5276         * math/w_exp2f.c: New file.
5277         * math/w_expf.c: New file.
5278         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5279         * math/w_expf_compat.c (__expf_compat): Likewise.
5280         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5281         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5282         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5283         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5284         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5285         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5286         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5287         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5288         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5289         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5290         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5291         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5292         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5293         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5295         Likewise.
5296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5297         Likewise.
5298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5299         Likewise.
5300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5301         Likewise.
5302         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5303         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5304         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5305         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5306         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5308         Likewise.
5309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5310         Likewise.
5311         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5312         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5313         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5315 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5317         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5318         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5319         (roundtoint, converttoint): Likewise.
5320         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5321         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5322         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5323         * sysdeps/ieee754/flt-32/math_config.h: New file.
5324         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5325         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5326         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5327         * sysdeps/i386/fpu/math_errf.c: New file.
5328         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5329         * sysdeps/ia64/fpu/math_errf.c: New file.
5330         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5331         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5333 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5335         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5336         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5337         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5338         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5339         to make sure that these symbols are defined.
5340         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5341         of <limits.h>
5342         (__need_NULL): Do not define.
5343         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5344         alignment.
5345         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5346         CMGROUP_MAX, cmsgcred): Do not define.
5347         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5348         NULL.
5349         * bits/socket.h: Likewise.
5350         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5351         __gettimeofday instead of gettimeofday.
5352         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5353         instead of settimeofday.
5355 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5357         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5358         (asinhf): Define using libm_alias_float.
5359         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5360         (atanf): Define using libm_alias_float.
5361         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5362         (cbrtf): Define using libm_alias_float.
5363         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5364         (ceilf): Define using libm_alias_float.
5365         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5366         <libm-alias-float.h>.
5367         (copysignf): Define using libm_alias_float.
5368         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5369         (cosf): Define using libm_alias_float.
5370         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5371         (erff): Define using libm_alias_float.
5372         (erfcf): Likewise.
5373         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5374         (expm1f): Define using libm_alias_float.
5375         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5376         (fabsf): Define using libm_alias_float.
5377         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5378         (floorf): Define using libm_alias_float.
5379         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5380         (frexpf): Define using libm_alias_float.
5381         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5382         libm_alias_float.
5383         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5384         <libm-alias-float.h>.
5385         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5386         libm_alias_float.
5387         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5388         <libm-alias-float.h>.
5389         (getpayloadf): Define using libm_alias_float.
5390         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5391         <libm-alias-float.h>.
5392         (llrintf): Define using libm_alias_float.
5393         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5394         <libm-alias-float.h>.
5395         (llroundf): Define using libm_alias_float.
5396         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5397         (logbf): Define using libm_alias_float.
5398         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5399         (lrintf): Define using libm_alias_float.
5400         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5401         (lroundf): Define using libm_alias_float.
5402         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5403         (modff): Define using libm_alias_float.
5404         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5405         <libm-alias-float.h>.
5406         (nearbyintf): Define using libm_alias_float.
5407         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5408         <libm-alias-float.h>.
5409         (nextafterf): Define using libm_alias_float.
5410         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5411         <libm-alias-float.h>.
5412         (nextupf): Define using libm_alias_float.
5413         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5414         <libm-alias-float.h>.
5415         (remquof): Define using libm_alias_float.
5416         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5417         (rintf): Define using libm_alias_float.
5418         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5419         <libm-alias-float.h>.
5420         (roundevenf): Define using libm_alias_float.
5421         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5422         (roundf): Define using libm_alias_float.
5423         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5424         using libm_alias_float.
5425         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5426         <libm-alias-float.h>.
5427         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5428         Define using libm_alias_float.
5429         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5430         <libm-alias-float.h>.
5431         (sincosf): Define using libm_alias_float.
5432         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5433         (sinf): Define using libm_alias_float.
5434         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5435         (tanf): Define using libm_alias_float.
5436         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5437         (tanhf): Define using libm_alias_float.
5438         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5439         <libm-alias-float.h>.
5440         (totalorderf): Define using libm_alias_float.
5441         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5442         <libm-alias-float.h>.
5443         (totalordermagf): Define using libm_alias_float.
5444         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5445         (truncf): Define using libm_alias_float.
5446         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5447         libm_alias_float.
5448         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5449         libm_alias_float.
5451 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5453         [BZ #22146]
5454         math/math.h: Let fpclassify use the builtin in C++ mode, even
5455         when optimazing for size.
5457 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5459         * csu/Makefile (generated): Do not add version-info.h.
5460         (before-compile): Likewise.
5461         (all-Banner-files): Remove variable.
5462         ($(objpfx)version-info.h): Remove rule.
5463         * csu/version.c (banner): Do not include "version-info.h".
5464         * libidn/Banner: Remove.
5465         * manual/contrib.texi (Simon Josefsson): New entry.
5467 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5469         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5470         Remove conditionals on LDBL_MANT_DIG.
5471         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5472         (__ieee754_lgammal_r): Likewise.
5474 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5476         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5477         _Float128 and L().
5478         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5479         _Float128 and L(). Replace _Float128 with long double and L(x)
5480         with xL, throughout the file.
5481         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5482         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5483         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5484         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5486 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5488         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5489         sysdeps/ieee754/ldbl-128ibm.
5490         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5491         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5492         of including it.  Keep _Float128 and L() intact.  These will be
5493         reviewed by a separate patch.
5494         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5495         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5496         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5497         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5499 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5502         (__finitef128): Define to __redirect___finitef128.
5503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5504         (__isinff128): Define to __redirect___isinff128.
5505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5506         (__isnanf128): Define to __redirect___isnanf128.
5508 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5510         * sysdeps/powerpc/powerpc64le/Makefile
5511         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5512         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5514 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5515             Carlos O'Donell  <carlos@redhat.com>
5517         [BZ #22180]
5518         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5519         * stdlib/test-dlclose-exit-race.c: New file.
5520         * stdlib/test-dlclose-exit-race-helper.c: New file.
5521         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5523 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5525         * crypt/Banner: Remove file.
5526         * nptl/Banner: Likewise.
5527         * resolv/Banner: Likewise.
5528         * soft-fp/Banner: Likewise.
5529         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5530         ($(objpfx)version.d): Remove dependency on banner.h.
5531         ($(objpfx)version.os): Likewise.
5532         * nptl/version.c (banner): Do not include banner.h.
5533         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5534         Jelinek and BIND code.
5536 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5537             Carlos O'Donell  <carlos@redhat.com>
5539         * support/xdlfcn.h: New file.
5540         * support/xdlfcn.c: New file.
5541         * support/Makefile (libsupport-routines): Add xdlfcn.
5542         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5544 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5546         [BZ #20142]
5547         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5548         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5549         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5550         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5551         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5552         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5553         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5554         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5556 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5557             Ricky Zhou  <rickyz@google.com>
5558             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5560         [BZ #14333]
5561         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5562         Remove atomics.
5563         (__new_exitfn): Fail registration when we finished at_exit processing.
5564         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5565         * stdlib/on_exit.c (__on_exit): Likewise.
5566         * stdlib/exit.c (__exit_funcs_done): New variable.
5567         (__run_exit_handlers): Use __exit_funcs_lock.
5568         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5569         declarations.
5570         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5571         (test-cxa_atexit-race, test-on_exit-race): New tests.
5572         * stdlib/test-atexit-race-common.c: New file.
5573         * stdlib/test-atexit-race.c: New file.
5574         * stdlib/test-at_quick_exit-race.c: New file.
5575         * stdlib/test-cxa_atexit-race.c: New file.
5576         * stdlib/test-on_exit-race.c: New file.
5578 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5580         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5581         * benchtests/exp2f-inputs: Copy of expf-inputs.
5582         * benchtests/log2f-inputs: Copy of logf-inputs.
5584 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5586         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5587         Explicitly take address of first element of array arguments in
5588         call to INLINE_SYSCALL.
5590 2017-09-19  Andreas Schwab  <schwab@suse.de>
5592         [BZ #22134]
5593         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5594         execveat first.
5595         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5596         unimplemented.
5597         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5598         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5599         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5600         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5601         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5602         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5603         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5604         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5605         * posix/Makefile (tests): Add tst-fexecve.
5606         * posix/tst-fexecve.c: New file.
5608 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5610         * benchtests/Makefile: Add logf benchmark.
5611         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5613 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5615         * benchtests/Makefile: Add expf benchmark.
5616         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5618 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5620         * csu/Makefile: Add -funwind-tables to libc-start.c.
5621         * debug/Makefile: Add -funwind-tables to backtrace.c.
5622         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5623         * sysdeps/arm/Makefile: Likewise.
5624         * sysdeps/i386/Makefile: Likewise.
5625         * sysdeps/m68k/Makefile: Likewise.
5626         * sysdeps/mips/Makefile: Likewise.
5627         * sysdeps/nios2/Makefile: Likewise.
5628         * sysdeps/sh/Makefile: Likewise.
5629         * sysdeps/sparc/Makefile: Likewise.
5631 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5633         * benchtests/Makefile (bench-math): Add trunc and truncf.
5634         (CFLAGS-bench-trunc.c): New variable.
5635         (CFLAGS-bench-truncf.c): Likewise.
5636         * benchtests/trunc-inputs: New file.
5637         * benchtests/truncf-inputs: Likewise.
5639 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5641         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5643 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5645         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5646         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5647         redefine.
5648         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5649         (exp10l): Define as weak alias.
5650         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5651         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5652         and redefine.
5653         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5654         (remainderl): Define as weak alias.
5656         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5657         (fmal): Define using libm_alias_ldouble.
5658         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5659         (acoshl): Define using libm_alias_ldouble.
5660         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5661         (acosl): Define using libm_alias_ldouble.
5662         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5663         (asinl): Define using libm_alias_ldouble.
5664         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5665         (atan2l): Define using libm_alias_ldouble.
5666         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5667         (atanhl): Define using libm_alias_ldouble.
5668         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5669         (coshl): Define using libm_alias_ldouble.
5670         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5671         (exp10l): Define using libm_alias_ldouble.
5672         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5673         (exp2l): Define using libm_alias_ldouble.
5674         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5675         (expl): Define using libm_alias_ldouble.
5676         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5677         (fmodl): Define using libm_alias_ldouble.
5678         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5679         (hypotl): Define using libm_alias_ldouble.
5680         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5681         (j0l): Define using libm_alias_ldouble.
5682         (y0l): Likewise.
5683         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5684         (j1l): Define using libm_alias_ldouble.
5685         (y1l): Likewise.
5686         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5687         (jnl): Define using libm_alias_ldouble.
5688         (ynl): Likewise.
5689         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5690         (log10l): Define using libm_alias_ldouble.
5691         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5692         (log2l): Define using libm_alias_ldouble.
5693         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5694         (logl): Define using libm_alias_ldouble.
5695         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5696         (powl): Define using libm_alias_ldouble.
5697         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5698         (remainderl): Define using libm_alias_ldouble.
5699         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5700         (sinhl): Define using libm_alias_ldouble.
5701         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5702         (sqrtl): Define using libm_alias_ldouble.
5703         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5704         (tgammal): Define using libm_alias_ldouble.
5705         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5706         (exp10l): Do not use long_double_symbol here.
5707         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5708         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5709         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5710         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5711         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5712         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5713         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5714         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5715         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5716         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5717         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5718         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5719         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5720         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5721         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5722         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5723         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5724         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5725         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5726         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5727         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5728         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5730 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5732         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5733         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5735 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5737         * io/read.c (read): Add libc_hidden_weak.
5738         * sysdeps/mach/hurd/read.c (read): Likewise.
5739         * io/write.c (write): Likewise.
5740         * sysdeps/mach/hurd/write.c (write): Likewise.
5741         * io/pread64.c (__pread64): Likewise.
5742         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5743         * posix/pread64.c (__pread64): Add libc_hidden_def.
5745 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5747         * benchtests/scripts/compare_strings.py: New option -g.
5748         (draw_graph): Print a message that a graph is being generated.
5749         (process_results): Generate graph only if -g is passed.
5750         (main): Process option -g.
5752         * benchtests/scripts/compare_strings.py (process_results):
5753         Better spacing for output.
5755         * benchtests/scripts/compare_strings.py: Use argparse.
5756         * benchtests/README: Document existence of compare_strings.py.
5758 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5760         * math/s_fma.c: Include <libm-alias-double.h>.
5761         (fma): Define using libm_alias_double.
5762         * math/s_nextafter.c: Include <libm-alias-double.h>.
5763         (nextafter): Define using libm_alias_double.
5764         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5765         (acos): Define using libm_alias_double.
5766         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5767         (aocsh): Define using libm_alias_double.
5768         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5769         (asin): Define using libm_alias_double.
5770         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5771         (atan2): Define using libm_alias_double.
5772         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5773         (atanh): Define using libm_alias_double.
5774         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5775         (cosh): Define using libm_alias_double.
5776         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5777         (exp10): Define using libm_alias_double.
5778         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5779         (exp2): Define using libm_alias_double.
5780         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5781         (exp): Define using libm_alias_double.
5782         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5783         (fmod): Define using libm_alias_double.
5784         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5785         (hypot): Define using libm_alias_double.
5786         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5787         (j0): Define using libm_alias_double.
5788         (y0): Likewise.
5789         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5790         (j1): Define using libm_alias_double.
5791         (y1): Likewise.
5792         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5793         (jn): Define using libm_alias_double.
5794         (yn): Likewise.
5795         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5796         (log10): Define using libm_alias_double.
5797         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5798         (log2): Define using libm_alias_double.
5799         * math/w_log_compat.c: Include <libm-alias-double.h>.
5800         (log): Define using libm_alias_double.
5801         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5802         (pow): Define using libm_alias_double.
5803         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5804         (remainder): Define using libm_alias_double.
5805         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5806         (sinh): Define using libm_alias_double.
5807         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5808         (sqrt): Define using libm_alias_double.
5809         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5810         (tgamma): Define using libm_alias_double.
5811         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5812         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5813         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5814         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5815         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5816         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5817         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5818         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5819         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5820         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5821         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5822         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5823         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5824         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5825         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5826         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5827         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5828         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5829         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5830         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5831         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5832         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5833         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5834         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5835         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5837         * math/e_acoshl.c: Remove.
5838         * math/e_acosl.c: Likewise.
5839         * math/e_asinl.c: Likewise.
5840         * math/e_atan2l.c: Likewise.
5841         * math/e_atanhl.c: Likewise.
5842         * math/e_coshl.c: Likewise.
5843         * math/e_expl.c: Likewise.
5844         * math/e_fmodl.c: Likewise.
5845         * math/e_gammal_r.c: Likewise.
5846         * math/e_hypotl.c: Likewise.
5847         * math/e_j0l.c: Likewise.
5848         * math/e_j1l.c: Likewise.
5849         * math/e_jnl.c: Likewise.
5850         * math/e_lgammal_r.c: Likewise.
5851         * math/e_log10l.c: Likewise.
5852         * math/e_log2l.c: Likewise.
5853         * math/e_logl.c: Likewise.
5854         * math/e_powl.c: Likewise.
5855         * math/e_rem_pio2l.c: Likewise.
5856         * math/e_sinhl.c: Likewise.
5857         * math/e_sqrtf128.c: Likewise.
5858         * math/e_sqrtl.c: Likewise.
5859         * math/k_cosl.c: Likewise.
5860         * math/k_sinl.c: Likewise.
5861         * math/k_tanl.c: Likewise.
5862         * math/s_asinhl.c: Likewise.
5863         * math/s_atanl.c: Likewise.
5864         * math/s_cbrtl.c: Likewise.
5865         * math/s_erfl.c: Likewise.
5866         * math/s_expm1l.c: Likewise.
5867         * math/s_log1pl.c: Likewise.
5868         * math/s_tanhl.c: Likewise.
5870 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5872         [BZ #21745]
5873         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5874         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5875         previous contents of sysdep_routines, but re-sorted..
5876         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5877         sysdep_calls.
5878         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5879         defined in sysdep_calls and replace by the respective m_* names.
5880         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5881         (compat_symbol): Undefine to avoid duplicated compat symbols in
5882         libc.
5884 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5886         * math/s_fmaf.c: Include <libm-alias-float.h>.
5887         (fmaf): Define using libm_alias_float.
5888         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5889         (acosf): Define using libm_alias_float.
5890         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5891         (acoshf): Define using libm_alias_float.
5892         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5893         (asinf): Define using libm_alias_float.
5894         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5895         (atan2f): Define using libm_alias_float.
5896         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5897         (atanhf): Define using libm_alias_float.
5898         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5899         (coshf): Define using libm_alias_float.
5900         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5901         (exp10f): Define using libm_alias_float.
5902         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5903         (fmodf): Define using libm_alias_float.
5904         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5905         (hypotf): Define using libm_alias_float.
5906         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5907         (j0f): Define using libm_alias_float.
5908         (y0f): Likewise.
5909         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5910         (j1f): Define using libm_alias_float.
5911         (y1f): Likewise.
5912         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5913         (jnf): Define using libm_alias_float.
5914         (ynf): Likewise.
5915         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5916         (log10f): Define using libm_alias_float.
5917         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5918         (log2f): Define using libm_alias_float.
5919         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5920         (logf): Define using libm_alias_float.
5921         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5922         (powf): Define using libm_alias_float.
5923         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5924         (remainderf): Define using libm_alias_float.
5925         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5926         (sinhf): Define using libm_alias_float.
5927         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5928         (sqrtf): Define using libm_alias_float.
5929         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5930         (tgammaf): Define using libm_alias_float.
5932 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5934         * include/math.h (roundeven): Change hidden_proto call to
5935         __roundeven.
5936         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5937         alias.
5938         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5939         (y0): Rename to __y0 and define as weak alias.
5940         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5941         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5942         alias.
5943         (y0f): Rename to __y0f and define as weak alias.
5944         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5945         alias.
5946         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5947         (y1): Rename to __y1 and define as weak alias.
5948         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5949         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5950         alias.
5951         (y1f): Rename to __y1f and define as weak alias.
5952         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5953         alias.
5954         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5955         (yn): Rename to __yn and define as weak alias.
5956         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5957         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5958         alias.
5959         (ynf): Rename to __ynf and define as weak alias.
5960         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5961         (fromfp): Define as weak alias.
5962         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5963         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5964         (fromfpx): Define as weak alias.
5965         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5966         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5967         __getpayload and define as weak alias.
5968         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5969         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5970         __roundeven and define as weak alias.
5971         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5972         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5973         __setpayload.
5974         (setpayload): Define as weak alias.
5975         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5976         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5977         __setpayloadsig.
5978         (setpayloadsig): Define as weak alias.
5979         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5980         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5981         __totalorder and define as weak alias.
5982         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5983         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5984         to __totalordermag and define as weak alias.
5985         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5986         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5987         (ufromfp): Define as weak alias.
5988         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5989         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5990         __ufromfpx.
5991         (ufromfpx): Define as weak alias.
5992         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5993         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5994         Rename to __getpayload and define as weak alias.
5995         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5996         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5997         Rename to __roundeven and define as weak alias.
5998         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5999         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
6000         Rename to __totalorder and define as weak alias.
6001         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
6002         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
6003         (totalordermag): Rename to __totalordermag and define as weak
6004         alias.
6005         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
6006         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
6007         macro.
6008         (__roundevenl): Likewise.
6009         (__totalorderl): Likewise.
6010         (__totalordermagl): Likewise
6011         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
6012         __fromfpf128.
6013         (fromfpf128): Define as weak alias.
6014         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
6015         __fromfpxf128.
6016         (fromfpxf128): Define as weak alias.
6017         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
6018         __setpayloadf128.
6019         (setpayloadf128): Define as weak alias.
6020         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
6021         __setpayloadsigf128.
6022         (setpayloadsigf128): Define as weak alias.
6023         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
6024         __ufromfpf128.
6025         (ufromfpf128): Define as weak alias.
6026         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
6027         __ufromfpxf128.
6028         (ufromfpxf128): Define as weak alias.
6029         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
6030         (fromfpf): Define as weak alias.
6031         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
6032         __fromfpxf.
6033         (fromfpxf): Define as weak alias.
6034         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
6035         __getpayloadf and define as weak alias.
6036         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
6037         __roundevenf and define as weak alias.
6038         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
6039         __setpayloadf.
6040         (setpayloadf): Define as weak alias.
6041         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
6042         __setpayloadsigf.
6043         (setpayloadsigf): Define as weak alias.
6044         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
6045         __totalorderf and define as weak alias.
6046         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
6047         Rename to __totalordermagf and define as weak alias.
6048         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
6049         __ufromfpf.
6050         (ufromfpf): Define as weak alias.
6051         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
6052         __ufromfpxf.
6053         (ufromfpxf): Define as weak alias.
6054         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
6055         __fromfpl.
6056         (fromfpl): Define as weak alias.
6057         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
6058         __fromfpxl.
6059         (fromfpxl): Define as weak alias.
6060         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
6061         to __getpayloadl and define as weak alias.
6062         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
6063         __roundevenl and define as weak alias.
6064         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
6065         __setpayloadl.
6066         (setpayloadl): Define as weak alias.
6067         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
6068         __setpayloadsigl.
6069         (setpayloadsigl): Define as weak alias.
6070         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
6071         to __totalorderl and define as weak alias.
6072         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
6073         Rename to __totalordermagl and define as weak alias.
6074         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
6075         __ufromfpl.
6076         (ufromfpl): Define as weak alias.
6077         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
6078         __ufromfpxl.
6079         (ufromfpxl): Define as weak alias.
6080         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
6081         __fromfpl.
6082         (fromfpl): Define as weak alias.
6083         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
6084         __fromfpxl.
6085         (fromfpxl): Define as weak alias.
6086         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
6087         Rename to __getpayloadl and define as weak alias.
6088         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
6089         to __roundevenl and define as weak alias.  Call __roundeven
6090         instead of roundeven.
6091         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
6092         __setpayloadl.
6093         (setpayloadl): Define as weak alias.
6094         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6095         __setpayloadsigl.
6096         (setpayloadsigl): Define as weak alias.
6097         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6098         Rename to __totalorderl and define as weak alias.
6099         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6100         Rename to __totalordermagl and define as weak alias.
6101         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6102         __ufromfpl.
6103         (ufromfpl): Define as weak alias.
6104         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6105         __ufromfpxl.
6106         (ufromfpxl): Define as weak alias.
6107         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6108         __fromfpl.
6109         (fromfpl): Define as weak alias.
6110         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6111         __fromfpxl.
6112         (fromfpxl): Define as weak alias.
6113         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6114         __getpayloadl and define as weak alias.
6115         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6116         __roundevenl and define as weak alias.
6117         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6118         __setpayloadl.
6119         (setpayloadl): Define as weak alias.
6120         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6121         __setpayloadsigl.
6122         (setpayloadsigl): Define as weak alias.
6123         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6124         __totalorderl and define as weak alias.
6125         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6126         Rename to __totalordermagl and define as weak alias.
6127         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6128         __ufromfpl.
6129         (ufromfpl): Define as weak alias.
6130         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6131         __ufromfpxl.
6132         (ufromfpxl): Define as weak alias.
6134 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6136         * benchtests/bench-string.h (realloc_bufs): New function.
6137         (test_init): Call it.
6138         * benchtests/bench-memset-large.c (do_test): Likewise.
6139         * benchtests/bench-memset.c (do_test): Likewise.
6141         * benchtests/bench-memset-large.c: Print output in JSON
6142         format.
6143         * benchtests/bench-memset.c: Likewise.
6145 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6147         [BZ #21084]
6148         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6149         * iconvdata/Makefile: Add IBM858.
6150         * iconvdata/gconv-modules: Likewise.
6151         * iconvdata/tst-tables.sh: Likewise.
6152         * iconvdata/ibm858.c: New file.
6153         * localedata/charmaps/IBM858: Likewise.
6155 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6157         [BZ #22023]
6158         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6159         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6161 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6163         [BZ #22112]
6164         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6165         and add tel_int_fmt.
6167 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6169         * sysdeps/generic/libm-alias-float128.h: New file.
6170         * sysdeps/generic/math-type-macros-float128.h: Include
6171         <libm-alias-float128.h>.
6172         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6174 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6176         * sysdeps/generic/libm-alias-ldouble.h: New file.
6177         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6178         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6179         * sysdeps/generic/math-type-macros-ldouble.h: Include
6180         <libm-alias-ldouble.h>.
6181         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6182         libm_alias_ldouble.
6184 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6186         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6187         * math/w_exp_compat.c: ... here.
6188         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6189         * math/w_expf_compat.c: ... here.
6190         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6191         * math/w_expl_compat.c: ... here.
6192         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6193         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6194         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6195         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6197 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6199         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6200         redefine.
6201         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6202         macro.
6203         (ldexpl): Only define as compat symbol for libc, not libm.
6204         (scalbnl): Define as compat symbol for libc here.
6205         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6206         define for [IS_IN (libc)].
6207         (__ldexpl_2): Remove alias.
6208         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6209         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6210         name in long_double_symbol call.
6211         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6212         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6213         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6214         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6215         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6216         Remove macro.
6217         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6218         Define as compat symbol.
6220 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6222         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6223         * sysdeps/unix/sysv/linux/alpha/Makefile
6224         [$(subdir) = csu] (sysdep_routines): Remove rule.
6226 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6228         * sysdeps/generic/libm-alias-double.h: New file.
6229         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6230         * sysdeps/generic/math-type-macros-double.h: Include
6231         <libm-alias-double.h>.
6232         [declare_mgen_alias] (declare_mgen_alias): Define to use
6233         libm_alias_double.
6234         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6235         (M_LIBM_NEED_COMPAT): Remove macro.
6236         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6237         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6238         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6239         code.
6240         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6241         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6242         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6243         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6244         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6245         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6246         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6247         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6248         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6249         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6250         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6251         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6252         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6253         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6254         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6255         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6256         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6257         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6258         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6259         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6260         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6261         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6262         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6263         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6264         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6265         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6266         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6267         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6268         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6269         macro.
6270         (declare_mgen_alias): New macro.
6271         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6272         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6274         (M_LIBM_NEED_COMPAT): Remove macro.
6275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6276         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6277         <first-versions.h>.
6278         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6279         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6281 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6283         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6284         (declare_mgen_alias_2): Remove.
6285         * sysdeps/generic/math-type-macros-double.h
6286         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6287         Likewise.
6288         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6289         alias.
6290         (ldexp): Define with declare_mgen_alias.
6291         (scalbn): Likewise.
6293 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6295         * grp/initgroups.c: Include config.h.
6296         (DEFAULT_CONFIG): New macro.
6297         (internal_getgrouplist): Use DEFAULT_CONFIG.
6298         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6299         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6300         (DEFAULT_DEFCONFIG): New macro.
6301         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6302         * nss/grp-lookup.c: Include config.h
6303         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6304         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6305         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6306         * manual/nss.texi: Update default values section.
6308 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6310         [BZ #21967]
6311         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6312         New.
6313         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6314         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6315         Handle MathVec_Prefer_No_AVX512.
6316         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6317         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6318         is set.
6320 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6322         * posix/sched_primax.c (__sched_get_priority_max): Add
6323         libc_hidden_def.
6324         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6325         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6326         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6327         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6328         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6329         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6330         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6331         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6332         Add aliases.
6334 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6336         * sysdeps/generic/libm-alias-float.h: New file.
6337         * sysdeps/generic/math-type-macros-float.h: Include
6338         <libm-alias-float.h>.
6339         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6341 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6343         [BZ #22093]
6344         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6345         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6346         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6347         (HWCAP_IMPORTANT): Likewise.
6348         (HWCAP_X86_64): New enum.
6349         (HWCAP_X86_AVX512_1): Updated.
6350         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6351         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6352         (modules-names): Add x86_64/tst-x86_64mod-1.
6353         (LDFLAGS-tst-x86_64mod-1.so): New.
6354         ($(objpfx)tst-x86_64-1): Likewise.
6355         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6356         (tst-x86_64-1-clean): Likewise.
6357         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6358         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6360 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6362         * po/sv.po: Update translations.
6363         * po/fr.po: Likewise.
6365 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6367         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6368         seconds.
6369         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6370         seconds.
6371         * elf/rtld-Rules: Fix $(error) use.
6373 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6375         [BZ #14925]
6376         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6377         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6378         * localedata/locales/bn_BD: “Bengali” was still used in some
6379         comments. Change it to “Bangla”.
6381 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6383         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6385 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6387         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6388         thunderx2t99p1 to list of cpu names.
6389         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6390         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6392 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6394         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6395         Use strcmp instead of tunable_is_name.
6397 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6399         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6400         (F_GET_RW_HINT): New macro.
6401         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6402         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6403         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6404         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6405         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6406         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6407         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6408         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6409         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6411         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6412         (F_ADD_SEALS): New macro.
6413         [__USE_GNU] (F_GET_SEALS): Likewise.
6414         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6415         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6416         [__USE_GNU] (F_SEAL_GROW): Likewise.
6417         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6419 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6421         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6422         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6423         * posix/glob_internal.h (__glob_pattern_type):
6424         * posix/glob.c (glob):
6425         * posix/glob_pattern_p.c (__glob_pattern_p):
6426         Use them.
6428         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6429         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6430         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6431         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6432         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6434         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6435         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6436         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6437         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6438         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6439         * sysdeps/wordsize-64/glob.c: Likewise.
6440         * sysdeps/wordsize-64/glob64.c: Likewise.
6441         * sysdeps/wordsize-64/globfree.c: Likewise.
6442         * sysdeps/wordsize-64/globfree64.c: Likewise.
6443         * sysdeps/unix/sysv/linux/glob.c: New file.
6444         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6445         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6446         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6447         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6448         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6449         adds !GLOB_NO_OLD_VERSION as an extra condition.
6450         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6451         using relative path instead of absolute one.
6452         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6453         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6454         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6455         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6456         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6457         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6459         [BZ #1062]
6460         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6461         (glob): Use the same scratch buffer for both getlogin_r and
6462         getpwnam_r.  Don’t require preallocation of the login name.  This
6463         simplifies storage allocation, and corrects the handling of
6464         long login names.
6466         [BZ #1062]
6467         * posix/glob.c (glob): Port recent patches to platforms
6468         lacking getpwnam_r.
6469         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6470         returns an error number rather than setting errno.
6472         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6473         instead of GCC extension.
6474         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6475         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6476         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6478         [BZ #866]
6479         [BZ #1062]
6480         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6481         * posix/bug-glob1.c: Remove file.
6482         * posix/tst-glob_symlinks.c: New file.
6483         * posix/glob.c (__lstat64): New macro.
6484         (is_dir): New function.
6485         (glob, glob_in_dir): Match symlinks even if they are dangling.
6486         (link_stat, link_exists_p): Remove.  All uses removed.
6488         [BZ #1062]
6489         [BZ #19971]
6490         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6491         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6492         All uses removed.
6494         [BZ #1062]
6495         CVE-2017-15671
6496         * posix/Makefile (routines): Add globfree, globfree64, and
6497         glob_pattern_p.
6498         * posix/flexmember.h: New file.
6499         * posix/glob_internal.h: Likewise.
6500         * posix/glob_pattern_p.c: Likewise.
6501         * posix/globfree.c: Likewise.
6502         * posix/globfree64.c: Likewise.
6503         * sysdeps/gnu/globfree64.c: Likewise.
6504         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6505         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6506         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6507         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6508         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6509         * sysdeps/wordsize-64/globfree.c: Likewise.
6510         * sysdeps/wordsize-64/globfree64.c: Likewise.
6511         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6512         [NDEBUG): Remove comments.
6513         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6514         (dirent_type): New type.  Use uint_fast8_t not
6515         uint8_t, as C99 does not require uint8_t.
6516         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6517         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6518         unless it is needed; this saves a byte on platforms lacking d_ino.
6519         (readdir_result_type, readdir_result_skip_entry):
6520         New functions, replacing ...
6521         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6522          these functions, which were removed.  This makes the callers
6523         easier to read.  All callers changed.
6524         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6525         (size_add_wrapv, glob_use_alloca): New static functions.
6526         (glob, glob_in_dir): Check for size_t overflow in several places,
6527         and fix some size_t checks that were not quite right.
6528         Remove old code using SHELL since Bash no longer
6529         uses this.
6530         (glob, prefix_array): Separate MS code better.
6531         (glob_in_dir): Remove old Amiga and VMS code.
6532         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6533         separate files.
6534         (glob_in_dir): Do not rely on undefined behavior in accessing
6535         struct members beyond their bounds.  Use a flexible array member
6536         instead
6537         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6538         0/1.  Caller changed.
6539         (glob): Fix memory leaks.
6540         * posix/glob64 (globfree64): Move to separate file.
6541         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6542         (globfree64): Remove hidden alias.
6543         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6544         oldglob.
6545         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6546         separate file.
6547         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6548         define.
6549         Move compat code to separate file.
6550         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6551         separate file.
6553 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6555         * resolv/tst-resolv-qtypes.c (domain): Changed to
6556         "const char domain[] =".
6558 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6560         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6561         version to 3.1.6.
6563         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6564         (TCP_MD5SIG_EXT): Likewise.
6565         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6566         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6567         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6569         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6571 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6573         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6575 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6577         [BZ #22100]
6578         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6580 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6582         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6583         before assuming that the file is empty.  Avoid testing buffer content
6584         when nread == 0.
6586 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6588         [BZ #18858]
6589         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6590         Remove define.
6591         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6592         Likewise.
6593         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6594         Likewise.
6595         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6596         Likewise.
6597         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6598         Likewise.
6599         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6600         Likewise.
6601         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6602         Likewise.
6604 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6606         * malloc/dynarray_emplace_enlarge.c
6607         (__libc_dynarray_emplace_enlarge): Add missing else.
6609 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6611         [BZ #22096]
6612         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6613         case of failure to obtain the global conf object.
6615 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6617         [BZ #22095]
6618         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6619         dynarray allocation failure.
6621 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6623         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6624         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6625         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6626         New functions.
6627         (response): Call them.  Add 'p', '6' flag processing.
6628         (test_reverse): New function.
6629         (test_get2_any): Call it.
6630         (test_no_inet6): Add 'p' test.
6631         (test_inet6): Likewise.
6633 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6635         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6636         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6637         the QNAME.
6638         (test_gai): Adjust query names.  Add additional tests.
6639         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6640         test_get2.  Adjust query names.  Add additional tests.
6641         (test_no_inet6): New function, extracted from threadfunc.
6642         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6643         Add additional tests.
6645 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6647         [BZ #22070]
6648         * localedata/unicode-gen/utf8_gen.py: Set the width for
6649         characters with Prepended_Concatenation_Mark property to 1
6650         * localedata/charmaps/UTF-8: Updated using the improved script.
6652 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6654         [BZ #21750]
6655         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6656         use the range notation for all ranges of neighbouring characters
6657         with the same width.
6659 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6661         * sysdeps/generic/math-type-macros-double.h: Include
6662         <math-svid-compat.h>.
6663         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6664         * sysdeps/generic/math-type-macros-float.h: Include
6665         <math-svid-compat.h>.
6666         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6667         * sysdeps/generic/math-type-macros-ldouble.h: Include
6668         <math-svid-compat.h>.
6669         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6670         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6671         condition.
6672         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6673         * math/w_acosf_compat.c: Likewise.
6674         * math/w_acosh_compat.c: Likewise.
6675         * math/w_acoshf_compat.c: Likewise.
6676         * math/w_acoshl_compat.c: Likewise.
6677         * math/w_acosl_compat.c: Likewise.
6678         * math/w_asin_compat.c: Likewise.
6679         * math/w_asinf_compat.c: Likewise.
6680         * math/w_asinl_compat.c: Likewise.
6681         * math/w_atan2_compat.c: Likewise.
6682         * math/w_atan2f_compat.c: Likewise.
6683         * math/w_atan2l_compat.c: Likewise.
6684         * math/w_atanh_compat.c: Likewise.
6685         * math/w_atanhf_compat.c: Likewise.
6686         * math/w_atanhl_compat.c: Likewise.
6687         * math/w_cosh_compat.c: Likewise.
6688         * math/w_coshf_compat.c: Likewise.
6689         * math/w_coshl_compat.c: Likewise.
6690         * math/w_exp10_compat.c: Likewise.
6691         * math/w_exp10f_compat.c: Likewise.
6692         * math/w_exp10l_compat.c: Likewise.
6693         * math/w_exp2_compat.c: Likewise.
6694         * math/w_exp2f_compat.c: Likewise.
6695         * math/w_exp2l_compat.c: Likewise.
6696         * math/w_fmod_compat.c: Likewise.
6697         * math/w_fmodf_compat.c: Likewise.
6698         * math/w_fmodl_compat.c: Likewise.
6699         * math/w_hypot_compat.c: Likewise.
6700         * math/w_hypotf_compat.c: Likewise.
6701         * math/w_hypotl_compat.c: Likewise.
6702         * math/w_j0_compat.c: Likewise.
6703         * math/w_j0f_compat.c: Likewise.
6704         * math/w_j0l_compat.c: Likewise.
6705         * math/w_j1_compat.c: Likewise.
6706         * math/w_j1f_compat.c: Likewise.
6707         * math/w_j1l_compat.c: Likewise.
6708         * math/w_jn_compat.c: Likewise.
6709         * math/w_jnf_compat.c: Likewise.
6710         * math/w_jnl_compat.c: Likewise.
6711         * math/w_lgamma_r_compat.c: Likewise.
6712         * math/w_lgammaf_r_compat.c: Likewise.
6713         * math/w_lgammal_r_compat.c: Likewise.
6714         * math/w_log10_compat.c: Likewise.
6715         * math/w_log10f_compat.c: Likewise.
6716         * math/w_log10l_compat.c: Likewise.
6717         * math/w_log2_compat.c: Likewise.
6718         * math/w_log2f_compat.c: Likewise.
6719         * math/w_log2l_compat.c: Likewise.
6720         * math/w_log_compat.c: Likewise.
6721         * math/w_logf_compat.c: Likewise.
6722         * math/w_logl_compat.c: Likewise.
6723         * math/w_pow_compat.c: Likewise.
6724         * math/w_powf_compat.c: Likewise.
6725         * math/w_powl_compat.c: Likewise.
6726         * math/w_remainder_compat.c: Likewise.
6727         * math/w_remainderf_compat.c: Likewise.
6728         * math/w_remainderl_compat.c: Likewise.
6729         * math/w_sinh_compat.c: Likewise.
6730         * math/w_sinhf_compat.c: Likewise.
6731         * math/w_sinhl_compat.c: Likewise.
6732         * math/w_sqrt_compat.c: Likewise.
6733         * math/w_sqrtf_compat.c: Likewise.
6734         * math/w_sqrtl_compat.c: Likewise.
6735         * math/w_tgamma_compat.c: Likewise.
6736         * math/w_tgammaf_compat.c: Likewise.
6737         * math/w_tgammal_compat.c: Likewise.
6738         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6739         [LIBM_SVID_COMPAT].
6740         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6741         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6742         [LIBM_SVID_COMPAT].
6743         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6744         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6745         [LIBM_SVID_COMPAT].
6746         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6747         * sysdeps/i386/fpu/w_sqrt.c: New file.
6748         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6749         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6750         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6751         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6752         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6753         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6754         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6755         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6756         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6757         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6758         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6759         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6760         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6761         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6762         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6763         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6764         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6765         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6766         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6767         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6768         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6769         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6770         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6771         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6772         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6773         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6774         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6775         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6776         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6777         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6778         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6779         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6780         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6781         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6782         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6783         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6784         * sysdeps/ia64/fpu/w_log.c: Likewise.
6785         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6786         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6787         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6788         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6789         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6790         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6791         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6792         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6793         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6794         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6795         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6796         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6797         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6798         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6799         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6800         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6801         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6802         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6803         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6804         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6805         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6806         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6807         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6808         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6809         [LIBM_SVID_COMPAT].
6810         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6811         * sysdeps/ieee754/k_standard.c: Likewise.
6812         * sysdeps/ieee754/k_standardf.c: Likewise.
6813         * sysdeps/ieee754/k_standardl.c: Likewise.
6814         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6815         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6816         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6817         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6818         long_double_symbol call on [LIBM_SVID_COMPAT].
6819         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6820         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6821         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6822         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6823         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6824         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6825         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6826         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6827         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6828         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6829         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6830         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6831         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6832         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6833         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6834         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6835         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6836         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6837         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6838         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6839         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6840         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6842 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6844         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6845         * malloc/tst-mallocstate.c: Convert from test-skeleton
6846         to test-driver.  Ifdef code using TEST_COMPAT macro.
6847         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6848         * math/test-matherr.c: Likewise.
6850 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6852         [BZ #22086]
6853         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6854         comparing word with byte-swapped constant.
6856 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6858         [BZ #20498]
6859         * locale/iso-639.def: add Miskito.
6860         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6861         * localedata/locales/miq_NI: New file.
6863 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6865         [BZ #18822]
6866         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6867         (__mkdir): Likewise.
6868         * io/chmod.c (__chmod): Add libc_hidden_def.
6869         * io/mkdir.c (__mkdir): Likewise.
6870         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6871         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6872         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6873         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6875 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6877         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6878         version to 4.13.
6880         [BZ #22082]
6881         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6882         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6884 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6886         * math/math.h: Issue warning if log is defined.
6888 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6890         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6891         kernel version to 4.13.
6893 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6895         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6896         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6897         parameter.
6898         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6899         just <bits/types.h>.
6900         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6901         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6902         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6903         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6904         * misc/preadv2.c: Include <errno.h>.
6905         * misc/preadv64v2.c: Include <errno.h>.
6906         * misc/pwritev2.c: Include <errno.h>.
6907         * misc/pwritev64v2.c: Include <errno.h>.
6908         * sysdeps/posix/preadv2.c: Include <errno.h>.
6909         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6910         Fix <unistd.h> inclusion.
6911         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6912         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6913         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6914         __strtoul_internal): New functions.
6915         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6916         * sysdeps/posix/system.c: Include <sigsetops.h>.
6917         * sysdeps/mach/hurd/i386/Makefile
6918         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6919         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6920         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6921         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6922         __feraiseexcept_renamed to feraiseexcept instead of
6923         __GI_feraiseexcept.
6924         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6925         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6926         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6927         RWF_NOWAIT): Define to 0 if undefined already.
6928         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6929         boils down to 0.
6930         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6931         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6933 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6935         * manual/math.texi (pow10): Do not document.
6936         (pow10f): Likewise.
6937         (pow10l): Likewise.
6938         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6939         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6940         * math/libm-test-exp10.inc (pow10_test): Remove.
6941         (do_test): Do not call pow10.
6942         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6943         [NO_LONG_DOUBLE] (pow10l): Likewise.
6944         * math/w_exp10f_compat.c (pow10f): Likewise.
6945         * math/w_exp10l_compat.c (pow10l): Likewise.
6946         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6947         (pow10): Make into compat symbol.
6948         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6949         (pow10f): Make into compat symbol.
6950         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6951         (pow10l): Make into compat symbol.
6952         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6953         pow10.
6954         (CFLAGS-nldbl-pow10.c): Remove variable..
6955         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6956         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6957         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6958         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6959         Undefine and redefine.
6960         (pow10l): Make into compat symbol.
6961         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6962         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6963         * sysdeps/arm/libm-test-ulps: Likewise.
6964         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6965         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6966         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6967         * sysdeps/microblaze/libm-test-ulps: Likewise.
6968         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6969         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6970         * sysdeps/nios2/libm-test-ulps: Likewise.
6971         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6972         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6973         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6974         * sysdeps/sh/libm-test-ulps: Likewise.
6975         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6976         * sysdeps/tile/libm-test-ulps: Likewise.
6977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6979 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6981         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6983 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6985         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6986         "../ChangeLog.old/ChangeLog.8".
6987         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6988         "../ChangeLog.old/ChangeLog.14".
6990 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6992         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6993         Threads Library.
6995 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6997         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6999 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
7001         * csu/version.c (banner): Remove "by Roland McGrath et al.".
7002         * nptl/Banner: Remove "by Ulrich Drepper et al.".
7004 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7006         * stdlib/tst-atexit-common.c (do_test): Test support for at least
7007         32 atexit handlers.
7009 2017-09-01  Zack Weinberg  <zackw@panix.com>
7011         * math/math.h (HUGE_VAL): Improve commentary.
7013 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7014             Andreas Schwab  <schwab@suse.de>
7016         [BZ #21530]
7017         * include/stdio.h (__gen_tempfd): New function.
7018         * stdio-common/Makefile (routines): Add gentempfd.
7019         * stdio-common/gentempfd.c: New file.
7020         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
7021         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
7022         unnamed file first.
7024 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7026         [BZ #21915]
7027         [BZ #21922]
7028         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
7029         result to determine success or failure, not the errno value.
7030         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
7031         (tst-nss-files-hosts-erange): Link with -ldl.
7032         * nss/tst-nss-files-hosts-erange.c: New file.
7033         * nss/tst-resolv-basic.c (response): Handle nodata.example.
7034         (do_test): Add NO_DATA tests.
7035         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
7036         (do_test): Call it.
7038 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7040         [BZ #21922]
7041         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
7042         coming from gethostbyname2_r.
7044 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7046         * support/namespace.h (struct support_chroot_configuration): Add
7047         hosts, host_conf.
7048         (struct support_chroot): Add path_hosts, path_host_conf.
7049         * support/support_chroot.c (write_file): New function.
7050         (support_chroot_create): Call it to process /etc/resolv.conf,
7051         /etc/hosts, /etc/host.conf.
7052         (support_chroot_free): Update.
7054 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7056         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
7057         status indicates it is set.
7059 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7061         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
7062         function lookup failures more reliable.
7064 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7066         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
7067         (getcanonname): Likewise.
7068         (gaih_inet): Likewise.
7070 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7072         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
7073         (getcanonname): Likewise.
7074         (gaih_inet): Likewise.
7076 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7077             Richard Henderson <rth@twiddle.net>
7079         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
7080         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
7081         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
7082         (IREG_SIZE, OREG_SIZE): New macros.
7083         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
7084         (IREG_SIZE, OREG_SIZE): New macros.
7085         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
7086         (IREG_SIZE): New macro.
7087         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
7088         (IREG_SIZE): New macro.
7089         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
7090         New includes.
7091         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
7092         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7093         (__CONCATX): Handle exceptions correctly on large values that may
7094         set FE_INVALID.
7095         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7096         Initialize if not already set.
7097         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7099 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7101         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7102         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7103         Likewise.
7104         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7105         Likewise.
7106         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7107         Likewise.
7108         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7109         Likewise.
7110         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7111         Likewise.
7112         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7113         Likewise.
7114         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7115         Likewise.
7116         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7117         (NO_CANCELLATION): Likewise.
7118         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7119         Likewise.
7120         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7121         Likewise.
7122         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7123         Likewise.
7124         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7125         (NO_CANCELLATION): Likewise.
7126         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7127         (NO_CANCELLATION): Likewise.
7128         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7129         Likewise
7130         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7131         Likewise.
7132         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7133         Likewise.
7134         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7135         Likewise.
7136         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7137         hidden prototype.
7138         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7139         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7141 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7143         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7144         in resolver call.
7146 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7148         * include/libc-symbols.h (internal_function): Remove.
7150 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7152         * stdlib/fmtmsg.c (internal_addseverity): Remove
7153         internal_function.
7155 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7157         * stdio-common/printf_fp.c (group_number): Remove
7158         internal_function.
7159         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7161 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7163         * posix/fnmatch.c (internal_function): Remove definition.
7164         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7165         * posix/regcomp.c (peek_token, init_word_char)
7166         (duplicate_node_closure, fetch_token, peek_token)
7167         (peek_token_bracket, build_range_exp, build_collating_symbol):
7168         Likewise.
7169         * posix/regex_internal.c (re_string_construct_common)
7170         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7171         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7172         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7173         (re_string_translate_buffer, re_string_reconstruct)
7174         (re_string_peek_byte_case, re_string_fetch_byte_case)
7175         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7176         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7177         (re_node_set_add_intersect, re_node_set_init_union)
7178         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7179         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7180         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7181         (re_acquire_state_context): Likewise.
7182         * posix/regex_internal.h (internal_function): Remove definition.
7183         (re_string_realloc_buffers, build_wcs_buffer)
7184         (build_wcs_upper_buffer, build_upper_buffer)
7185         (re_string_translate_buffer, re_string_context_at)
7186         (re_string_char_size_at, re_string_wchar_at)
7187         (re_string_elem_size_at): Likewise.
7188         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7189         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7190         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7191         (re_search_internal, re_search_2_stub, re_search_stub)
7192         (re_copy_regs, prune_impossible_nodes, check_matching)
7193         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7194         (free_fail_stack_return, sift_states_iter_mb)
7195         (sift_states_backward, build_sifted_states)
7196         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7197         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7198         (check_subexp_limits, sift_states_bkref, merge_state_array)
7199         (find_recover_state, transit_state, merge_state_with_log)
7200         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7201         (transit_state_mb, transit_state_bkref, get_subexp)
7202         (get_subexp_sub, find_subexp_node, check_arrival)
7203         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7204         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7205         (check_node_accept_bytes, find_collation_sequence_value)
7206         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7207         (acquire_init_state_context, check_halt_node_context)
7208         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7209         (sub_epsilon_src_nodes): Likewise.
7210         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7211         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7212         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7213         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7214         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7215         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7216         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7217         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7218         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7219         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7220         (PREADV): Likewise.
7221         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7222         (PREADV): Likewise.
7223         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7224         (PWRITEV): Likewise.
7225         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7226         (PWRITEV): Likewise.
7227         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7228         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7230 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7232         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7233         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7234         Remove internal_function.
7235         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7236         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7237         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7238         (__deallocate_stack, __libc_pthread_init)
7239         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7240         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7241         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7242         Likewise.
7243         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7244         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7245         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7246         Likewise.
7247         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7248         (__pthread_mutex_unlock_usercnt): Likewise.
7250 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7252         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7253         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7254         (fts_safe_changedir): Remove internal_function.
7255         * io/ftw.c (internal_function): Remove definition.
7256         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7258 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7260         * inet/deadline.c (__deadline_current_time)
7261         (__deadline_from_timeval, __deadline_to_ms): Remove
7262         internal_function.
7263         * inet/getnameinfo.c (nrl_domainname): Likewise.
7264         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7265         * inet/inet6_option.c (add_pad): Likewise.
7266         * inet/net-internal.h (__deadline_current_time)
7267         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7268         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7269         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7270         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7272 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7274         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7275         include <bits/nan.h>.
7276         * math/Makefile (headers): Remove bits/nan.h.
7277         * bits/nan.h: Remove.
7278         * sysdeps/ieee754/bits/nan.h: Likewise.
7279         * sysdeps/mips/bits/nan.h: Likewise.
7281         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7282         not include <bits/inf.h>.
7283         * math/Makefile (headers): Remove bits/inf.h.
7284         * bits/inf.h: Remove.
7285         * sysdeps/ieee754/bits/inf.h: Likewise.
7287         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7288         bits/huge_vall.h or bits/huge_val_flt128.h.
7289         (HUGE_VAL): Define directly here.
7290         [__USE_ISOC99] (HUGE_VALF): Likewise.
7291         [__USE_ISOC99] (HUGE_VALL): Likewise.
7292         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7293         (HUGE_VAL_F128): Likewise.
7294         * math/Makefile (headers): Remove bits/huge_val.h,
7295         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7296         * bits/huge_val.h: Remove.
7297         * bits/huge_val_flt128.h: Likewise.
7298         * bits/huge_valf.h: Likewise.
7299         * bits/huge_vall.h: Likewise.
7300         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7301         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7302         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7303         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7304         * sysdeps/sh/bits/huge_val.h: Likewise.
7305         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7306         * sysdeps/x86/bits/huge_vall.h: Likewise.
7308 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7310         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7311         internal_function.
7312         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7313         Likewise.
7314         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7315         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7316         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7317         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7318         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7319         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7320         * elf/dl-libc.c (dlerror_run): Likewise.
7321         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7322         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7323         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7324         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7325         Likewise.
7326         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7327         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7328         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7329         * elf/dl-profile.c (_dl_start_profile): Likewise.
7330         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7331         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7332         Likewise.
7333         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7334         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7335         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7336         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7337         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7338         (_dl_allocate_tls_storage): Likewise.
7339         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7340         (_dl_check_all_versions): Likewise.
7341         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7342         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7343         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7344         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7345         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7346         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7347         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7348         internal_function from __dl_start.
7349         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7350         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7351         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7352         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7353         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7354         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7355         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7356         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7357         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7358         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7359         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7360         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7361         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7362         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7363         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7364         Likewise.
7365         (struct rtld_global_ro): Remove internal_function from the
7366         _dl_lookup_symbol_x member.
7367         (_dl_symbol_value): Remove.  No longer defined anywhere.
7368         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7369         internal_function.
7370         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7371         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7372         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7373         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7374         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7375         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7376         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7377         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7378         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7379         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7380         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7381         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7383 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7385         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7386         Remove internal_function.
7387         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7388         Likewise.
7389         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7390         Likewise.
7392 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7394         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7395         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7396         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7398 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7400         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7401         (__gai_enqueue_request): Remove internal_function.
7402         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7403         (__gai_remove_request, __gai_notify, __gai_notify_only)
7404         (__gai_sigqueue): Likewise.
7405         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7406         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7407         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7408         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7409         Likewise.
7411 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7413         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7414         * include/dirent.h (__opendirat, __getdents, __getdents64)
7415         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7416         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7417         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7418         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7419         Likewise.
7420         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7422 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7424         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7425         internal_function.
7426         (GETCWD_RETURN_TYPE): Likewise.
7428 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7430         * include/time.h (__tz_compute, __strptime_internal): Remove
7431         internal_function.
7432         * time/strptime_l.c (__strptime_internal): Likewise.
7433         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7435 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7437         * iconv/gconv.c (__gconv): Remove internal_function.
7438         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7439         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7440         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7441         (__gconv_release_cache): Likewise.
7442         * iconv/gconv_close.c (__gconv_close): Likewise.
7443         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7444         (read_conf_file, __gconv_get_path): Likewise.
7445         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7446         (__gconv_release_step, gen_steps, increment_counter)
7447         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7448         (__gconv_close_transform, free_modules_db): Likewise.
7449         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7450         Likewise.
7451         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7452         (__gconv_find_transform, __gconv_lookup_cache)
7453         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7454         (__gconv_close_transform, __gconv_release_cache)
7455         (__gconv_loaded_object, __gconv_release_shlib)
7456         (__gconv_compare_alias): Likewise.
7457         * iconv/gconv_open.c (__gconv_open): Likewise.
7458         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7459         * iconv/iconvconfig.c (add_module): Likewise.
7460         * intl/dcigettext.c (plural_lookup, guess_category_value)
7461         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7462         * intl/eval-plural.h (plural_eval): Likewise.
7463         * intl/finddomain.c (_nl_find_domain): Likewise.
7464         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7465         (_nl_load_domain, _nl_find_msg): Likewise.
7466         (internal_function): Remove definition.
7467         * intl/loadinfo.h (internal_function): Likewise.
7468         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7469         internal_function.
7470         * intl/localealias.c (internal_function): Remove definition.
7471         (read_alias_file): Remove internal_function.
7472         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7473         * intl/plural-exp.h (internal_function): Remove definition.
7474         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7475         internal_function.
7476         * intl/plural.c: Regenerate.
7477         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7478         * locale/coll-lookup.c (__collidx_table_lookup)
7479         (__collseq_table_lookup): Likewise.
7480         * locale/coll-lookup.h (__collidx_table_lookup)
7481         (__collseq_table_lookup): Likewise.
7482         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7483         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7484         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7485         (_nl_unload_locale): Likewise.
7486         * locale/localeinfo.h (struct __locale_data): Remove
7487         internal_function from cleanup member.
7488         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7489         (_nl_remove_locale, _nl_load_locale_from_archive)
7490         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7491         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7492         (_nl_cleanup_time): Remove internal_function.
7493         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7494         (_nl_parse_alt_digit): Likewise.
7495         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7496         (_nl_select_era_entry): Likewise.
7497         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7498         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7499         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7500         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7501         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7503 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7505         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7506         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7507         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7508         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7509         Likewise.
7510         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7511         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7512         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7513         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7514         Likewise.
7515         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7517 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7519         * misc/getttyent.c (skip, value): Remove internal_function.
7520         * misc/syslog.c (openlog_internal): Likewise.
7521         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7523 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7525         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7526         (__nss_rewrite_field): Remove internal_function.
7527         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7528         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7529         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7530         * nss/nsswitch.c (nss_parse_file, nss_getline)
7531         (nss_parse_service_list, nss_new_service): Likewise.
7532         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7533         * nss/valid_field.c (__nss_valid_field): Likewise.
7534         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7536 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7538         * malloc/arena.c (__malloc_fork_lock_parent)
7539         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7540         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7541         internal_function from defintions.
7542         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7543         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7544         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7545         internal_function from declarations.
7546         * malloc/malloc.c (internal_function): Do not define.
7547         (mem2mem_check): Remove internal_function from declaration.
7548         (munmap_chunk, mremap_chunk): Remove internal_function.
7549         * malloc/mtrace.c (tr_where): Likewise.
7551 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7553         * include/rpc/pmap_clnt.h (__get_socket): Remove
7554         internal_function.
7555         * sunrpc/auth_des.c (synchronize): Likewise.
7556         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7557         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7558         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7559         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7560         (key_call): Likewise.
7561         * sunrpc/pm_getport.c (__get_socket): Likewise.
7562         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7563         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7564         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7565         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7566         (invalidate): Likewise.
7567         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7568         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7569         (set_input_fragment, get_input_bytes): Likewise.
7571 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7573         * malloc/malloc.c (_int_free): Remove locked variable and related
7574         asserts.
7576 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7578         [BZ #22051]
7579         * Makerules (build-module-helper-objlist): Filter out
7580         $(elf-objpfx)sofini.os.
7581         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7582         needed.
7584 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7586         * libio/fcloseall.c: Assume weak_alias is defined.
7587         * libio/feof.c: Likewise.
7588         * libio/fileno.c: Likewise.
7589         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7590         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7591         definitions.
7592         (_IO_file_open): Call __open directly.
7593         (_IO_new_file_sync): Assume ESPIPE is defined.
7594         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7595         (_IO_new_file_write): Call __write directly.
7596         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7597         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7598         * libio/genops.c: Assume _LIBC is defined.
7599         (save_for_backup): Remove internal_function.
7600         * libio/getc.c: Assume weak_alias is defined.
7601         * libio/getwc.c: Likewise.
7602         * libio/iofclose.c: Assume _LIBC is defined.
7603         * libio/iofdopen.c: Likewise.
7604         (_IO_fcntl): Remove macro definition.
7605         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7606         Call __fcntl directly.
7607         * libio/iofflush.c: Assume weak_alias is defined.
7608         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7609         defined.
7610         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7611         * libio/iofgets.c: Likewise.
7612         * libio/iofopen.c: Assume _LIBC is defined.
7613         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7614         * libio/iofputs.c: Assume weak_alias is defined.
7615         * libio/iofread.c: Likewise.
7616         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7617         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7618         * libio/ioftell.c: Assume weak_alias is defined.
7619         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7620         * libio/iofwide.c: Assume _LIBC is defined.
7621         (_IO_fwide): Drop SHARED conditional because it is implied by
7622         SHLIB_COMPAT.
7623         * libio/iofwrite.c: Assume weak_alias is defined.
7624         * libio/iogetdelim.c: Likewise.
7625         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7626         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7627         (_IO_getwline): Call __wmemcpy directly.
7628         * libio/iopopen.c: Assume _LIBC is defined.
7629         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7630         (_IO_close): Remove macro definitions.
7631         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7632         _exit directly.
7633         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7634         directly.
7635         * libio/ioputs.c: Assume weak_alias is defined.
7636         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7637         * libio/iosetbuffer.c: Assume weak_alias is defined.
7638         * libio/iosetvbuf.c: Likewise.
7639         * libio/ioungetc.c: Likewise.
7640         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7641         libc_hidden_def, libc_hidden_weak, NULL are defined.
7642         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7643         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7644         defined.
7645         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7646         definitions.
7647         (_IO_old_file_init_internal): Drop SHARED conditional because it
7648         is implied by SHLIB_COMPAT.
7649         (_IO_old_file_fopen): Call __open directly.
7650         (_IO_old_file_sync): Assume ESPIPE is defined.
7651         (_IO_old_file_write): Call __write directly.
7652         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7653         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7654         Call __fcntl directly.
7655         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7656         (_IO_old_fgetpos): Assume EIO is defined.
7657         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7658         (_IO_old_fgetpos64): Assume EIO is defined.
7659         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7660         (_IO_old_fsetpos): Assume EIO is defined.
7661         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7662         (_IO_old_fsetpos64): Assume EIO is defined.
7663         * libio/oldiopopen.c:  Assume _LIBC is defined.
7664         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7665         (_IO_close): Remove macro definitions.
7666         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7667         directly.
7668         (_IO_old_proc_close): Call __close, __waitpid directly.
7669         * libio/put.c: Assume weak_alias is defined.
7670         * libio/stdfiles.c: Assume _LIBC is defined.
7671         * libio/stdio.c: Likewise.
7672         * libio/wfileops.c: Likewise.
7673         (_IO_wfile_sync): Assume ESPIPE is defined.
7674         * libio/wgenops.c: Assume _LIBC is defined.
7675         (save_for_wbackup): Remove internal_function.
7677 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7679         * malloc/malloc.c (top_check): Change return type to void.  Remove
7680         internal_function.
7681         * malloc/hooks.c (top_check): Likewise.
7682         (malloc_check, realloc_check, memalign_check): Adjust.
7684 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7686         [BZ #21457]
7687         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7688         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7689         sigcontext and namespace requirements.
7690         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7691         * sysdeps/m68k/sys/ucontext.h: Likewise.
7692         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7693         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7694         <bits/sigcontext.h>.
7695         (__ctx): Define earlier.
7696         (mcontext_t): Define structure contents rather than using struct
7697         sigcontext.
7698         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7699         __glibc_reserved1 instead of __reserved.
7700         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7701         <bits/sigcontext.h>.
7702         (__ctx): Define earlier.
7703         (mcontext_t): Define structure contents rather than using struct
7704         sigcontext.
7705         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7706         mcontext_t instead of struct sigcontext.
7707         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7708         <bits/sigcontext.h>.
7709         (__ctx): Define earlier.
7710         (mcontext_t): Define structure contents rather than using struct
7711         sigcontext.
7712         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7713         <bits/sigcontext.h>.
7714         (__ctx): Define earlier.
7715         (mcontext_t): Define structure contents rather than using struct
7716         sigcontext.
7717         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7718         mcontext_t instead of struct sigcontext.
7719         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7720         mcontext_t instead of struct sigcontext.
7721         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7722         <bits/sigcontext.h>.
7723         (__ctx): New macro.
7724         (struct __ia64_fpreg_mcontext): New type.
7725         (mcontext_t): Define structure contents rather than using struct
7726         sigcontext.
7727         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7728         (uc_sigmask): Define using __ctx.
7729         (uc_stack): Likewise.
7730         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7731         <bits/sigcontext.h>.
7732         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7733         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7734         <bits/sigcontext.h>.
7735         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7736         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7737         <bits/sigcontext.h>.
7738         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7739         <bits/sigcontext.h>.
7740         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7741         <bits/sigcontext.h>.
7742         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7743         <bits/sigcontext.h>.
7744         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7745         <bits/sigcontext.h>.
7746         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7747         <bits/sigcontext.h>.
7748         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7749         <bits/sigcontext.h>.
7750         (__ctx): Define earlier.
7751         (mcontext_t): Define structure contents rather than using struct
7752         sigcontext.
7753         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7754         <bits/sigcontext.h>.  Include <bits/types.h>.
7755         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7756         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7757         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7758         (test-xfail-UNIX98/signal.h/conform): Likewise.
7759         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7760         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7761         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7762         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7763         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7764         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7765         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7766         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7767         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7769 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7771         * malloc/dynarray_emplace_enlarge.c
7772         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7773         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7774         * malloc/tst-dynarray.c (test_long_overflow): New function.
7775         (do_test): Call it.
7777 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7779         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7780         (set_arena_corrupt): Remove definitions.
7781         (mtrim): Do not check for corrupt arena.
7782         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7783         Likewise.
7785 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7787         [BZ #21754]
7788         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7789         check_action.
7790         (ptmalloc_init): Do not set or use check_action.
7791         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7792         call to malloc_printerr.  Remove return statement.
7793         (free_check): Likewise.  Remove arena unlock.
7794         (top_check): Update comment.  Adjust call to malloc_printerr.
7795         Remove heap repair code.
7796         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7797         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7798         (sysmalloc): Adjust call to malloc_printerr.
7799         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7800         statement.
7801         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7802         Remove errout label and corresponding gotos.
7803         (_int_free): Likewise.  Remove arena unlock.
7804         (do_set_mallopt_check): Do not set check_action.
7805         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7806         corrupt.
7807         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7808         comment.
7809         * manual/probes.texi (Memory Allocation Probes): Remove
7810         memory_mallopt_check_action.
7812 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7814         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7815         Use pointer to uint64_t instead of long int for sp.
7817 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7819         [BZ #21754]
7820         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7821         without printing a backtrace.  Do not leak any information in the
7822         error message.
7823         * manual/memory.texi (Heap Consistency Checking): Update.
7824         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7826 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7828         Do not scale NPTL tests with available number of CPUs.
7829         * nptl/tst-cond16.c (count): Set to constant value of 8.
7830         * nptl/tst-cond18.c (count): Likewise.
7832 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7834         [BZ #22035]
7835         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7836         Define to take a second argument that is a macro that
7837         concatentates a suffix, not the suffix itself.
7838         (__CONCAT_d): New macro.
7839         (__CONCAT_f): Likewise.
7840         (__CONCAT_l): Likewise.
7842 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7844         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7845         by child.
7847 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7848             Aurelien Jarno  <aurelien@aurel32.net>
7849             Maciej W. Rozycki  <macro@imgtec.com>
7851         [BZ #21956]
7852         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7853         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7854         `mips16-syscall6' and `mips16-syscall7'.
7855         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7856         (CFLAGS-mips16-syscall7.c): Remove.
7857         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7858         Remove `__mips16_syscall5', `__mips16_syscall6' and
7859         `__mips16_syscall7'.
7860         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7861         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7862         `__mips_syscall_return'.
7863         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7864         (__mips16_syscall1): Likewise.
7865         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7866         (__mips16_syscall2): Likewise.
7867         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7868         (__mips16_syscall3): Likewise.
7869         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7870         (__mips16_syscall4): Likewise.
7871         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7872         Remove.
7873         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7874         Remove.
7875         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7876         Remove.
7877         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7878         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7879         `__mips16_syscall5'.  Remove prototype.
7880         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7881         `__mips16_syscall6'.  Remove prototype.
7882         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7883         `__mips16_syscall7'.  Remove prototype.
7884         (__nomips16, __mips16_syscall_return): Move to...
7885         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7886         (__nomips16, __mips_syscall_return): ... here.
7887         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7888         `__mips16_syscall_return' to `__mips_syscall_return'.
7889         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7890         `internal_syscall##nr'.
7891         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7892         `internal_syscall##nr'.
7893         (FORCE_FRAME_POINTER): Remove.
7894         (__mips_syscall5): New prototype.
7895         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7896         (__mips_syscall6): New prototype.
7897         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7898         (__mips_syscall7): New prototype.
7899         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7900         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7901         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7902         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7903         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7904         (sysdep_routines): Add libc-do-syscall.
7905         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7906         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7908 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7910         [BZ #21672]
7911         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7912         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7913         (advise_stack_range): New function.
7914         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7915         stack non required to advise_stack_range at allocatestack.c
7917 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7919         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7921 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7923         [BZ #22026]
7924         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7925         __end_fct.  Mangle __end_fct after setting it to NULL.
7926         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7927         (modules-names, modules-names-tests): Add
7928         tst-gconv-init-failure-mod.
7929         (gconv-modules): New target.
7930         (tst-gconv-init-failure-mod.so): Link against libsupport.
7931         (tst-gconv-init-failure): Depend on gconv-modules,
7932         tst-gconv-init-failure-mod.so.
7933         * iconv/tst-gconv-init-failure-mod.c: New file.
7934         * iconv/tst-gconv-init-failure.c: Likewise.
7935         * iconv/test-gconv-modules: Likewise.
7937 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7939         [BZ #22025]
7940         * iconv/gconv_db.c (free_derivation): Remove redundant
7941         parentheses.
7942         (gen_steps): Unconditionally mangle __btowc_fct after
7943         initialization.
7944         (increment_counter): Likewise.  Do not call init_fct for internal
7945         modules.
7947 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7949         [BZ #22028]
7950         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7951         (_MSUF_): Remove macro.
7952         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7953         Likewise.
7954         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7955         (__REDIRFROM_X): New macro.
7956         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7957         Likewise.
7958         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7959         (__REDIRTO_X): Likewise.
7960         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7961         arguments.
7962         (__MATH_REDIRCALL_2): Likewise.
7963         (__MATH_REDIRCALL_INTERNAL): Likewise.
7964         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7965         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7966         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7967         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7968         * math/test-finite-macros.c: New file.
7969         * math/Makefile (tests): Add test-finite-macros.
7970         (CFLAGS-test-finite-macros.c): New variable.
7972 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7973             Jeff Law  <law@redhat.com>
7975         [BZ #22025]
7976         Mangle NULL pointers in iconv/gconv.
7977         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7978         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7979         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7980         is non-NULL before demangling the end_fct.  Check for NULL
7981         end_fct after demangling.
7982         (__gconv_release_step): Demangle the end_fct before checking
7983         it for NULL.   Remove assert on __shlibc_handle != NULL.
7984         (gen_steps): Don't check btowc_fct for NULL before mangling.
7985         Demangle init_fct before checking for NULL.
7986         (increment_counter): Likewise.
7987         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7988         end_fct for NULL before mangling.
7989         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7990         for NULL.
7992 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7994         [BZ #21971]
7995         * locale/iso-639.def: add Morisyen.
7997 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7999         [BZ #21930]
8000         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
8001         (iszero): New C++ implementation that does not use
8002         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
8003         signaling nans are enabled, since __builtin_types_compatible_p
8004         is a C-only feature.
8005         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
8006         defined, include ieee754_float128.h for access to the union and
8007         member ieee854_float128.ieee.
8008         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
8009         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
8010         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8011         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
8012         options of test-math-zero on powerpc64le.
8014 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
8016         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
8017         Change double to float.
8019 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
8021         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
8022         unconditional.
8023         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
8024         conditional code; define contents only for [LIBM_SVID_COMPAT].
8026 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8028         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
8029         (abi-lp64_be-options): Remove.
8030         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
8031         (abi-hard-options): Likewise.
8032         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
8033         (abi-o32_hard-options, abi-o32_soft_2008-options)
8034         (abi-o32_hard_2008-options, abi-n32_soft-options)
8035         (abi-n32_hard-options, abi-n32_soft_2008-options)
8036         (abi-n32_hard_2008-options, abi-n64_soft-options)
8037         (abi-n64_hard-options, abi-n64_soft_2008-options)
8038         (abi-n64_hard_2008-options): Likewise.
8039         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
8040         (abi-64-v1-options, abi-64-v2-options): Likewise.
8041         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
8042         (abi-64-options): Likewise.
8043         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
8044         (abi-64-options): Likewise.
8045         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
8046         (abi-64-options): Likewise.
8047         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
8048         (abi-64-options, abi-x32-options): Likewise.
8050 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8052         Store supported list of SYS_* system calls in the source tree.
8053         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8054         (bits/syscall.h): Generate from list file.
8055         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
8056         [$(subdir) = misc] (tests): Add tst-syscall-list.
8057         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
8058         [$(subdir) = misc] (tst-syscall-list-macros.list)
8059         [$(subdir) = misc] (tst-syscall-list-nr.list)
8060         (tst-syscall-list-sys.list): Helper targets for new
8061         tst-syscall-list test.
8062         [$(subdir) = misc] (tst-syscall-list.out): Run test script
8063         tst-syscall-list.sh.
8064         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
8065         target. Do not include bits/syscall.d.
8066         [$(subdir) = misc] (generated): Do not update.
8067         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
8068         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
8069         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
8070         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
8072 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
8074         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
8075         (tst-cxa_atexit, tst-on_exit): Likewise.
8076         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
8077         tst-cxa_atexit, and tst-on_exit.
8078         * stdlib/tst-atexit-common.c: New file.
8079         * stdlib/tst-atexit.c: New file.
8080         * stdlib/tst-at_quick_exit.c: New file.
8081         * stdlib/tst-cxa_atexit.c: New file.
8082         * stdlib/tst-on_exit.c: New file.
8084 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8086         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
8087         * mach/stack_chk_fail_local.c: New file.
8088         * hurd/stack_chk_fail_local.c: New file.
8089         * mach/Machrules ($(interface-library)-routines): Add
8090         stack_chk_fail_local.
8091         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
8092         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
8093         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8094         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8095         * hurd/Makefile (CFLAGS-hurdstartup.o,
8096         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8098 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8100         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8101         (index_cpu_*, index_arch_*): Removed.
8103 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8105         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8106         Use uint64_t instead of unsigned long.
8108 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8110         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8111         [__HAVE_DISTINCT_FLOAT128].
8113         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8114         of <bits/math-finite.h>.
8115         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8116         inclusion of <bits/math-finite.h>.
8117         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8118         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8119         __NO_LONG_DOUBLE_MATH].
8120         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8121         (__MATH_REDIRCALL_2): Likewise.
8122         (__MATH_REDIRCALL_INTERNAL): Likewise.
8123         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8124         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8125         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8128         Remove file.
8129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8130         Likewise.
8131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8132         Likewise.
8133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8134         Likewise.
8135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8136         Likewise.
8137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8138         Likewise.
8139         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8140         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8141         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8142         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8144         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8145         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8146         w_sqrtf_compat-ppc32.
8148 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8150         * math/math.h [defined __cplusplus] (issignaling): In the long
8151         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8152         is not defined.  Call __issignaling, otherwise.
8154 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8156         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8157         syscall definitions and replace __builtin_expect with __glibc_likely.
8158         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8159         syscall.
8160          (SYSCALL_CANCELLABLE): Removedefinition
8161         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8162         definition.
8163         (PSEUDO_END): Likewise.
8164         [IS_IN (libpthread)] (CENABLE): Likewise.
8165         [IS_IN (libpthread)] (CDISABLE): Likewise.
8166         [IS_IN (libc)] (CENABLE): Likewise.
8167         [IS_IN (libc)] (CENABLE): Likewise.
8168         [IS_IN (librt)] (CDISABLE): Likewise.
8169         [IS_IN (librt)] (CDISABLE): Likewise.
8170         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8171         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8172         definition.
8173         (PSEUDO_END): Likewise.
8174         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8175         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8176         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8177         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8178         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8179         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8180         (CENABLE): Likewise.
8181         (CDISABLE): Likewise.
8182         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8183         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8184         defintion.
8185         (PSEUDO_END): Likewise.
8186         [IS_IN (libpthread)] (CENABLE): Likewise.
8187         [IS_IN (libpthread)] (CDISABLE): Likewise.
8188         [IS_IN (libc)] (CENABLE): Likewise.
8189         [IS_IN (libc)] (CENABLE): Likewise.
8190         [IS_IN (librt)] (CDISABLE): Likewise.
8191         [IS_IN (librt)] (CDISABLE): Likewise.
8192         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8193         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8194         definition.
8195         (PSEUDO_END): Likewise.
8196         [IS_IN (libpthread)] (CENABLE): Likewise.
8197         [IS_IN (libpthread)] (CDISABLE): Likewise.
8198         [IS_IN (libc)] (CENABLE): Likewise.
8199         [IS_IN (libc)] (CENABLE): Likewise.
8200         [IS_IN (librt)] (CDISABLE): Likewise.
8201         [IS_IN (librt)] (CDISABLE): Likewise.
8202         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8203         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8204         definition.
8205         (PSEUDO_END): Likewise.
8206         [IS_IN (libpthread)] (CENABLE): Likewise.
8207         [IS_IN (libpthread)] (CDISABLE): Likewise.
8208         [IS_IN (libc)] (CENABLE): Likewise.
8209         [IS_IN (libc)] (CENABLE): Likewise.
8210         [IS_IN (librt)] (CDISABLE): Likewise.
8211         [IS_IN (librt)] (CDISABLE): Likewise.
8212         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8213         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8214         definition.
8215         (PSEUDO_END): Likewise.
8216         [IS_IN (libpthread)] (CENABLE): Likewise.
8217         [IS_IN (libpthread)] (CDISABLE): Likewise.
8218         [IS_IN (libc)] (CENABLE): Likewise.
8219         [IS_IN (libc)] (CENABLE): Likewise.
8220         [IS_IN (librt)] (CDISABLE): Likewise.
8221         [IS_IN (librt)] (CDISABLE): Likewise.
8222         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8223         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8224         definition.
8225         (PSEUDO_END): Likewise.
8226         [IS_IN (libpthread)] (CENABLE): Likewise.
8227         [IS_IN (libpthread)] (CDISABLE): Likewise.
8228         [IS_IN (libc)] (CENABLE): Likewise.
8229         [IS_IN (libc)] (CENABLE): Likewise.
8230         [IS_IN (librt)] (CDISABLE): Likewise.
8231         [IS_IN (librt)] (CDISABLE): Likewise.
8232         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8233         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8234         definition.
8235         (PSEUDO_END): Likewise.
8236         [IS_IN (libpthread)] (CENABLE): Likewise.
8237         [IS_IN (libpthread)] (CDISABLE): Likewise.
8238         [IS_IN (libc)] (CENABLE): Likewise.
8239         [IS_IN (libc)] (CENABLE): Likewise.
8240         [IS_IN (librt)] (CDISABLE): Likewise.
8241         [IS_IN (librt)] (CDISABLE): Likewise.
8242         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8243         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8244         Remove definition.
8245         (PSEUDO_END): Likewise.
8246         [IS_IN (libpthread)] (CENABLE): Likewise.
8247         [IS_IN (libpthread)] (CDISABLE): Likewise.
8248         [IS_IN (libc)] (CENABLE): Likewise.
8249         [IS_IN (libc)] (CENABLE): Likewise.
8250         [IS_IN (librt)] (CDISABLE): Likewise.
8251         [IS_IN (librt)] (CDISABLE): Likewise.
8252         (SINGLE_THREAD_P): Likewise.
8253         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8254         definition.
8255         (PSEUDO_END): Likewise.
8256         [IS_IN (libpthread)] (CENABLE): Likewise.
8257         [IS_IN (libpthread)] (CDISABLE): Likewise.
8258         [IS_IN (libc)] (CENABLE): Likewise.
8259         [IS_IN (libc)] (CENABLE): Likewise.
8260         [IS_IN (librt)] (CDISABLE): Likewise.
8261         [IS_IN (librt)] (CDISABLE): Likewise.
8262         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8263         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8264         definition.
8265         (PSEUDO_END): Likewise.
8266         [IS_IN (libpthread)] (CENABLE): Likewise.
8267         [IS_IN (libpthread)] (CDISABLE): Likewise.
8268         [IS_IN (libc)] (CENABLE): Likewise.
8269         [IS_IN (libc)] (CENABLE): Likewise.
8270         [IS_IN (librt)] (CDISABLE): Likewise.
8271         [IS_IN (librt)] (CDISABLE): Likewise.
8272         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8273         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8274         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8275         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8276         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8277         definition.
8278         (PSEUDO_END): Likewise.
8279         [IS_IN (libpthread)] (CENABLE): Likewise.
8280         [IS_IN (libpthread)] (CDISABLE): Likewise.
8281         [IS_IN (libc)] (CENABLE): Likewise.
8282         [IS_IN (libc)] (CENABLE): Likewise.
8283         [IS_IN (librt)] (CDISABLE): Likewise.
8284         [IS_IN (librt)] (CDISABLE): Likewise.
8285         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8286         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8287         definition.
8288         (PSEUDO_END): Likewise.
8289         [IS_IN (libpthread)] (CENABLE): Likewise.
8290         [IS_IN (libpthread)] (CDISABLE): Likewise.
8291         [IS_IN (libc)] (CENABLE): Likewise.
8292         [IS_IN (libc)] (CENABLE): Likewise.
8293         [IS_IN (librt)] (CDISABLE): Likewise.
8294         [IS_IN (librt)] (CDISABLE): Likewise.
8295         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8296         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8297         definition.
8298         (PSEUDO_END): Likewise.
8299         [IS_IN (libpthread)] (CENABLE): Likewise.
8300         [IS_IN (libpthread)] (CDISABLE): Likewise.
8301         [IS_IN (libc)] (CENABLE): Likewise.
8302         [IS_IN (libc)] (CENABLE): Likewise.
8303         [IS_IN (librt)] (CDISABLE): Likewise.
8304         [IS_IN (librt)] (CDISABLE): Likewise.
8305         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8306         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8307         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8308         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8309         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8310         definition.
8311         (PSEUDO_END): Likewise.
8312         [IS_IN (libpthread)] (CENABLE): Likewise.
8313         [IS_IN (libpthread)] (CDISABLE): Likewise.
8314         [IS_IN (libc)] (CENABLE): Likewise.
8315         [IS_IN (libc)] (CENABLE): Likewise.
8316         [IS_IN (librt)] (CDISABLE): Likewise.
8317         [IS_IN (librt)] (CDISABLE): Likewise.
8318         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8319         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8320         definition.
8321         (PSEUDO_END): Likewise.
8322         [IS_IN (libpthread)] (CENABLE): Likewise.
8323         [IS_IN (libpthread)] (CDISABLE): Likewise.
8324         [IS_IN (libc)] (CENABLE): Likewise.
8325         [IS_IN (libc)] (CENABLE): Likewise.
8326         [IS_IN (librt)] (CDISABLE): Likewise.
8327         [IS_IN (librt)] (CDISABLE): Likewise.
8328         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8330 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8332         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8334 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8336         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8338 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8340         [BZ #21982]
8341         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8342         middle and outer with size_t instead of int.  Repleace %d and
8343         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8344         "MAX (outer, nchars - 64)" to support unsigned outer and
8345         nchars.  Also exit loop when outer == 0.
8347 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8349         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8350         * include/signal.h (__sigsuspend_nocancel): Likewise.
8351         * include/time.h (__nanosleep_nocancel): Likewise.
8352         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8353         * login/utmp_file.c: Include non cancellable syscall header.
8354         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8355         prototype.
8357 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8359         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8360         .byte sequences with AVX512F instructions.
8361         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8362         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8363         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8364         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8365         Likewise.
8366         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8367         Likewise.
8369 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8370             Steve Ellcey  <sellcey@cavium.com>
8372         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8373         Use PTR_REG macro in cmp instruction.
8375 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8377         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8378         Change the return type of the ifunc resolver to match the return
8379         type of the target function.
8381 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8383         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8384         (preadv64): Likewise.
8385         (pwrite64(: Likewise.
8386         (pwritev64): Likewise.
8388         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8389         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8390         (LOAD_ARGS_0): Likewise.
8391         (LOAD_ARGS_1): Likewise.
8392         (LOAD_ARGS_2): Likewise.
8393         (LOAD_ARGS_3): Likewise.
8394         (LOAD_ARGS_4): Likewise.
8395         (LOAD_ARGS_5): Likewise.
8396         (LOAD_ARGS_6): Likewise.
8397         (LOAD_REGS_0): Likewise.
8398         (LOAD_REGS_1): Likewise.
8399         (LOAD_REGS_2): Likewise.
8400         (LOAD_REGS_3): Likewise.
8401         (LOAD_REGS_4): Likewise.
8402         (LOAD_REGS_5): Likewise.
8403         (LOAD_REGS_6): Likewise.
8404         (ASM_ARGS_0): Likewise.
8405         (ASM_ARGS_1): Likewise.
8406         (ASM_ARGS_2): Likewise.
8407         (ASM_ARGS_3): Likewise.
8408         (ASM_ARGS_4): Likewise.
8409         (ASM_ARGS_5): Likewise.
8410         (ASM_ARGS_6): Likewise.
8411         (LOAD_ARGS_TYPES_1): Likewise.
8412         (LOAD_ARGS_TYPES_2): Likewise.
8413         (LOAD_ARGS_TYPES_3): Likewise.
8414         (LOAD_ARGS_TYPES_4): Likewise.
8415         (LOAD_ARGS_TYPES_5): Likewise.
8416         (LOAD_ARGS_TYPES_6): Likewise.
8417         (LOAD_REGS_TYPES_1): Likewise.
8418         (LOAD_REGS_TYPES_2): Likewise.
8419         (LOAD_REGS_TYPES_3): Likewise.
8420         (LOAD_REGS_TYPES_4): Likewise.
8421         (LOAD_REGS_TYPES_5): Likewise.
8422         (LOAD_REGS_TYPES_6): Likewise.
8423         (TYPEFY): New define.
8424         (ARGIFY): Likewise.
8425         (internal_syscall0): Likewise.
8426         (internal_syscall1): Likewise.
8427         (internal_syscall2): Likewise.
8428         (internal_syscall3): Likewise.
8429         (internal_syscall4): Likewise.
8430         (internal_syscall5): Likewise.
8431         (internal_syscall6): Likewise.
8432         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8433         (INTERNAL_SYSCALL_NCS): Remove define.
8434         (internal_syscall1): Add define.
8436 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8438         * math/w_remainder_compat.c: Remove duplicate inclusion of
8439         math-svid-compat.h.
8440         * math/w_remainderf_compat.c: Likewise.
8441         * math/w_remainderl_compat.c: Likewise.
8443 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8445         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8447 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8449         [BZ #21684]
8450         * math/tgmath.h (__floating_type): Simplify definitions.
8451         (__real_integer_type): New macro.
8452         (__complex_integer_type): Likewise.
8453         (__expr_is_real): Likewise.
8454         (__tgmath_real_type_sub): Update comment to describe handling of
8455         complex types.
8456         (__tgmath_complex_type_sub): New macro.
8457         (__tgmath_complex_type): Likewise.
8458         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8459         (__TGMATH_CF128): Use __expr_is_real.
8460         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8461         __expr_is_real.
8462         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8463         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8464         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8465         integer types.
8467 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8469         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8470         macro.
8471         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8472         alias.
8473         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8474         Likewise.
8476         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8477         nanosleep_not_cancel with __nanosleep_nocancel.
8478         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8479         (__nanosleep_nocancel): New macro.
8480         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8481         function.
8482         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8483         macro.
8484         (__nanosleep_nocancel): New prototype.
8486         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8487         pause_not_cancel with __pause_nocancel.
8488         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8489         (__pause_nocancel): New macro.
8490         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8491         macro.
8492         (__pause_nocancel): New prototype.
8493         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8495 2017-08-22  Martin Sebor  <msebor@redhat.com>
8497         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8498         to return a pointer to the same type as the target function.
8500 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8502         [BZ #18822]
8503         [BZ #21986]
8504         * include/printf.h (__printf_fphex): Add attribute_hidden.
8505         (__guess_grouping): New prototype.
8506         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8507         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8508         libc_hidden_proto and libc_hidden_def.
8509         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8510         (__vstrfmon_l): Remove the third argument passed to
8511         __guess_grouping.
8513 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8515         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8516         definition for issignaling that does not rely on __MATH_TG,
8517         since __MATH_TG uses __builtin_types_compatible_p, which is only
8518         available in C mode.
8519         (CFLAGS-test-math-issignaling.cc): New variable.
8520         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8521         * math/test-math-issignaling.cc: New test for C++ implementation
8522         of type-generic issignaling.
8523         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8524         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8525         options of test-math-issignaling on powerpc64le.
8527 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8529         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8530         building libc.a.
8531         (hidden_proto): Likewise.
8532         (hidden_tls_proto): Likewise.
8533         (__hidden_proto): Likewise.
8535 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8537         math: Statically link tests of internal functionality.
8538         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8539         atest-exp2.
8540         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8541         (gmp-objs): Remove assignment.
8542         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8544 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8546         [BZ #21987]
8547         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8548         and copy to ...
8549         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8550         ... here.
8551         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8552         ... and here.
8554         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8555         variable definitions above inclusion of ../Rules.
8557 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8559         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8560         case calling __builtin_unreachable.
8562 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8564         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8565         __waitpid_nocancel.
8566         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8567         (__waitpid_nocancel): New macro.
8568         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8569         macro.
8570         (__waitpid_nocancel): Replace macro with a function.
8571         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8572         function.
8574         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8575         __fcntl_nocancel.
8576         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8577         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8579         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8580         __writev_nocancel_nostatus.
8581         (write_call_graph): Likewise.
8582         (write_bb_counts): Likewise.
8583         * resolv/herror.c (herror): Likewise.
8584         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8585         macro.
8586         (__writev_nocancel_nostatus): New macro.
8587         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8588         Remove macro.
8589         (__writev_nocancel_nostatus): New function.
8591 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8593         Revert:
8594         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8596         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8597         building libc.a.
8598         (hidden_proto): Likewise.
8599         (hidden_tls_proto): Likewise.
8600         (__hidden_proto): Likewise.
8602         [BZ #21973]
8603         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8604         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8606         Likewise.
8607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8608         Likewise.
8609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8610         Likewise.
8611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8612         Likewise.
8613         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8614         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8615         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8616         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8617         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8618         GLIBC_2.0 sqrtl symbol.
8620         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8621         [__USE_MISC] (_LIB_VERSION): Likewise.
8622         [__USE_MISC] (struct exception): Likewise.
8623         [__USE_MISC] (matherr): Likewise.
8624         [__USE_MISC] (DOMAIN): Likewise.
8625         [__USE_MISC] (SING): Likewise.
8626         [__USE_MISC] (OVERFLOW): Likewise.
8627         [__USE_MISC] (UNDERFLOW): Likewise.
8628         [__USE_MISC] (TLOSS): Likewise.
8629         [__USE_MISC] (PLOSS): Likewise.
8630         [__USE_MISC] (HUGE): Likewise.
8631         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8632         * math/math-svid-compat.h: New file.
8633         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8634         and matherrl.
8635         * include/math.h [!_ISOMAC] (__matherr): Remove.
8636         * manual/arith.texi (FP Exceptions): Do not document matherr.
8637         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8638         (tests-internal): New variable.
8639         (install-lib): Do not add libieee.a.
8640         (non-lib.a): Likewise.
8641         (extra-objs): Do not add libieee.a and ieee-math.o.
8642         (CPPFLAGS-s_lib_version.c): Remove variable.
8643         ($(objpfx)libieee.a): Remove rule.
8644         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8645         * math/ieee-math.c: Remove.
8646         * math/libm-test-support.c (matherr): Remove.
8647         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8648         and license notices.  Include <math-svid-compat.h> and
8649         <shlib-compat.h>.
8650         (matherr): Undefine as macro.  Use compat_symbol_reference.
8651         (_LIB_VERSION): Likewise.
8652         * math/test-matherr-2.c: New file.
8653         * math/test-matherr-3.c: Likewise.
8654         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8655         declaration.
8656         (__kernel_standard_f): Likewise.
8657         (__kernel_standard_l): Likewise.
8658         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8659         <math_private.h>.  Include <math-svid-compat.h>.
8660         (_LIB_VERSION): Undefine as macro.
8661         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8662         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8663         [LIBM_SVID_COMPAT], use compat_symbol.
8664         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8665         <math_private.h>.  Include <math-svid-compat.h>.
8666         (matherr): Undefine as macro.
8667         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8668         compat_symbol.
8669         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8670         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8671         compat_symbol_reference.
8672         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8673         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8674         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8675         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8676         (MATHERR_D): Remove declaration.
8677         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8678         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8679         [LIBM_BUILD] (pmatherrf): Likewise.
8680         [LIBM_BUILD] (pmatherr): Likewise.
8681         [LIBM_BUILD] (pmatherrl): Likewise.
8682         (DOMAIN): Likewise.
8683         (SING): Likewise.
8684         (OVERFLOW): Likewise.
8685         (UNDERFLOW): Likewise.
8686         (TLOSS): Likewise.
8687         (PLOSS): Likewise.
8688         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8689         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8690         compat_symbol.
8691         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8692         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8693         compat_symbol.
8694         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8695         * math/w_acos_compat.c: Likewise.
8696         * math/w_acosf_compat.c: Likewise.
8697         * math/w_acosh_compat.c: Likewise.
8698         * math/w_acoshf_compat.c: Likewise.
8699         * math/w_acoshl_compat.c: Likewise.
8700         * math/w_acosl_compat.c: Likewise.
8701         * math/w_asin_compat.c: Likewise.
8702         * math/w_asinf_compat.c: Likewise.
8703         * math/w_asinl_compat.c: Likewise.
8704         * math/w_atan2_compat.c: Likewise.
8705         * math/w_atan2f_compat.c: Likewise.
8706         * math/w_atan2l_compat.c: Likewise.
8707         * math/w_atanh_compat.c: Likewise.
8708         * math/w_atanhf_compat.c: Likewise.
8709         * math/w_atanhl_compat.c: Likewise.
8710         * math/w_cosh_compat.c: Likewise.
8711         * math/w_coshf_compat.c: Likewise.
8712         * math/w_coshl_compat.c: Likewise.
8713         * math/w_exp10_compat.c: Likewise.
8714         * math/w_exp10f_compat.c: Likewise.
8715         * math/w_exp10l_compat.c: Likewise.
8716         * math/w_exp2_compat.c: Likewise.
8717         * math/w_exp2f_compat.c: Likewise.
8718         * math/w_exp2l_compat.c: Likewise.
8719         * math/w_fmod_compat.c: Likewise.
8720         * math/w_fmodf_compat.c: Likewise.
8721         * math/w_fmodl_compat.c: Likewise.
8722         * math/w_hypot_compat.c: Likewise.
8723         * math/w_hypotf_compat.c: Likewise.
8724         * math/w_hypotl_compat.c: Likewise.
8725         * math/w_j0_compat.c: Likewise.
8726         * math/w_j0f_compat.c: Likewise.
8727         * math/w_j0l_compat.c: Likewise.
8728         * math/w_j1_compat.c: Likewise.
8729         * math/w_j1f_compat.c: Likewise.
8730         * math/w_j1l_compat.c: Likewise.
8731         * math/w_jn_compat.c: Likewise.
8732         * math/w_jnf_compat.c: Likewise.
8733         * math/w_jnl_compat.c: Likewise.
8734         * math/w_lgamma_main.c: Likewise.
8735         * math/w_lgamma_r_compat.c: Likewise.
8736         * math/w_lgammaf_main.c: Likewise.
8737         * math/w_lgammaf_r_compat.c: Likewise.
8738         * math/w_lgammal_main.c: Likewise.
8739         * math/w_lgammal_r_compat.c: Likewise.
8740         * math/w_log10_compat.c: Likewise.
8741         * math/w_log10f_compat.c: Likewise.
8742         * math/w_log10l_compat.c: Likewise.
8743         * math/w_log2_compat.c: Likewise.
8744         * math/w_log2f_compat.c: Likewise.
8745         * math/w_log2l_compat.c: Likewise.
8746         * math/w_log_compat.c: Likewise.
8747         * math/w_logf_compat.c: Likewise.
8748         * math/w_logl_compat.c: Likewise.
8749         * math/w_pow_compat.c: Likewise.
8750         * math/w_powf_compat.c: Likewise.
8751         * math/w_powl_compat.c: Likewise.
8752         * math/w_remainder_compat.c: Likewise.
8753         * math/w_remainderf_compat.c: Likewise.
8754         * math/w_remainderl_compat.c: Likewise.
8755         * math/w_scalb_compat.c: Likewise.
8756         * math/w_scalbf_compat.c: Likewise.
8757         * math/w_scalbl_compat.c: Likewise.
8758         * math/w_sinh_compat.c: Likewise.
8759         * math/w_sinhf_compat.c: Likewise.
8760         * math/w_sinhl_compat.c: Likewise.
8761         * math/w_sqrt_compat.c: Likewise.
8762         * math/w_sqrtf_compat.c: Likewise.
8763         * math/w_sqrtl_compat.c: Likewise.
8764         * math/w_tgamma_compat.c: Likewise.
8765         * math/w_tgammaf_compat.c: Likewise.
8766         * math/w_tgammal_compat.c: Likewise.
8767         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8768         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8769         * sysdeps/ieee754/k_standard.c: Likewise.
8770         * sysdeps/ieee754/k_standardf.c: Likewise.
8771         * sysdeps/ieee754/k_standardl.c: Likewise.
8772         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8773         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8774         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8775         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8776         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8777         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8778         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8779         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8780         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8782         Likewise.
8783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8784         Likewise.
8785         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8786         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8787         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8788         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8790 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8792         [BZ #21864]
8793         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8794         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8795         Move before inclusion of ../Rules.
8797 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8799         [BZ #21972]
8800         * assert/assert.h (assert): Use static_cast (bool) for C++.
8801         Use the ternary operator in the warning branch for GNU C.
8802         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8803         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8804         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8805         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8806         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8808 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8810         [BZ #18822]
8811         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8812         (__syscall_clock_gettime): Add attribute_hidden.
8813         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8814         (__start_context): Likewise.
8816 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8818         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8819         building libc.a.
8820         (hidden_proto): Likewise.
8821         (hidden_tls_proto): Likewise.
8822         (__hidden_proto): Likewise.
8824 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8826         * include/libc-symbols.h (attribute_hidden): Enable hidden
8827         visibility in libc.a compiled with PIE.
8829 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8831         [BZ #18822]
8832         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8833         Add attribute_hidden.
8835 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8837         [BZ #21864]
8838         * Makerules (all-nonlib): Add $(others-extras).
8839         * catgets/Makefile (others-extras): New.
8840         * elf/Makefile (others-extras): Likewise.
8841         * nss/Makefile (others-extras): Likewise.
8843 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8845         [BZ #18822]
8846         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8847         * elf/dl-open.c: Include <libc-internal.h>.
8848         (__libc_multiple_libcs): Removed.
8849         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8850         <hp-timing.h>.
8851         * include/libc-internal.h (__libc_multiple_libcs): New.
8852         * misc/sbrk.c: Include <libc-internal.h>.
8853         (__libc_multiple_libcs): Removed.
8855 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8857         [BZ #18822]
8858         * grp/initgroups.c (__nss_group_database): Removed.
8859         (__nss_initgroups_database): Likewise.
8860         * nscd/gai.c (__nss_hosts_database): Likewise.
8861         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8862         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8863         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8864         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8865         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8866         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8867         attribute_hidden.
8868         * nss/nsswitch.c (__nss_database_custom): Define only if
8869         USE_NSCD is defined.
8870         (__nss_configure_lookup): Use __nss_database_custom only if
8871         USE_NSCD is defined.
8872         * nss/nsswitch.h (__nss_database_custom): Declare only if
8873         USE_NSCD is defined.  Add attribute_hidden.
8874         (__nss_setent): Add attribute_hidden.
8875         (__nss_endent): Likewise.
8876         (__nss_getent_r): Likewise.
8877         (__nss_getent): Likewise.
8878         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8880 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8882         [BZ #18822]
8883         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8884         libc_hidden_proto and libc_hidden_def.
8886 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8888         [BZ #18822]
8889         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8890         Add libc_hidden_proto.
8891         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8892         Add libc_hidden_def.
8894 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8896         [BZ #21974]
8897         * gmon/Makefile (routines): Remove bb_init_func and
8898         bb_exit_func.
8899         (elide-routines.os): Removed.
8900         * gmon/bb_exit_func.c: Likewise.
8901         * gmon/bb_init_func.c: Likewise.
8902         * include/sys/gmon.h (__bb): Likewise.
8903         (__bb_init_func): Likewise.
8904         (__bb_exit_func): Likewise.
8905         * sysdeps/alpha/bb_init_func.S: Likewise.
8907 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8909         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8910         * include/setjmp.h (____longjmp_chk): Here.  Add
8911         attribute_hidden.
8913 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8915         [BZ #18822]
8916         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8917         attribute_hidden.
8918         (__strspn_sse2): Likewise.
8920 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8922         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8923         (close_not_cancel_no_status): Likewise.
8924         (__close_nocancel): New macro.
8925         (__close_nocancel_nostatus): Likewise.
8926         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8927         macro.
8928         (close_not_cancel): Likewise.
8929         (close_not_cancel_no_status): Likewise.
8930         (__close_nocancel): New prototype.
8931         (__close_nocancel_nostatus): New function.
8932         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8933         * catgets/open_catalog.c (__open_catalog): Replace
8934         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8935         * gmon/gmon.c (write_gmon): Likewise.
8936         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8937         * intl/loadmsgcat.c (close): Likewise.
8938         * io/ftw.c (open_dir_stream): Likewise.
8939         (ftw_startup): Likewise.
8940         * libio/fileops.c (_IO_file_open): Likewise.
8941         (_IO_file_close_mmap): Likewise.
8942         (_IO_file_close): Likewise.
8943         * libio/iopopen.c (_IO_dup2): Likewise.
8944         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8945         * locale/loadlocale.c (_nl_load_locale): Likewise.
8946         * login/utmp_file.c (pututline_file): Likewise.
8947         (endutent_file): Likewise.
8948         * misc/daemon.c (daemon): Likewise.
8949         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8950         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8951         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8952         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8953         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8954         * nscd/nscd_helper.c (open_socket): Likewise.
8955         (__nscd_open_socket): Likewise.
8956         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8957         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8958         (__nscd_innetgr): Likewise.
8959         * nss/nss_db/db-open.c (internal_setent): Likewise.
8960         * resolv/res-close.c (__res_iclose): Likewise.
8961         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8962         * sysdeps/posix/closedir.c (__closedir): Likewise.
8963         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8964         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8965         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8966         (opendir_tail): Likewise.
8967         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8968         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8969         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8970         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8971         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8972         (gethostid): Likewise.
8973         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8974         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8975         Likewise.
8976         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8977         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8978         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8979         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8980         Likewise.
8981         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8982         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8983         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8984         Likewise.
8985         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8986         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8987         Likewise.
8988         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8989         Likewise.
8990         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8991         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8992         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8993         __close_nocancel.
8995         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8996         (openat_not_cancel_3): Likewise.
8997         (openat64_not_cancel_3): Likewise).
8998         (openat_not_cancel_3): Likewise).
8999         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
9000         macro.
9001         (openat_not_cancel_3): Likewise.
9002         (openat64_not_cancel): Likewise.
9003         (openat64_not_cancel_3): Likewise.
9004         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
9005         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
9006         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
9007         __open{64}_nocancel.
9008         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9009         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9010         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9012 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9014         [BZ #18822]
9015         * include/argz.h (__argz_create_sep): New function prototype.
9016         (__argz_append): Likewise.
9017         (__argz_add): Likewise.
9018         (__argz_add_sep): Likewise.
9019         (__argz_delete): Likewise.
9020         (__argz_insert): Likewise.
9021         (__argz_replace): Likewise.
9022         * string/argz.h (__argz_create_sep): Removed.
9023         (__argz_append): Likewise.
9024         (__argz_add): Likewise.
9025         (__argz_add_sep): Likewise.
9026         (__argz_delete): Likewise.
9027         (__argz_insert): Likewise.
9028         (__argz_replace): Likewise.
9030 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9032         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
9033         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
9034         (GNU_PROPERTY_STACK_SIZE): Likewie.
9035         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
9036         (GNU_PROPERTY_LOPROC): Likewise.
9037         (GNU_PROPERTY_HIPROC): Likewise.
9038         (GNU_PROPERTY_LOUSER): Likewise.
9039         (GNU_PROPERTY_HIUSER): Likewise.
9040         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
9041         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
9042         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
9043         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
9044         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
9045         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
9046         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
9047         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
9048         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
9049         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
9050         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
9051         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
9052         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
9053         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
9054         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
9055         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
9056         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
9057         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
9058         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
9059         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
9060         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
9061         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
9062         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
9064 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9066         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
9067         in C++ mode.
9069 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9071         [BZ #21930]
9072         * math/math.h (isinf): Check if in C or C++ mode before using
9073         __builtin_types_compatible_p, since this is a C mode feature.
9075 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9077         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
9078         (__write_nocancel): New macro.
9079         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
9080         Rewrite as a function prototype.
9081         (write_not_cancel): Remove macro.
9082         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
9083         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
9084         (write_gmon): Likewise.
9085         * libio/fileops.c (_IO_new_file_write): Likewise.
9086         * login/utmp_file.c (pututline_file): Likewise.
9087         (updwtmp_file): Likewise.
9088         * stdio-common/psiginfo.c (psiginfo): Likewise.
9089         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9090         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9091         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9092         Likewise.
9093         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9094         Likewise.
9096         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9097         (__read_nocancel): New macro.
9098         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9099         __read_nocancel.
9100         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9101         macro.
9102         (__read_nocancel): New prototype.
9103         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9104         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9105         with __read_nocancel.
9106         * intl/loadmsgcat.c (read): Likewise.
9107         * libio/fileops.c (_IO_file_read): Likewise.
9108         * locale/loadlocale.c (_nl_load_locale): Likewise.
9109         * login/utmp_file.c (getutent_r_file): Likewise.
9110         (internal_getut_r): Likewise.
9111         (getutline_r_file): Likewise.
9112         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9113         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9114         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9115         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9116         Likewise.
9117         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9118         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9119         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9120         Likewise.
9121         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9122         Likewise.
9123         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9124         Likewise.
9125         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9126         Likewise.
9127         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9129 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9131         [BZ #21966]
9132         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9133         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9134         usable.
9136 2017-08-17  DJ Delorie  <dj@redhat.com>
9138         * bug17079.c: Update to new test harness.
9139         * test-digits-dots.c: Likewise.
9140         * test-netdb.c: Likewise.
9141         * tst-field.c: Likewise.
9142         * tst-nss-getpwent.c: Likewise.
9143         * tst-nss-static.c: Likewise.
9144         * tst-nss-test1.c: Likewise.
9145         * tst-nss-test2.c: Likewise.
9146         * tst-nss-test3.c: Likewise.
9147         * tst-nss-test4.c: Likewise.
9148         * tst-nss-test5.c: Likewise.
9150 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9152         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9153         (open_not_cancel_2): Likewise.
9154         (open_nocancel): New macro.
9155         (open64_nocancel): Likewise.
9156         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9157         (open_not_cancel_2): Likewise.
9158         (__open_nocancel): New prototype.
9159         (__open64_nocancel): Likewise.
9160         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9161         __open_nocancel.
9162         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9163         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9164         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9165         with __open_nocancel.
9166         * csu/check_fds.c (check_one_fd): Likewise.
9167         * gmon/gmon.c (write_gmon): Likewise.
9168         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9169         * intl/loadmsgcat.c (open): Likewise.
9170         * libio/fileops.c (_IO_file_open): Likewise.
9171         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9172         * locale/loadlocale.c (_nl_load_locale): Likewise.
9173         * login/utmp_file.c (setutent_file): Likewise.
9174         * misc/daemon.c (daemon): Likewise.
9175         * nss/nss_db/db-open.c (internal_setent): Likewise.
9176         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9177         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9178         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9179         (__opendir): Likewise.
9180         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9181         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9182         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9183         (gethostid): Likewise.
9184         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9185         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9186         Likewise.
9187         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9188         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9189         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9190         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9191         Likewise.
9192         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9193         Likewise.
9194         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9195         Likewise.
9196         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9197         Likewise.
9198         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9199         Likewise.
9200         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9201         Likewise.
9202         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9203         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9205 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9207         * benchtests/bench-skeleton.c (main): Add support for
9208         latency benchmarking.
9209         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9211 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9213         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9214         the startup object.
9216 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9218         * include/sys/socket.h (__opensock): Remove internal_function.
9219         * socket/opensock.c (__opensock): Likewise.
9220         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9222 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9224         [BZ #21944]
9225         * signal/bits/types/__sigval_t.h: New file.
9226         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9227         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9228         and define sigval_t using __sigval_t.
9229         * include/bits/types/__sigval_t.h: New file.
9230         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9231         instead of <bits/types/__sigval_t.h>.
9232         (struct sigevent): Use __sigval_t instead of sigval_t.
9233         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9234         instead of <bits/types/__sigval_t.h>.
9235         (siginfo_t): Use __sigval_t instead of sigval_t.
9236         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9237         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9238         (struct sigevent): Use __sigval_t instead of sigval_t.
9239         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9240         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9241         (siginfo_t): Use __sigval_t instead of sigval_t.
9242         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9244 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9246         * NEWS: Remove "[Add new features here]" for 2.27.
9248 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9250         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9251         libc.so.
9253 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9255         * NEWS: Mention x86-64 FMA optimization.
9257 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9259         [BZ #21912]
9260         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9261         Add e_expf-fma.
9262         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9263         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9264         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9266 2017-08-16  Andreas Schwab  <schwab@suse.de>
9268         [BZ #16750]
9269         CVE-2009-5064
9270         * elf/ldd.bash.in: Never run file directly.
9272 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9274         [BZ #21955]
9275         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9276         (L(SP_INF_0)): Likewise.
9278 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9280         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9281         run-built-tests.
9283 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9285         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9286         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9287         BROKEN_THREAD_SIGNALS code.
9288         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9289         request_list): Remove caller_pid member used for
9290         BROKEN_THREAD_SIGNALS.
9291         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9292         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9293         Remove BROKEN_THREAD_SIGNALS support.
9294         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9295         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9297 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9299         * gmon/Makefile (tests): Add tst-gmon.
9300         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9301         Set.
9302         (tests-special): Add tst-gmon-prof.out.
9303         (tst-gmon.out): Depend on clean-tst-gmon-data.
9304         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9305         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9306         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9307         startup object.
9308         * aclocal.m4 (GPROF): Set and substitute.
9309         * config.amke.in (GPROF): Set.
9310         * configure: Regenerate.
9312 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9314         * elf/elf.h A (NT_PPC_TAR): New macro.
9315         (NT_PPC_PPR): Likewise.
9316         (NT_PPC_DSCR): Likewise.
9317         (NT_PPC_EBB): Likewise.
9318         (NT_PPC_PMU): Likewise.
9319         (NT_PPC_TM_CGPR): Likewise.
9320         (NT_PPC_TM_CFPR): Likewise.
9321         (NT_PPC_TM_CVMX): Likewise.
9322         (NT_PPC_TM_CVSX): Likewise.
9323         (NT_PPC_TM_SPR): Likewise.
9324         (NT_PPC_TM_CTAR): Likewise.
9325         (NT_PPC_TM_CPPR): Likewise.
9326         (NT_PPC_TM_CDSCR): Likewise.
9328 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9330         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9331         regparm (2) instead of internal_function.
9332         (_MCOUNT_DECL): Adjust.
9334 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9336         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9337         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9339 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9341         * conform/data/sys/wait.h-data (si_value): Do not expect for
9342         XPG42.
9344 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9346         [BZ #21962]
9347         NSS: Create stubs for accidentally exported lookup functions.
9348         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9349         Remove declaration.
9350         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9351         (ether_hostton): Call __nss_ethers_lookup2 instead.
9352         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9353         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9354         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9355         (setup): Call __nss_netgroup_lookup2 instead.
9356         * nss/Makefile (routines): Add compat-lookup.
9357         * nss/Versions (GLIBC_2.27): Add symbol version.
9358         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9359         (DB_COMPAT_FCT): Remove.
9360         * nss/compat-lookup.c: New file.
9361         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9362         from databases.def.
9363         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9364         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9365         (netname2user): Call __nss_publickey_lookup2 instead.
9366         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9367         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9368         instead.
9370 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9371             Sergei Trofimovich  <slyfox@inbox.ru>
9373         [BZ #21908]
9374         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9375         Rename to MMAP2_PAGE_UNIT.
9376         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9377         __OFF_T_MATCHES_OFF64_T is not defined.
9378         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9379         uint64_t.
9380         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9381         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9383 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9385         i386: Do not set internal_function.
9386         * config.h.in (USE_REGPARMS, internal_function): Remove.
9387         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9388         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9390 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9392         * elf/dl-init.c (_dl_init): Remove internal_function.
9393         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9394         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9396 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9398         * elf/rtld.c (_dl_start): Remove internal_function.
9399         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9400         _dl_start.
9402 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9404         * elf/dl-fini.c (_dl_fini): Remove internal_function
9405         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9407 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9409         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9410         (bit_cpu_SHSTK): Likewise.
9411         (index_cpu_IBT): Likewise.
9412         (index_cpu_SHSTK): Likewise.
9413         (reg_IBT): Likewise.
9414         (reg_SHSTK): Likewise.
9415         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9416         Handle index_cpu_IBT and index_cpu_SHSTK.
9418 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9420         [BZ #19982]
9421         * po/fr.po: Fix spelling mistake.
9423 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9425         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9426         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9427         (_dl_catch_error, _dl_receive_error): Likewise.
9428         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9429         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9430         (_dl_deallocate_tls): Likewise.
9431         * include/dlfcn.h (_dl_addr): Likewise.
9432         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9433         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9434         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9435         Likewise.
9437 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9439         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9440         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9441         internal_function.
9442         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9444 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9446         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9447         internal_function.
9448         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9449         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9450         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9451         internal_function from _dl_make_stack_executable_hook member.
9452         (_dl_make_stack_executable): Remove internal_function.
9453         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9454         Likewise.
9455         * sysdeps/unix/sysv/linux/dl-execstack.c
9456         (_dl_make_stack_executable): Likewise.
9458 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9460         * sysdeps/unix/sysv/linux/netlinkaccess.h
9461         (__netlink_assert_response): Remove internal_function.
9462         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9463         (__netlink_assert_response): Likewise.
9465 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9467         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9468         internal_function.
9469         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9471 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9473         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9474         internal_function.
9475         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9476         * inet/netgroup.h (__internal_setnetgrent)
9477         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9478         * inet/getnetgrent_r.c (__internal_setnetgrent)
9479         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9480         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9481         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9482         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9483         * nss/nsswitch.h (db_lookup_function): Likewise.
9485 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9487         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9488         Remove internal_function.
9489         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9490         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9491         message argument on the stack.
9492         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9493         Likeweise.
9495 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9497         Adapt test case data to the changes in the thousands
9498         separators.
9500         [BZ #20756]
9501         * localedata/tst-langinfo.sh: Adapt test case data.
9502         * stdlib/tst-strfmon_l.c: Likewise.
9503         * stdlib/tst-strtod4.c: Likewise.
9504         * stdlib/tst-strtod5i.c: Likewise.
9506 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9508         [BZ #21242]
9509         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9510         Suppress pedantic warning resulting from statement expression.
9511         (__ASSERT_FUNCTION): Add missing __extension__.
9513 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9515         * benchtests/bench-memmove-large.c: Print output in JSON
9516         format.
9517         * benchtests/bench-memmove.c: Likewise.
9519         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9520         * benchtests/bench-memchr.c (do_one_test): Likewise.
9521         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9522         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9523         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9524         * benchtests/bench-memmove.c (do_one_test): Likewise.
9525         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9526         * benchtests/bench-memset.c (do_one_test): Likewise.
9527         * benchtests/bench-string.h (test_init): Remove memsets.
9529 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9531         * manual/lang.texi
9532         (Computing the Width of an Integer Data Type): Rename section to
9533         "Width of an Integer Type".  Remove inaccurate statement regarding
9534         lack of C language facilities for determining width of integer
9535         types, and reorder content to improve flow and context of
9536         discussion.
9538 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9540         * lang.texi (va_copy): Change standard from ISO to C99.
9541         (__va_copy): Add standard and header annotation.
9542         Update description for clarity of origins and current use.
9544 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9546         [BZ #21941]
9547         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9548         xssqrtqp requires operands to be in Vector Registers
9549         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9550         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9551         (__ieee754_sqrtf128): Likewise.
9553 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9555         * sysdeps/aarch64/memcmp.S (memcmp):
9556         Rewrite of optimized memcmp.
9558 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9560         Introduce ld.so exceptions.
9561         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9562         (_dl_exception_create, _dl_exception_create_format)
9563         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9564         (_dl_catch_exception): Declare.
9565         (_dl_catch_error): Update comment.
9566         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9567         errstring, malloced members with exception member.
9568         (_dl_out_of_memory): Remove.
9569         (fatal_error): New function, extracted from _dl_signal_error.
9570         (_dl_signal_exception, _dl_signal_cexception): New functions.
9571         (_dl_signal_error): Call _dl_exception_create to allocate an
9572         exception object.
9573         (_dl_catch_exception): New function, based on _dl_catch_error.
9574         (_dl_catch_error): Implement using _dl_catch_exception.
9575         * elf/dl-exception.c: New file.
9576         * elf/Makefile (dl-routines): Add dl-exception.
9577         (elide-routines.os): Likewise.
9578         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9579         _dl_exception_create_format, _dl_exception_free.
9580         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9581         _dl_signal_exception.
9582         * elf/dl-lookup.c (make_string): Remove.
9583         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9584         _dl_signal_cexception, _dl_exception_free.
9585         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9586         _dl_signal_exception.
9587         * elf/dl-sym.c (do_sym): Likewise.
9588         * elf/dl-version.c (make_string): Remove.
9589         (match_symbol): Use _dl_exception_create_format,
9590         _dl_signal_cexception, _dl_exception_free.
9591         (_dl_check_map_versions): Likewise.
9592         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9593         _dl_catch_exception.
9594         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9595         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9596         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9597         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9598         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9599         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9600         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9601         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9602         Likewise.
9603         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9605         (ld.so): Likewise.
9606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9607         (ld.so): Likewise.
9608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9609         Likewise.
9610         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9611         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9612         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9613         Likewise.
9614         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9615         Likewise.
9616         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9618 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9620         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9621         attribute_hidden, internal_function.
9622         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9623         internal_function.
9625 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9627         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9628         function which calls __builtin_unreachable.
9630 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9632         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9633         Indian monetary formatting
9634         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9635         test cases.
9637 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9639         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9640         Fix typo in comment.
9642         [BZ #21928]
9643         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9644         PTRACE_SEIZE_DEVEL): Remove.
9645         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9646         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9647         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9648         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9649         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9651 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9653         * posix/bits/types.h (__qaddr_t): Remove.
9655         [BZ #21457]
9656         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9657         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9658         __glibc_reserved1.
9659         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9660         (ucontext_t): Use __ctx with uc_flags.
9661         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9662         (__ctxt): Likewise.
9663         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9664         __glibc_reserved1.
9665         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9666         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9667         __glibc_reserved1.
9668         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9669         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9670         __glibc_reserved1.
9671         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9672         macro.
9673         (ucontext_t): Use __ctx with uc_flags.
9674         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9675         (ucontext_t): Use __ctx with uc_flags.
9676         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9677         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9678         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9679         (ucontext_t): Use __ctx with uc_flags.
9680         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9681         undefine further down.
9682         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9683         __glibc_reserved1.
9684         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9685         undefine further down.
9686         (ucontext_t): Use __ctx with uc_flags.
9687         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9688         undefine further down.
9689         (ucontext_t): Use __ctx with uc_flags.
9690         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9691         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9692         Rename uc_pad to __glibc_reserved1.
9693         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9694         undefine further down.
9695         (ucontext_t): Use __ctx with uc_flags.
9696         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9697         further down.
9698         (ucontext_t): Use __ctx with uc_flags.
9699         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9700         __ctx with uc_flags.
9701         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9702         (ucontext_t): Use __ctx with uc_flags.
9703         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9704         __ctx with uc_flags.
9706 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9708         [BZ #21932]
9709         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9710         before early return.
9712 2017-08-09  Andreas Schwab  <schwab@suse.de>
9714         [BZ #21041]
9715         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9716         renamed alias.
9718         [BZ #21041]
9719         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9720         tst-compat-forwarder.
9721         (modules-names): Add tst-compat-forwarder-mod.
9722         ($(objpfx)tst-compat-forwarder): Depend on
9723         $(objpfx)tst-compat-forwarder-mod.so.
9724         * nptl/tst-compat-forwarder.c: New file.
9725         * nptl/tst-compat-forwarder-mod.c: New file.
9727 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9729         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9730         comments.
9732         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9733         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9734         memcpy_falkor.
9735         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9736         Bump.
9737         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9738         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9739         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9740         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9741         Add falkor.
9742         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9743         New macro.
9745 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9747         [BZ #759]
9748         * manual/setjmp.texi (getcontex): Document uc_stack value
9749         compatibility differences.
9751 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9753         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9754         (old_malloc_hook): Likewise.
9755         (old_memalign_hook): Likewise.
9756         (old_realloc_hook): Likewise.
9757         (struct hdr): Likewise.
9758         (flood): Likewise.
9759         (freehook): Likewise.
9760         (mallochook): Likewise.
9761         (memalignhook): Likewise.
9762         (reallochook): Likewise.
9763         (mprobe): Likewise.
9764         * malloc/mtrace.c (mallwatch): Likewise.
9765         (tr_old_free_hook): Likewise.
9766         (tr_old_malloc_hook): Likewise.
9767         (tr_old_realloc_hook): Likewise.
9768         (tr_old_memalign_hook): Likewise.
9769         (tr_where): Likewise.
9770         (lock_and_info): Likewise.
9771         (tr_freehook): Likewise.
9772         (tr_mallochook): Likewise.
9773         (tr_reallochook): Likewise.
9774         (tr_memalignhook): Likewise.
9775         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9776         * misc/mmap.c (__mmap): Likewise.
9777         * misc/mmap64.c (__mmap64): Likewise.
9778         * misc/mprotect.c (__mprotect): Likewise.
9779         * misc/msync.c (msync): Likewise.
9780         * misc/munmap.c (__munmap): Likewise.
9781         * posix/posix_madvise.c (posix_madvise): Likewise.
9782         * socket/send.c (__send): Likewise.
9783         * socket/sendto.c (__sendto): Likewise.
9784         * socket/setsockopt.c (__setsockopt): Likewise.
9785         * string/memcmp.c (__ptr_t): Remove macro.
9786         (MEMCMP): Use void * instead of ptr_t.
9787         * string/memrchr.c (__ptr_t): Remove macro.
9788         (__memrchr): Use void * instead of ptr_t.
9789         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9790         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9791         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9792         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9793         * sysdeps/mach/msync.c (msync): Likewise.
9794         * sysdeps/mach/munmap.c (__munmap): Likewise.
9795         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9796         Likewise.
9797         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9798         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9799         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9800         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9801         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9802         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9803         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9804         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9805         Likewise.
9806         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9807         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9808         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9809         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9810         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9811         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9812         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9813         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9814         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9815         Likewise.
9816         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9817         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9818         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9819         (MEMCMP): Use void * instead of ptr_t.
9820         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9821         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9823 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9826         return statement.
9828 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9830         [BZ #21913]
9831         * csu/libc-tls.c: Include <startup.h> first.
9832         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9833         * elf/dl-tunables.c: Include <startup.h> first.
9834         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9835         * sysdeps/generic/startup.h: New file.
9836         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9837         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9838         (I386_USE_SYSENTER): New.  Defined to 0.
9840 2017-08-08  Andreas Schwab  <schwab@suse.de>
9842         [BZ #21041]
9843         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9844         * nptl/pt-system.c (system): Likewise.
9846 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9848         [BZ #21780]
9849         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9850         EOPNOTSUPP.
9851         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9852         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9853         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9854         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9855         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9856         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9857         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9859 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9861         [BZ #21899]
9862         * bits/sigaction.h (struct sigaction): Define sa_handler and
9863         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9864         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9865         [__USE_XOPEN_EXTENDED].
9866         (SA_RESTART): Likewise.
9867         (SA_NODEFER): Likewise.
9868         (SA_RESETHAND): Likewise.
9869         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9870         (struct sigaction): Define sa_handler and sa_sigaction using union
9871         also for [__USE_XOPEN_EXTENDED].
9872         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9873         [__USE_XOPEN_EXTENDED].
9874         (SA_RESTART): Likewise.
9875         (SA_NODEFER): Likewise.
9876         (SA_RESETHAND): Likewise.
9877         * sysdeps/unix/sysv/linux/bits/sigaction.h
9878         (struct sigaction): Define sa_handler and sa_sigaction using union
9879         also for [__USE_XOPEN_EXTENDED].
9880         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9881         [__USE_XOPEN_EXTENDED].
9882         (SA_RESTART): Likewise.
9883         (SA_NODEFER): Likewise.
9884         (SA_RESETHAND): Likewise.
9885         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9886         (struct sigaction): Define sa_handler and sa_sigaction using union
9887         also for [__USE_XOPEN_EXTENDED].
9888         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9889         [__USE_XOPEN_EXTENDED].
9890         (SA_RESTART): Likewise.
9891         (SA_NODEFER): Likewise.
9892         (SA_RESETHAND): Likewise.
9893         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9894         (struct sigaction): Define sa_handler and sa_sigaction using union
9895         also for [__USE_XOPEN_EXTENDED].
9896         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9897         [__USE_XOPEN_EXTENDED].
9898         (SA_RESTART): Likewise.
9899         (SA_NODEFER): Likewise.
9900         (SA_RESETHAND): Likewise.
9901         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9902         (struct sigaction): Define sa_handler and sa_sigaction using union
9903         also for [__USE_XOPEN_EXTENDED].
9904         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9905         [__USE_XOPEN_EXTENDED].
9906         (SA_RESTART): Likewise.
9907         (SA_NODEFER): Likewise.
9908         (SA_RESETHAND): Likewise.
9909         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9910         (struct sigaction): Define sa_handler and sa_sigaction using union
9911         also for [__USE_XOPEN_EXTENDED].
9912         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9913         [__USE_XOPEN_EXTENDED].
9914         (SA_RESTART): Likewise.
9915         (SA_NODEFER): Likewise.
9916         (SA_RESETHAND): Likewise.
9917         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9918         (struct sigaction): Define sa_handler and sa_sigaction using union
9919         also for [__USE_XOPEN_EXTENDED].
9920         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9921         [__USE_XOPEN_EXTENDED].
9922         (SA_RESTART): Likewise.
9923         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9924         (SA_RESETHAND): Likewise.
9925         (SA_INTERRUPT): Define only for [__USE_MISC].
9926         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9927         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9928         [__USE_MISC].
9929         (SA_STACK): Define only for [__USE_MISC].
9930         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9931         (struct sigaction): Define sa_handler and sa_sigaction using union
9932         also for [__USE_XOPEN_EXTENDED].
9933         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9934         [__USE_XOPEN_EXTENDED].
9935         (SA_RESTART): Likewise.
9936         (SA_NODEFER): Likewise.
9937         (SA_RESETHAND): Likewise.
9938         (SA_NOPTRACE): Define only for [__USE_MISC].
9940         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9941         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9942         (struct catalog_info): Likewise.
9943         * inet/htontest.c (lo): Likewise.
9944         (foo): Likewise.
9945         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9946         * inet/inet_net.c (inet_network): Likewise.
9947         * inet/inet_netof.c (inet_netof): Likewise.
9948         * inet/rcmd.c (__ivaliduser): Likewise.
9949         (iruserok): Likewise.
9950         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9951         * locale/programs/locale-spec.c (locale_special): Likewise.
9952         * nis/nis_findserv.c (struct findserv_req): Likewise.
9953         (__nis_findfastest_with_timeout): Likewise.
9954         * nss/test-netdb.c (test_network): Likewise.
9955         * resolv/inet_neta.c (inet_neta): Likewise.
9956         * resolv/ns_date.c (ns_datetosecs): Likewise.
9957         (SECS_PER_DAY): Likewise.
9958         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9959         Likewise.
9960         * resolv/res_comp.c (__putlong): Likewise.
9961         (__putshort): Likewise.
9962         (_getlong): Likewise.
9963         (_getshort): Likewise.
9964         * resolv/res_debug.c (p_time): Likewise.
9965         (precsize_ntoa): Likewise.
9966         (precsize_aton): Likewise.
9967         (latlon2ul): Likewise.
9968         (loc_aton): Likewise.
9969         (loc_ntoa): Likewise.
9970         * resolv/res_hconf.c (struct netaddr): Likewise.
9971         (_res_hconf_reorder_addrs): Likewise.
9972         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9973         (clnttcp_control): Likewise.
9974         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9975         (clntudp_control): Likewise.
9976         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9977         (clntunix_control): Likewise.
9978         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9979         * sunrpc/rpc/auth.h (union des_block): Likewise.
9980         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9981         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9982         (xdrrec_create): Likewise.
9983         (xdrrec_endofrecord): Likewise.
9984         (flush_out): Likewise.
9985         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9986         (xdrstdio_putlong): Likewise.
9987         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9988         Likewise.
9990         * misc/sys/cdefs.h (__long_double_t): Remove.
9991         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9992         instead of __long_double_t,
9993         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9995 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9997         * benchtests/scripts/compare_strings.py: Avoid display error when
9998         running on a text terminal.
10000         * benchtests/scripts/compare_strings.py (main): Add an
10001         optional -base option.
10002         (process_results): New argument base_func.
10004         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
10005         hardcoding memcpy.
10006         * benchtests/bench-memcpy-large.c (test_name): Likewise.
10007         * benchtests/bench-memcpy-random.c (test_name): Likewise.
10009 2017-08-07  Andreas Schwab  <schwab@suse.de>
10011         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
10012         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
10013         * intl/Makefile ($(objpfx)tst-gettext.out)
10014         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
10015         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
10016         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
10017         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
10018         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
10019         * posix/Makefile ($(objpfx)globtest.out)
10020         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
10021         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
10022         ($(objpfx)tst-printf.out): Likewise.
10023         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
10024         ($(objpfx)tst-setcontext3.out): Likewise.
10026 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10028         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10029         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
10030         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
10031         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
10032         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
10033         and mptan-fma.
10034         (CFLAGS-doasin-fma.c): New.
10035         (CFLAGS-dosincos-fma.c): Likewise.
10036         (CFLAGS-e_asin-fma.c): Likewise.
10037         (CFLAGS-e_atan2-fma.c): Likewise.
10038         (CFLAGS-e_exp-fma.c): Likewise.
10039         (CFLAGS-e_log-fma.c): Likewise.
10040         (CFLAGS-e_pow-fma.c): Likewise.
10041         (CFLAGS-halfulp-fma.c): Likewise.
10042         (CFLAGS-mpa-fma.c): Likewise.
10043         (CFLAGS-mpatan-fma.c): Likewise.
10044         (CFLAGS-mpatan2-fma.c): Likewise.
10045         (CFLAGS-mpexp-fma.c): Likewise.
10046         (CFLAGS-mplog-fma.c): Likewise.
10047         (CFLAGS-mpsqrt-fma.c): Likewise.
10048         (CFLAGS-mptan-fma.c): Likewise.
10049         (CFLAGS-s_atan-fma.c): Likewise.
10050         (CFLAGS-sincos32-fma.c): Likewise.
10051         (CFLAGS-slowexp-fma.c): Likewise.
10052         (CFLAGS-slowpow-fma.c): Likewise.
10053         (CFLAGS-s_sin-fma.c): Likewise.
10054         (CFLAGS-s_tan-fma.c): Likewise.
10055         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
10056         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
10057         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
10058         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
10059         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
10060         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10061         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
10062         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
10063         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
10064         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
10065         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
10066         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
10067         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
10068         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10069         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10070         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
10071         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
10072         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
10073         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
10074         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
10075         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
10076         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10077         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10078         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
10079         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10080         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10081         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10082         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
10083         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10084         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10085         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10087 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
10089         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
10090         (min_of_type_f): New macro.
10091         (min_of_type_): Likewise.
10092         (min_of_type_l): Likewise.
10093         (min_of_type_f128): Likewise.
10094         (min_of_type): Define using __MATH_TG and taking an expression
10095         argument.
10096         (math_check_force_underflow): Pass expression instead of type to
10097         min_of_type.
10098         (math_check_force_underflow_nonneg): Likewise.
10100 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10102         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10103         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10104         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10106 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10108         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10109         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10110         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10111         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10112         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10113         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10114         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10115         memmove_chk-nonshared and memset_chk-nonshared
10116         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10117         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10118         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10119         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10120         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10121         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10122         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10123         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10124         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10125         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10126         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10127         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10128         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10129         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10130         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10131         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10132         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10133         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10134         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10135         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10136         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10137         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10138         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10139         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10140         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10141         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10142         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10143         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10144         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10145         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10146         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10147         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10148         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10149         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10150         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10151         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10152         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10153         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10154         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10155         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10156         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10157         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10158         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10159         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10160         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10161         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10162         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10163         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10164         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10165         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10166         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10167         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10168         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10169         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10170         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10171         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10172         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10173         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10174         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10175         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10176         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10177         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10178         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10179         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10180         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10181         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10182         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10183         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10184         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10185         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10186         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10187         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10188         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10189         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10190         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10191         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10192         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10193         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10194         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10195         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10196         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10197         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10198         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10199         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10200         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10201         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10202         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10203         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10204         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10205         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10206         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10207         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10208         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10209         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10210         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10211         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10212         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10213         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10214         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10215         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10216         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10217         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10218         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10219         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10220         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10221         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10222         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10223         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10225 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10227         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10228         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10229         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10230         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10231         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10232         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10233         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10234         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10235         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10236         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10237         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10238         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10239         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10240         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10241         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10242         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10243         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10244         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10245         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10246         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10247         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10248         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10249         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10250         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10251         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10252         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10253         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10254         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10255         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10256         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10257         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10258         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10259         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10260         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10261         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10262         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10263         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10264         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10265         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10266         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10267         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10268         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10269         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10270         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10271         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10272         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10273         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10274         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10275         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10276         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10277         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10278         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10279         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10280         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10281         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10282         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10283         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10284         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10285         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10286         ...
10287         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10288         Don't include <sysdep.h> nor <init-arch.h>.
10289         (_ZGVbN2v_cos): Removed.
10290         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10291         ...
10292         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10293         Don't include <sysdep.h> nor <init-arch.h>.
10294         (_ZGVdN4v_cos): Removed.
10295         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10296         ...
10297         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10298         Don't include <sysdep.h> nor <init-arch.h>.
10299         (_ZGVeN8v_cos): Removed.
10300         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10301         ...
10302         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10303         Don't include <sysdep.h> nor <init-arch.h>.
10304         (_ZGVbN2v_exp): Removed.
10305         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10306         ...
10307         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10308         Don't include <sysdep.h> nor <init-arch.h>.
10309         (_ZGVdN4v_exp): Removed.
10310         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10311         ...
10312         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10313         Don't include <sysdep.h> nor <init-arch.h>.
10314         (_ZGVeN8v_exp): Removed.
10315         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10316         ...
10317         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10318         Don't include <sysdep.h> nor <init-arch.h>.
10319         (_ZGVbN2v_log): Removed.
10320         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10321         ...
10322         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10323         Don't include <sysdep.h> nor <init-arch.h>.
10324         (_ZGVdN4v_log): Removed.
10325         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10326         ...
10327         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10328         Don't include <sysdep.h> nor <init-arch.h>.
10329         (_ZGVeN8v_log): Removed.
10330         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10331         ...
10332         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10333         Don't include <sysdep.h> nor <init-arch.h>.
10334         (_ZGVbN2vv_pow): Removed.
10335         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10336         ...
10337         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10338         Don't include <sysdep.h> nor <init-arch.h>.
10339         (_ZGVdN4vv_pow): Removed.
10340         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10341         ...
10342         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10343         Don't include <sysdep.h> nor <init-arch.h>.
10344         (_ZGVeN8vv_pow): Removed.
10345         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10346         ...
10347         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10348         Don't include <sysdep.h> nor <init-arch.h>.
10349         (_ZGVbN2v_sin): Removed.
10350         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10351         ...
10352         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10353         Don't include <sysdep.h> nor <init-arch.h>.
10354         (_ZGVbN4v_sin): Removed.
10355         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10356         ...
10357         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10358         Don't include <sysdep.h> nor <init-arch.h>.
10359         (_ZGVbN8v_sin): Removed.
10360         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10361         ...
10362         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10363         Don't include <sysdep.h> nor <init-arch.h>.
10364         (_ZGVbN2vvv_sincos): Removed.
10365         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10366         ...
10367         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10368         Don't include <sysdep.h> nor <init-arch.h>.
10369         (_ZGVdN4vvv_sincos): Removed.
10370         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10371         ...
10372         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10373         Don't include <sysdep.h> nor <init-arch.h>.
10374         (_ZGVeN8vvv_sincos): Removed.
10375         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10376         ...
10377         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10378         Don't include <sysdep.h> nor <init-arch.h>.
10379         (_ZGVeN16v_cosf): Removed.
10380         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10381         ...
10382         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10383         Don't include <sysdep.h> nor <init-arch.h>.
10384         (_ZGVbN4v_cosf): Removed.
10385         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10386         ...
10387         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10388         Don't include <sysdep.h> nor <init-arch.h>.
10389         (_ZGVdN8v_cosf): Removed.
10390         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10391         ...
10392         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10393         Don't include <sysdep.h> nor <init-arch.h>.
10394         (_ZGVeN16v_expf): Removed.
10395         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10396         ...
10397         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10398         Don't include <sysdep.h> nor <init-arch.h>.
10399         (_ZGVbN4v_expf): Removed.
10400         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10401         ...
10402         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10403         Don't include <sysdep.h> nor <init-arch.h>.
10404         (_ZGVdN8v_expf): Removed.
10405         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10406         ...
10407         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10408         Don't include <sysdep.h> nor <init-arch.h>.
10409         (_ZGVeN16v_logf): Removed.
10410         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10411         ...
10412         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10413         Don't include <sysdep.h> nor <init-arch.h>.
10414         (_ZGVbN4v_logf): Removed.
10415         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10416         ...
10417         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10418         Don't include <sysdep.h> nor <init-arch.h>.
10419         (_ZGVdN8v_logf): Removed.
10420         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10421         ...
10422         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10423         Don't include <sysdep.h> nor <init-arch.h>.
10424         (_ZGVeN16vv_powf): Removed.
10425         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10426         ...
10427         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10428         Don't include <sysdep.h> nor <init-arch.h>.
10429         (_ZGVbN4vv_powf): Removed.
10430         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10431         ...
10432         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10433         Don't include <sysdep.h> nor <init-arch.h>.
10434         (_ZGVdN8vv_powf): Removed.
10435         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10436         ...
10437         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10438         Don't include <sysdep.h> nor <init-arch.h>.
10439         (_ZGVeN16vvv_sincosf): Removed.
10440         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10441         ...
10442         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10443         Don't include <sysdep.h> nor <init-arch.h>.
10444         (_ZGVbN4vvv_sincosf): Removed.
10445         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10446         ...
10447         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10448         Don't include <sysdep.h> nor <init-arch.h>.
10449         (_ZGVdN8vvv_sincosf): Removed.
10450         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10451         ...
10452         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10453         Don't include <sysdep.h> nor <init-arch.h>.
10454         (_ZGVeN16v_sinf): Removed.
10455         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10456         ...
10457         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10458         Don't include <sysdep.h> nor <init-arch.h>.
10459         (_ZGVbN4v_sinf): Removed.
10460         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10461         ...
10462         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10463         Don't include <sysdep.h> nor <init-arch.h>.
10464         (_ZGVdN8v_sinf): Removed.
10466 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10468         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10469         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10470         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10471         s_rint-sse4_1 and s_rintf-sse4_1.
10472         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10473         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10474         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10475         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10476         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10477         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10478         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10479         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10480         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10481         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10482         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10483         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10484         (__ceil): Removed.
10485         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10486         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10487         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10488         (__ceilf): Removed.
10489         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10490         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10491         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10492         (__floor): Removed.
10493         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10494         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10495         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10496         (__floorf): Removed.
10497         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10498         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10499         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10500         (__nearbyint): Removed.
10501         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10502         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10503         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10504         (__nearbyintf): Removed.
10505         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10506         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10507         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10508         (__rint): Removed.
10509         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10510         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10511         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10512         (__rintf): Removed.
10514 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10516         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10517         SHARED.  Avoid dynamic relocation against main in static PIE.
10519 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10521         [BZ #21815]
10522         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10523         (LDFLAGS-tst-prelink): Likewise.
10525 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10527         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10528         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10529         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10530         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10531         (INTERNAL_SYSCALL_NCS): Likewise.
10532         (LOADARGS_1): Likewise.
10533         (LOADARGS_5): Likewise.
10534         (RESTOREARGS_1): Likewise.
10535         (RESTOREARGS_5): Likewise.
10537 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10539         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10540         (MEMPCPY_SYMBOL): Likewise.
10541         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10542         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10543         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10544         in libc.a.
10545         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10546         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10547         Likewise.
10548         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10549         (__hidden_ver1): Don't use in libc.a.
10550         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10551         (__mempcpy): Don't create a weak alias in libc.a.
10552         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10553         libc.a.
10554         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10555         (__hidden_ver1): Don't use in libc.a.
10557 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10559         * config.make.in (have-insert): New.
10560         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10561         supports INSERT in linker script.
10562         (AC_SUBST(libc_cv_insert): New.
10563         * configure: Regenerated.
10564         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10565         if $(have-insert) == yes.
10567 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10569         * elf/Makefile (tests): Add vismain only if
10570         $(have-protected-data) == yes.
10571         (tests-pie): Likewise.
10573 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10575         [BZ #21871]
10576         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10577         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10579 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10581         [BZ #21790]
10582         * sysdeps/i386/i586/memset.S
10583         (__memset_zero_constant_len_parameter): Removed.
10584         * sysdeps/i386/i686/memset.S
10585         (__memset_zero_constant_len_parameter): Likewise.
10586         * sysdeps/i386/i686/multiarch/memset_chk.S
10587         (__memset_zero_constant_len_parameter): Likewise.
10588         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10589         Likewise.
10591 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10593         * stdlib/getentropy.c (getentropy): Change return type to int.
10595 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10597         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10599 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10601         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10602         u_intN_t.
10603         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10604         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10605         Likewise.
10606         (ieee_float_shape_type): Likewise.
10607         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10608         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10609         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10610         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10611         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10612         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10613         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10614         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10615         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10616         Likewise.
10617         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10618         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10619         (__ieee754_yn): Likewise.
10620         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10621         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10622         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10623         Likewise.
10624         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10625         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10626         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10627         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10628         (__erfc): Likewise.
10629         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10630         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10631         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10632         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10633         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10634         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10635         Likewise.
10636         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10637         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10638         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10639         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10640         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10641         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10642         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10643         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10644         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10645         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10646         (__issignaling): Likewise.
10647         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10648         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10649         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10650         Likewise.
10651         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10652         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10653         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10654         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10655         Likewise.
10656         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10657         Likewise.
10658         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10659         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10660         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10661         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10662         (__erfcf): Likewise.
10663         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10664         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10665         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10666         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10667         Likewise.
10668         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10669         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10670         Likewise.
10671         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10672         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10673         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10674         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10675         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10676         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10677         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10678         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10679         Likewise.
10680         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10681         Likewise.
10682         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10683         Likewise.
10684         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10685         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10686         Likewise.
10687         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10688         Likewise.
10689         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10690         (__ieee754_ynl): Likewise.
10691         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10692         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10693         Likewise.
10694         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10695         Likewise.
10696         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10697         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10698         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10699         Likewise.
10700         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10701         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10702         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10703         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10704         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10705         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10706         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10707         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10708         Likewise.
10709         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10710         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10711         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10712         Likewise.
10713         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10714         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10715         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10716         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10717         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10718         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10719         Likewise.
10720         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10721         Likewise.
10722         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10723         Likewise.
10724         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10725         Likewise.
10726         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10727         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10728         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10729         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10730         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10731         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10732         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10733         Likewise.
10734         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10735         Likewise.
10736         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10737         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10738         Likewise.
10739         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10740         (__ieee754_remainderl): Likewise.
10741         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10742         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10743         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10744         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10745         Likewise.
10746         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10747         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10748         Likewise.
10749         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10750         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10751         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10752         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10753         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10754         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10755         Likewise.
10756         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10757         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10758         (__ieee754_y0l): Likewise.
10759         (pzero): Likewise.
10760         (qzero): Likewise.
10761         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10762         (__ieee754_y1l): Likewise.
10763         (pone): Likewise.
10764         (qone): Likewise.
10765         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10766         (__ieee754_ynl): Likewise.
10767         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10768         (__ieee754_lgammal_r): Likewise.
10769         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10770         Likewise.
10771         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10772         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10773         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10774         (__erfcl): Likewise.
10775         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10776         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10777         Likewise.
10778         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10779         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10780         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10781         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10782         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10783         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10784         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10785         Likewise.
10786         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10787         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10788         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10789         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10790         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10791         Likewise.
10792         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10793         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10794         Likewise.
10795         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10796         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10797         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10798         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10799         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10801 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10803         [BZ #21885]
10804         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10805         on memory allocation failure.
10807 2017-08-03  Alan Modra  <amodra@gmail.com>
10809         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10810         tst-tlsopt-powerpc.c with function name change and no test harness.
10811         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10812         Call tls_get_addr_opt_test.
10813         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10814         (modules-names): Add mod-tlsopt-powerpc.
10815         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10816         (tst-tlsopt-powerpc): Depend on .so.
10817         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10818         define.  Expand use in TLS_GD and TLS_LD.
10820 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10822         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10823         function.
10824         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10826 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10828         [BZ #21686]
10829         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10830         comparing size with that of double.
10831         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10832         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10833         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10834         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10835         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10836         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10837         unsigned __int128 types.
10839 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10841         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10842         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10843         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10844         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10845         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10847 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10849         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10851 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10853         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10854         of SHARED.
10855         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10856         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10857         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10858         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10859         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10860         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10861         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10863 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10865         [BZ #21685]
10866         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10867         bit-field expressions passed to sizeof or typeof.
10868         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10869         (__TGMATH_F128): Likewise.
10870         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10871         (__TGMATH_CF128): Likewise.
10872         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10873         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10874         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10875         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10876         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10877         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10878         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10879         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10880         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10881         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10882         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10883         (__TGMATH_UNARY_IMAG): Likewise.
10884         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10885         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10886         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10887         type.
10888         (define_vars_for_type): Handle bit_field type specially.
10889         (Tests.__init__): Declare structure with bit-field element.
10891 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10893         [BZ #21791]
10894         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10895         (MEMCPY_CHK): Define only if SHARED is defined.
10896         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10897         Likewise.
10898         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10899         Likewise.
10901 See ChangeLog.18 for earlier changes.