Remove attribute_hidden for wchar ifunc symbols.
[glibc.git] / ChangeLog
blobca6024c35c3fa8d2ffcede4c54b6dbc7187f3d8d
1 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
4         __wcschrnul): Remove attribute_hidden.
6 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8         regex: don't assume uint64_t or uint32_t
9         This avoids -Werror=overflow errors for 32-bit systems in
10         the 64-bit case.  Problem reported by Joseph Myers in:
11         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
12         Also, when this code is used in Gnulib it ports to platforms
13         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
14         them, and on some 32-bit compilers there is no uint64_t.
15         Problem reported by Gianluigi Tiesi in:
16         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
17         * posix/regcomp.c (init_word_char): Don't assume that the types
18         uint64_t and uint32_t exist.  Adapted from Gnulib patch
19         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
20         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24         * sysdeps/aarch64/memset-reg.h: New file.
25         * sysdeps/aarch64/memset.S: Use it.
26         (__memset): Rename to MEMSET macro.
27         [ZVA_MACRO]: Use zva_macro.
28         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
29         Add memset_generic and memset_falkor.
30         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31         (__libc_ifunc_impl_list): Add memset ifuncs.
32         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
33         local variable zva_size.
34         * sysdeps/aarch64/multiarch/memset.c: New file.
35         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
36         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
37         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
38         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
39         (DCZID_DZP_MASK): New macro.
40         (DCZID_BS_MASK): Likewise.
41         (init_cpu_features): Read and set zva_size.
42         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
43         (struct cpu_features): New member zva_size.
45         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
46         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
47         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
49         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
50         backwards.  Fix timing computation.
51         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
52         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
53         on memset by N at a time.  Fix timing computation.
55 2017-11-20  Florian Weimer  <fweimer@redhat.com>
57         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
58         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
60 2017-11-19  Florian Weimer  <fweimer@redhat.com>
62         manual: Document mprotect
63         * manual/memory.texi (Memory Protection): New section.
64         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
65         documentation of PROT_* flags and reference the Memory Protection
66         section instead.
68 2017-11-19  Florian Weimer  <fweimer@redhat.com>
70         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
71         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
72         (Scatter-Gather): ... to here.  Remove misleading comment.
74 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
76         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
77         style.
79         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
80         when /proc/<pid>/setgroups does not exist.
82 2017-11-18  Florian Weimer  <fweimer@redhat.com>
84         * sysdeps/unix/sysv/linux/tst-ttyname.c
85         (become_root_in_mount_ns): Remove.
86         (do_in_chroot_1): Call support_enter_mount_namespace.
87         (do_in_chroot_2): Likewise.
88         (do_test): Call support_become_root early.
90 2017-11-18  Florian Weimer  <fweimer@redhat.com>
92         * support/namespace.h (support_enter_mount_namespace): Declare.
93         * support/support_enter_mount_namespace.c: New file.
94         * support/Makefile (libsupport-routines): Add
95         support_enter_mount_namespace.
97 2017-11-18  Florian Weimer  <fweimer@redhat.com>
99         * support/temp_file.c (support_create_temp_directory): Use
100         test_dir and do not rely on the presence of the XXXXXX suffix.
101         * support/temp_file.h (support_create_temp_directory): Update
102         comment.
103         * support/tst-xreadlink.c (do_test): Adjust.
104         * support/support_chroot.c (support_chroot_create): Likewise.
106 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
108         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
109         macro.
110         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
111         htm-no-suspend.
113 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
115         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
116         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
117         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
118         (ceill): Define using libm_alias_ldouble.
119         * sysdeps/x86_64/fpu/s_copysignl.S: Include
120         <libm-alias-ldouble.h>.
121         (copysignl): Define using libm_alias_ldouble.
122         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
123         (fabsl): Define using libm_alias_ldouble.
124         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
125         (floorl): Define using libm_alias_ldouble.
126         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
127         (fmaxl): Define using libm_alias_ldouble.
128         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
129         (fminl): Define using libm_alias_ldouble.
130         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
131         (llrintl): Define using libm_alias_ldouble.
132         (lrintl): Likewise.
133         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
134         <libm-alias-ldouble.h>.
135         (nearbyintl): Define using libm_alias_ldouble.
136         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
137         (truncl): Define using libm_alias_ldouble.
138         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
139         <libm-alias-ldouble.h>.
140         (lrintl): Define using libm_alias_ldouble.
142         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
143         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
144         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
145         (asinhl): Define using libm_alias_ldouble.
146         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
147         (atanl): Define using libm_alias_ldouble.
148         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
149         (cbrtl): Define using libm_alias_ldouble.
150         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
151         (ceill): Define using libm_alias_ldouble.
152         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
153         (copysignl): Define using libm_alias_ldouble.
154         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
155         (fabsl): Define using libm_alias_ldouble.
156         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
157         (floorl): Define using libm_alias_ldouble.
158         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
159         (fmaxl): Define using libm_alias_ldouble.
160         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
161         (fminl): Define using libm_alias_ldouble.
162         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
163         (frexpl): Define using libm_alias_ldouble.
164         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
165         (llrintl): Define using libm_alias_ldouble.
166         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
167         (logbl): Define using libm_alias_ldouble.
168         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
169         (lrintl): Define using libm_alias_ldouble.
170         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
171         (nearbyintl): Define using libm_alias_ldouble.
172         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
173         (nextafterl): Define using libm_alias_ldouble.
174         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
175         (remquol): Define using libm_alias_ldouble.
176         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
177         (rintl): Define using libm_alias_ldouble.
178         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
179         (truncl): Define using libm_alias_ldouble.
180         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
181         (fmaxl): Define using libm_alias_ldouble.
182         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
183         (fminl): Define using libm_alias_ldouble.
185         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
186         to C syntax instead of availability and properties of types.
187         * bits/floatn.h [!__ASSEMBLER]: Likewise.
188         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
189         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
190         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
191         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
192         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
194 2017-11-17  Florian Weimer  <fweimer@redhat.com>
196         support_become_root: Enable file creation in namespaces.
197         * support/support_become_root.c (setup_mapping): New function.
198         (support_become_root): Call it.
200 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
202         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
203         macro.
205 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
207         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
208         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
210 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
212         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
214         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
215         version to 4.14.
217 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
219         * INSTALL: Fix botched up regeneration.
221         * NEWS: Update sourceare link to https.
222         * configure.ac: Likewise.
223         * crypt/md5test-giant.c: Likewise.
224         * dlfcn/bug-atexit1.c: Likewise.
225         * dlfcn/bug-atexit2.c: Likewise.
226         * localedata/README: Likewise.
227         * malloc/tst-mallocfork.c: Likewise.
228         * manual/install.texi: Likewise.
229         * nptl/tst-pthread-getattr.c: Likewise.
230         * stdio-common/tst-fgets.c: Likewise.
231         * stdio-common/tst-fwrite.c: Likewise.
232         * sunrpc/Makefile: Likewise.
233         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
234         * wcsmbs/tst-mbrtowc2.c: Likewise.
235         * configure: Regenerate.
236         * INSTALL: Regenerate.
238 2017-11-15  Martin Sebor  <msebor@redhat.com>
240         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
241         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
242         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
244 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
246         [BZ #22145]
247         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
248         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
250         [BZ #22145]
251         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
252         Defer is_pty check until end of the function.
253         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
255         [BZ #22145]
256         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
257         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
258         (ttyname): Likewise.
259         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
260         (__ttyname_r): Likewise.
262         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
263         int to bool.
265         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
267         * manual/terminal.texi (Is It a Terminal):
268         Mention ENODEV for ttyname and ttyname_r.
270 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
272         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
273         constant and macro.
275         * sysdeps/unix/sysv/linux/bits/mman-linux.h
276         [__USE_MISC] (MADV_WIPEONFORK): New macro.
277         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
278         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
279         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
280         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
282 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
284         * signal/sigrelse.c (sigrelse): Optimize implementation.
286         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
287         (__sigpause): Rely on __sigsuspend to implement single thread
288         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
290 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
292         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
293         kernel version to 4.14.
295 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
297         [BZ #22442]
298         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
299         Check if ifname is too long.
301 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
303         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
305 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
307         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
308         was accidentally lost.
310 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
312         * localedata/locales/az_IR: Add standard copyright header.
314 2017-11-15  Florian Weimer  <fweimer@redhat.com>
316         [BZ #22439]
317         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
318         not just the top one.  Output a new "subheaps" statistic.
320 2017-11-15  Florian Weimer  <fweimer@redhat.com>
322         [BZ #22408]
323         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
324         under the per-arena lock.
325         * malloc/Makefile (tests): Add tst-malloc_info.
326         (tst-malloc_info): Link with libpthread.
327         * malloc/tst-malloc_info.c: New file.
329 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
331         [BZ #21660]
332         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
333         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
334         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
335         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
336         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
337         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
338         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
339         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
340         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
341         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
342         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
343         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
344         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
345         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
346         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
347         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
348         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
349         (__floating_type): Likewise.
350         (__real_integer_type): Likewise.
351         (__complex_integer_type): Likewise.
352         (__expr_is_real): Likewise.
353         (__tgmath_real_type_sub): Likewise.
354         (__tgmath_real_type): Likewise.
355         (__tgmath_complex_type_sub): Likewise.
356         (__tgmath_complex_type): Likewise.
357         (__TGMATH_F128): Likewise.
358         (__TGMATH_CF128): Likewise.
359         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
360         new macros.
361         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
362         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
363         Likewise.
364         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
365         Likewise.
366         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
367         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
368         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
369         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
370         Likewise.
371         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
372         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
373         Likewise.
374         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
375         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
376         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
377         Likewise.
378         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
379         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
380         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
381         (cimag): Likewise.
382         (creal): Likewise.
384 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
386         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
387         for stpncpy calls for GCC 8.
388         (test_strncat): Disable -Wstringop-truncation warning for strncat
389         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
390         strncat call for GCC 7.
391         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
392         calls for GCC 8.
393         (test_memcmp): Use memcpy instead of strncpy for calls not copying
394         trailing NUL.
396         * string/bug-strncat1.c: Include <libc-diag.h>.
397         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
399 2017-11-13  Claude Paroz <claude@2xlibre.net>
401         [BZ #22387]
402         * localedata/locales/aa_DJ: Improved readibility by replacing
403         <Uxxxx> sequences in the ASCII printable range by their ASCII
404         character equivalents.
405         * localedata/locales/aa_ER: Likewise.
406         * localedata/locales/aa_ER@saaho: Likewise.
407         * localedata/locales/aa_ET: Likewise.
408         * localedata/locales/af_ZA: Likewise.
409         * localedata/locales/agr_PE: Likewise.
410         * localedata/locales/ak_GH: Likewise.
411         * localedata/locales/am_ET: Likewise.
412         * localedata/locales/anp_IN: Likewise.
413         * localedata/locales/ar_AE: Likewise.
414         * localedata/locales/ar_BH: Likewise.
415         * localedata/locales/ar_DZ: Likewise.
416         * localedata/locales/ar_EG: Likewise.
417         * localedata/locales/ar_IN: Likewise.
418         * localedata/locales/ar_IQ: Likewise.
419         * localedata/locales/ar_JO: Likewise.
420         * localedata/locales/ar_KW: Likewise.
421         * localedata/locales/ar_LB: Likewise.
422         * localedata/locales/ar_LY: Likewise.
423         * localedata/locales/ar_MA: Likewise.
424         * localedata/locales/ar_OM: Likewise.
425         * localedata/locales/ar_QA: Likewise.
426         * localedata/locales/ar_SA: Likewise.
427         * localedata/locales/ar_SD: Likewise.
428         * localedata/locales/ar_SS: Likewise.
429         * localedata/locales/ar_SY: Likewise.
430         * localedata/locales/ar_TN: Likewise.
431         * localedata/locales/ar_YE: Likewise.
432         * localedata/locales/as_IN: Likewise.
433         * localedata/locales/ast_ES: Likewise.
434         * localedata/locales/ayc_PE: Likewise.
435         * localedata/locales/az_AZ: Likewise.
436         * localedata/locales/az_IR: Likewise.
437         * localedata/locales/be_BY: Likewise.
438         * localedata/locales/be_BY@latin: Likewise.
439         * localedata/locales/bem_ZM: Likewise.
440         * localedata/locales/ber_DZ: Likewise.
441         * localedata/locales/ber_MA: Likewise.
442         * localedata/locales/bg_BG: Likewise.
443         * localedata/locales/bhb_IN: Likewise.
444         * localedata/locales/bho_IN: Likewise.
445         * localedata/locales/bi_VU: Likewise.
446         * localedata/locales/bn_BD: Likewise.
447         * localedata/locales/bn_IN: Likewise.
448         * localedata/locales/bo_CN: Likewise.
449         * localedata/locales/bo_IN: Likewise.
450         * localedata/locales/br_FR: Likewise.
451         * localedata/locales/brx_IN: Likewise.
452         * localedata/locales/bs_BA: Likewise.
453         * localedata/locales/byn_ER: Likewise.
454         * localedata/locales/ca_AD: Likewise.
455         * localedata/locales/ca_ES: Likewise.
456         * localedata/locales/ca_FR: Likewise.
457         * localedata/locales/ca_IT: Likewise.
458         * localedata/locales/ce_RU: Likewise.
459         * localedata/locales/chr_US: Likewise.
460         * localedata/locales/cmn_TW: Likewise.
461         * localedata/locales/crh_UA: Likewise.
462         * localedata/locales/cs_CZ: Likewise.
463         * localedata/locales/csb_PL: Likewise.
464         * localedata/locales/cv_RU: Likewise.
465         * localedata/locales/cy_GB: Likewise.
466         * localedata/locales/da_DK: Likewise.
467         * localedata/locales/de_AT: Likewise.
468         * localedata/locales/de_BE: Likewise.
469         * localedata/locales/de_CH: Likewise.
470         * localedata/locales/de_DE: Likewise.
471         * localedata/locales/de_IT: Likewise.
472         * localedata/locales/de_LI: Likewise.
473         * localedata/locales/de_LU: Likewise.
474         * localedata/locales/doi_IN: Likewise.
475         * localedata/locales/dv_MV: Likewise.
476         * localedata/locales/dz_BT: Likewise.
477         * localedata/locales/el_CY: Likewise.
478         * localedata/locales/el_GR: Likewise.
479         * localedata/locales/en_AG: Likewise.
480         * localedata/locales/en_AU: Likewise.
481         * localedata/locales/en_BW: Likewise.
482         * localedata/locales/en_CA: Likewise.
483         * localedata/locales/en_DK: Likewise.
484         * localedata/locales/en_GB: Likewise.
485         * localedata/locales/en_HK: Likewise.
486         * localedata/locales/en_IE: Likewise.
487         * localedata/locales/en_IL: Likewise.
488         * localedata/locales/en_IN: Likewise.
489         * localedata/locales/en_NG: Likewise.
490         * localedata/locales/en_NZ: Likewise.
491         * localedata/locales/en_PH: Likewise.
492         * localedata/locales/en_SG: Likewise.
493         * localedata/locales/en_US: Likewise.
494         * localedata/locales/en_ZA: Likewise.
495         * localedata/locales/en_ZM: Likewise.
496         * localedata/locales/en_ZW: Likewise.
497         * localedata/locales/eo: Likewise.
498         * localedata/locales/es_AR: Likewise.
499         * localedata/locales/es_BO: Likewise.
500         * localedata/locales/es_CL: Likewise.
501         * localedata/locales/es_CO: Likewise.
502         * localedata/locales/es_CR: Likewise.
503         * localedata/locales/es_CU: Likewise.
504         * localedata/locales/es_DO: Likewise.
505         * localedata/locales/es_EC: Likewise.
506         * localedata/locales/es_ES: Likewise.
507         * localedata/locales/es_GT: Likewise.
508         * localedata/locales/es_HN: Likewise.
509         * localedata/locales/es_MX: Likewise.
510         * localedata/locales/es_NI: Likewise.
511         * localedata/locales/es_PA: Likewise.
512         * localedata/locales/es_PE: Likewise.
513         * localedata/locales/es_PR: Likewise.
514         * localedata/locales/es_PY: Likewise.
515         * localedata/locales/es_SV: Likewise.
516         * localedata/locales/es_US: Likewise.
517         * localedata/locales/es_UY: Likewise.
518         * localedata/locales/es_VE: Likewise.
519         * localedata/locales/et_EE: Likewise.
520         * localedata/locales/eu_ES: Likewise.
521         * localedata/locales/eu_ES@euro: Likewise.
522         * localedata/locales/fa_IR: Likewise.
523         * localedata/locales/ff_SN: Likewise.
524         * localedata/locales/fi_FI: Likewise.
525         * localedata/locales/fil_PH: Likewise.
526         * localedata/locales/fo_FO: Likewise.
527         * localedata/locales/fr_BE: Likewise.
528         * localedata/locales/fr_CA: Likewise.
529         * localedata/locales/fr_CH: Likewise.
530         * localedata/locales/fr_FR: Likewise.
531         * localedata/locales/fr_LU: Likewise.
532         * localedata/locales/fur_IT: Likewise.
533         * localedata/locales/fy_DE: Likewise.
534         * localedata/locales/fy_NL: Likewise.
535         * localedata/locales/ga_IE: Likewise.
536         * localedata/locales/gd_GB: Likewise.
537         * localedata/locales/gez_ER: Likewise.
538         * localedata/locales/gez_ET: Likewise.
539         * localedata/locales/gl_ES: Likewise.
540         * localedata/locales/gu_IN: Likewise.
541         * localedata/locales/gv_GB: Likewise.
542         * localedata/locales/ha_NG: Likewise.
543         * localedata/locales/hak_TW: Likewise.
544         * localedata/locales/he_IL: Likewise.
545         * localedata/locales/hi_IN: Likewise.
546         * localedata/locales/hif_FJ: Likewise.
547         * localedata/locales/hne_IN: Likewise.
548         * localedata/locales/hr_HR: Likewise.
549         * localedata/locales/hsb_DE: Likewise.
550         * localedata/locales/ht_HT: Likewise.
551         * localedata/locales/hu_HU: Likewise.
552         * localedata/locales/hy_AM: Likewise.
553         * localedata/locales/i18n: Likewise.
554         * localedata/locales/ia_FR: Likewise.
555         * localedata/locales/id_ID: Likewise.
556         * localedata/locales/ig_NG: Likewise.
557         * localedata/locales/ik_CA: Likewise.
558         * localedata/locales/is_IS: Likewise.
559         * localedata/locales/it_CH: Likewise.
560         * localedata/locales/it_IT: Likewise.
561         * localedata/locales/iu_CA: Likewise.
562         * localedata/locales/ja_JP: Likewise.
563         * localedata/locales/ka_GE: Likewise.
564         * localedata/locales/kk_KZ: Likewise.
565         * localedata/locales/kl_GL: Likewise.
566         * localedata/locales/kn_IN: Likewise.
567         * localedata/locales/ko_KR: Likewise.
568         * localedata/locales/kok_IN: Likewise.
569         * localedata/locales/ks_IN: Likewise.
570         * localedata/locales/ks_IN@devanagari: Likewise.
571         * localedata/locales/ku_TR: Likewise.
572         * localedata/locales/kw_GB: Likewise.
573         * localedata/locales/ky_KG: Likewise.
574         * localedata/locales/lb_LU: Likewise.
575         * localedata/locales/lg_UG: Likewise.
576         * localedata/locales/li_BE: Likewise.
577         * localedata/locales/li_NL: Likewise.
578         * localedata/locales/lij_IT: Likewise.
579         * localedata/locales/ln_CD: Likewise.
580         * localedata/locales/lo_LA: Likewise.
581         * localedata/locales/lt_LT: Likewise.
582         * localedata/locales/lv_LV: Likewise.
583         * localedata/locales/lzh_TW: Likewise.
584         * localedata/locales/mag_IN: Likewise.
585         * localedata/locales/mai_IN: Likewise.
586         * localedata/locales/mg_MG: Likewise.
587         * localedata/locales/mhr_RU: Likewise.
588         * localedata/locales/mi_NZ: Likewise.
589         * localedata/locales/mk_MK: Likewise.
590         * localedata/locales/ml_IN: Likewise.
591         * localedata/locales/mn_MN: Likewise.
592         * localedata/locales/mni_IN: Likewise.
593         * localedata/locales/mr_IN: Likewise.
594         * localedata/locales/ms_MY: Likewise.
595         * localedata/locales/mt_MT: Likewise.
596         * localedata/locales/my_MM: Likewise.
597         * localedata/locales/nan_TW: Likewise.
598         * localedata/locales/nan_TW@latin: Likewise.
599         * localedata/locales/nb_NO: Likewise.
600         * localedata/locales/nds_DE: Likewise.
601         * localedata/locales/nds_NL: Likewise.
602         * localedata/locales/ne_NP: Likewise.
603         * localedata/locales/nhn_MX: Likewise.
604         * localedata/locales/niu_NU: Likewise.
605         * localedata/locales/niu_NZ: Likewise.
606         * localedata/locales/nl_AW: Likewise.
607         * localedata/locales/nl_BE: Likewise.
608         * localedata/locales/nl_NL: Likewise.
609         * localedata/locales/nn_NO: Likewise.
610         * localedata/locales/nr_ZA: Likewise.
611         * localedata/locales/nso_ZA: Likewise.
612         * localedata/locales/oc_FR: Likewise.
613         * localedata/locales/om_ET: Likewise.
614         * localedata/locales/om_KE: Likewise.
615         * localedata/locales/or_IN: Likewise.
616         * localedata/locales/os_RU: Likewise.
617         * localedata/locales/pa_IN: Likewise.
618         * localedata/locales/pa_PK: Likewise.
619         * localedata/locales/pap_AW: Likewise.
620         * localedata/locales/pap_CW: Likewise.
621         * localedata/locales/pl_PL: Likewise.
622         * localedata/locales/ps_AF: Likewise.
623         * localedata/locales/pt_BR: Likewise.
624         * localedata/locales/pt_PT: Likewise.
625         * localedata/locales/quz_PE: Likewise.
626         * localedata/locales/raj_IN: Likewise.
627         * localedata/locales/ro_RO: Likewise.
628         * localedata/locales/ru_RU: Likewise.
629         * localedata/locales/ru_UA: Likewise.
630         * localedata/locales/rw_RW: Likewise.
631         * localedata/locales/sa_IN: Likewise.
632         * localedata/locales/sat_IN: Likewise.
633         * localedata/locales/sc_IT: Likewise.
634         * localedata/locales/sd_IN: Likewise.
635         * localedata/locales/sd_IN@devanagari: Likewise.
636         * localedata/locales/se_NO: Likewise.
637         * localedata/locales/sgs_LT: Likewise.
638         * localedata/locales/shs_CA: Likewise.
639         * localedata/locales/si_LK: Likewise.
640         * localedata/locales/sid_ET: Likewise.
641         * localedata/locales/sk_SK: Likewise.
642         * localedata/locales/sl_SI: Likewise.
643         * localedata/locales/sm_WS: Likewise.
644         * localedata/locales/so_DJ: Likewise.
645         * localedata/locales/so_ET: Likewise.
646         * localedata/locales/so_KE: Likewise.
647         * localedata/locales/so_SO: Likewise.
648         * localedata/locales/sq_AL: Likewise.
649         * localedata/locales/sq_MK: Likewise.
650         * localedata/locales/sr_ME: Likewise.
651         * localedata/locales/sr_RS: Likewise.
652         * localedata/locales/sr_RS@latin: Likewise.
653         * localedata/locales/ss_ZA: Likewise.
654         * localedata/locales/st_ZA: Likewise.
655         * localedata/locales/sv_FI: Likewise.
656         * localedata/locales/sv_SE: Likewise.
657         * localedata/locales/sw_KE: Likewise.
658         * localedata/locales/sw_TZ: Likewise.
659         * localedata/locales/szl_PL: Likewise.
660         * localedata/locales/ta_IN: Likewise.
661         * localedata/locales/ta_LK: Likewise.
662         * localedata/locales/tcy_IN: Likewise.
663         * localedata/locales/te_IN: Likewise.
664         * localedata/locales/tg_TJ: Likewise.
665         * localedata/locales/th_TH: Likewise.
666         * localedata/locales/the_NP: Likewise.
667         * localedata/locales/ti_ER: Likewise.
668         * localedata/locales/ti_ET: Likewise.
669         * localedata/locales/tig_ER: Likewise.
670         * localedata/locales/tk_TM: Likewise.
671         * localedata/locales/tl_PH: Likewise.
672         * localedata/locales/tn_ZA: Likewise.
673         * localedata/locales/to_TO: Likewise.
674         * localedata/locales/tpi_PG: Likewise.
675         * localedata/locales/tr_CY: Likewise.
676         * localedata/locales/tr_TR: Likewise.
677         * localedata/locales/ts_ZA: Likewise.
678         * localedata/locales/tt_RU: Likewise.
679         * localedata/locales/tt_RU@iqtelif: Likewise.
680         * localedata/locales/ug_CN: Likewise.
681         * localedata/locales/uk_UA: Likewise.
682         * localedata/locales/unm_US: Likewise.
683         * localedata/locales/ur_IN: Likewise.
684         * localedata/locales/ur_PK: Likewise.
685         * localedata/locales/uz_UZ: Likewise.
686         * localedata/locales/uz_UZ@cyrillic: Likewise.
687         * localedata/locales/ve_ZA: Likewise.
688         * localedata/locales/vi_VN: Likewise.
689         * localedata/locales/wa_BE: Likewise.
690         * localedata/locales/wae_CH: Likewise.
691         * localedata/locales/wal_ET: Likewise.
692         * localedata/locales/wo_SN: Likewise.
693         * localedata/locales/xh_ZA: Likewise.
694         * localedata/locales/yi_US: Likewise.
695         * localedata/locales/yo_NG: Likewise.
696         * localedata/locales/yue_HK: Likewise.
697         * localedata/locales/yuw_PG: Likewise.
698         * localedata/locales/zh_CN: Likewise.
699         * localedata/locales/zh_HK: Likewise.
700         * localedata/locales/zh_SG: Likewise.
701         * localedata/locales/zh_TW: Likewise.
702         * localedata/locales/zu_ZA: Likewise.
704 2017-11-13  Florian Weimer  <fweimer@redhat.com>
706         * support/next_to_fault.h, support/next_to_fault.c: New files.
707         * support/Makefile (libsupport-routines): Add next_to_fault.
708         * resolv/tst-inet_pton.c (struct next_to_fault)
709         (next_to_fault_allocate, next_to_fault_free): Remove.
710         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
712 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
714         * elf/dl-support.c: Include <dl-procruntime.c>.
715         * include/link.h: Include <link_map.h>.
716         * sysdeps/generic/dl-procruntime.c: New file.
717         * sysdeps/generic/link_map.h: Likewise.
718         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
719         the writable ld.so namespace.
721 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
723         timezone: pacify GCC -Wstringop-truncation
724         Problem reported by Martin Sebor in:
725         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
726         * timezone/zic.c (writezone): Use memcpy, not strncpy.
728 2017-11-12  Florian Weimer  <fweimer@redhat.com>
730         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
731         tst-xreadlink.
732         (tests): Add tst-xreadlink.
733         * support/support.h (xstrndup): Declare.
734         * support/xunistd.h (xunlink, xreadlink): Declare.
735         * support/temp_file.h (support_create_temp_directory): Declare.
736         * support/temp_file.c (support_create_temp_directory): New function.
737         * support/support_chroot.c (support_chroot_create): Use it.
738         * support/xreadlink.c: New file.
739         * support/xstrndup.c: Likewise.
740         * support/xunlink.c: Likewise.
741         * support/tst-xreadlink.c: Likewise.
743 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
745         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
747 2017-11-11  Florian Weimer  <fweimer@redhat.com>
749         [BZ #22409]
750         [BZ #22412]
751         * resolv/res_comp.c (printable_string, binary_hnok)
752         (binary_leading_dash): New functions.
753         (res_hnok): Reimplement using these functions and ns_name_pton.
754         (res_ownok): Likewise.
755         (res_mailok): Reimplement using printable_string, ns_name_pton and
756         binary_hnok.
757         (res_dnok): Reimplement using printable_string and ns_name_pton.
758         * resolv/tst-res_hnok.c (tests): Add additional tests.
759         (LETTERDIGITS, PRINTABLE): Define.
760         (do_test): Adjust one_char results.
762 2017-11-11  Florian Weimer  <fweimer@redhat.com>
764         [BZ #22413]
765         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
766         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
768 2017-11-11  Florian Weimer  <fweimer@redhat.com>
770         * resolv/tst-ns_name_pton.c: New file.
771         * resolv/Makefile (tests): Add tst-ns_name_pton.
772         (tst-ns_name_pton): Link against libresolv.
774 2017-11-11  Florian Weimer  <fweimer@redhat.com>
776         * resolv/tst-res_hnok.c: New file.
777         * resolv/Makefile (tests): Add tst-res_hnok.
778         (tst-res_hnok): Link against libresolv.
780 2017-11-11  Florian Weimer  <fweimer@redhat.com>
782         * resolv/tst-resolv-network.c: Use test framework instead explicit
783         main function.
785 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
787         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
788         <jmp_buf-macros.h>.
789         [!_ISOMAC] (STR_HELPER): New.
790         [!_ISOMAC] (STR): Likewise.
791         [!_ISOMAC] (TEST_SIZE): Likewise.
792         [!_ISOMAC] (TEST_ALIGN): Likewise.
793         [!_ISOMAC] (TEST_OFFSET): Likewise.
794         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
795         field offsets of jmp_buf as well as sigjmp_buf.
796         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
797         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
798         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
799         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
800         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
801         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
802         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
803         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
804         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
805         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
806         Likewise.
807         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
808         Likewise.
809         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
811         Likewise.
812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
813         Likewise.
814         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
815         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
816         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
817         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
818         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
820         Likewise.
821         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
822         Likewise.
823         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
824         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
825         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
827 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
829         * include/float.h
830         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
831         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
832         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
833         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
834         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
835         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
836         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
837         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
838         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
839         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
840         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
841         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
842         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
843         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
844         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
845         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
846         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
847         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
848         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
849         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
850         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
851         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
852         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
853         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
854         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
855         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
856         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
857         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
858         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
859         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
860         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
861         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
862         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
863         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
864         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
865         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
866         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
867         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
868         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
869         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
870         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
871         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
872         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
873         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
874         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
875         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
876         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
877         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
878         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
879         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
880         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
881         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
882         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
883         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
884         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
885         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
886         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
887         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
888         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
889         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
890         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
891         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
892         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
893         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
894         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
895         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
896         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
897         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
898         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
899         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
900         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
901         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
902         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
903         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
904         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
905         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
906         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
907         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
908         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
909         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
910         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
911         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
912         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
913         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
914         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
915         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
916         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
917         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
919         * stdlib/tst-strtod.h (F16): New macro.
920         (F32): Likewise.
921         (F64): Likewise.
922         (F32X): Likewise.
923         (F64X): Likewise.
924         (F128X): Likewise.
925         (IF_FLOAT16): Likewise.
926         (IF_FLOAT32): Likewise.
927         (IF_FLOAT64): Likewise.
928         (IF_FLOAT32X): Likewise.
929         (IF_FLOAT64X): Likewise.
930         (IF_FLOAT128X): Likewise.
931         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
932         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
933         (STRTOD_TEST_FOREACH): Likewise.
934         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
935         (CHOOSE_f64): Likewise.
936         (CHOOSE_f32x): Likewise.
937         (CHOOSE_f64x): Likewise.
939 2017-11-07  Andreas Schwab  <schwab@suse.de>
941         * nptl/Makefile (tests-internal): Remove tst-typesizes.
943 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
945         [BZ #22403]
946         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
947         to be escaped.
948         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
949         to be escaped.
951 2017-11-07  Claude Paroz <claude@2xlibre.net>
953         [BZ #22403]
954         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
955         to be escaped.
956         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
957         to be escaped.
958         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
959         to be escaped.
961 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
963         [BZ #22298]
964         * nptl/allocatestack.c (allocate_stack): Check if
965         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
966         __PTHREAD_MUTEX_HAVE_PREV is defined.
967         * nptl/descr.h (pthread): Likewise.
968         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
969         Likewise.
970         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
971         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
972         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
973         * sysdeps/nptl/bits/thread-shared-types.h
974         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
975         defines.
976         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
977         of __WORDSIZE for internal layout.
978         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
979         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
980         instead of __WORDSIZE whether to use an union for __spins and __list
981         fields.
982         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
983         case.
984         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
985         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
986         defines.
987         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
988         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
989         Likewise.
990         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
991         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
992         Likewise.
993         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
994         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
995         Likewise.
996         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
997         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
998         Likewise.
999         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
1000         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1001         Likewise.
1002         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
1003         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1004         Likewise.
1005         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
1006         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1007         Likewise.
1008         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
1009         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1010         Likewise.
1011         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
1012         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1013         Likewise.
1014         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
1015         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1016         Likewise.
1017         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
1018         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1019         Likewise.
1020         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
1021         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1022         Likewise.
1023         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
1024         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1025         Likewise.
1026         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
1027         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
1028         Likewise.
1030         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
1031         New macros.
1032         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
1033         checks for expected input type size.
1034         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
1035         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
1036         Likewise.
1037         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
1038         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
1039         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
1040         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1041         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
1042         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
1043         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
1044         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
1045         superflous runtime assert check.
1046         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
1047         Likewise.
1048         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
1049         Likewise.
1050         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
1051         Likewise.
1052         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
1053         Likewise.
1054         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
1055         Likewise.
1056         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
1057         Likewise.
1058         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
1059         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
1060         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
1061         Likewise.
1062         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
1063         Likewise.
1064         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
1065         Likewise.
1066         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
1067         Likewise.
1068         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
1069         Likewise.
1070         * nptl/pthread_attr_setinheritsched.c
1071         (__pthread_attr_setinheritsched): Likewise.
1072         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1073         Likewise.
1074         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
1075         Likewise.
1076         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1077         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1078         __old_pthread_attr_setstack): Likewise.
1079         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1080         Likewise.
1081         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1082         Likewise.
1083         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1084         Likewise.
1085         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1086         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1087         Likewise.
1088         * nptl/tst-typesizes.c: Remove file.
1090         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1091         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1092         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1093         checks for internal pthread_mutex_t offsets.
1094         * sysdeps/aarch64/nptl/pthread-offsets.h
1095         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1096         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1097         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1098         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1099         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1100         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1101         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1102         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1103         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1104         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1105         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1106         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1107         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1108         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1109         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1110         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1111         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1112         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1114 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1116         * bits/mman-linux.h: Move ...
1117         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1118         comment.
1119         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1120         outdated comment.
1122 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1124         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1125         Redefine STRNLEN as __strnlen_power8.
1127 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1129         * signal/sighold.c (sighold): Optimize implementation.
1131         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1132         __NR_rt_sigqueueinfo.
1134         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1135         __sigtimedwait.
1136         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1137         assume __NR_rt_sigtimedwait.
1138         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1139         and add LIBC_CANCEL_HANDLED for cancellation marking.
1140         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1142         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1143         (sysdeps_routines): Add memchr_noneon.
1144         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1145         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1146         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1147         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1148         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1149         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1150         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1152         * sysdeps/arm/arm-ifunc.h: New file.
1153         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1154         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1155         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1156         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1157         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1158         (__memcpy_neon): Avoid create hidden alias.
1159         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1160         (__memcpy_vfp): Likewise.
1161         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1162         (sysdep_routines): Add memcpy_arm.
1163         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1165 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1167         [BZ #22362]
1168         * Makerules (make-link-multidir): New.
1169         * config.make.in (multidir): New.
1170         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1171         * configure: Regenerated.
1172         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1173         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1174         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1175         New target.
1177 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1179         [BZ #22402]
1180         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1181         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1183 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1185         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1186         to be escaped.
1188 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1190         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1192 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1194         * math/math.h [__HAVE_DISTINCT_FLOAT16
1195         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1196         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1197         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1198         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1199         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1200         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1201         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1202         (__MATH_TG_F32): New macro.
1203         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1204         (__MATH_TG_F64X): Likewise.
1205         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1206         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1208 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1210         * po/de.po: Update translations.
1211         * po/ru.po: Likewise.
1213 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1215         * manual/filesys.texi (Hard Links): Document linkat.
1217 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1219         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1220         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1221         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1222         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1223         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1224         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1225         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1226         the same as _Float128.
1227         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1228         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1229         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1231         * stdlib/stdlib.h
1232         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1233         Declare.
1234         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1235         Likewise.
1236         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1237         Likewise.
1238         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1239         (strtof32x): Likewise.
1240         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1241         (strtof64x): Likewise.
1242         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1243         (strtof128x): Likewise.
1244         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1245         (strfromf16): Likewise.
1246         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1247         (strfromf32): Likewise.
1248         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1249         (strfromf64): Likewise.
1250         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1251         (strfromf32x): Likewise.
1252         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1253         (strfromf64x): Likewise.
1254         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1255         (strfromf128x): Likewise.
1256         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1257         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1258         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1259         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1260         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1261         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1263 2017-11-03  Richard Henderson  <rth@twiddle.net>
1265         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1267 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1269         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1271 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1273         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1274         DT_TLSDESC_GOT initialization.
1275         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1276         (_dl_tlsdesc_resolve_hold): Likewise.
1277         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1278         (_dl_tlsdesc_resolve_hold): Likewise.
1279         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1280         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1282 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1284         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1286 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1288         [BZ #18572]
1289         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1290         non-lazily for R_ARM_TLS_DESC.
1292 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1294         [BZ #17078]
1295         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1296         R_ARM_TLS_DESC case.
1297         (elf_machine_lazy_rel): Remove the prelink check.
1299 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1301         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1302         DT_TLSDESC_GOT initialization.
1303         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1304         (_dl_tlsdesc_resolve_rela): Likewise.
1305         (_dl_tlsdesc_resolve_hold): Likewise.
1306         (_dl_tlsdesc_undefweak): Remove ldar.
1307         (_dl_tlsdesc_dynamic): Likewise.
1308         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1309         (_dl_tlsdesc_resolve_rela): Likewise.
1310         (_dl_tlsdesc_resolve_hold): Likewise.
1311         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1312         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1313         (_dl_tlsdesc_resolve_rela): Likewise.
1314         (_dl_tlsdesc_resolve_hold): Likewise.
1316 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1318         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1319         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1321 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1323         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1324         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1326 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1328         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1329         Declare.
1330         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1331         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1332         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1333         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1334         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1335         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1336         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1337         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1338         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1339         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1340         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1342 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1344         [BZ #22382]
1345         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1346         * localedata/locales/tpi_PG: Add standard header.
1348 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1350         test-errno-linux: quotactl can fail with EPERM in containers.
1351         * sysdeps/unix/sysv/linux/test-errno-linux.c
1352         (LIST, LIST_FORWARD): New macros.
1353         (check_error_in_list): New function.
1354         (test_wrp_rv): Accept list of permitted error codes.
1355         (test_wrp_rv2): Remove.
1356         (test_wrp): Call test_wrp_rv with list of error codes.
1357         (test_wrp2): Accept list of error codes.
1358         (do_test): Adjust.  Allow EPERM for quotactl.
1360 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1362         * stdio-common/bug16.c (do_test): Use array_length.
1363         * stdio-common/errlist.c (_sys_nerr): Likewise.
1364         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1365         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1366         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1367         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1368         (do_test): Use array_length.
1369         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1370         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1371         * stdio-common/tst-printf-round.c (do_test): Likewise.
1372         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1373         (CHECK): Use array_length.
1374         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1375         * stdio-common/tstscanf.c (main): Likewise.
1376         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1378 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1380         Add array_length and array_end macros.
1381         * include/array_length.h: New file.
1383 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1385         [BZ #22332]
1386         * posix/tst-glob-tilde.c (do_noescape): New variable.
1387         (one_test): Process it.
1388         (do_test): Set do_noescape.  Add unescaping test case.
1390 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1392         * math/complex.h
1393         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1394         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1395         with appropriate macros defined and undefined.
1396         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1397         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1398         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1399         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1400         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1401         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1402         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1403         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1404         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1405         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1407         * math/complex.h
1408         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1409         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1410         that for long double.  Do not condition define and undefine of
1411         _Mdouble_complex_ on [__CFLOAT128].
1413 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1415         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1416         of <sysdeps/generic/sysdep.h>.
1417         (ALIGNARG): Removed.
1418         (ASM_SIZE_DIRECTIVE): Likewise.
1419         (ENTRY): Likewise.
1420         (END): Likewise.
1421         (ENTRY_CHK): Likewise.
1422         (END_CHK): Likewise.
1423         (syscall_error): Likewise.
1424         (mcount): Likewise.
1425         (PSEUDO_END): Likewise.
1426         (L): Likewise.
1427         (atom_text_section): Likewise.
1428         * sysdeps/x86/sysdep.h: New file.
1429         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1430         of <sysdeps/generic/sysdep.h>.
1431         (ALIGNARG): Removed.
1432         (ASM_SIZE_DIRECTIVE): Likewise.
1433         (ENTRY): Likewise.
1434         (END): Likewise.
1435         (ENTRY_CHK): Likewise.
1436         (END_CHK): Likewise.
1437         (syscall_error): Likewise.
1438         (mcount): Likewise.
1439         (PSEUDO_END): Likewise.
1440         (L): Likewise.
1441         (atom_text_section): Likewise.
1443 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1445         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1446         category of LC_CTYPE set to "i18n:2012".
1447         * localedata/locales/i18n_ctype: Regenerate.
1449 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1451         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1452         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1453         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1454         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1456         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1457         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1458         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1459         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1461 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1463         * math/complex.h
1464         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1465         New macro.
1466         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1467         Likewise.
1468         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1469         Likewise.
1470         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1471         (CMPLXF32X): Likewise.
1472         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1473         (CMPLXF64X): Likewise.
1474         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1475         (CMPLXF128X): Likewise.
1477         * math/math.h
1478         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1479         (__MATH_EVAL_FMT2): Define to add 0.0f.
1481 2017-10-31  Alan Modra  <amodra@gmail.com>
1483         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1484         include sysdep.h.
1485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1499         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1500         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1501         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1502         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1503         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1504         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1505         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1506         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1507         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1508         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1509         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1510         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1511         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1512         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1513         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1514         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1515         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1516         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1517         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1518         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1519         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1520         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1521         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1522         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1523         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1524         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1525         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1526         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1527         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1528         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1529         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1530         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1531         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1532         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1533         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1534         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1535         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1536         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1537         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1538         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1539         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1540         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1541         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1542         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1543         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1544         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1545         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1546         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1547         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1548         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1549         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1550         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1551         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1552         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1553         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1556         include sysdep.h and math_ldbl_opt.h.
1558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1559         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1575         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1577         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1579         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1580         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1582         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1585 2017-10-31  Alan Modra  <amodra@gmail.com>
1587         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1588         string/strncase_l.c, not string/strncase.c.
1589         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1590         (libc_hidden_def): Redefine.
1592 2017-10-31  Alan Modra  <amodra@gmail.com>
1594         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1595         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1596         (__strcasecmp): Don't define.
1598 2017-10-31  Alan Modra  <amodra@gmail.com>
1600         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1601         IS_IN (libc).
1602         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1603         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1604         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1606 2017-10-31  Alan Modra  <amodra@gmail.com>
1608         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1609         USE_AS_STPNCPY.
1611 2017-10-31  Alan Modra  <amodra@gmail.com>
1613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1614         Redefine only when SHARED.
1616 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1618         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1619         Include <bits/math-finite.h> with appropriate macros defined and
1620         undefined.
1621         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1622         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1623         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1624         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1625         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1627         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1628         [!_Mlong_double_] (_Mlong_double_): Likewise.
1629         [!_Mfloat16_] (_Mfloat16_): Likewise.
1630         [!_Mfloat32_] (_Mfloat32_): Likewise.
1631         [!_Mfloat64_] (_Mfloat64_): Likewise.
1632         [!_Mfloat128_] (_Mfloat128_): Likewise.
1633         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1634         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1635         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1636         (_Mdouble_): Define without indirection through those macros.
1637         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1638         [!_Mfloat128_] (_Mfloat128_): Likewise.
1639         [_Mlong_double_] (_Mlong_double_): Likewise.
1640         (_Mdouble_): Define without indirection through those macros.
1641         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1642         not add -D_Mlong_double_=double.
1643         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1644         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1646 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1648         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1650 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1652         * sysdeps/x86/libc-start.c: Reformat.
1654 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1656         [BZ #22353]
1657         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1658         (1): Renamed to ...
1659         (L(Src0)): This.
1660         (L(Src1)): New.
1661         (L(Src2)): Likewise.
1662         (L(1)): Renamed to ...
1663         (L(Src3)): This.
1665 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1667         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1668         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1669         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1670         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1671         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1672         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1673         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1674         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1675         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1676         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1677         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1678         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1679         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1680         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1681         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1682         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1683         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1684         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1685         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1686         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1687         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1688         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1689         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1690         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1691         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1692         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1693         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1694         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1695         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1696         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1697         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1698         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1699         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1700         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1701         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1702         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1703         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1704         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1705         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1706         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1707         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1708         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1709         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1710         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1711         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1712         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1713         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1714         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1715         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1716         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1717         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1718         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1719         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1720         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1721         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1722         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1723         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1724         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1725         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1726         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1727         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1728         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1729         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1730         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1731         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1732         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1734 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1736         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1737         always defined.
1738         * io/tst-mkdirat.c (do_test): Likewise.
1739         * io/tst-mkfifoat.c (do_test): Likewise.
1740         * io/tst-mknodat.c (do_test): Likewise.
1741         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1742         * locale/programs/locale.c (select_dirs): Likewise.
1743         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1744         * posix/bug-glob2.c (my_readdir): Likewise.
1745         * posix/tst-dir.c (main): Likewise.
1746         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1747         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1749 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1751         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1752         just __USE_GNU.
1754 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1756         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1757         Convert to support/test-driver.c.
1758         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1759         New macro parameters.
1760         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1761         * posix/tst-gnuglob.c: New file.
1762         * posix/tst-gnuglob64.c: Likewise.
1763         * posix/Makefile (tests): Add tst-gnuglob64.
1765 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1767         [BZ #19485]
1768         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1769         and use a better translation for March in “mon”.
1770         * localedata/locales/csb_PL: Use more ASCII to improve the
1771         readability of the source.
1773 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1775         [BZ #13953]
1776         * localedata/locales/km_KH: Use ASCII as much
1777         as possible for better readability of the source and
1778         remove useless comments.
1779         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1780         was commented out and apparently wrong anyway because it was
1781         using Lao characters. If Buddhist era should be used
1782         for km_KH, a native speaker should write the correct formaat
1783         for Khmer.
1784         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1785         (According to CLDR, the first weekday for Cambodia is Sunday).
1786         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1787         (These were using Lao characters which must be wrong. If we get
1788         the correct data from a native speaker, we could add it back, until
1789         then it is better not to have name_mr and name_mrs at all than
1790         having it wrong).
1792 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1794         * locale/loadlocale.c: Correct size of
1795         _nl_value_type_LC_<category> arrays.
1797 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1799         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1800         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1801         with appropriate macros defined and undefined.
1802         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1803         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1804         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1805         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1806         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1808 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1810         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1811         "-O2 -march=i586".
1813 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1815         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1816         with lowercase letters to make it agree with CLDR.
1818 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1820         [BZ #15260]
1821         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1822         first letters of yesstr and nostr in yesexpr and noexpr,
1823         not for the full words.
1824         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1825         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1826         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1827         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1828         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1829         first letters of yesstr and nostr in yesexpr and noexpr,
1830         until now only English was matched in yesexpr and noexpr.
1831         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1832         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1833         fil but not for tl. As tl and fil are very similar, using fil
1834         is probably better than using English.
1836 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1838         [BZ #21706]
1839         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1840         in yesstr and nostr.
1842 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1844         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1845         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1846         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1847         Likewise.
1848         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1849         Likewise.
1850         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1851         Likewise.
1852         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1853         Likewise.
1854         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1855         (SNANF128X): Likewise.
1857         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1858         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1859         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1860         (HUGE_VAL_F32): Likewise.
1861         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1862         (HUGE_VAL_F64): Likewise.
1863         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1864         (HUGE_VAL_F32X): Likewise.
1865         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1866         (HUGE_VAL_F64X): Likewise.
1867         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1868         (HUGE_VAL_F128X): Likewise.
1870 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1872         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1873         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1874         for the br_FR locale.
1876 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1878         [BZ #21706]
1879         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1881 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1883         * locale/programs/record-status.h: Define globals, and function
1884         prototypes. Move function bodies...
1885         * locale/programs/record-status.c: ... to here. New file.
1886         * iconv/Makefile (iconv_prog-modules): Add record-status.
1887         * locale/Makefile (lib-modules): Likewise.
1888         * iconv/iconv_prog.c: Remove verbose.
1889         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1890         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1891         record a warning about ASCII compatibility.
1892         * locale/programs/ld-monetary.c (monetary_finish): If
1893         warn_int_curr_symbol is true then record a warning about the symbol
1894         not being in our ISO 4217 list.
1895         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1896         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1897         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1898         (OPT_NO_WARN): Define.
1899         (OPT_WARN): Define.
1900         (options): Add entry for --no-warnings, and --warnings.
1901         (set_warnings): New function to enable/disable warnings.
1902         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1903         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1904         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1905         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1906         Pass flags to generate_locale.
1907         (generate_locale): Accept new flag argument and pass it to localedef
1908         invocation.
1909         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1910         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1912         * localedata/Makefile (test-input-data): Use full file name.
1913         * localedata/da_DK.in: Rename to...
1914         * localedata/da_DK.ISO-8859-1.in: ...this.
1915         * localedata/de_DE.in: Rename to...
1916         * localedata/de_DE.ISO-8859-1.in: ...this.
1917         * localedata/en_US.in: Rename to...
1918         * localedata/en_US.ISO-8859-1.in: ...this.
1919         * localedata/fr_FR.in: Rename to...
1920         * localedata/fr_FR.UTF-8.in: ... this.
1921         * localedata/hr_HR.in: Rename to...
1922         * localedata/hr_HR.ISO-8859-2.in: ...this.
1923         * localedata/hu_HU.in: Rename to...
1924         * localedata/hu_HU.UTF-8.in: ...this.
1925         * localedata/si_LK.in: Rename to...
1926         * localedata/si_LK.UTF-8.in: ...this.
1927         * localedata/sv_SE.in: Rename to...
1928         * localedata/sv_SE.ISO-8859-1.in: ...this.
1929         * localedata/tr_TR.in: Rename to...
1930         * localedata/tr_TR.UTF-8.in: ...this.
1931         * localedata/uk_UA.in: Rename to...
1932         * localedata/uk_UA.UTF-8.in: ...this.
1933         * localedata/sort-test.sh: Test file is locale name with the
1934         suffix.
1936         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1937         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1938         file.
1939         * localedata/locales/i18n_ctype: Regenerate.
1940         * localedata/locales/tr_TR: Likewise.
1941         * localedata/locales/translit_circle: Likewise.
1942         * localedata/locales/translit_cjk_compat: Likewise.
1943         * localedata/locales/translit_combining: Likewise.
1944         * localedata/locales/translit_compat: Likewise.
1945         * localedata/locales/translit_font: Likewise.
1946         * localedata/locales/translit_fraction: Likewise.
1948 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1950         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1951         lxvd2x/stxvd2x with lvx/stvx.
1952         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1954 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1956         * include/alloc_buffer.h: Replace "if if " with "if " in
1957         comments.
1958         * sysdeps/mips/memcpy.S: Likkewise.
1959         * sysdeps/mips/memset.S: Likewise.
1960         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1961         Likewise.
1962         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1963         Likewise.
1964         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1965         Likewise.
1967 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1969         [BZ #15261]
1970         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1971         yesexpr and noexpr.
1972         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1973         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1974         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1975         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1976         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1977         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1978         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1980 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1982         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1983         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1984         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1985         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1986         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1987         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1988         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1989         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1990         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1991         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1992         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1993         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1995 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1997         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1998         as possible for better readability of the source.
1999         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
2000         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
2001         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
2002         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
2003         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
2004         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
2005         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
2006         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
2007         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
2008         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
2009         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
2010         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
2011         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
2012         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
2013         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
2014         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
2015         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
2016         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
2017         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
2018         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
2019         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
2020         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
2021         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
2022         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
2023         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
2024         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
2025         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
2026         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
2027         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
2028         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
2029         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
2030         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
2031         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
2032         * localedata/locales/en_US (LC_MESSAGES): Likewise.
2033         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
2034         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
2035         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
2036         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
2037         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
2038         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
2039         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
2040         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
2041         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
2042         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
2043         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
2044         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
2045         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
2046         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
2047         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
2048         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
2049         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
2050         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
2051         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
2052         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
2053         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
2054         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
2055         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
2056         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
2057         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
2058         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
2059         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
2060         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
2061         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
2062         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
2063         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
2064         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
2065         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
2066         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
2067         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
2068         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
2069         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
2070         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
2071         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
2072         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
2073         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
2074         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
2075         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2076         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2077         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2078         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2079         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2080         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2081         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2082         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2083         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2084         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2085         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2086         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2087         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2088         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2089         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2090         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2091         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2092         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2093         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2094         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2095         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2096         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2097         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2098         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2099         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2100         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2101         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2102         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2103         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2104         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2105         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2106         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2107         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2108         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2109         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2110         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2111         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2112         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2113         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2114         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2115         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2116         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2117         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2118         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2119         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2120         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2121         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2122         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2123         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2124         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2125         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2126         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2127         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2128         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2129         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2130         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2131         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2132         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2133         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2134         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2135         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2136         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2137         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2138         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2139         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2140         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2141         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2142         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2143         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2144         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2145         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2146         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2147         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2148         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2149         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2150         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2151         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2152         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2153         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2154         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2155         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2156         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2157         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2158         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2159         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2160         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2161         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2162         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2163         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2164         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2165         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2166         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2167         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2168         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2169         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2170         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2171         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2172         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2174 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2176         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2177         (Use first letters of yesstr and nostr correctly instead of using
2178         full words).
2180 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2182         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2183         (Use first letters of yesstr and nostr correctly).
2185 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2187         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2188         also check for the first characters of yesstr and nostr.
2189         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2190         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2192 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2194         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2195         also check for Chinese characters.
2197 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2199         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2200         match also for the contents of yesstr and nostr. As the first letter
2201         of yesstr and nostr is equal, checking only for the first letter
2202         is not enough.
2204 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2206         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2207         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2209 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2211         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2212         of main contributor.
2214 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2216         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2217         instead of using English.
2219 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2221         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2222         by including the first letters of nostr and yesexpr in the regexp.
2223         Also make it more readable by using ASCII where possible.
2225 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2227         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2228         the first letter of nostr in the regexp. It agrees with CLDR now.
2229         Also make it more readable by using ASCII where possible.
2231 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2233         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2234         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2235         these strings contain a U+17D6 (which somewhat looks like a colon)
2236         instead of a real colon to separate the full words for “yes”
2237         and “no” from the single letter responses.
2239 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2241         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2242         it agree with CLDR (include the first letter of yesstr).
2243         Also make it more readable by using ASCII where possible.
2245 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2247         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2248         and improve yesexpr and noexpr. The yesstr and nostr apparently
2249         came from CLDR. And CLDR has a bug there: these strings contain
2250         a U+0903 (which looks like a colon) instead of a real colon
2251         to separate the full words for “yes” and “no” from the single
2252         letter responses.
2254 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2256         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2257         letters of the full yesstr and nostr in yesexpr and noexpr.
2259 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2261         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2262         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2263         * localedata/locales/an_ES: Make source more readable by using ASCII
2264         where possible.
2266 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2268         [BZ #20952]
2269         * localedata/locales/yuw_PG: New file.
2270         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2271         * locale/iso-639.def: Add Yau (Uruwa).
2273 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2275         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2277 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2279         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2280         (__libc_realloc): Likewise.
2281         (_mid_memalign): Likewise.
2282         (__libc_calloc): Likewise.
2284 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2286         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2287         by adding the generic +1 and -0 as in all other locales.
2288         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2289         day names and make it more readable by using ASCII where possible.
2291 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2293         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2294         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2296 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2298         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2299         WNOHANG in waitpid call.
2301 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2303         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2304         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2306         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2307         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2308         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2309         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2310         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2311         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2312         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2313         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2314         variables.
2316 2017-10-23  Michael Collison  <michael.collison@arm.com>
2318         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2319         with __builtin_sqrt.
2320         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2321         with __builtin_sqrtf.
2322         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2323         with __builtin_ceil.
2324         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2325         with __builtin_ceilf.
2326         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2327         with __builtin_floor.
2328         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2329         with __builtin_floorf.
2330         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2331         with __builtin_fma.
2332         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2333         with __builtin_fmaf.
2334         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2335         with __builtin_fmax.
2336         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2337         with __builtin_fmaxf.
2338         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2339         with __builtin_fmin.
2340         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2341         with __builtin_fminf.
2342         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2343         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2344         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2345         with builtin_rint and conversion to int.
2346         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2347         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2348         with builtin_llround.
2349         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2350         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2351         with builtin_rint and conversion to long int.
2352         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2353         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2354         with builtin_lround.
2355         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2356         with builtin_lroundf.
2357         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2358         statements with __builtin_nearbyint.
2359         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2360         statements with __builtin_nearbyintf.
2361         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2362         with __builtin_rint.
2363         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2364         with __builtin_rintf.
2365         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2366         with __builtin_round.
2367         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2368         with __builtin_roundf.
2369         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2370         with __builtin_trunc.
2371         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2372         with __builtin_truncf.
2373         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2374         and s_l[l]round[f].c too.
2376 2017-10-23  Alan Modra  <amodra@gmail.com>
2378         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2379         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2381 2017-10-23  Alan Modra  <amodra@gmail.com>
2383         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2384         Move LR save and frame setup/teardown and LR restore to
2385         immediately around memset call.  Provide cfi.
2387 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2389         * sysdeps/i386/fpu/e_powf.S: Removed.
2390         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2391         * sysdeps/i386/fpu/w_powf.c: Likewise.
2392         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2393         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2394         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2395         Add e_powf-sse2.
2396         (CFLAGS-e_powf-sse2.c): New.
2397         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2398         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2400 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2402         * sysdeps/i386/fpu/e_log2f.S: Removed.
2403         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2404         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2405         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2406         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2407         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2408         Add e_log2f-sse2.
2409         (CFLAGS-e_log2f-sse2.c): New.
2410         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2411         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2413 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2415         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2416         Add e_powf-fma.
2417         (CFLAGS-e_powf-fma.c): New.
2418         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2419         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2421 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2423         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2424         Add e_log2f-fma.
2425         (CFLAGS-e_log2f-fma.c): New.
2426         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2427         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2429 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2431         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2432         Add e_logf-fma.
2433         (CFLAGS-e_logf-fma.c): New.
2434         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2435         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2437 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2439         * sysdeps/i386/fpu/e_logf.S: Removed.
2440         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2441         * sysdeps/i386/fpu/w_logf.c: Likewise.
2442         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2443         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2444         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2445         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2446         Add e_logf-sse2.
2447         (CFLAGS-e_logf-sse2.c): New.
2448         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2449         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2451 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2453         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2454         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2455         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2456         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2457         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2458         Add e_exp2f-sse2.
2459         (CFLAGS-e_exp2f-sse2.c): New.
2460         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2461         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2463 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2465         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2466         Add e_exp2f-fma.
2467         (CFLAGS-e_exp2f-fma.c): New.
2468         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2469         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2471 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2473         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2474         * sysdeps/i386/fpu/e_expf.S: Likewise.
2475         * sysdeps/i386/fpu/math_errf.c: Likewise.
2476         * sysdeps/i386/fpu/w_expf.c: Likewise.
2477         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2478         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2479         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2480         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2481         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2482         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2483         Remove e_expf-ia32.
2484         (CFLAGS-e_expf-sse2.c): New.
2485         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2486         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2488 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2490         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2491         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2492         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2493         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2494         e_expf.c.
2495         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2496         New.
2497         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2498         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2499         Renamed to ...
2500         (__redirect_expf): This.
2501         (SYMBOL_NAME): Changed to expf.
2502         (__ieee754_expf): Renamed to ...
2503         (__expf): This.
2504         (__GI___expf): This.
2505         (__ieee754_expf): Add strong_alias.
2506         (__expf_finite): Likewise.
2507         (__expf): New.
2508         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2510 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2512         [BZ #22332]
2513         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2514         unescaping.
2516 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2518         * posix/Makefile (tests): Add tst-glob-tilde.
2519         (tests-special): Add tst-glob-tilde-mem.out
2520         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2521         (tst-glob-tilde-mem.out): Add mtrace check.
2522         * posix/tst-glob-tilde.c: New file.
2524 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2526         * bits/floatn-common.h: New file.
2527         * math/Makefile (headers): Add bits/floatn-common.h.
2528         * bits/floatn.h: Include <bits/floatn-common.h>.
2529         * sysdeps/ia64/bits/floatn.h: Likewise.
2530         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2531         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2532         * sysdeps/powerpc/bits/floatn.h: Likewise.
2533         * sysdeps/x86/bits/floatn.h: Likewise.
2535 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2537         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2538         indicates whether compiler emits an warning for alias for
2539         functions with incompatible types.
2541         [BZ #22273]
2542         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2543         the auxiliary process is terminated by a signal before calling _exit
2544         or execve.
2546 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2548         [BZ #21265]
2549         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2550         New.
2551         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2552         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2553         and bit_arch_XSAVEC_Usable if needed.
2554         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2555         and bit_arch_Use_dl_runtime_resolve_opt.
2556         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2557         Removed.
2558         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2559         (bit_arch_Prefer_No_AVX512): Updated.
2560         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2561         (bit_arch_XSAVEC_Usable): New.
2562         (STATE_SAVE_OFFSET): Likewise.
2563         (STATE_SAVE_MASK): Likewise.
2564         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2565         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2566         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2567         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2568         (index_arch_XSAVEC_Usable): New.
2569         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2570         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2571         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2572         is enabled.
2573         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2574         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2575         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2576         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2577         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2578         _dl_runtime_resolve_xsavec.
2579         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2580         Removed.
2581         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2582         instead of VEC_SIZE.
2583         (REGISTER_SAVE_BND0): Removed.
2584         (REGISTER_SAVE_BND1): Likewise.
2585         (REGISTER_SAVE_BND3): Likewise.
2586         (REGISTER_SAVE_RAX): Always defined to 0.
2587         (VMOV): Removed.
2588         (_dl_runtime_resolve_avx): Likewise.
2589         (_dl_runtime_resolve_avx_slow): Likewise.
2590         (_dl_runtime_resolve_avx_opt): Likewise.
2591         (_dl_runtime_resolve_avx512): Likewise.
2592         (_dl_runtime_resolve_avx512_opt): Likewise.
2593         (_dl_runtime_resolve_sse): Likewise.
2594         (_dl_runtime_resolve_sse_vex): Likewise.
2595         (USE_FXSAVE): New.
2596         (_dl_runtime_resolve_fxsave): Likewise.
2597         (USE_XSAVE): Likewise.
2598         (_dl_runtime_resolve_xsave): Likewise.
2599         (USE_XSAVEC): Likewise.
2600         (_dl_runtime_resolve_xsavec): Likewise.
2601         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2602         Removed.
2603         (_dl_runtime_resolve_avx512_opt): Likewise.
2604         (_dl_runtime_resolve_avx): Likewise.
2605         (_dl_runtime_resolve_avx_opt): Likewise.
2606         (_dl_runtime_resolve_sse): Likewise.
2607         (_dl_runtime_resolve_sse_vex): Likewise.
2608         (_dl_runtime_resolve_fxsave): New.
2609         (_dl_runtime_resolve_xsave): Likewise.
2610         (_dl_runtime_resolve_xsavec): Likewise.
2612 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2614         [BZ #22320]
2615         CVE-2017-15670
2616         * posix/glob.c (__glob): Fix one-byte overflow.
2618 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2620         * malloc/malloc.c (sysdep-cancel.h): Add include.
2622 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2624         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2626 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2628         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2629         (tests): Remove $(objpfx)ga_test depdendency.
2630         * resolv/ga_test.c: Remove file.
2632 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2634         [BZ #18812]
2635         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2636         * localedata/locales/kab_DZ: New file.
2638 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2640         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2641         _dl_relocate_static_pie instead of _dl_start to compute load
2642         address in static PIE.
2644 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2646         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2648 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2650         [BZ #13605]
2651         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2652         * localedata/locales/shn_MM: New file.
2654 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2656         [BZ #22321]
2657         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2658         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2659         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2660         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2661         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2662         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2664 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2666         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2668 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2670         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2672         [BZ #22322]
2673         * sysdeps/mips/bits/long-double.h: Move to ....
2674         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2676 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2678         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2680 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2681             H.J. Lu  <hongjiu.lu@intel.com>
2683         [BZ #22299]
2684         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2685         GLRO(dl_platform) to NULL.
2686         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2687         (modules-names): Add tst-platformmod-1 and
2688         x86_64/tst-platformmod-2.
2689         (CFLAGS-tst-platform-1.c): New.
2690         (CFLAGS-tst-platformmod-1.c): Likewise.
2691         (CFLAGS-tst-platformmod-2.c): Likewise.
2692         (LDFLAGS-tst-platformmod-2.so): Likewise.
2693         ($(objpfx)tst-platform-1): Likewise.
2694         ($(objpfx)tst-platform-1.out): Likewise.
2695         (tst-platform-1-ENV): Likewise.
2696         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2697         * sysdeps/x86_64/tst-platform-1.c: New file.
2698         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2699         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2701 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2703         [BZ #13994]
2704         * locale/iso-639.def: Add Karbi.
2705         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2706         * localedata/locales/mjw_IN: New file.
2708 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2710         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2711         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2712         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2713         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2714         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2715         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2716         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2717         <bits/floatn.h>.
2718         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2719         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2720         * manual/math.texi (Mathematics): Document additional architecture
2721         support for _Float128.
2722         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2723         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2724         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2725         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2726         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2727         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2728         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2729         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2730         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2731         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2732         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2733         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2734         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2735         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2736         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2738 2017-10-18  Renlin Li  <renlin.li@arm.com>
2740         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2741         _DYNAMIC symbol to calculate load address.
2743 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2745         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2746         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2747         summary bits.
2748         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2749         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2751 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2753         [BZ #16777]
2754         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2755         and improve readability by using more ASCII.
2756         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2757         and improve readability by using more ASCII.
2759 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2761         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2762         not all targets support atomics on bool.
2764 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2766         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2767         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2768         __f128.
2769         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2770         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2771         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2772         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2773         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2774         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2776 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2778         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2779         defines.
2781 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2783         [BZ #22159]
2784         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2785         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2786         (do_check_remalloced_chunk): Fix build bug.
2787         (do_check_malloc_state): Add assert that checks arena->top.
2788         (malloc_consolidate): Remove initialization.
2789         (int_mallinfo): Remove call to malloc_consolidate.
2790          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2792 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2794         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2795         (have_fastchunks): Remove.
2796         (clear_fastchunks): Remove.
2797         (set_fastchunks): Remove.
2798         (malloc_state): Add have_fastchunks.
2799         (malloc_init_state): Use have_fastchunks.
2800         (do_check_malloc_state): Remove incorrect invariant checks.
2801         (_int_malloc): Use have_fastchunks.
2802         (_int_free): Likewise.
2803         (malloc_consolidate): Likewise.
2805 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2807         * malloc/malloc.c (tcache_put): Inline.
2808         (tcache_get): Inline.
2810 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2812         Aurelien Jarno  <aurelien@aurel32.net>
2813         [BZ #2522]
2814         * localedata/locales/ca_ES@valencia: New file.
2815         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2817 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2819         [BZ #22296]
2820         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2821         < 6.x
2823 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2825         * scripts/build-many-glibcs.py (Context.add_all_configs):
2826         Add arm-linux-gnueabihf multiarch extra_glibcs.
2828         * sysdeps/generic/ifunc-init.h: New file.
2829         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2831 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2833         [BZ #22019]
2834         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2835         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2836         * stdlib/tst-strfmon_l.c: adapt test case.
2838 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2840         * sysdeps/generic/float128-abi.h: New file.
2841         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2842         non-__prefixed symbols to ....
2843         * math/Versions: ... here.  Include <float128-abi.h>.
2844         * stdlib/Versions ... and here.  Include <float128-abi.h>
2846 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2848         * version.h (VERSION): Switch to ".9000" as the development
2849         version suffix.
2851 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2853         [BZ #22050]
2854         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2855         compat_symbol_reference to access non-default version.
2857 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2859         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2861 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2863         * include/shlib-compat.h (compat_symbol_reference): Update
2864         comment.
2866 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2868         * math/Makefile (test-types): Add
2869         $(type-float128-$(float128-alias-fcts)).
2870         * math/test-float128.h (TYPE_STR): Define conditional on
2871         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2872         (ULP_IDX): Likewise.
2873         (ULP_I_IDX): Likewise.
2875         * stdlib/strtold.c: Include <bits/floatn.h>
2876         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2877         and later undefine as macro.  Define as weak alias if
2878         [!USE_WIDE_CHAR].
2879         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2880         and later undefine as macro.  Define as weak alias if
2881         [USE_WIDE_CHAR].
2882         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2883         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2884         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2885         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2886         Define and later undefine as macro.  Define as weak alias if
2887         [USE_WIDE_CHAR].
2888         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2889         <bits/floatn.h>.
2890         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2891         Define and later undefine as macro.  Define as weak alias if
2892         [!USE_WIDE_CHAR].
2893         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2894         Define and later undefine as macro.  Define as weak alias if
2895         [USE_WIDE_CHAR].
2897 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2899         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2900         record_verbose messages.
2902 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2904         [BZ #22052]
2905         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2906         to silence -O3 -Wall warning with GCC 7.
2908 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2910         * Makeconfig (+link-static-before-libc): Use the first of
2911         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2912         * gmon/Makefile (tests): Add tst-gmon-static.
2913         (tests-static): Likewise.
2914         (CFLAGS-tst-gmon-static.c): New.
2915         (CRT-tst-gmon-static): Likewise.
2916         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2917         (tst-gmon-static-ENV): Likewise.
2918         (tests-special): Likewise.
2919         ($(objpfx)tst-gmon-static.out): Likewise.
2920         (clean-tst-gmon-static-data): Likewise.
2921         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2922         * gmon/tst-gmon-static-gprof.sh: New file.
2923         * gmon/tst-gmon-static.c: Likewise.
2925 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2927         [BZ #22295]
2928         * locale/programs/linereader.c (get_string): Don't warn on
2929         non-symbolic character.
2931         [BZ #22294]
2932         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2933         int_curr_symbol.
2935         [BZ #22292]
2936         * locale/programs/record-status.h: New file
2937         * locale/programs/locale.c: Add comment.
2938         * locale/programs/charmap-dir.c: Don't include error.h.
2939         (charmap_opendir): Use record_error.
2940         * locale/programs/charmap.c: Don't include error.h.
2941         (charmap_read): Use record_error, and record_warning.
2942         (parse_charmap): Likewise.
2943         * locale/programs/ld-address.c: Don't include error.h.
2944         (address_finish): Use record_error, and record_warning.
2945         * locale/programs/ld-collate.c: Don't include error.h.
2946         (collate_finish): Use record_error, and record_error_at_line.
2947         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2948         (ctype_class_new): Likewise.
2949         (ctype_map_new): Likewise.
2950         (set_one_default): Likewise.
2951         (set_class_defaults): Likewise.
2952         (translit_flatten): Likewise.
2953         (allocate_arrays): Use record_error, and record_verbose.
2954         * locale/programs/ld-identification.c: Don't include error.h.
2955         (indentation_finish): Use record_error and record_warning.
2956         * locale/programs/ld-measurement.c: Don't include error.h.
2957         (measurement_finish): Use record_error.
2958         * locale/programs/ld-messages.c
2959         (message_finish): Likewise.
2960         * locale/programs/ld-monetary.c
2961         (monetary_finish): Likewise.
2962         * locale/programs/ld-name.c (name_finish): Use record_error
2963         and record_warning.
2964         * locale/programs/ld-numeric.c
2965         (numeric_finish): Use record_error.
2966         * locale/programs/ld-paper.c: Don't include error.h.
2967         (paper_finish): Use record_error.
2968         * locale/programs/ld-telephone.c: Don't include error.h.
2969         (telephone_finish): Use record_error.
2970         * locale/programs/ld-time.c (time_finish): Likewise.
2971         * locale/programs/linereader.h (lr_error): Make inline func.
2972         * locale/programs/localedef.c: Define recorded_warning_count,
2973         and recorded_error_count.
2974         (main): Use record_error. Use recorded_error_count and
2975         recorded_warning_count to issue correct error returns.
2976         (add_to_readlist): Use record_error.
2977         (find_locale): Likewise.
2978         (load_locale): Likewise.
2979         * locale/programs/localedef.h: Remove be_quiet
2980         and WITH_CUR_LOCALE.
2981         * locale/programs/locarchive.c (compare_from_file): Use
2982         record_error.
2983         * locale/programs/locfile.c (write_locale_data): Use
2984         record_error.
2985         * locale/programs/repertoire.c: Dont include error.h.
2986         (repertoire_complain): Use record_error.
2987         * localedata/tst-fmon.sh: Expect failures from localedef.
2988         * localedata/tst-locale.sh: Likewise.
2989         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2991         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2992         (REPORTS): Likewise.
2993         (check): Likewise.
2994         (i18n): Rename to...
2995         (i18n_ctype): ...this.
2996         (i18n-report): Rename to...
2997         (i18n_ctype-report): ...this.
2998         * localedata/locales/i18n_ctype: Regenerate.
2999         * localedata/locales/i18n: copy i18n_ctype.
3001 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3003         * stdlib/strfroml.c: Include <bits/floatn.h>.
3004         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
3005         Define before include of <stdlib.h> and undefine afterwards, then
3006         define as weak alias.
3008         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
3009         Undefine and restore default definition.  Use
3010         libm_alias_ldouble_other.
3012 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
3014         [BZ #22153]
3015         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
3016         in coredumps.
3018 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
3020         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3021         Assign sym_map to be map for local symbols, as TLS relocations
3022         use sym_map to determine whether the symbol is defined and to
3023         extract the TLS information.
3024         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3025         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3027 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3029         [BZ #22189]
3030         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
3031         (math_force_eval): Add powerpc version.
3033         [BZ #22142]
3034         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
3035         -DBL_MAX.
3036         (do_test): Likewise.
3037         * stdio-common/tst-printf.sh: Likewise.
3038         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
3039         ifdef clause in order to set the carry bit right.  Replace r0 by
3040         0 without changing the behavior.
3042 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3044         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
3045         <libm-alias-ldouble.h>.
3046         (fabsl): Define using libm_alias_ldouble.
3047         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
3048         <libm-alias-ldouble.h>.
3049         (fabsl): Define using libm_alias_ldouble.
3051         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
3052         Remove conditional code.
3054         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
3055         Rename to __clog10_internal_l.
3056         (__clog10_internal_l): Define aliases using
3057         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
3058         with __clog10.
3060 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3062         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
3063         * benchtests/sincosf-inputs: New file.
3064         * benchtests/cosf-inputs: New file.
3065         * benchtests/sinf-inputs: New file.
3067 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3069         * posix/tst-spawn.c (do_test): Wait for both children.
3071 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3073         [BZ #22284]
3074         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
3075         tests-pie): Add tst-gmon-pie.
3076         (CFLAGS-tst-gmon-pie.c): New.
3077         (CRT-tst-gmon-pie): Likewise.
3078         (tst-gmon-pie-ENV): Likewise.
3079         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3080         ($(objpfx)tst-gmon-pie.out): Likewise.
3081         (clean-tst-gmon-pie-data): Likewise.
3082         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3083         * gmon/gmon.c [PIC]: Include <link.h>.
3084         [PIC] (callback): New function.
3085         (write_hist): Add an argument for load address.  Subtract load
3086         address from PCs.
3087         (write_call_graph): Likewise.
3088         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3089         it to write_hist and write_call_graph.
3090         * gmon/tst-gmon-pie.c: New file.
3092 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3094         * math/Makefile (test-types-basic): New variable.
3095         (test-types): Likewise.
3096         (libm-test-support): Use $(test-types) instead of $(types).
3097         (libm-tests-base-normal): Likewise.
3098         (libm-tests-base-finite): Likewise.
3099         (libm-tests-base-inline): Likewise.
3100         (generated): Likewise.
3101         ($(objpfx)libm-test-support-$(t).c): Likewise.
3102         (libm-tests-for-type iterator): Likewise.
3103         (libm-test-support iterator): Likewise.
3104         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3105         (ulp_idx): Use ULP_IDX.
3106         * math/test-ldouble.h: Include <float.h>.
3107         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3108         (ULP_IDX): New macro.
3109         (ULP_I_IDX): Likewise.
3110         * math/test-double.h (ULP_IDX): Likewise.
3111         (ULP_I_IDX): Likewise.
3112         * math/test-float.h (ULP_IDX): Likewise.
3113         (ULP_I_IDX): Likewise.
3114         * math/test-float128.h (ULP_IDX): Likewise.
3115         (ULP_I_IDX): Likewise.
3117 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3119         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3120         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3121         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3122         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3123         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3124         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3125         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3126         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3127         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3128         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3129         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3130         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3131         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3132         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3133         (SINGLE_THREAD_BY_GLOBAL): Define.
3134         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3135         Likewise.
3136         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3137         Likewise.
3138         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3139         Likewise.
3140         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3141         Likewise.
3142         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3143         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3144         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3145         Likewise.
3147 2017-10-11  Andreas Schwab  <schwab@suse.de>
3149         * nis/Makefile (aux): Remove.
3150         * nscd/Makefile (aux): Add nscd_hash.
3151         (nscd-modules): Likewise.
3152         ($(objpfx)nscd): Don't depend on libnsl.
3153         * nscd/nscd_hash.c: New file.
3154         * nscd/nscd_hash.h: Likewise.
3155         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3156         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3157         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3158         instead of <nis/rpcsvc/nis.h>.
3159         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3161 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3163         [BZ #22078]
3164         Avoid large NSS buffers with many addresses, aliases.
3165         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3166         using dynarrays and struct alloc_buffer.
3167         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3168         (tst-nss-files-hosts-multi): Link with -ldl.
3169         * nss/tst-nss-files-hosts-multi.c: New file.
3171 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3173         [BZ #18023]
3174         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3175         scratch_buffer.  Eliminate gotos.
3177 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3179         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3180         libm_alias_ldouble_other.
3181         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3182         undefine and redefine.
3183         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3184         (exp10l): Do not define here.
3185         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3186         (weak_alias): Undefine and redefine.
3187         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3188         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3189         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3190         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3192         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3193         [!__fma] (fma): Define using libm_alias_double.
3194         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3195         [!__fmaf] (fmaf): Define using libm_alias_float.
3196         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3197         (fmal): Define using libm_alias_ldouble.
3199 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3201         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3202         New macro.
3203         (libm_alias_double_other): Likewise.
3204         (libm_alias_double_r): Use libm_alias_double_other_r.
3205         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3206         New macro.
3207         (libm_alias_float_other): Likewise.
3208         (libm_alias_float_r): Use libm_alias_float_other_r.
3209         * sysdeps/generic/libm-alias-float128.h
3210         (libm_alias_float128_other_r): New macro.
3211         (libm_alias_float128_other): Likewise.
3212         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3213         * sysdeps/generic/libm-alias-ldouble.h
3214         (libm_alias_ldouble_other_r): New macro.
3215         (libm_alias_ldouble_other): Likewise.
3216         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3217         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3218         (libm_alias_double_other_r): New macro.
3219         (libm_alias_double_other): Likewise.
3220         (libm_alias_double_r): Use libm_alias_double_other_r.
3221         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3222         (libm_alias_ldouble_other_r): New macro.
3223         (libm_alias_ldouble_other): Likewise.
3224         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3225         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3226         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3227         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3228         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3229         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3230         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3231         * math/w_exp2f.c: Use libm_alias_float_other.
3232         * math/w_expf.c: Likewise.
3233         * math/w_log2f.c: Likewise.
3234         * math/w_logf.c: Likewise.
3235         * math/w_powf.c: Likewise.
3236         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3237         [!__exp2f]: Use libm_alias_float_other.
3238         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3239         [!__expf]: Use libm_alias_float_other.
3240         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3241         [!__log2f]: Use libm_alias_float_other.
3242         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3243         [!__logf]: Use libm_alias_float_other.
3244         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3245         [!__powf]: Use libm_alias_float_other.
3247 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3249         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3250         function.
3251         (_nss_files_gethostbyname3_r): Call it.
3253 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3255         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3256         error.  Remove default definition of declare_mgen_alias.
3257         [!declare_mgen_alias_r]: Likewise.
3258         * sysdeps/generic/math-type-macros-double.h
3259         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3260         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3261         (declare_mgen_alias_r): Likewise.
3262         * sysdeps/generic/math-type-macros-float128.h
3263         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3264         * sysdeps/generic/math-type-macros-ldouble.h
3265         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3266         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3267         macro.
3268         (declare_mgen_alias_r_s): Likewise.
3269         (declare_mgen_alias_r): Likewise.
3270         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3271         (lgamma_r): Define using libm_alias_double_r.
3272         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3273         (lgammaf_r): Define using libm_alias_float_r.
3274         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3275         (lgammal_r): Define using libm_alias_ldouble_r.
3276         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3277         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3279 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3281         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3282         extern declaration.
3284 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3286         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3288 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3290         [BZ #21326]
3291         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3292         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3293         * math/Makefile (test-math-cxx11): New test.
3294         * math/test-math-cxx11.cc: New file.
3296 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3298         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3300         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3301         call to allocate the slave pty file descriptor.
3303 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3305         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3306         [!__fma] (fma): Define using libm_alias_double.
3307         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3308         [!__fma] (fma): Define using libm_alias_double.
3310         * sysdeps/ieee754/float128/float128_private.h: Include
3311         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3312         (libm_alias_ldouble_r): Undefine and redefine.
3313         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3314         <libm-alias-ldouble.h>.
3315         (asinhl): Define using libm_alias_ldouble.
3316         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3317         <libm-alias-ldouble.h>.
3318         (atanl): Define using libm_alias_ldouble.
3319         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3320         <libm-alias-ldouble.h>.
3321         (cbrtl): Define using libm_alias_ldouble.
3322         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3323         <libm-alias-ldouble.h>.
3324         (ceill): Define using libm_alias_ldouble.
3325         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3326         <libm-alias-ldouble.h>.
3327         (copysignl): Define using libm_alias_ldouble.
3328         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3329         <libm-alias-ldouble.h>.
3330         (cosl): Define using libm_alias_ldouble.
3331         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3332         <libm-alias-ldouble.h>.
3333         (erfl): Define using libm_alias_ldouble.
3334         (erfcl): Likewise.
3335         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3336         <libm-alias-ldouble.h>.
3337         (expm1l): Define using libm_alias_ldouble.
3338         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3339         <libm-alias-ldouble.h>.
3340         (fabsl): Define using libm_alias_ldouble.
3341         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3342         <libm-alias-ldouble.h>.
3343         (floorl): Define using libm_alias_ldouble.
3344         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3345         <libm-alias-ldouble.h>.
3346         (fmal): Define using libm_alias_ldouble.
3347         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3348         <libm-alias-ldouble.h>.
3349         (frexpl): Define using libm_alias_ldouble.
3350         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3351         libm_alias_ldouble.
3352         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3353         <libm-alias-ldouble.h>.
3354         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3355         libm_alias_ldouble.
3356         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3357         <libm-alias-ldouble.h>.
3358         (getpayloadl): Define using libm_alias_ldouble.
3359         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3360         <libm-alias-ldouble.h>.
3361         (llrintl): Define using libm_alias_ldouble.
3362         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3363         <libm-alias-ldouble.h>.
3364         (llroundl): Define using libm_alias_ldouble.
3365         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3366         <libm-alias-ldouble.h>.
3367         (logbl): Define using libm_alias_ldouble.
3368         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3369         <libm-alias-ldouble.h>.
3370         (lrintl): Define using libm_alias_ldouble.
3371         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3372         <libm-alias-ldouble.h>.
3373         (lroundl): Define using libm_alias_ldouble.
3374         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3375         <libm-alias-ldouble.h>.
3376         (modfl): Define using libm_alias_ldouble.
3377         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3378         <libm-alias-ldouble.h>.
3379         (nearbyintl): Define using libm_alias_ldouble.
3380         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3381         <libm-alias-ldouble.h>.
3382         (nextafterl): Define using libm_alias_ldouble.
3383         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3384         <libm-alias-ldouble.h>.
3385         (nextupl): Define using libm_alias_ldouble.
3386         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3387         <libm-alias-ldouble.h>.
3388         (remquol): Define using libm_alias_ldouble.
3389         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3390         <libm-alias-ldouble.h>.
3391         (rintl): Define using libm_alias_ldouble.
3392         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3393         <libm-alias-ldouble.h>.
3394         (roundevenl): Define using libm_alias_ldouble.
3395         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3396         <libm-alias-ldouble.h>.
3397         (roundl): Define using libm_alias_ldouble.
3398         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3399         using libm_alias_ldouble.
3400         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3401         <libm-alias-ldouble.h>.
3402         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3403         Define using libm_alias_ldouble.
3404         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3405         <libm-alias-ldouble.h>.
3406         (sincosl): Define using libm_alias_ldouble.
3407         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3408         <libm-alias-ldouble.h>.
3409         (sinl): Define using libm_alias_ldouble.
3410         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3411         <libm-alias-ldouble.h>.
3412         (tanhl): Define using libm_alias_ldouble.
3413         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3414         <libm-alias-ldouble.h>.
3415         (tanl): Define using libm_alias_ldouble.
3416         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3417         <libm-alias-ldouble.h>.
3418         (totalorderl): Define using libm_alias_ldouble.
3419         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3420         <libm-alias-ldouble.h>.
3421         (totalordermagl): Define using libm_alias_ldouble.
3422         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3423         <libm-alias-ldouble.h>.
3424         (truncl): Define using libm_alias_ldouble.
3425         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3426         libm_alias_ldouble.
3427         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3428         libm_alias_ldouble.
3429         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3430         <libm-alias-ldouble.h>.
3431         (weak_alias): Do not undefine and redefine.
3432         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3433         (copysignl): Define with long_double_symbol only if [IS_IN
3434         (libc)].
3435         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3436         <libm-alias-ldouble.h>.
3437         (weak_alias): Do not undefine and redefine.
3438         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3439         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3440         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3441         <libm-alias-ldouble.h>.
3442         (weak_alias): Do not undefine and redefine.
3443         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3444         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3445         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3446         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3447         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3448         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3449         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3450         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3451         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3452         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3453         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3454         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3455         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3456         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3457         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3458         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3459         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3460         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3461         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3462         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3463         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3464         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3465         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3466         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3467         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3468         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3470 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3472         [BZ #22111]
3473         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3474         (tcache_thread_freeres): Set tcache_shutting_down before
3475         freeing the tcache.
3476         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3477         * malloc/tst-malloc-tcache-leak.c: New file.
3479 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3481         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3482         back to powerpc32 file.
3483         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3484         (memrchr): Add __memrchr_power8 to ifunc list.
3485         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3486         extra bytes for unaligned inputs.
3488 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3490         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3491         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3492         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3493         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3494         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3496 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3498         * sysdeps/arm/libm-test-ulps: Update.
3500         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3501         <libm-alias-ldouble.h>.
3502         (asinhl): Define using libm_alias_ldouble.
3503         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3504         <libm-alias-ldouble.h>.
3505         (cbrtl): Define using libm_alias_ldouble.
3506         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3507         <libm-alias-ldouble.h>.
3508         (copysignl): Define using libm_alias_ldouble.
3509         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3510         <libm-alias-ldouble.h>.
3511         (cosl): Define using libm_alias_ldouble.
3512         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3513         <libm-alias-ldouble.h>.
3514         (erfl): Define using libm_alias_ldouble.
3515         (erfcl): Likewise.
3516         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3517         <libm-alias-ldouble.h>.
3518         (fmal): Define using libm_alias_ldouble.
3519         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3520         <libm-alias-ldouble.h>.
3521         (frexpl): Define using libm_alias_ldouble.
3522         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3523         libm_alias_ldouble.
3524         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3525         <libm-alias-ldouble.h>.
3526         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3527         libm_alias_ldouble.
3528         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3529         <libm-alias-ldouble.h>.
3530         (getpayloadl): Define using libm_alias_ldouble.
3531         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3532         <libm-alias-ldouble.h>.
3533         (llrintl): Define using libm_alias_ldouble.
3534         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3535         <libm-alias-ldouble.h>.
3536         (llroundl): Define using libm_alias_ldouble.
3537         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3538         <libm-alias-ldouble.h>.
3539         (lrintl): Define using libm_alias_ldouble.
3540         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3541         <libm-alias-ldouble.h>.
3542         (lroundl): Define using libm_alias_ldouble.
3543         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3544         <libm-alias-ldouble.h>.
3545         (modfl): Define using libm_alias_ldouble.
3546         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3547         <libm-alias-ldouble.h>.
3548         (nextupl): Define using libm_alias_ldouble.
3549         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3550         <libm-alias-ldouble.h>.
3551         (remquol): Define using libm_alias_ldouble.
3552         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3553         <libm-alias-ldouble.h>.
3554         (roundevenl): Define using libm_alias_ldouble.
3555         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3556         <libm-alias-ldouble.h>.
3557         (roundl): Define using libm_alias_ldouble.
3558         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3559         using libm_alias_ldouble.
3560         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3561         <libm-alias-ldouble.h>.
3562         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3563         <libm-alias-ldouble.h>.
3564         (setpayloadsigl): Define using libm_alias_ldouble.
3565         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3566         <libm-alias-ldouble.h>.
3567         (sincosl): Define using libm_alias_ldouble.
3568         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3569         <libm-alias-ldouble.h>.
3570         (sinl): Define using libm_alias_ldouble.
3571         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3572         <libm-alias-ldouble.h>.
3573         (tanhl): Define using libm_alias_ldouble.
3574         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3575         <libm-alias-ldouble.h>.
3576         (tanl): Define using libm_alias_ldouble.
3577         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3578         <libm-alias-ldouble.h>.
3579         (totalorderl): Define using libm_alias_ldouble.
3580         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3581         <libm-alias-ldouble.h>.
3582         (totalordermagl): Define using libm_alias_ldouble.
3583         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3584         libm_alias_ldouble.
3585         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3586         libm_alias_ldouble.
3588 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3590         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3591         memmove_falkor.
3592         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3593         (__libc_ifunc_impl_list): Likewise.
3594         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3595         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3597         * benchtests/bench-memmove-walk.c: New file.
3598         * benchtests/Makefile (string-benchset): Add it.
3600         * benchtests/bench-memset-walk.c: New file.
3601         * benchtests/Makefile (string-benchset): Add it.
3603         * benchtests/bench-memcpy-walk.c: New file.
3604         * benchtests/Makefile (string-benchset): Add it.
3606 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3608         nscd: Eliminate compilation time dependency in the build output.
3609         * nscd/nscd_stat.c (STATDATA_VERSION)
3610         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3611         (STATDATA_VERSION_FULL): New macro definitions.
3612         (compilation): Remove.
3613         (struct statdata): Adjust version member.
3614         (send_stats): Set version from STATDATA_VERSION_FULL.
3615         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3617 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3619         * configure.ac (--enable-add-ons): Remove option.
3620         (machine): Do not mention add-ons in comment.
3621         (LIBC_PRECONFIGURE): Likewise.
3622         (add_ons): Remove variable and sanity checks and logic to locate
3623         add-ons.
3624         (add_ons_automatic): Remove variable.
3625         (configured_add_ons): Likewise.
3626         (add_ons_sfx): Likewise.
3627         (add_ons_pfx): Likewise.
3628         (add_on_subdirs): Likewise.
3629         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3630         consideration of add-ons in Implies handling.
3631         (sysdeps_add_ons): Likewise.
3632         * configure: Regenerated.
3633         * libidn/configure.ac: Remove.
3634         * libidn/configure: Likewise.
3635         * sysdeps/unix/inet/configure.ac: New file.
3636         * sysdeps/unix/inet/configure: New generated file.
3637         * sysdeps/unix/inet/Subdirs: Add libidn.
3638         * Makeconfig (sysdeps-srcdirs): Remove variable.
3639         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3640         ($(common-objpfx)config.status): Do not depend on add-on files.
3641         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3642         comment.
3643         (all-subdirs): Do not include $(add-on-subdirs).
3644         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3645         * config.make.in (add-ons): Remove variable.
3646         (add-on-subdirs): Likewise.
3647         (sysdeps-add-ons): Likewise.
3648         * manual/Makefile (add-chapters): Remove.
3649         ($(objpfx)texis): Do not depend on $(add-chapters).
3650         (nonexamples): Do not handle $(add-chapters).
3651         (examples): Do not handle $(add-ons).
3652         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3653         libc-texinfo.sh.
3654         * manual/install.texi (Installation): Do not mention add-ons.
3655         (--enable-add-ons): Do not document configure option.
3656         * INSTALL: Regenerated.
3657         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3658         * manual/maint.texi (Hierarchy Conventions): Do not mention
3659         add-ons.
3660         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3661         --enable-add-ons.
3662         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3663         add-ons.
3664         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3665         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3667 2017-10-05  Andreas Schwab  <schwab@suse.de>
3669         [BZ #15142]
3670         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3671         (_IO_flush_all_lockp): Always lock list_all_lock.
3672         (_IO_flush_all_linebuffered): Likewise.
3673         (_IO_unbuffer_all): Likewise.
3675 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3677         [BZ #15436]
3678         Do not flush stdio streams on abort.
3679         * stdlib/abort.c (fflush): Remove macro definition.
3680         (abort): Remove stages related to stdio flushing.
3682 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3684         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3686 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3688         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3690 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3692         * support/support_format_hostent.c (support_format_hostent): Add
3693         more error information for NETDB_INTERNAL.
3695 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3697         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3698         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3699         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3700         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3701         AC_DEFINE if multi-arch is enabled.
3702         * sysdeps/i386/configure: Regenerated.
3704 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3706         * Makeconfig (+link-static-before-libc): Use
3707         $(DEFAULT-LDFLAGS-$(@F)).
3708         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3709         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3710         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3712 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3714         * elf/Makefile (tests): Add tst-main1.
3715         (modules-names): Add tst-main1mod.
3716         ($(objpfx)tst-main1): New.
3717         (CRT-tst-main1): Likewise.
3718         (LDFLAGS-tst-main1): Likewise.
3719         (LDLIBS-tst-main1): Likewise.
3720         (tst-main1mod.so-no-z-defs): Likewise.
3721         * elf/tst-main1.c: New file.
3722         * elf/tst-main1mod.c: Likewise.
3724 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3726         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3728 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3730         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3731         (fma): Define using libm_alias_double.
3732         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3733         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3734         <math_ldbl_opt.h>.
3735         (fmal): Do not define as compat symbol here.
3736         * sysdeps/alpha/fpu/s_fma.c: New file.
3738 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3740         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3742 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3744         [BZ #22229]
3745         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3746         <math_ldbl_opt.h>
3747         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3748         and libc.
3749         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3750         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3751         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3752         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3754         Include <math_ldbl_opt.h>
3755         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3756         and libc.
3757         (compat_symbol): Undefine and redefine.
3758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3759         <math_ldbl_opt.h>
3760         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3761         (compat_symbol): Undefine and redefine.
3762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3763         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3764         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3765         GLIBC_2_1 for libm.
3766         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3767         GLIBC_2.0 copysignl symbol.
3768         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3769         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3771         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3773 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3775         * scripts/check-local-headers.sh: Ignore nspr4 header file
3776         directory in addition to nspr.
3778 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3780         [BZ #17956]
3781         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3782         * configure: Regenerate.
3783         * crypt/Makefile (nss-cpp-flags): New variable.
3784         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3785         (CPPFLAGS-md5-crypt.c): Use it.
3786         * scripts/check-local-headers.sh: Ignore nspr header file
3787         directory.
3789 2017-10-04  Andreas Schwab  <schwab@suse.de>
3791         * nis/Makefile (services): Remove compat.
3792         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3793         ($(objpfx)libnss_compat.so): Remove rule.
3794         * nis/Versions (libnss_compat): Remove.
3795         * nss/Makefile (services): Add compat.
3796         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3797         * nss/Versions (libnss_compat): Define.
3798         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3799         Don't include <rpc/types.h>.  Replace bool_t by bool.
3800         * nss/nss_compat/compat-initgroups.c: Likewise.
3801         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3802         instead of <rpcsrv/ypclnt.h>.
3803         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3804         yp_get_default_domain.
3805         * nss/nss_compat/compat-pwd.c: Likewise.
3806         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3807         yp_get_default_domain.
3808         * nss/nss_compat/nisdomain.c: New file.
3809         * nss/nss_compat/nisdomain.h: Likewise.
3811 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3813         [BZ #22244]
3814         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3815         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3817 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3819         [BZ #22243]
3820         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3821         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3823 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3825         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3826         "movl main@GOTOFF(%ebx), %eax".
3828 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3830         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3831         allow undefined _DYNAMIC in PIE libc.a.
3832         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3833         Likewse.
3835 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3837         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3838         check _DYNAMIC.
3840 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3842         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3843         check _DYNAMIC.
3845 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3847         * math/test-math-iscanonical.cc (error): Replace bool with int.
3849 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3851         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3852         (modf): Define using libm_alias_double, only if [!__modf].
3853         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3854         <libm-alias-double.h>.
3855         (modf): Define using libm_alias_double, only if [!__modf].
3856         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3857         compat symbol here.
3858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3859         (weak_alias): Do not undefine and redefine.
3860         (strong_alias): Likewise.
3861         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3862         (weak_alias): Likewise.
3863         (strong_alias): Likewise.
3865         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3866         (logb): Define using libm_alias_double, only if [!__logb].
3867         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3868         <libm-alias-double.h>.
3869         (logb): Define using libm_alias_double, only if [!__logb].
3870         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3872         (weak_alias): Do not undefine and redefine.
3873         (strong_alias): Likewise.
3874         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3875         (weak_alias): Likewise.
3876         (strong_alias): Likewise.
3878 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3880         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3881         Check SHARED instead PIC.
3883 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3885         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3886         [!__fmaf] (fmaf): Define using libm_alias_float.
3888         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3889         (frexp): Define using libm_alias_double.
3890         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3891         <libm-alias-double.h>.
3892         (frexp): Define using libm_alias_double.
3893         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3894         compat symbol here.
3896 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3898         [BZ #22235]
3899         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3900         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3901         (CFLAGS-test-math-iscanonical.cc): New variable.
3902         * math/test-math-iscanonical.cc: New file.
3903         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3904         Provide a C++ implementation based on function overloading,
3905         rather than using __MATH_TG, which uses C-only builtins.
3906         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3907         Likewise.
3908         * sysdeps/powerpc/powerpc64le/Makefile
3909         (CFLAGS-test-math-iscanonical.cc): New variable.
3911 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3913         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3914         (ceil): Define using libm_alias_double.
3915         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3916         (floor): Define using libm_alias_double.
3917         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3918         <libm-alias-double.h>.
3919         (llround): Define using libm_alias_double.
3920         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3921         <libm-alias-double.h>.
3922         (lround): Define using libm_alias_double.
3923         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3924         <libm-alias-double.h>.
3925         (nearbyint): Define using libm_alias_double.
3926         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3927         <libm-alias-double.h>.
3928         (remquo): Define using libm_alias_double.
3929         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3930         (rint): Define using libm_alias_double.
3931         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3932         (round): Define using libm_alias_double.
3933         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3934         (trunc): Define using libm_alias_double.
3935         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3936         <libm-alias-double.h>.
3937         (ceil): Define using libm_alias_double.
3938         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3939         <libm-alias-double.h>.
3940         (floor): Define using libm_alias_double.
3941         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3942         <libm-alias-double.h>.
3943         (llround): Define using libm_alias_double.
3944         [_LP64] (lround): Likewise.
3945         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3946         <libm-alias-double.h>.
3947         [!_LP64] (lround): Define using libm_alias_double.
3948         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3949         <libm-alias-double.h>.
3950         (nearbyint): Define using libm_alias_double.
3951         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3952         <libm-alias-double.h>.
3953         (remquo): Define using libm_alias_double.
3954         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3955         <libm-alias-double.h>.
3956         (rint): Define using libm_alias_double.
3957         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3958         <libm-alias-double.h>.
3959         (round): Define using libm_alias_double.
3960         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3961         <libm-alias-double.h>.
3962         (trunc): Define using libm_alias_double.
3963         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3964         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3965         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3966         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3967         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3968         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3969         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3970         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3971         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3973 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3975         * math/w_remainder.c: New file.
3976         * math/w_remainderf.c: New file.
3977         * math/w_remainderl.c: New file.
3979 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3981         * elf/rtld.c (BOOTSTRAP_MAP): New.
3982         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3983         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3984         Likewise.
3985         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3986         Likewise.
3987         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3988         Likewise.
3990 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3992         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3993         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3994         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3995         rtld_hidden_data_ver): Define to empty.
3996         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3997         __assert_perror_fail): Likewise.
3998         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3999         (__rewinddir): Likewise.
4000         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4001         (__profile_frequency): Likewise.
4002         * include/setjmp.h (__sigsetjmp): Likewise.
4003         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
4004         __libc_sigaction): Likewise.
4005         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
4006         not set hidden attribute.
4007         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
4008         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
4009         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
4010         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
4011         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
4012         __fxstatat64): Likewise.
4013         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4014         (__uname): Likewise.
4015         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
4016         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
4017         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
4018         (NO_RTLD_HIDDEN): Set.
4019         * sysdeps/mach/hurd/configure: Refresh.
4020         * config.h.in: Refresh.
4022 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
4024         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
4025         (atan): Define using libm_alias_double.
4026         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
4027         (tan): Define using libm_alias_double.
4028         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
4029         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
4031         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
4032         define as weak alias of __atan.  Do not define any aliases if
4033         [__atan].
4034         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
4035         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
4036         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
4037         as weak alias of __tan.  Do not define any aliases if [__tan].
4038         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
4039         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
4040         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
4041         __atan.
4042         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
4043         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
4044         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
4045         and define as weak alias of __atan.
4046         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
4047         __atan.
4048         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
4049         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
4050         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
4051         define as weak alias of __tan.
4053 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4055         * math/w_lgamma.c: New file.
4056         * math/w_lgammaf.c: New file.
4057         * math/w_lgammal.c: New file.
4059 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4061         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
4062         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
4063         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
4064         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
4065         * sysdeps/ieee754/flt-32/w_logf.c: New file.
4066         * sysdeps/ieee754/flt-32/w_powf.c: New file.
4067         * sysdeps/i386/fpu/w_log2f.c: New file.
4068         * sysdeps/i386/fpu/w_logf.c: New file.
4069         * sysdeps/i386/fpu/w_powf.c: New file.
4070         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
4071         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
4072         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
4074 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4075             H.J. Lu  <hongjiu.lu@intel.com>
4077         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4078         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4079         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4080         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4081         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4082         the new expf code.
4083         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4084         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4085         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4086         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4087         * sysdeps/i386/fpu/w_exp2f.c: New file.
4088         * sysdeps/i386/fpu/w_expf.c: New file.
4089         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4090         * sysdeps/x86_64/fpu/w_expf.c: New file.
4092 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4094         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4095         (log2f): Likewise.
4096         (powf): Likewise.
4097         * math/w_log2f.c: New file.
4098         * math/w_logf.c: New file.
4099         * math/w_powf.c: New file.
4100         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4101         * math/w_logf_compat.c (__logf_compat): Likewise.
4102         * math/w_powf_compat.c (__powf_compat): Likewise.
4103         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4104         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4105         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4106         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4107         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4108         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4109         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4110         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4111         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4112         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4113         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4114         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4115         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4116         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4117         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4119         Likewise.
4120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4121         Likewise.
4122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4123         Likewise.
4124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4125         Likewise.
4126         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4127         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4128         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4129         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4130         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4131         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4132         Likewise.
4133         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4134         Likewise.
4135         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4136         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4137         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4139 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4141         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4142         (sysdep_routines): Add memrchr_power8.
4143         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4144         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4145         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4146         New file.
4147         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4148         (memrchr): Add __memrchr_power8 to ifunc list.
4149         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4151 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4153         [BZ #18822]
4154         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4155         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4156         libc_hidden_def.
4157         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4158         (__posix_fallocate64_l64): Likewise.
4160 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4162         [BZ #18822]
4163         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4164         (__sched_setaffinity_new): Add libc_hidden_proto and
4165         libc_hidden_def.
4167 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4169         [BZ #18822]
4170         * include/glob.h (__glob64): Add libc_hidden_proto.
4171         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4172         libc_hidden_def.
4174 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4176         [BZ #18822]
4177         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4178         attribute_hidden.
4180 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4182         [BZ #18822]
4183         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4185 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4187         [BZ #18822]
4188         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4189         libc_hidden_def.
4191 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4193         [BZ #18822]
4194         * csu/version.c (__libc_print_version): Add attribute_hidden.
4196 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4198         [BZ #18822]
4199         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4201 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4203         [BZ #18822]
4204         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4206 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4208         [BZ #18822]
4209         * nscd/nscd_helper.c (__nis_hash): New prototype.
4211 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4213         [BZ #18822]
4214         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4215         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4216         libc_hidden_def.
4217         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4218         * termios/tcgetattr.c (__tcgetattr): Likewise.
4220 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4222         [BZ #18822]
4223         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4224         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4225         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4226         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4227         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4229 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4231         [BZ #18822]
4232         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4234 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4236         [BZ #18822]
4237         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4238         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4240 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4242         [BZ #18822]
4243         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4245 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4247         [BZ #18822]
4248         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4249         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4251 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4253         [BZ #18822]
4254         * include/ifreq.h: New file.
4255         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4256         (__ifreq): Likewise.
4257         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4258         (__ifreq): Likewise.
4260 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4262         [BZ #18822]
4263         * include/idna.h: New file.
4264         * inet/getnameinfo.c: Include <idna.h> instead of
4265         <libidn/idna.h>.
4266         (__idna_to_unicode_lzlz): Removed.
4267         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4268         <libidn/idna.h>.
4269         (__idna_to_ascii_lz): Removed.
4270         (__idna_to_unicode_lzlz): Likewise.
4272 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4274         [BZ #18822]
4275         * include/plural-exp.h: New file.
4276         * intl/plural-exp.c: Include <plural-exp.h> instead of
4277         "plural-exp.h".
4279 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4281         [BZ #18822]
4282         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4283         "getsourcefilter.h".
4284         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4285         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4286         "getsourcefilter.h".
4287         (__get_sol): Removed.
4289 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4291         [BZ #18822]
4292         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4293         to ...
4294         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4296 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4298         [BZ #18822]
4299         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4300         attribute_hidden.
4302 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4304         [BZ #18822]
4305         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4307 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4309         [BZ #18822]
4310         * include/search.h (__tdestroy): Add libc_hidden_proto.
4311         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4313 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4315         [BZ #18822]
4316         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4318 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4320         [BZ #18822]
4321         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4322         attribute_hidden.
4324 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4326         [BZ #18822]
4327         * include/signal.h (__kill): Add libc_hidden_proto.
4328         (__sigblock): Likewise.
4329         (__sigprocmask): Likewise.
4330         (__sigaltstack): Likewise.
4331         * signal/kill.c (__kill): Add libc_hidden_def.
4332         * signal/sigblock.c (__sigblock): Likewise.
4333         * signal/sigprocmask.c (__sigprocmask): Likewise.
4334         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4335         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4336         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4337         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4338         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4339         Likewise.
4340         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4341         Likewise.
4342         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4343         (__sigprocmask): Likewise.
4344         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4345         Likewise.
4346         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4347         (__sigprocmask): Likewise.
4348         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4349         Likewise.
4351 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4353         [BZ #18822]
4354         * include/string.h (__strsep): Add libc_hidden_proto.
4355         * string/strsep.c (__strsep): Add libc_hidden_def.
4357 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4359         [BZ #18822]
4360         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4361         attribute_hidden.
4362         (__spawni): Likewise.
4364 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4366         [BZ #18822]
4367         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4368         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4369         libc_hidden_def.
4371 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4373         [BZ #18822]
4374         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4376 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4378         [BZ #18822]
4379         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4380         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4381         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4382         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4383         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4384         Likewise.
4385         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4386         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4388 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4390         [BZ #18822]
4391         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4392         (__dcigettext): Likewise.
4394 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4396         [BZ #18822]
4397         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4398         libc_hidden_proto.
4399         (__get_nprocs): Likewise.
4400         (__get_phys_pages): Likewise.
4401         (__get_avphys_pages): Likewise.
4402         (__get_child_max): Add attribute_hidden.
4403         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4404         (__get_nprocs): Likewise.
4405         (__get_phys_pages): Likewise.
4406         (__get_avphys_pages): Likewise.
4407         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4408         libc_hidden_def.
4409         (__get_nprocs): Likewise.
4410         (__get_phys_pages): Likewise.
4411         (__get_avphys_pages): Likewise.
4412         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4413         libc_hidden_def.
4414         (__get_nprocs_conf): Likewise.
4415         (__get_phys_pages): Likewise.
4416         (__get_avphys_pages): Likewise.
4418 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4420         [BZ #18822]
4421         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4422         attribute_hidden.
4423         (__netlink_close): Likewise.
4424         (__netlink_free_handle): Likewise.
4425         (__netlink_request): Likewise.
4427 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4429         [BZ #18822]
4430         * include/rpc/rpc.h (__rpc_thread_variables): Add
4431         attribute_hidden.
4432         (__rpc_thread_svc_cleanup): Likewise.
4433         (__rpc_thread_clnt_cleanup): Likewise.
4434         (__rpc_thread_key_cleanup): Likewise.
4436 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4438         [BZ #18822]
4439         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4440         (__writev): Likewise.
4441         * misc/readv.c (__readv): Add libc_hidden_def.
4442         * misc/writev.c (__writev): Likewise.
4443         * sysdeps/posix/readv.c (__readv): Likewise.
4444         * sysdeps/posix/writev.c (__writev): Likewise.
4445         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4446         (__readv): Likewise.
4447         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4448         (__writev): Likewise.
4450 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4452         [BZ #18822]
4453         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4454         (__regcomp): Add libc_hidden_proto.
4455         (__regexec): Likewise.
4456         (__regfree): Likewise.
4457         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4458         (__regfree): Likewise.
4459         * posix/regexec.c (__regexec): Likewise.
4461 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4463         [BZ #18822]
4464         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4465         (__getutent): Likewise.
4466         (__getutid): Likewise.
4467         (__getutline): Likewise.
4468         (__pututline): Likewise.
4469         (__getutent_r): Likewise.
4470         (__getutid_r): Likewise.
4471         (__getutline_r): Likewise.
4472         (__utmpname): Add attribute_hidden.
4473         (__setutent): Likewise.
4474         (__endutent): Likewise.
4475         * login/getutent.c (__getutent): Add libc_hidden_def.
4476         * login/getutent_r.c (__getutent_r): Likewise.
4477         (__pututline): Likewise.
4478         * login/getutid.c (__getutid): Likewise.
4479         * login/getutid_r.c (__getutid_r): Likewise.
4480         * login/getutline.c (__getutline): Likewise.
4481         * login/getutline_r.c (__getutline_r): Likewise.
4482         * login/updwtmp.c (__updwtmp): Likewise.
4484 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4486         [BZ #18822]
4487         * include/dirent.h (__opendir): Always add attribute_hidden.
4488         (__fdopendir): Likewise.
4489         (__closedir): Likewise.
4490         (__readdir): Likewise.
4491         (__readdir64): Add libc_hidden_proto.
4492         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4493         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4494         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4495         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4496         New alias.
4498 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4500         [BZ #18822]
4501         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4502         * include/netdb.h (__gethostbyaddr_r): Likewise.
4503         (__gethostbyname_r): Likewise.
4504         (__gethostbyname2_r): Likewise.
4505         (__getnetbyaddr_r): Likewise.
4506         (__getnetbyname_r): Likewise.
4507         (__getservbyname_r): Likewise.
4508         (__getservbyport_r): Likewise.
4509         (__getprotobyname_r): Likewise.
4510         (__getprotobynumber_r): Likewise.
4511         (__getnetgrent_r): Likewise.
4512         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4513         (__getrpcbynumber_r): Likewise.
4514         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4516 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4518         [BZ #18822]
4519         * include/stdio.h (__fcloseall): Add attribute_hidden.
4520         (__getline): Likewise.
4521         (__path_search): Likewise.
4522         (__gen_tempname): Likewise.
4523         (__libc_message): Likewise.
4524         (__flockfile): Likewise.
4525         (__funlockfile): Likewise.
4526         (__fxprintf): Likewise.
4527         (__fxprintf_nocancel): Likewise.
4529 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4531         [BZ #18822]
4532         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4533         (__sgetsgent_r): Likewise.
4535 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4537         [BZ #18822]
4538         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4539         (__statfs64): Likewise.
4540         (__fstatfs64): Likewise.
4541         * include/sys/statvfs.h (__statvfs64): Likewise.
4542         (__fstatvfs64): Likewise.
4543         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4544         (__statfs_filesize_max): Likewise.
4545         (__statfs_symlinks): Likewise.
4546         (__statfs_chown_restricted): Likewise.
4548 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4550         [BZ #18822]
4551         * include/time.h (__tzstring): Add attribute_hidden.
4552         (__tzfile_read): Likewise.
4553         (__tzfile_compute): Likewise.
4554         (__tzfile_default): Likewise.
4555         (__tzset_parse_tz): Likewise.
4556         (__offtime): Likewise.
4557         (__asctime_r): Likewise.
4558         (__tzset): Likewise.
4559         (__tz_convert): Likewise.
4560         (__getdate_r): Likewise.
4561         (__getclktck): Likewise.
4563 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4565         [BZ #18822]
4566         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4567         (__nscd_unmap): Likewise.
4568         (__nscd_cache_search): Likewise.
4569         (__nscd_get_nl_timestamp): Likewise.
4570         (__nscd_getpwnam_r): Likewise.
4571         (__nscd_getpwuid_r): Likewise.
4572         (__nscd_getgrnam_r): Likewise.
4573         (__nscd_getgrgid_r): Likewise.
4574         (__nscd_gethostbyname_r): Likewise.
4575         (__nscd_gethostbyname2_r): Likewise.
4576         (__nscd_gethostbyaddr_r): Likewise.
4577         (__nscd_getai): Likewise.
4578         (__nscd_getgrouplist): Likewise.
4579         (__nscd_getservbyname_r): Likewise.
4580         (__nscd_getservbyport_r): Likewise.
4581         (__nscd_innetgr): Likewise.
4582         (__nscd_setnetgrent): Likewise.
4584 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4586         [BZ #18822]
4587         * include/gmp.h: Declare internal functions only if _ISOMAC is
4588         undefined.
4589         (__mpn_extract_double): Add attribute_hidden.
4590         (__mpn_extract_long_double): Likewise.
4591         (__mpn_extract_float128): Likewise.
4592         (__mpn_construct_float): Likewise.
4593         (__mpn_construct_double): Likewise.
4594         (__mpn_construct_long_double): Likewise.
4595         (__mpn_construct_float128): Likewise.
4596         (mpn_add_1): Likewise.
4597         (mpn_addmul_1): Likewise.
4598         (mpn_add_n): Likewise.
4599         (mpn_cmp): Likewise.
4600         (mpn_divrem): Likewise.
4601         (mpn_lshift): Likewise.
4602         (mpn_mul): Likewise.
4603         (mpn_mul_1): Likewise.
4604         (mpn_rshift): Likewise.
4605         (mpn_sub_1): Likewise.
4606         (mpn_submul_1): Likewise.
4607         (mpn_sub_n): Likewise.
4609 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4611         [BZ #18822]
4612         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4613         (__wcscat): Likewise.
4614         (__btowc): Likewise.
4615         (__wcrtomb): Likewise.
4616         (__mbsrtowcs): Likewise.
4617         (__wcsrtombs): Likewise.
4618         (__mbsnrtowcs): Likewise.
4619         (__wcsnrtombs): Likewise.
4620         (__wcsncpy): Likewise.
4621         (__wcpncpy): Likewise.
4622         (__wmemcpy): Likewise.
4623         (__wmempcpy): Likewise.
4624         (__wmemmove): Likewise.
4625         (__wcschrnul): Likewise.
4626         (__vfwscanf): Likewise.
4627         (__vswprintf): Likewise.
4628         (__fwprintf): Likewise.
4629         (__vfwprintf): Likewise.
4631 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4633         [BZ #18822]
4634         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4635         (__getgrgid_r): Likewise.
4636         (__getgrnam_r): Likewise.
4637         * include/pwd.h (__getpwuid_r): Likewise.
4638         (__getpwnam_r): Likewise.
4639         (__fgetpwent_r): Likewise.
4640         * include/shadow.h (__getspnam_r): Likewise.
4641         (__sgetspent_r): Likewise.
4642         (__fgetspent_r): Likewise.
4644 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4646         [BZ #18822]
4647         * include/unistd.h (__access): Add attribute_hidden.
4648         (__lseek64): Likewise.
4649         (__libc_pread64): Likewise.
4650         (__pipe2): Likewise.
4651         (__sleep): Likewise.
4652         (__chdir): Likewise.
4653         (__fchdir): Likewise.
4654         (__getcwd): Likewise.
4655         (__rmdir): Likewise.
4656         (__execvpe): Likewise.
4657         (__execve): Likewise.
4658         (__setsid): Likewise.
4659         (__getuid): Likewise.
4660         (__geteuid): Likewise.
4661         (__getgid): Likewise.
4662         (__getegid): Likewise.
4663         (__getgroups): Likewise.
4664         (__group_member): Likewise.
4665         (__ttyname_r): Likewise.
4666         (__isatty): Likewise.
4667         (__readlink): Likewise.
4668         (__unlink): Likewise.
4669         (__gethostname): Likewise.
4670         (__profil): Likewise.
4671         (__getdtablesize): Likewise.
4672         (__brk): Likewise.
4673         (__ftruncate): Likewise.
4674         (__ftruncate64): Likewise.
4676 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4678         [BZ #18822]
4679         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4680         * argp/argp-fs-xinl.c: Likewise.
4681         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4682         * argp/argp-parse.c: Include <argp.h>.
4683         * argp/argp-xinl.c: Likewise.
4684         * include/argp-fmtstream.h: New file.
4685         * include/argp.h (__argp_error): Add attribute_hidden.
4686         (__argp_failure): Likewise.
4687         (__argp_input): Likewise.
4688         (__argp_state_help): Likewise.
4690 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4692         [BZ #18822]
4693         * include/wchar.h (____wcstof_l_internal): New prototype.
4694         (____wcstod_l_internal): Likewise.
4695         (____wcstold_l_internal): Likewise.
4696         (____wcstol_l_internal): Likewise.
4697         (____wcstoul_l_internal): Likewise.
4698         (____wcstoll_l_internal): Likewise.
4699         (____wcstoull_l_internal): Likewise.
4700         (____wcstof128_l_internal): Likewise.
4701         * sysdeps/ieee754/float128/wcstof128.c
4702         (____wcstof128_l_internal): Removed.
4703         * sysdeps/ieee754/float128/wcstof128_l.c
4704         (____wcstof128_l_internal): Likewise.
4705         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4706         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4707         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4708         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4709         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4710         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4711         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4712         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4713         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4714         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4716 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4718         [BZ #18822]
4719         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4720         instead of <sys/statvfs.h>.
4721         (__internal_statvfs): Removed.
4722         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4723         instead of <sys/statvfs.h>.
4724         (__internal_statvfs64): Removed.
4725         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4726         "internal_statvfs.h" instead of <sys/statvfs.h>.
4727         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4728         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4729         instead of <sys/statvfs.h>.
4730         (__internal_statvfs): Removed.
4731         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4732         instead of <sys/statvfs.h>.
4733         (__internal_statvfs64): Removed.
4735 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4737         [BZ #18822]
4738         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4739         (__gconv_close): Likewise.
4740         (__gconv): Likewise.
4741         (__gconv_find_transform): Likewise.
4742         (__gconv_lookup_cache): Likewise.
4743         (__gconv_compare_alias_cache): Likewise.
4744         (__gconv_load_cache): Likewise.
4745         (__gconv_get_path): Likewise.
4746         (__gconv_close_transform): Likewise.
4747         (__gconv_release_cache): Likewise.
4748         (__gconv_find_shlib): Likewise.
4749         (__gconv_release_shlib): Likewise.
4750         (__gconv_get_builtin_trans): Likewise.
4751         (__gconv_compare_alias): Likewise.
4752         * include/dlfcn.h (_dlerror_run): Likewise.
4753         * include/stdio.h (__fortify_fail_abort): Likewise.
4754         * include/time.h (__tz_compute): Likewise.
4755         (__strptime_internal): Likewise.
4756         * intl/gettextP.h (_nl_find_domain): Likewise.
4757         (_nl_load_domain): Likewise.
4758         (_nl_find_msg): Likewise.
4759         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4760         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4761         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4762         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4763         (__gai_find_request): Likewise.
4764         (__gai_remove_request): Likewise.
4765         (__gai_notify): Likewise.
4766         (__gai_notify_only): Likewise.
4767         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4768         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4769         (_dl_non_dynamic_init): Likewise.
4770         (_dl_aux_init): Likewise.
4771         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4772         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4773         Likewise.
4774         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4775         (__wcsmbs_clone_conv): Likewise.
4776         (__wcsmbs_named_conv): Likewise.
4778 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4780         [BZ #18822]
4781         * include/stdlib.h (__random): Add attribute_hidden.
4782         (__random_r): Likewise.
4783         (__srandom_r): Likewise.
4784         (__initstate_r): Likewise.
4785         (__setstate_r): Likewise.
4786         (__erand48_r): Likewise.
4787         (__nrand48_r): Likewise.
4788         (__jrand48_r): Likewise.
4789         (__srand48_r): Likewise.
4790         (__seed48_r): Likewise.
4791         (__lcong48_r): Likewise.
4792         (__drand48_iterate): Likewise.
4793         (__setenv): Likewise.
4794         (__unsetenv): Likewise.
4795         (__clearenv): Likewise.
4796         (__ptsname_r): Likewise.
4797         (__posix_openpt): Likewise.
4798         (__add_to_environ): Likewise.
4799         (__realpath): Add libc_hidden_proto.
4800         (__ecvt_r): Likewise.
4801         (__fcvt_r): Likewise.
4802         (__qecvt_r): Likewise.
4803         (__qfcvt_r): Likewise.
4804         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4805         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4807 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4809         [BZ #18822]
4810         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4811         * include/time.h (__mktime_internal): Likewise.
4812         * libio/iolibio.h (__fopen_internal): Likewise.
4814 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4816         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4817         pointer in frame.
4818         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4819         Correct offset used to restore PIC register.
4821 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4823         [BZ libc/22165]
4824         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4825         code to load address of __getcontext_ret when generating PIC code.
4827 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4829         * elf/Makefile (tests-static-internal): Add
4830         tst-tls1-static-non-pie.
4831         (LDFLAGS-tst-tls1-static-non-pie): New.
4832         * elf/tst-tls1-static-non-pie.c: New file.
4834 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4836         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4837         (asinh): Define using libm_alias_double.
4838         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4839         (cbrt): Define using libm_alias_double.
4840         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4841         <libm-alias-double.h>.
4842         (copysign): Define using libm_alias_double.
4843         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4844         (erf): Define using libm_alias_double.
4845         (erfc): Likewise.
4846         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4847         (expm1): Define using libm_alias_double.
4848         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4849         (fabs): Define using libm_alias_double.
4850         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4851         libm_alias_double.
4852         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4853         <libm-alias-double.h>.
4854         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4855         libm_alias_double.
4856         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4857         <libm-alias-double.h>.
4858         (getpayload): Define using libm_alias_double.
4859         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4860         <libm-alias-double.h>.
4861         (llrint): Define using libm_alias_double.
4862         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4863         (lrint): Define using libm_alias_double.
4864         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4865         <libm-alias-double.h>.
4866         (nextup): Define using libm_alias_double.
4867         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4868         <libm-alias-double.h>.
4869         (roundeven): Define using libm_alias_double.
4870         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4871         libm_alias_double.
4872         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4873         <libm-alias-double.h>.
4874         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4875         using libm_alias_double.
4876         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4877         (cos): Define using libm_alias_double.
4878         (sin): Likewise.
4879         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4880         <libm-alias-double.h>.
4881         (sincos): Define using libm_alias_double.
4882         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4883         (tanh): Define using libm_alias_double.
4884         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4885         <libm-alias-double.h>.
4886         (totalorder): Define using libm_alias_double.
4887         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4888         <libm-alias-double.h>.
4889         (totalordermag): Define using libm_alias_double.
4890         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4891         libm_alias_double.
4892         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4893         libm_alias_double.
4894         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4895         <libm-alias-double.h>.
4896         (getpayload): Define using libm_alias_double.
4897         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4898         <libm-alias-double.h>.
4899         (roundeven): Define using libm_alias_double.
4900         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4901         <libm-alias-double.h>.
4902         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4903         <libm-alias-double.h>.
4904         (totalorder): Define using libm_alias_double.
4905         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4906         <libm-alias-double.h>.
4907         (totalordermag): Define using libm_alias_double.
4908         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4909         libc compat symbol here.
4910         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4911         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4912         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4913         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4914         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4915         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4916         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4917         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4918         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4919         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4921 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4923         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4924         _dl_relocate_static_pie instead of _dl_start to compute load
4925         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4926         static executable.
4928 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4930         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4931         _DYNAMIC is undefined for static executable.
4933 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4935         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4937 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4939         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4941 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4943         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4944         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4945         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4946         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4947         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4948         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4949         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4950         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4951         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4952         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4953         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4954         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4955         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4956         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4957         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4958         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4959         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4961 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4963         * math/bits/cmathcalls.h (cimag): Remove inline.
4964         (creal): Remove inline.
4965         (conj): Remove inline.
4967 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4969         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4970         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4971         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4972         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4973         (issignalingf_inline): Likewise.
4974         (POWF_LOG2_TABLE_BITS): Likewise.
4975         (POWF_LOG2_POLY_ORDER): Likewise.
4976         (POWF_SCALE_BITS): Likewise.
4977         (POWF_SCALE): Likewise.
4978         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4979         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4980         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4982 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4984         * math/Makefile (type-float-routines): Add e_log2f_data.
4985         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4986         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4987         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4988         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4989         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4990         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4991         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4993 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4995         * math/Makefile (type-float-routines): Add e_logf_data.
4996         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4997         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4998         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4999         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
5000         * sysdeps/i386/fpu/e_logf_data.c: New file.
5001         * sysdeps/ia64/fpu/e_logf_data.c: New file.
5002         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
5004 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
5006         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
5007         undefined _DYNAMIC in PIE libc.a.
5008         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
5009         Likewse.
5011 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5013         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
5014         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
5015         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
5016         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
5017         (__signbit): Remove.
5018         (__signbitl): Remove.
5019         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
5020         (__signbit): Remove.
5021         (__signbitl): Remove.
5022         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
5023         (__signbit): Remove.
5024         (__signbitl): Remove.
5025         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
5026         (__signbit): Remove.
5027         (__signbitl): Remove.
5028         * sysdeps/tile/bits/mathinline.h: Delete file.
5029         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
5030         (__signbit): Remove.
5031         (__signbitl): Remove.
5033 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
5035         * math/math.h: Improve handling of C99 isgreater macros.
5036         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
5037         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
5038         * sysdeps/powerpc/bits/mathinline.h: Likewise.
5039         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5040         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
5042 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5044         * sysdeps/aarch64/libm-test-ulps: Update.
5046 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
5048         [BZ #22225]
5049         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5050         math_opt_barrier on argument when doing arithmetic on it.
5051         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5052         Likewise.  Use math_force_eval not math_opt_barrier after
5053         arithmetic.
5054         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
5055         math_opt_barrier on argument when doing arithmetic on it.
5056         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5057         Likewise.
5059 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
5061         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
5062         libc_hidden_def.
5063         (__freeifaddrs): Likewise.
5065 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5067         * include/dirent.h (__dirfd): New declaration.
5068         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
5069         alias.
5070         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
5071         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
5072         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
5073         * include/unistd.h (__revoke): New declaration.
5074         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
5075         alias.
5076         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5077         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5078         revoke.
5079         * include/dirent.h (__seekdir): New declaration.
5080         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5081         redefine as weak alias.
5082         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5083         of seekdir.
5084         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5085         and use libc_hidden_def on them.
5086         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5087         them.
5088         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5089         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5090         instead of getifaddrs and freeifaddrs.
5092 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5094         [BZ #18822]
5095         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5096         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5097         (__dso_handle): Remove declaration.
5098         * dlfcn/tstatexit.c (__dso_handle): Removed.
5099         (main): Don't check __dso_handle.
5100         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5101         (main): Don't check __dso_handle.
5102         * include/dso_handle.h: New file.
5103         * malloc/mtrace.c: Include <dso_handle.h>.
5104         (mtrace): Pass __dso_handle directly.
5105         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5106         (__dso_handle): Remove declaration.
5107         (__pthread_atfork): Pass __dso_handle directly.
5108         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5109         (__dso_handle): Removed.
5110         * posix/wordexp-test.c: Include <dso_handle.h>.
5111         (__dso_handle): Remove declaration.
5112         (__app_register_atfork): Pass __dso_handle directly.
5113         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5114         (__dso_handle): Remove declaration.
5115         (at_quick_exit): Pass __dso_handle directly.
5116         * stdlib/atexit.c: Include <dso_handle.h>.
5117         (__dso_handle): Remove declaration.
5118         (atexit): Pass __dso_handle directly.
5119         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5120         (__dso_handle): Removed.
5122 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5124         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5125         using VDSO.
5127 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5129         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5130         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5131         values to correct default value for given type.
5133 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5135         [BZ #22101]
5136         * elf/Makefile (tests): Add tst-debug1.
5137         ($(objpfx)tst-debug1): New.
5138         ($(objpfx)tst-debug1.out): Likewise.
5139         ($(objpfx)tst-debug1mod1.so): Likewise.
5140         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5141         with p_filesz == 0.
5142         * elf/tst-debug1.c: New file.
5144 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5146         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5147         Define using __ifunc.
5149 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5151         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5152         exp2f() values.
5154 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5156         [BZ #22156]
5157         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5159 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5161         * resolv/Makefile (tests-internal): Fix typo in comment.
5163 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5165         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5167 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5169         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5170         Use an union instead of a max_align_t array for __space,
5171         so that __space is the same size on all platforms.
5172         * malloc/scratch_buffer_grow_preserve.c
5173         (__libc_scratch_buffer_grow_preserve): Likewise.
5175         [BZ #22183]
5176         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5177         version to 2.
5178         * posix/Makefile (routines): Add glob-lstat-compat and
5179         glob64-lstat-compat.
5180         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5181         * posix/glob-lstat-compat.c: New file.
5182         * posix/glob64-lstat-compat.c: Likewise.
5183         * posix/tst-glob_lstat_compat.c: Likewise.
5184         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5185         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5186         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5187         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5188         Likewise.
5189         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5190         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5191         * posix/glob.c (glob_lstat): New function.
5192         (glob): Rename to __glob and add versioned symbol to 2.27.
5193         (glob_in_dir): Use glob_lstat.
5194         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5195         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5196         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5197         2.27.
5198         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5199         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5200         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5201         gl_lstat on glob call.
5202         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5203         and glob64 symbols.
5204         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5205         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5206         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5207         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5208         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5209         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5210         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5211         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5212         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5213         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5214         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5215         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5217         Likewise.
5218         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5220         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5221         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5222         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5223         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5224         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5225         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5226         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5227         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5228         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5229         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5231 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5233         * configure.ac (AS): Require binutils 2.25 or later.
5234         * configure: Regenerated.
5236 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5238         [BZ #22207]
5239         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5240         VM size.
5242 2017-09-25  DJ Delorie  <dj@redhat.com>
5244         [BZ #22161]
5245         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5246         resetting timeout.
5248 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5250         * sysdeps/ieee754/dbl-64/sincos32.h
5251         [SINCCOS32_H]: Remove define.
5252         [SINCOS32_H]: Define.
5254 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5256         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5257         (exp2f): Likewise.
5258         * math/w_exp2f.c: New file.
5259         * math/w_expf.c: New file.
5260         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5261         * math/w_expf_compat.c (__expf_compat): Likewise.
5262         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5263         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5264         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5265         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5266         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5267         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5268         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5269         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5270         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5271         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5272         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5273         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5274         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5275         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5277         Likewise.
5278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5279         Likewise.
5280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5281         Likewise.
5282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5283         Likewise.
5284         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5285         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5286         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5287         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5288         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5289         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5290         Likewise.
5291         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5292         Likewise.
5293         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5295         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5297 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5299         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5300         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5301         (roundtoint, converttoint): Likewise.
5302         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5303         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5304         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5305         * sysdeps/ieee754/flt-32/math_config.h: New file.
5306         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5307         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5308         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5309         * sysdeps/i386/fpu/math_errf.c: New file.
5310         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5311         * sysdeps/ia64/fpu/math_errf.c: New file.
5312         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5313         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5315 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5317         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5318         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5319         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5320         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5321         to make sure that these symbols are defined.
5322         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5323         of <limits.h>
5324         (__need_NULL): Do not define.
5325         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5326         alignment.
5327         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5328         CMGROUP_MAX, cmsgcred): Do not define.
5329         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5330         NULL.
5331         * bits/socket.h: Likewise.
5332         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5333         __gettimeofday instead of gettimeofday.
5334         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5335         instead of settimeofday.
5337 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5339         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5340         (asinhf): Define using libm_alias_float.
5341         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5342         (atanf): Define using libm_alias_float.
5343         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5344         (cbrtf): Define using libm_alias_float.
5345         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5346         (ceilf): Define using libm_alias_float.
5347         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5348         <libm-alias-float.h>.
5349         (copysignf): Define using libm_alias_float.
5350         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5351         (cosf): Define using libm_alias_float.
5352         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5353         (erff): Define using libm_alias_float.
5354         (erfcf): Likewise.
5355         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5356         (expm1f): Define using libm_alias_float.
5357         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5358         (fabsf): Define using libm_alias_float.
5359         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5360         (floorf): Define using libm_alias_float.
5361         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5362         (frexpf): Define using libm_alias_float.
5363         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5364         libm_alias_float.
5365         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5366         <libm-alias-float.h>.
5367         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5368         libm_alias_float.
5369         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5370         <libm-alias-float.h>.
5371         (getpayloadf): Define using libm_alias_float.
5372         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5373         <libm-alias-float.h>.
5374         (llrintf): Define using libm_alias_float.
5375         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5376         <libm-alias-float.h>.
5377         (llroundf): Define using libm_alias_float.
5378         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5379         (logbf): Define using libm_alias_float.
5380         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5381         (lrintf): Define using libm_alias_float.
5382         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5383         (lroundf): Define using libm_alias_float.
5384         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5385         (modff): Define using libm_alias_float.
5386         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5387         <libm-alias-float.h>.
5388         (nearbyintf): Define using libm_alias_float.
5389         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5390         <libm-alias-float.h>.
5391         (nextafterf): Define using libm_alias_float.
5392         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5393         <libm-alias-float.h>.
5394         (nextupf): Define using libm_alias_float.
5395         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5396         <libm-alias-float.h>.
5397         (remquof): Define using libm_alias_float.
5398         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5399         (rintf): Define using libm_alias_float.
5400         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5401         <libm-alias-float.h>.
5402         (roundevenf): Define using libm_alias_float.
5403         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5404         (roundf): Define using libm_alias_float.
5405         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5406         using libm_alias_float.
5407         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5408         <libm-alias-float.h>.
5409         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5410         Define using libm_alias_float.
5411         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5412         <libm-alias-float.h>.
5413         (sincosf): Define using libm_alias_float.
5414         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5415         (sinf): Define using libm_alias_float.
5416         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5417         (tanf): Define using libm_alias_float.
5418         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5419         (tanhf): Define using libm_alias_float.
5420         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5421         <libm-alias-float.h>.
5422         (totalorderf): Define using libm_alias_float.
5423         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5424         <libm-alias-float.h>.
5425         (totalordermagf): Define using libm_alias_float.
5426         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5427         (truncf): Define using libm_alias_float.
5428         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5429         libm_alias_float.
5430         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5431         libm_alias_float.
5433 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5435         [BZ #22146]
5436         math/math.h: Let fpclassify use the builtin in C++ mode, even
5437         when optimazing for size.
5439 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5441         * csu/Makefile (generated): Do not add version-info.h.
5442         (before-compile): Likewise.
5443         (all-Banner-files): Remove variable.
5444         ($(objpfx)version-info.h): Remove rule.
5445         * csu/version.c (banner): Do not include "version-info.h".
5446         * libidn/Banner: Remove.
5447         * manual/contrib.texi (Simon Josefsson): New entry.
5449 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5451         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5452         Remove conditionals on LDBL_MANT_DIG.
5453         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5454         (__ieee754_lgammal_r): Likewise.
5456 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5458         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5459         _Float128 and L().
5460         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5461         _Float128 and L(). Replace _Float128 with long double and L(x)
5462         with xL, throughout the file.
5463         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5464         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5465         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5466         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5468 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5470         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5471         sysdeps/ieee754/ldbl-128ibm.
5472         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5473         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5474         of including it.  Keep _Float128 and L() intact.  These will be
5475         reviewed by a separate patch.
5476         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5477         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5478         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5479         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5481 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5484         (__finitef128): Define to __redirect___finitef128.
5485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5486         (__isinff128): Define to __redirect___isinff128.
5487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5488         (__isnanf128): Define to __redirect___isnanf128.
5490 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5492         * sysdeps/powerpc/powerpc64le/Makefile
5493         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5494         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5496 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5497             Carlos O'Donell  <carlos@redhat.com>
5499         [BZ #22180]
5500         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5501         * stdlib/test-dlclose-exit-race.c: New file.
5502         * stdlib/test-dlclose-exit-race-helper.c: New file.
5503         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5505 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5507         * crypt/Banner: Remove file.
5508         * nptl/Banner: Likewise.
5509         * resolv/Banner: Likewise.
5510         * soft-fp/Banner: Likewise.
5511         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5512         ($(objpfx)version.d): Remove dependency on banner.h.
5513         ($(objpfx)version.os): Likewise.
5514         * nptl/version.c (banner): Do not include banner.h.
5515         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5516         Jelinek and BIND code.
5518 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5519             Carlos O'Donell  <carlos@redhat.com>
5521         * support/xdlfcn.h: New file.
5522         * support/xdlfcn.c: New file.
5523         * support/Makefile (libsupport-routines): Add xdlfcn.
5524         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5526 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5528         [BZ #20142]
5529         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5530         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5531         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5532         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5533         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5534         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5535         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5536         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5538 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5539             Ricky Zhou  <rickyz@google.com>
5540             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5542         [BZ #14333]
5543         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5544         Remove atomics.
5545         (__new_exitfn): Fail registration when we finished at_exit processing.
5546         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5547         * stdlib/on_exit.c (__on_exit): Likewise.
5548         * stdlib/exit.c (__exit_funcs_done): New variable.
5549         (__run_exit_handlers): Use __exit_funcs_lock.
5550         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5551         declarations.
5552         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5553         (test-cxa_atexit-race, test-on_exit-race): New tests.
5554         * stdlib/test-atexit-race-common.c: New file.
5555         * stdlib/test-atexit-race.c: New file.
5556         * stdlib/test-at_quick_exit-race.c: New file.
5557         * stdlib/test-cxa_atexit-race.c: New file.
5558         * stdlib/test-on_exit-race.c: New file.
5560 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5562         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5563         * benchtests/exp2f-inputs: Copy of expf-inputs.
5564         * benchtests/log2f-inputs: Copy of logf-inputs.
5566 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5568         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5569         Explicitly take address of first element of array arguments in
5570         call to INLINE_SYSCALL.
5572 2017-09-19  Andreas Schwab  <schwab@suse.de>
5574         [BZ #22134]
5575         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5576         execveat first.
5577         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5578         unimplemented.
5579         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5580         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5581         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5582         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5583         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5584         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5585         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5586         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5587         * posix/Makefile (tests): Add tst-fexecve.
5588         * posix/tst-fexecve.c: New file.
5590 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5592         * benchtests/Makefile: Add logf benchmark.
5593         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5595 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5597         * benchtests/Makefile: Add expf benchmark.
5598         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5600 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5602         * csu/Makefile: Add -funwind-tables to libc-start.c.
5603         * debug/Makefile: Add -funwind-tables to backtrace.c.
5604         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5605         * sysdeps/arm/Makefile: Likewise.
5606         * sysdeps/i386/Makefile: Likewise.
5607         * sysdeps/m68k/Makefile: Likewise.
5608         * sysdeps/mips/Makefile: Likewise.
5609         * sysdeps/nios2/Makefile: Likewise.
5610         * sysdeps/sh/Makefile: Likewise.
5611         * sysdeps/sparc/Makefile: Likewise.
5613 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5615         * benchtests/Makefile (bench-math): Add trunc and truncf.
5616         (CFLAGS-bench-trunc.c): New variable.
5617         (CFLAGS-bench-truncf.c): Likewise.
5618         * benchtests/trunc-inputs: New file.
5619         * benchtests/truncf-inputs: Likewise.
5621 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5623         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5625 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5627         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5628         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5629         redefine.
5630         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5631         (exp10l): Define as weak alias.
5632         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5633         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5634         and redefine.
5635         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5636         (remainderl): Define as weak alias.
5638         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5639         (fmal): Define using libm_alias_ldouble.
5640         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5641         (acoshl): Define using libm_alias_ldouble.
5642         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5643         (acosl): Define using libm_alias_ldouble.
5644         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5645         (asinl): Define using libm_alias_ldouble.
5646         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5647         (atan2l): Define using libm_alias_ldouble.
5648         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5649         (atanhl): Define using libm_alias_ldouble.
5650         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5651         (coshl): Define using libm_alias_ldouble.
5652         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5653         (exp10l): Define using libm_alias_ldouble.
5654         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5655         (exp2l): Define using libm_alias_ldouble.
5656         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5657         (expl): Define using libm_alias_ldouble.
5658         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5659         (fmodl): Define using libm_alias_ldouble.
5660         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5661         (hypotl): Define using libm_alias_ldouble.
5662         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5663         (j0l): Define using libm_alias_ldouble.
5664         (y0l): Likewise.
5665         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5666         (j1l): Define using libm_alias_ldouble.
5667         (y1l): Likewise.
5668         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5669         (jnl): Define using libm_alias_ldouble.
5670         (ynl): Likewise.
5671         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5672         (log10l): Define using libm_alias_ldouble.
5673         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5674         (log2l): Define using libm_alias_ldouble.
5675         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5676         (logl): Define using libm_alias_ldouble.
5677         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5678         (powl): Define using libm_alias_ldouble.
5679         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5680         (remainderl): Define using libm_alias_ldouble.
5681         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5682         (sinhl): Define using libm_alias_ldouble.
5683         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5684         (sqrtl): Define using libm_alias_ldouble.
5685         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5686         (tgammal): Define using libm_alias_ldouble.
5687         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5688         (exp10l): Do not use long_double_symbol here.
5689         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5690         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5691         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5692         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5693         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5694         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5695         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5696         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5697         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5698         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5699         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5700         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5701         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5702         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5703         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5704         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5705         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5706         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5707         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5708         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5709         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5710         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5712 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5714         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5715         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5717 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5719         * io/read.c (read): Add libc_hidden_weak.
5720         * sysdeps/mach/hurd/read.c (read): Likewise.
5721         * io/write.c (write): Likewise.
5722         * sysdeps/mach/hurd/write.c (write): Likewise.
5723         * io/pread64.c (__pread64): Likewise.
5724         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5725         * posix/pread64.c (__pread64): Add libc_hidden_def.
5727 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5729         * benchtests/scripts/compare_strings.py: New option -g.
5730         (draw_graph): Print a message that a graph is being generated.
5731         (process_results): Generate graph only if -g is passed.
5732         (main): Process option -g.
5734         * benchtests/scripts/compare_strings.py (process_results):
5735         Better spacing for output.
5737         * benchtests/scripts/compare_strings.py: Use argparse.
5738         * benchtests/README: Document existence of compare_strings.py.
5740 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5742         * math/s_fma.c: Include <libm-alias-double.h>.
5743         (fma): Define using libm_alias_double.
5744         * math/s_nextafter.c: Include <libm-alias-double.h>.
5745         (nextafter): Define using libm_alias_double.
5746         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5747         (acos): Define using libm_alias_double.
5748         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5749         (aocsh): Define using libm_alias_double.
5750         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5751         (asin): Define using libm_alias_double.
5752         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5753         (atan2): Define using libm_alias_double.
5754         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5755         (atanh): Define using libm_alias_double.
5756         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5757         (cosh): Define using libm_alias_double.
5758         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5759         (exp10): Define using libm_alias_double.
5760         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5761         (exp2): Define using libm_alias_double.
5762         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5763         (exp): Define using libm_alias_double.
5764         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5765         (fmod): Define using libm_alias_double.
5766         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5767         (hypot): Define using libm_alias_double.
5768         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5769         (j0): Define using libm_alias_double.
5770         (y0): Likewise.
5771         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5772         (j1): Define using libm_alias_double.
5773         (y1): Likewise.
5774         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5775         (jn): Define using libm_alias_double.
5776         (yn): Likewise.
5777         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5778         (log10): Define using libm_alias_double.
5779         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5780         (log2): Define using libm_alias_double.
5781         * math/w_log_compat.c: Include <libm-alias-double.h>.
5782         (log): Define using libm_alias_double.
5783         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5784         (pow): Define using libm_alias_double.
5785         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5786         (remainder): Define using libm_alias_double.
5787         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5788         (sinh): Define using libm_alias_double.
5789         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5790         (sqrt): Define using libm_alias_double.
5791         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5792         (tgamma): Define using libm_alias_double.
5793         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5794         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5795         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5796         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5797         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5798         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5799         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5800         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5801         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5802         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5803         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5804         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5805         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5806         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5807         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5808         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5809         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5810         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5811         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5812         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5813         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5814         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5815         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5816         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5817         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5819         * math/e_acoshl.c: Remove.
5820         * math/e_acosl.c: Likewise.
5821         * math/e_asinl.c: Likewise.
5822         * math/e_atan2l.c: Likewise.
5823         * math/e_atanhl.c: Likewise.
5824         * math/e_coshl.c: Likewise.
5825         * math/e_expl.c: Likewise.
5826         * math/e_fmodl.c: Likewise.
5827         * math/e_gammal_r.c: Likewise.
5828         * math/e_hypotl.c: Likewise.
5829         * math/e_j0l.c: Likewise.
5830         * math/e_j1l.c: Likewise.
5831         * math/e_jnl.c: Likewise.
5832         * math/e_lgammal_r.c: Likewise.
5833         * math/e_log10l.c: Likewise.
5834         * math/e_log2l.c: Likewise.
5835         * math/e_logl.c: Likewise.
5836         * math/e_powl.c: Likewise.
5837         * math/e_rem_pio2l.c: Likewise.
5838         * math/e_sinhl.c: Likewise.
5839         * math/e_sqrtf128.c: Likewise.
5840         * math/e_sqrtl.c: Likewise.
5841         * math/k_cosl.c: Likewise.
5842         * math/k_sinl.c: Likewise.
5843         * math/k_tanl.c: Likewise.
5844         * math/s_asinhl.c: Likewise.
5845         * math/s_atanl.c: Likewise.
5846         * math/s_cbrtl.c: Likewise.
5847         * math/s_erfl.c: Likewise.
5848         * math/s_expm1l.c: Likewise.
5849         * math/s_log1pl.c: Likewise.
5850         * math/s_tanhl.c: Likewise.
5852 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5854         [BZ #21745]
5855         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5856         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5857         previous contents of sysdep_routines, but re-sorted..
5858         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5859         sysdep_calls.
5860         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5861         defined in sysdep_calls and replace by the respective m_* names.
5862         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5863         (compat_symbol): Undefine to avoid duplicated compat symbols in
5864         libc.
5866 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5868         * math/s_fmaf.c: Include <libm-alias-float.h>.
5869         (fmaf): Define using libm_alias_float.
5870         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5871         (acosf): Define using libm_alias_float.
5872         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5873         (acoshf): Define using libm_alias_float.
5874         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5875         (asinf): Define using libm_alias_float.
5876         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5877         (atan2f): Define using libm_alias_float.
5878         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5879         (atanhf): Define using libm_alias_float.
5880         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5881         (coshf): Define using libm_alias_float.
5882         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5883         (exp10f): Define using libm_alias_float.
5884         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5885         (fmodf): Define using libm_alias_float.
5886         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5887         (hypotf): Define using libm_alias_float.
5888         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5889         (j0f): Define using libm_alias_float.
5890         (y0f): Likewise.
5891         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5892         (j1f): Define using libm_alias_float.
5893         (y1f): Likewise.
5894         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5895         (jnf): Define using libm_alias_float.
5896         (ynf): Likewise.
5897         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5898         (log10f): Define using libm_alias_float.
5899         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5900         (log2f): Define using libm_alias_float.
5901         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5902         (logf): Define using libm_alias_float.
5903         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5904         (powf): Define using libm_alias_float.
5905         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5906         (remainderf): Define using libm_alias_float.
5907         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5908         (sinhf): Define using libm_alias_float.
5909         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5910         (sqrtf): Define using libm_alias_float.
5911         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5912         (tgammaf): Define using libm_alias_float.
5914 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5916         * include/math.h (roundeven): Change hidden_proto call to
5917         __roundeven.
5918         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5919         alias.
5920         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5921         (y0): Rename to __y0 and define as weak alias.
5922         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5923         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5924         alias.
5925         (y0f): Rename to __y0f and define as weak alias.
5926         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5927         alias.
5928         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5929         (y1): Rename to __y1 and define as weak alias.
5930         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5931         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5932         alias.
5933         (y1f): Rename to __y1f and define as weak alias.
5934         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5935         alias.
5936         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5937         (yn): Rename to __yn and define as weak alias.
5938         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5939         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5940         alias.
5941         (ynf): Rename to __ynf and define as weak alias.
5942         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5943         (fromfp): Define as weak alias.
5944         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5945         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5946         (fromfpx): Define as weak alias.
5947         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5948         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5949         __getpayload and define as weak alias.
5950         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5951         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5952         __roundeven and define as weak alias.
5953         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5954         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5955         __setpayload.
5956         (setpayload): Define as weak alias.
5957         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5958         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5959         __setpayloadsig.
5960         (setpayloadsig): Define as weak alias.
5961         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5962         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5963         __totalorder and define as weak alias.
5964         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5965         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5966         to __totalordermag and define as weak alias.
5967         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5968         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5969         (ufromfp): Define as weak alias.
5970         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5971         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5972         __ufromfpx.
5973         (ufromfpx): Define as weak alias.
5974         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5975         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5976         Rename to __getpayload and define as weak alias.
5977         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5978         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5979         Rename to __roundeven and define as weak alias.
5980         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5981         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5982         Rename to __totalorder and define as weak alias.
5983         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5984         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5985         (totalordermag): Rename to __totalordermag and define as weak
5986         alias.
5987         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5988         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5989         macro.
5990         (__roundevenl): Likewise.
5991         (__totalorderl): Likewise.
5992         (__totalordermagl): Likewise
5993         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5994         __fromfpf128.
5995         (fromfpf128): Define as weak alias.
5996         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5997         __fromfpxf128.
5998         (fromfpxf128): Define as weak alias.
5999         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
6000         __setpayloadf128.
6001         (setpayloadf128): Define as weak alias.
6002         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
6003         __setpayloadsigf128.
6004         (setpayloadsigf128): Define as weak alias.
6005         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
6006         __ufromfpf128.
6007         (ufromfpf128): Define as weak alias.
6008         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
6009         __ufromfpxf128.
6010         (ufromfpxf128): Define as weak alias.
6011         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
6012         (fromfpf): Define as weak alias.
6013         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
6014         __fromfpxf.
6015         (fromfpxf): Define as weak alias.
6016         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
6017         __getpayloadf and define as weak alias.
6018         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
6019         __roundevenf and define as weak alias.
6020         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
6021         __setpayloadf.
6022         (setpayloadf): Define as weak alias.
6023         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
6024         __setpayloadsigf.
6025         (setpayloadsigf): Define as weak alias.
6026         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
6027         __totalorderf and define as weak alias.
6028         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
6029         Rename to __totalordermagf and define as weak alias.
6030         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
6031         __ufromfpf.
6032         (ufromfpf): Define as weak alias.
6033         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
6034         __ufromfpxf.
6035         (ufromfpxf): Define as weak alias.
6036         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
6037         __fromfpl.
6038         (fromfpl): Define as weak alias.
6039         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
6040         __fromfpxl.
6041         (fromfpxl): Define as weak alias.
6042         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
6043         to __getpayloadl and define as weak alias.
6044         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
6045         __roundevenl and define as weak alias.
6046         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
6047         __setpayloadl.
6048         (setpayloadl): Define as weak alias.
6049         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
6050         __setpayloadsigl.
6051         (setpayloadsigl): Define as weak alias.
6052         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
6053         to __totalorderl and define as weak alias.
6054         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
6055         Rename to __totalordermagl and define as weak alias.
6056         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
6057         __ufromfpl.
6058         (ufromfpl): Define as weak alias.
6059         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
6060         __ufromfpxl.
6061         (ufromfpxl): Define as weak alias.
6062         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
6063         __fromfpl.
6064         (fromfpl): Define as weak alias.
6065         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
6066         __fromfpxl.
6067         (fromfpxl): Define as weak alias.
6068         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
6069         Rename to __getpayloadl and define as weak alias.
6070         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
6071         to __roundevenl and define as weak alias.  Call __roundeven
6072         instead of roundeven.
6073         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
6074         __setpayloadl.
6075         (setpayloadl): Define as weak alias.
6076         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6077         __setpayloadsigl.
6078         (setpayloadsigl): Define as weak alias.
6079         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6080         Rename to __totalorderl and define as weak alias.
6081         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6082         Rename to __totalordermagl and define as weak alias.
6083         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6084         __ufromfpl.
6085         (ufromfpl): Define as weak alias.
6086         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6087         __ufromfpxl.
6088         (ufromfpxl): Define as weak alias.
6089         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6090         __fromfpl.
6091         (fromfpl): Define as weak alias.
6092         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6093         __fromfpxl.
6094         (fromfpxl): Define as weak alias.
6095         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6096         __getpayloadl and define as weak alias.
6097         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6098         __roundevenl and define as weak alias.
6099         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6100         __setpayloadl.
6101         (setpayloadl): Define as weak alias.
6102         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6103         __setpayloadsigl.
6104         (setpayloadsigl): Define as weak alias.
6105         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6106         __totalorderl and define as weak alias.
6107         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6108         Rename to __totalordermagl and define as weak alias.
6109         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6110         __ufromfpl.
6111         (ufromfpl): Define as weak alias.
6112         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6113         __ufromfpxl.
6114         (ufromfpxl): Define as weak alias.
6116 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6118         * benchtests/bench-string.h (realloc_bufs): New function.
6119         (test_init): Call it.
6120         * benchtests/bench-memset-large.c (do_test): Likewise.
6121         * benchtests/bench-memset.c (do_test): Likewise.
6123         * benchtests/bench-memset-large.c: Print output in JSON
6124         format.
6125         * benchtests/bench-memset.c: Likewise.
6127 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6129         [BZ #21084]
6130         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6131         * iconvdata/Makefile: Add IBM858.
6132         * iconvdata/gconv-modules: Likewise.
6133         * iconvdata/tst-tables.sh: Likewise.
6134         * iconvdata/ibm858.c: New file.
6135         * localedata/charmaps/IBM858: Likewise.
6137 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6139         [BZ #22023]
6140         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6141         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6143 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6145         [BZ #22112]
6146         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6147         and add tel_int_fmt.
6149 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6151         * sysdeps/generic/libm-alias-float128.h: New file.
6152         * sysdeps/generic/math-type-macros-float128.h: Include
6153         <libm-alias-float128.h>.
6154         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6156 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6158         * sysdeps/generic/libm-alias-ldouble.h: New file.
6159         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6160         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6161         * sysdeps/generic/math-type-macros-ldouble.h: Include
6162         <libm-alias-ldouble.h>.
6163         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6164         libm_alias_ldouble.
6166 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6168         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6169         * math/w_exp_compat.c: ... here.
6170         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6171         * math/w_expf_compat.c: ... here.
6172         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6173         * math/w_expl_compat.c: ... here.
6174         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6175         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6176         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6177         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6179 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6181         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6182         redefine.
6183         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6184         macro.
6185         (ldexpl): Only define as compat symbol for libc, not libm.
6186         (scalbnl): Define as compat symbol for libc here.
6187         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6188         define for [IS_IN (libc)].
6189         (__ldexpl_2): Remove alias.
6190         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6191         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6192         name in long_double_symbol call.
6193         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6194         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6195         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6196         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6197         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6198         Remove macro.
6199         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6200         Define as compat symbol.
6202 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6204         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6205         * sysdeps/unix/sysv/linux/alpha/Makefile
6206         [$(subdir) = csu] (sysdep_routines): Remove rule.
6208 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6210         * sysdeps/generic/libm-alias-double.h: New file.
6211         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6212         * sysdeps/generic/math-type-macros-double.h: Include
6213         <libm-alias-double.h>.
6214         [declare_mgen_alias] (declare_mgen_alias): Define to use
6215         libm_alias_double.
6216         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6217         (M_LIBM_NEED_COMPAT): Remove macro.
6218         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6219         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6220         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6221         code.
6222         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6223         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6224         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6225         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6226         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6227         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6228         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6229         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6230         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6231         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6232         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6233         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6234         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6235         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6236         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6237         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6238         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6239         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6240         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6241         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6242         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6243         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6244         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6245         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6246         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6247         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6248         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6249         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6250         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6251         macro.
6252         (declare_mgen_alias): New macro.
6253         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6254         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6256         (M_LIBM_NEED_COMPAT): Remove macro.
6257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6258         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6259         <first-versions.h>.
6260         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6261         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6263 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6265         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6266         (declare_mgen_alias_2): Remove.
6267         * sysdeps/generic/math-type-macros-double.h
6268         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6269         Likewise.
6270         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6271         alias.
6272         (ldexp): Define with declare_mgen_alias.
6273         (scalbn): Likewise.
6275 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6277         * grp/initgroups.c: Include config.h.
6278         (DEFAULT_CONFIG): New macro.
6279         (internal_getgrouplist): Use DEFAULT_CONFIG.
6280         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6281         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6282         (DEFAULT_DEFCONFIG): New macro.
6283         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6284         * nss/grp-lookup.c: Include config.h
6285         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6286         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6287         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6288         * manual/nss.texi: Update default values section.
6290 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6292         [BZ #21967]
6293         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6294         New.
6295         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6296         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6297         Handle MathVec_Prefer_No_AVX512.
6298         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6299         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6300         is set.
6302 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6304         * posix/sched_primax.c (__sched_get_priority_max): Add
6305         libc_hidden_def.
6306         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6307         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6308         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6309         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6310         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6311         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6312         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6313         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6314         Add aliases.
6316 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6318         * sysdeps/generic/libm-alias-float.h: New file.
6319         * sysdeps/generic/math-type-macros-float.h: Include
6320         <libm-alias-float.h>.
6321         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6323 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6325         [BZ #22093]
6326         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6327         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6328         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6329         (HWCAP_IMPORTANT): Likewise.
6330         (HWCAP_X86_64): New enum.
6331         (HWCAP_X86_AVX512_1): Updated.
6332         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6333         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6334         (modules-names): Add x86_64/tst-x86_64mod-1.
6335         (LDFLAGS-tst-x86_64mod-1.so): New.
6336         ($(objpfx)tst-x86_64-1): Likewise.
6337         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6338         (tst-x86_64-1-clean): Likewise.
6339         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6340         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6342 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6344         * po/sv.po: Update translations.
6345         * po/fr.po: Likewise.
6347 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6349         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6350         seconds.
6351         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6352         seconds.
6353         * elf/rtld-Rules: Fix $(error) use.
6355 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6357         [BZ #14925]
6358         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6359         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6360         * localedata/locales/bn_BD: “Bengali” was still used in some
6361         comments. Change it to “Bangla”.
6363 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6365         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6367 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6369         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6370         thunderx2t99p1 to list of cpu names.
6371         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6372         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6374 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6376         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6377         Use strcmp instead of tunable_is_name.
6379 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6381         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6382         (F_GET_RW_HINT): New macro.
6383         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6384         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6385         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6386         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6387         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6388         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6389         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6390         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6391         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6393         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6394         (F_ADD_SEALS): New macro.
6395         [__USE_GNU] (F_GET_SEALS): Likewise.
6396         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6397         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6398         [__USE_GNU] (F_SEAL_GROW): Likewise.
6399         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6401 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6403         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6404         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6405         * posix/glob_internal.h (__glob_pattern_type):
6406         * posix/glob.c (glob):
6407         * posix/glob_pattern_p.c (__glob_pattern_p):
6408         Use them.
6410         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6411         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6412         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6413         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6414         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6416         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6417         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6418         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6419         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6420         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6421         * sysdeps/wordsize-64/glob.c: Likewise.
6422         * sysdeps/wordsize-64/glob64.c: Likewise.
6423         * sysdeps/wordsize-64/globfree.c: Likewise.
6424         * sysdeps/wordsize-64/globfree64.c: Likewise.
6425         * sysdeps/unix/sysv/linux/glob.c: New file.
6426         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6427         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6428         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6429         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6430         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6431         adds !GLOB_NO_OLD_VERSION as an extra condition.
6432         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6433         using relative path instead of absolute one.
6434         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6435         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6436         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6437         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6438         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6439         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6441         [BZ #1062]
6442         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6443         (glob): Use the same scratch buffer for both getlogin_r and
6444         getpwnam_r.  Don’t require preallocation of the login name.  This
6445         simplifies storage allocation, and corrects the handling of
6446         long login names.
6448         [BZ #1062]
6449         * posix/glob.c (glob): Port recent patches to platforms
6450         lacking getpwnam_r.
6451         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6452         returns an error number rather than setting errno.
6454         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6455         instead of GCC extension.
6456         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6457         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6458         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6460         [BZ #866]
6461         [BZ #1062]
6462         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6463         * posix/bug-glob1.c: Remove file.
6464         * posix/tst-glob_symlinks.c: New file.
6465         * posix/glob.c (__lstat64): New macro.
6466         (is_dir): New function.
6467         (glob, glob_in_dir): Match symlinks even if they are dangling.
6468         (link_stat, link_exists_p): Remove.  All uses removed.
6470         [BZ #1062]
6471         [BZ #19971]
6472         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6473         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6474         All uses removed.
6476         [BZ #1062]
6477         CVE-2017-15671
6478         * posix/Makefile (routines): Add globfree, globfree64, and
6479         glob_pattern_p.
6480         * posix/flexmember.h: New file.
6481         * posix/glob_internal.h: Likewise.
6482         * posix/glob_pattern_p.c: Likewise.
6483         * posix/globfree.c: Likewise.
6484         * posix/globfree64.c: Likewise.
6485         * sysdeps/gnu/globfree64.c: Likewise.
6486         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6487         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6488         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6489         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6490         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6491         * sysdeps/wordsize-64/globfree.c: Likewise.
6492         * sysdeps/wordsize-64/globfree64.c: Likewise.
6493         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6494         [NDEBUG): Remove comments.
6495         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6496         (dirent_type): New type.  Use uint_fast8_t not
6497         uint8_t, as C99 does not require uint8_t.
6498         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6499         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6500         unless it is needed; this saves a byte on platforms lacking d_ino.
6501         (readdir_result_type, readdir_result_skip_entry):
6502         New functions, replacing ...
6503         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6504          these functions, which were removed.  This makes the callers
6505         easier to read.  All callers changed.
6506         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6507         (size_add_wrapv, glob_use_alloca): New static functions.
6508         (glob, glob_in_dir): Check for size_t overflow in several places,
6509         and fix some size_t checks that were not quite right.
6510         Remove old code using SHELL since Bash no longer
6511         uses this.
6512         (glob, prefix_array): Separate MS code better.
6513         (glob_in_dir): Remove old Amiga and VMS code.
6514         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6515         separate files.
6516         (glob_in_dir): Do not rely on undefined behavior in accessing
6517         struct members beyond their bounds.  Use a flexible array member
6518         instead
6519         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6520         0/1.  Caller changed.
6521         (glob): Fix memory leaks.
6522         * posix/glob64 (globfree64): Move to separate file.
6523         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6524         (globfree64): Remove hidden alias.
6525         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6526         oldglob.
6527         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6528         separate file.
6529         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6530         define.
6531         Move compat code to separate file.
6532         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6533         separate file.
6535 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6537         * resolv/tst-resolv-qtypes.c (domain): Changed to
6538         "const char domain[] =".
6540 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6542         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6543         version to 3.1.6.
6545         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6546         (TCP_MD5SIG_EXT): Likewise.
6547         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6548         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6549         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6551         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6553 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6555         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6557 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6559         [BZ #22100]
6560         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6562 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6564         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6565         before assuming that the file is empty.  Avoid testing buffer content
6566         when nread == 0.
6568 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6570         [BZ #18858]
6571         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6572         Remove define.
6573         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6574         Likewise.
6575         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6576         Likewise.
6577         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6578         Likewise.
6579         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6580         Likewise.
6581         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6582         Likewise.
6583         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6584         Likewise.
6586 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6588         * malloc/dynarray_emplace_enlarge.c
6589         (__libc_dynarray_emplace_enlarge): Add missing else.
6591 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6593         [BZ #22096]
6594         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6595         case of failure to obtain the global conf object.
6597 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6599         [BZ #22095]
6600         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6601         dynarray allocation failure.
6603 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6605         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6606         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6607         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6608         New functions.
6609         (response): Call them.  Add 'p', '6' flag processing.
6610         (test_reverse): New function.
6611         (test_get2_any): Call it.
6612         (test_no_inet6): Add 'p' test.
6613         (test_inet6): Likewise.
6615 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6617         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6618         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6619         the QNAME.
6620         (test_gai): Adjust query names.  Add additional tests.
6621         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6622         test_get2.  Adjust query names.  Add additional tests.
6623         (test_no_inet6): New function, extracted from threadfunc.
6624         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6625         Add additional tests.
6627 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6629         [BZ #22070]
6630         * localedata/unicode-gen/utf8_gen.py: Set the width for
6631         characters with Prepended_Concatenation_Mark property to 1
6632         * localedata/charmaps/UTF-8: Updated using the improved script.
6634 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6636         [BZ #21750]
6637         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6638         use the range notation for all ranges of neighbouring characters
6639         with the same width.
6641 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6643         * sysdeps/generic/math-type-macros-double.h: Include
6644         <math-svid-compat.h>.
6645         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6646         * sysdeps/generic/math-type-macros-float.h: Include
6647         <math-svid-compat.h>.
6648         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6649         * sysdeps/generic/math-type-macros-ldouble.h: Include
6650         <math-svid-compat.h>.
6651         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6652         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6653         condition.
6654         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6655         * math/w_acosf_compat.c: Likewise.
6656         * math/w_acosh_compat.c: Likewise.
6657         * math/w_acoshf_compat.c: Likewise.
6658         * math/w_acoshl_compat.c: Likewise.
6659         * math/w_acosl_compat.c: Likewise.
6660         * math/w_asin_compat.c: Likewise.
6661         * math/w_asinf_compat.c: Likewise.
6662         * math/w_asinl_compat.c: Likewise.
6663         * math/w_atan2_compat.c: Likewise.
6664         * math/w_atan2f_compat.c: Likewise.
6665         * math/w_atan2l_compat.c: Likewise.
6666         * math/w_atanh_compat.c: Likewise.
6667         * math/w_atanhf_compat.c: Likewise.
6668         * math/w_atanhl_compat.c: Likewise.
6669         * math/w_cosh_compat.c: Likewise.
6670         * math/w_coshf_compat.c: Likewise.
6671         * math/w_coshl_compat.c: Likewise.
6672         * math/w_exp10_compat.c: Likewise.
6673         * math/w_exp10f_compat.c: Likewise.
6674         * math/w_exp10l_compat.c: Likewise.
6675         * math/w_exp2_compat.c: Likewise.
6676         * math/w_exp2f_compat.c: Likewise.
6677         * math/w_exp2l_compat.c: Likewise.
6678         * math/w_fmod_compat.c: Likewise.
6679         * math/w_fmodf_compat.c: Likewise.
6680         * math/w_fmodl_compat.c: Likewise.
6681         * math/w_hypot_compat.c: Likewise.
6682         * math/w_hypotf_compat.c: Likewise.
6683         * math/w_hypotl_compat.c: Likewise.
6684         * math/w_j0_compat.c: Likewise.
6685         * math/w_j0f_compat.c: Likewise.
6686         * math/w_j0l_compat.c: Likewise.
6687         * math/w_j1_compat.c: Likewise.
6688         * math/w_j1f_compat.c: Likewise.
6689         * math/w_j1l_compat.c: Likewise.
6690         * math/w_jn_compat.c: Likewise.
6691         * math/w_jnf_compat.c: Likewise.
6692         * math/w_jnl_compat.c: Likewise.
6693         * math/w_lgamma_r_compat.c: Likewise.
6694         * math/w_lgammaf_r_compat.c: Likewise.
6695         * math/w_lgammal_r_compat.c: Likewise.
6696         * math/w_log10_compat.c: Likewise.
6697         * math/w_log10f_compat.c: Likewise.
6698         * math/w_log10l_compat.c: Likewise.
6699         * math/w_log2_compat.c: Likewise.
6700         * math/w_log2f_compat.c: Likewise.
6701         * math/w_log2l_compat.c: Likewise.
6702         * math/w_log_compat.c: Likewise.
6703         * math/w_logf_compat.c: Likewise.
6704         * math/w_logl_compat.c: Likewise.
6705         * math/w_pow_compat.c: Likewise.
6706         * math/w_powf_compat.c: Likewise.
6707         * math/w_powl_compat.c: Likewise.
6708         * math/w_remainder_compat.c: Likewise.
6709         * math/w_remainderf_compat.c: Likewise.
6710         * math/w_remainderl_compat.c: Likewise.
6711         * math/w_sinh_compat.c: Likewise.
6712         * math/w_sinhf_compat.c: Likewise.
6713         * math/w_sinhl_compat.c: Likewise.
6714         * math/w_sqrt_compat.c: Likewise.
6715         * math/w_sqrtf_compat.c: Likewise.
6716         * math/w_sqrtl_compat.c: Likewise.
6717         * math/w_tgamma_compat.c: Likewise.
6718         * math/w_tgammaf_compat.c: Likewise.
6719         * math/w_tgammal_compat.c: Likewise.
6720         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6721         [LIBM_SVID_COMPAT].
6722         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6723         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6724         [LIBM_SVID_COMPAT].
6725         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6726         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6727         [LIBM_SVID_COMPAT].
6728         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6729         * sysdeps/i386/fpu/w_sqrt.c: New file.
6730         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6731         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6732         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6733         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6734         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6735         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6736         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6737         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6738         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6739         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6740         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6741         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6742         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6743         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6744         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6745         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6746         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6747         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6748         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6749         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6750         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6751         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6752         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6753         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6754         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6755         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6756         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6757         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6758         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6759         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6760         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6761         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6762         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6763         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6764         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6765         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6766         * sysdeps/ia64/fpu/w_log.c: Likewise.
6767         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6768         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6769         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6770         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6771         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6772         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6773         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6774         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6775         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6776         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6777         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6778         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6779         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6780         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6781         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6782         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6783         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6784         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6785         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6786         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6787         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6788         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6789         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6790         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6791         [LIBM_SVID_COMPAT].
6792         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6793         * sysdeps/ieee754/k_standard.c: Likewise.
6794         * sysdeps/ieee754/k_standardf.c: Likewise.
6795         * sysdeps/ieee754/k_standardl.c: Likewise.
6796         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6797         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6798         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6799         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6800         long_double_symbol call on [LIBM_SVID_COMPAT].
6801         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6802         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6803         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6804         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6805         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6806         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6807         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6808         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6809         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6810         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6811         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6812         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6813         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6814         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6815         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6816         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6817         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6818         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6819         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6820         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6821         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6822         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6824 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6826         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6827         * malloc/tst-mallocstate.c: Convert from test-skeleton
6828         to test-driver.  Ifdef code using TEST_COMPAT macro.
6829         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6830         * math/test-matherr.c: Likewise.
6832 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6834         [BZ #22086]
6835         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6836         comparing word with byte-swapped constant.
6838 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6840         [BZ #20498]
6841         * locale/iso-639.def: add Miskito.
6842         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6843         * localedata/locales/miq_NI: New file.
6845 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6847         [BZ #18822]
6848         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6849         (__mkdir): Likewise.
6850         * io/chmod.c (__chmod): Add libc_hidden_def.
6851         * io/mkdir.c (__mkdir): Likewise.
6852         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6853         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6854         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6855         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6857 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6859         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6860         version to 4.13.
6862         [BZ #22082]
6863         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6864         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6866 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6868         * math/math.h: Issue warning if log is defined.
6870 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6872         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6873         kernel version to 4.13.
6875 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6877         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6878         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6879         parameter.
6880         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6881         just <bits/types.h>.
6882         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6883         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6884         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6885         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6886         * misc/preadv2.c: Include <errno.h>.
6887         * misc/preadv64v2.c: Include <errno.h>.
6888         * misc/pwritev2.c: Include <errno.h>.
6889         * misc/pwritev64v2.c: Include <errno.h>.
6890         * sysdeps/posix/preadv2.c: Include <errno.h>.
6891         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6892         Fix <unistd.h> inclusion.
6893         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6894         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6895         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6896         __strtoul_internal): New functions.
6897         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6898         * sysdeps/posix/system.c: Include <sigsetops.h>.
6899         * sysdeps/mach/hurd/i386/Makefile
6900         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6901         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6902         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6903         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6904         __feraiseexcept_renamed to feraiseexcept instead of
6905         __GI_feraiseexcept.
6906         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6907         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6908         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6909         RWF_NOWAIT): Define to 0 if undefined already.
6910         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6911         boils down to 0.
6912         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6913         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6915 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6917         * manual/math.texi (pow10): Do not document.
6918         (pow10f): Likewise.
6919         (pow10l): Likewise.
6920         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6921         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6922         * math/libm-test-exp10.inc (pow10_test): Remove.
6923         (do_test): Do not call pow10.
6924         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6925         [NO_LONG_DOUBLE] (pow10l): Likewise.
6926         * math/w_exp10f_compat.c (pow10f): Likewise.
6927         * math/w_exp10l_compat.c (pow10l): Likewise.
6928         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6929         (pow10): Make into compat symbol.
6930         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6931         (pow10f): Make into compat symbol.
6932         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6933         (pow10l): Make into compat symbol.
6934         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6935         pow10.
6936         (CFLAGS-nldbl-pow10.c): Remove variable..
6937         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6938         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6939         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6940         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6941         Undefine and redefine.
6942         (pow10l): Make into compat symbol.
6943         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6944         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6945         * sysdeps/arm/libm-test-ulps: Likewise.
6946         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6947         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6948         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6949         * sysdeps/microblaze/libm-test-ulps: Likewise.
6950         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6951         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6952         * sysdeps/nios2/libm-test-ulps: Likewise.
6953         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6954         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6955         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6956         * sysdeps/sh/libm-test-ulps: Likewise.
6957         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6958         * sysdeps/tile/libm-test-ulps: Likewise.
6959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6961 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6963         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6965 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6967         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6968         "../ChangeLog.old/ChangeLog.8".
6969         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6970         "../ChangeLog.old/ChangeLog.14".
6972 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6974         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6975         Threads Library.
6977 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6979         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6981 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6983         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6984         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6986 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6988         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6989         32 atexit handlers.
6991 2017-09-01  Zack Weinberg  <zackw@panix.com>
6993         * math/math.h (HUGE_VAL): Improve commentary.
6995 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6996             Andreas Schwab  <schwab@suse.de>
6998         [BZ #21530]
6999         * include/stdio.h (__gen_tempfd): New function.
7000         * stdio-common/Makefile (routines): Add gentempfd.
7001         * stdio-common/gentempfd.c: New file.
7002         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
7003         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
7004         unnamed file first.
7006 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7008         [BZ #21915]
7009         [BZ #21922]
7010         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
7011         result to determine success or failure, not the errno value.
7012         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
7013         (tst-nss-files-hosts-erange): Link with -ldl.
7014         * nss/tst-nss-files-hosts-erange.c: New file.
7015         * nss/tst-resolv-basic.c (response): Handle nodata.example.
7016         (do_test): Add NO_DATA tests.
7017         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
7018         (do_test): Call it.
7020 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7022         [BZ #21922]
7023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
7024         coming from gethostbyname2_r.
7026 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7028         * support/namespace.h (struct support_chroot_configuration): Add
7029         hosts, host_conf.
7030         (struct support_chroot): Add path_hosts, path_host_conf.
7031         * support/support_chroot.c (write_file): New function.
7032         (support_chroot_create): Call it to process /etc/resolv.conf,
7033         /etc/hosts, /etc/host.conf.
7034         (support_chroot_free): Update.
7036 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
7039         status indicates it is set.
7041 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
7044         function lookup failures more reliable.
7046 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7048         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
7049         (getcanonname): Likewise.
7050         (gaih_inet): Likewise.
7052 2017-09-01  Florian Weimer  <fweimer@redhat.com>
7054         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
7055         (getcanonname): Likewise.
7056         (gaih_inet): Likewise.
7058 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7059             Richard Henderson <rth@twiddle.net>
7061         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
7062         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
7063         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
7064         (IREG_SIZE, OREG_SIZE): New macros.
7065         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
7066         (IREG_SIZE, OREG_SIZE): New macros.
7067         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
7068         (IREG_SIZE): New macro.
7069         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
7070         (IREG_SIZE): New macro.
7071         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
7072         New includes.
7073         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
7074         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7075         (__CONCATX): Handle exceptions correctly on large values that may
7076         set FE_INVALID.
7077         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7078         Initialize if not already set.
7079         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7081 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7083         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7084         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7085         Likewise.
7086         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7087         Likewise.
7088         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7089         Likewise.
7090         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7091         Likewise.
7092         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7093         Likewise.
7094         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7095         Likewise.
7096         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7097         Likewise.
7098         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7099         (NO_CANCELLATION): Likewise.
7100         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7101         Likewise.
7102         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7103         Likewise.
7104         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7105         Likewise.
7106         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7107         (NO_CANCELLATION): Likewise.
7108         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7109         (NO_CANCELLATION): Likewise.
7110         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7111         Likewise
7112         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7113         Likewise.
7114         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7115         Likewise.
7116         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7117         Likewise.
7118         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7119         hidden prototype.
7120         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7121         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7123 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7125         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7126         in resolver call.
7128 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7130         * include/libc-symbols.h (internal_function): Remove.
7132 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7134         * stdlib/fmtmsg.c (internal_addseverity): Remove
7135         internal_function.
7137 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7139         * stdio-common/printf_fp.c (group_number): Remove
7140         internal_function.
7141         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7143 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7145         * posix/fnmatch.c (internal_function): Remove definition.
7146         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7147         * posix/regcomp.c (peek_token, init_word_char)
7148         (duplicate_node_closure, fetch_token, peek_token)
7149         (peek_token_bracket, build_range_exp, build_collating_symbol):
7150         Likewise.
7151         * posix/regex_internal.c (re_string_construct_common)
7152         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7153         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7154         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7155         (re_string_translate_buffer, re_string_reconstruct)
7156         (re_string_peek_byte_case, re_string_fetch_byte_case)
7157         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7158         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7159         (re_node_set_add_intersect, re_node_set_init_union)
7160         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7161         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7162         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7163         (re_acquire_state_context): Likewise.
7164         * posix/regex_internal.h (internal_function): Remove definition.
7165         (re_string_realloc_buffers, build_wcs_buffer)
7166         (build_wcs_upper_buffer, build_upper_buffer)
7167         (re_string_translate_buffer, re_string_context_at)
7168         (re_string_char_size_at, re_string_wchar_at)
7169         (re_string_elem_size_at): Likewise.
7170         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7171         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7172         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7173         (re_search_internal, re_search_2_stub, re_search_stub)
7174         (re_copy_regs, prune_impossible_nodes, check_matching)
7175         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7176         (free_fail_stack_return, sift_states_iter_mb)
7177         (sift_states_backward, build_sifted_states)
7178         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7179         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7180         (check_subexp_limits, sift_states_bkref, merge_state_array)
7181         (find_recover_state, transit_state, merge_state_with_log)
7182         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7183         (transit_state_mb, transit_state_bkref, get_subexp)
7184         (get_subexp_sub, find_subexp_node, check_arrival)
7185         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7186         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7187         (check_node_accept_bytes, find_collation_sequence_value)
7188         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7189         (acquire_init_state_context, check_halt_node_context)
7190         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7191         (sub_epsilon_src_nodes): Likewise.
7192         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7193         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7194         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7195         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7196         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7197         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7198         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7199         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7200         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7201         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7202         (PREADV): Likewise.
7203         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7204         (PREADV): Likewise.
7205         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7206         (PWRITEV): Likewise.
7207         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7208         (PWRITEV): Likewise.
7209         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7210         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7212 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7214         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7215         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7216         Remove internal_function.
7217         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7218         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7219         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7220         (__deallocate_stack, __libc_pthread_init)
7221         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7222         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7223         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7224         Likewise.
7225         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7226         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7227         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7228         Likewise.
7229         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7230         (__pthread_mutex_unlock_usercnt): Likewise.
7232 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7234         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7235         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7236         (fts_safe_changedir): Remove internal_function.
7237         * io/ftw.c (internal_function): Remove definition.
7238         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7240 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7242         * inet/deadline.c (__deadline_current_time)
7243         (__deadline_from_timeval, __deadline_to_ms): Remove
7244         internal_function.
7245         * inet/getnameinfo.c (nrl_domainname): Likewise.
7246         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7247         * inet/inet6_option.c (add_pad): Likewise.
7248         * inet/net-internal.h (__deadline_current_time)
7249         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7250         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7251         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7252         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7254 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7256         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7257         include <bits/nan.h>.
7258         * math/Makefile (headers): Remove bits/nan.h.
7259         * bits/nan.h: Remove.
7260         * sysdeps/ieee754/bits/nan.h: Likewise.
7261         * sysdeps/mips/bits/nan.h: Likewise.
7263         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7264         not include <bits/inf.h>.
7265         * math/Makefile (headers): Remove bits/inf.h.
7266         * bits/inf.h: Remove.
7267         * sysdeps/ieee754/bits/inf.h: Likewise.
7269         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7270         bits/huge_vall.h or bits/huge_val_flt128.h.
7271         (HUGE_VAL): Define directly here.
7272         [__USE_ISOC99] (HUGE_VALF): Likewise.
7273         [__USE_ISOC99] (HUGE_VALL): Likewise.
7274         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7275         (HUGE_VAL_F128): Likewise.
7276         * math/Makefile (headers): Remove bits/huge_val.h,
7277         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7278         * bits/huge_val.h: Remove.
7279         * bits/huge_val_flt128.h: Likewise.
7280         * bits/huge_valf.h: Likewise.
7281         * bits/huge_vall.h: Likewise.
7282         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7283         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7284         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7285         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7286         * sysdeps/sh/bits/huge_val.h: Likewise.
7287         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7288         * sysdeps/x86/bits/huge_vall.h: Likewise.
7290 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7292         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7293         internal_function.
7294         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7295         Likewise.
7296         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7297         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7298         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7299         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7300         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7301         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7302         * elf/dl-libc.c (dlerror_run): Likewise.
7303         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7304         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7305         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7306         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7307         Likewise.
7308         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7309         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7310         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7311         * elf/dl-profile.c (_dl_start_profile): Likewise.
7312         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7313         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7314         Likewise.
7315         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7316         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7317         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7318         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7319         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7320         (_dl_allocate_tls_storage): Likewise.
7321         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7322         (_dl_check_all_versions): Likewise.
7323         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7324         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7325         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7326         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7327         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7328         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7329         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7330         internal_function from __dl_start.
7331         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7332         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7333         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7334         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7335         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7336         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7337         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7338         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7339         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7340         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7341         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7342         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7343         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7344         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7345         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7346         Likewise.
7347         (struct rtld_global_ro): Remove internal_function from the
7348         _dl_lookup_symbol_x member.
7349         (_dl_symbol_value): Remove.  No longer defined anywhere.
7350         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7351         internal_function.
7352         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7353         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7354         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7355         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7356         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7357         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7358         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7359         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7360         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7361         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7362         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7363         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7365 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7367         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7368         Remove internal_function.
7369         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7370         Likewise.
7371         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7372         Likewise.
7374 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7376         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7377         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7378         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7380 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7382         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7383         (__gai_enqueue_request): Remove internal_function.
7384         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7385         (__gai_remove_request, __gai_notify, __gai_notify_only)
7386         (__gai_sigqueue): Likewise.
7387         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7388         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7389         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7390         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7391         Likewise.
7393 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7395         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7396         * include/dirent.h (__opendirat, __getdents, __getdents64)
7397         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7398         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7399         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7400         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7401         Likewise.
7402         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7404 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7406         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7407         internal_function.
7408         (GETCWD_RETURN_TYPE): Likewise.
7410 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7412         * include/time.h (__tz_compute, __strptime_internal): Remove
7413         internal_function.
7414         * time/strptime_l.c (__strptime_internal): Likewise.
7415         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7417 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7419         * iconv/gconv.c (__gconv): Remove internal_function.
7420         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7421         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7422         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7423         (__gconv_release_cache): Likewise.
7424         * iconv/gconv_close.c (__gconv_close): Likewise.
7425         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7426         (read_conf_file, __gconv_get_path): Likewise.
7427         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7428         (__gconv_release_step, gen_steps, increment_counter)
7429         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7430         (__gconv_close_transform, free_modules_db): Likewise.
7431         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7432         Likewise.
7433         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7434         (__gconv_find_transform, __gconv_lookup_cache)
7435         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7436         (__gconv_close_transform, __gconv_release_cache)
7437         (__gconv_loaded_object, __gconv_release_shlib)
7438         (__gconv_compare_alias): Likewise.
7439         * iconv/gconv_open.c (__gconv_open): Likewise.
7440         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7441         * iconv/iconvconfig.c (add_module): Likewise.
7442         * intl/dcigettext.c (plural_lookup, guess_category_value)
7443         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7444         * intl/eval-plural.h (plural_eval): Likewise.
7445         * intl/finddomain.c (_nl_find_domain): Likewise.
7446         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7447         (_nl_load_domain, _nl_find_msg): Likewise.
7448         (internal_function): Remove definition.
7449         * intl/loadinfo.h (internal_function): Likewise.
7450         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7451         internal_function.
7452         * intl/localealias.c (internal_function): Remove definition.
7453         (read_alias_file): Remove internal_function.
7454         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7455         * intl/plural-exp.h (internal_function): Remove definition.
7456         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7457         internal_function.
7458         * intl/plural.c: Regenerate.
7459         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7460         * locale/coll-lookup.c (__collidx_table_lookup)
7461         (__collseq_table_lookup): Likewise.
7462         * locale/coll-lookup.h (__collidx_table_lookup)
7463         (__collseq_table_lookup): Likewise.
7464         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7465         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7466         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7467         (_nl_unload_locale): Likewise.
7468         * locale/localeinfo.h (struct __locale_data): Remove
7469         internal_function from cleanup member.
7470         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7471         (_nl_remove_locale, _nl_load_locale_from_archive)
7472         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7473         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7474         (_nl_cleanup_time): Remove internal_function.
7475         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7476         (_nl_parse_alt_digit): Likewise.
7477         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7478         (_nl_select_era_entry): Likewise.
7479         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7480         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7481         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7482         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7483         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7485 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7487         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7488         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7489         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7490         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7491         Likewise.
7492         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7493         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7494         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7495         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7496         Likewise.
7497         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7499 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7501         * misc/getttyent.c (skip, value): Remove internal_function.
7502         * misc/syslog.c (openlog_internal): Likewise.
7503         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7505 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7507         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7508         (__nss_rewrite_field): Remove internal_function.
7509         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7510         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7511         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7512         * nss/nsswitch.c (nss_parse_file, nss_getline)
7513         (nss_parse_service_list, nss_new_service): Likewise.
7514         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7515         * nss/valid_field.c (__nss_valid_field): Likewise.
7516         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7518 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7520         * malloc/arena.c (__malloc_fork_lock_parent)
7521         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7522         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7523         internal_function from defintions.
7524         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7525         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7526         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7527         internal_function from declarations.
7528         * malloc/malloc.c (internal_function): Do not define.
7529         (mem2mem_check): Remove internal_function from declaration.
7530         (munmap_chunk, mremap_chunk): Remove internal_function.
7531         * malloc/mtrace.c (tr_where): Likewise.
7533 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7535         * include/rpc/pmap_clnt.h (__get_socket): Remove
7536         internal_function.
7537         * sunrpc/auth_des.c (synchronize): Likewise.
7538         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7539         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7540         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7541         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7542         (key_call): Likewise.
7543         * sunrpc/pm_getport.c (__get_socket): Likewise.
7544         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7545         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7546         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7547         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7548         (invalidate): Likewise.
7549         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7550         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7551         (set_input_fragment, get_input_bytes): Likewise.
7553 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7555         * malloc/malloc.c (_int_free): Remove locked variable and related
7556         asserts.
7558 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7560         [BZ #22051]
7561         * Makerules (build-module-helper-objlist): Filter out
7562         $(elf-objpfx)sofini.os.
7563         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7564         needed.
7566 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7568         * libio/fcloseall.c: Assume weak_alias is defined.
7569         * libio/feof.c: Likewise.
7570         * libio/fileno.c: Likewise.
7571         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7572         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7573         definitions.
7574         (_IO_file_open): Call __open directly.
7575         (_IO_new_file_sync): Assume ESPIPE is defined.
7576         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7577         (_IO_new_file_write): Call __write directly.
7578         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7579         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7580         * libio/genops.c: Assume _LIBC is defined.
7581         (save_for_backup): Remove internal_function.
7582         * libio/getc.c: Assume weak_alias is defined.
7583         * libio/getwc.c: Likewise.
7584         * libio/iofclose.c: Assume _LIBC is defined.
7585         * libio/iofdopen.c: Likewise.
7586         (_IO_fcntl): Remove macro definition.
7587         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7588         Call __fcntl directly.
7589         * libio/iofflush.c: Assume weak_alias is defined.
7590         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7591         defined.
7592         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7593         * libio/iofgets.c: Likewise.
7594         * libio/iofopen.c: Assume _LIBC is defined.
7595         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7596         * libio/iofputs.c: Assume weak_alias is defined.
7597         * libio/iofread.c: Likewise.
7598         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7599         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7600         * libio/ioftell.c: Assume weak_alias is defined.
7601         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7602         * libio/iofwide.c: Assume _LIBC is defined.
7603         (_IO_fwide): Drop SHARED conditional because it is implied by
7604         SHLIB_COMPAT.
7605         * libio/iofwrite.c: Assume weak_alias is defined.
7606         * libio/iogetdelim.c: Likewise.
7607         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7608         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7609         (_IO_getwline): Call __wmemcpy directly.
7610         * libio/iopopen.c: Assume _LIBC is defined.
7611         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7612         (_IO_close): Remove macro definitions.
7613         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7614         _exit directly.
7615         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7616         directly.
7617         * libio/ioputs.c: Assume weak_alias is defined.
7618         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7619         * libio/iosetbuffer.c: Assume weak_alias is defined.
7620         * libio/iosetvbuf.c: Likewise.
7621         * libio/ioungetc.c: Likewise.
7622         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7623         libc_hidden_def, libc_hidden_weak, NULL are defined.
7624         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7625         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7626         defined.
7627         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7628         definitions.
7629         (_IO_old_file_init_internal): Drop SHARED conditional because it
7630         is implied by SHLIB_COMPAT.
7631         (_IO_old_file_fopen): Call __open directly.
7632         (_IO_old_file_sync): Assume ESPIPE is defined.
7633         (_IO_old_file_write): Call __write directly.
7634         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7635         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7636         Call __fcntl directly.
7637         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7638         (_IO_old_fgetpos): Assume EIO is defined.
7639         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7640         (_IO_old_fgetpos64): Assume EIO is defined.
7641         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7642         (_IO_old_fsetpos): Assume EIO is defined.
7643         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7644         (_IO_old_fsetpos64): Assume EIO is defined.
7645         * libio/oldiopopen.c:  Assume _LIBC is defined.
7646         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7647         (_IO_close): Remove macro definitions.
7648         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7649         directly.
7650         (_IO_old_proc_close): Call __close, __waitpid directly.
7651         * libio/put.c: Assume weak_alias is defined.
7652         * libio/stdfiles.c: Assume _LIBC is defined.
7653         * libio/stdio.c: Likewise.
7654         * libio/wfileops.c: Likewise.
7655         (_IO_wfile_sync): Assume ESPIPE is defined.
7656         * libio/wgenops.c: Assume _LIBC is defined.
7657         (save_for_wbackup): Remove internal_function.
7659 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7661         * malloc/malloc.c (top_check): Change return type to void.  Remove
7662         internal_function.
7663         * malloc/hooks.c (top_check): Likewise.
7664         (malloc_check, realloc_check, memalign_check): Adjust.
7666 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7668         [BZ #21457]
7669         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7670         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7671         sigcontext and namespace requirements.
7672         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7673         * sysdeps/m68k/sys/ucontext.h: Likewise.
7674         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7675         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7676         <bits/sigcontext.h>.
7677         (__ctx): Define earlier.
7678         (mcontext_t): Define structure contents rather than using struct
7679         sigcontext.
7680         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7681         __glibc_reserved1 instead of __reserved.
7682         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7683         <bits/sigcontext.h>.
7684         (__ctx): Define earlier.
7685         (mcontext_t): Define structure contents rather than using struct
7686         sigcontext.
7687         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7688         mcontext_t instead of struct sigcontext.
7689         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7690         <bits/sigcontext.h>.
7691         (__ctx): Define earlier.
7692         (mcontext_t): Define structure contents rather than using struct
7693         sigcontext.
7694         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7695         <bits/sigcontext.h>.
7696         (__ctx): Define earlier.
7697         (mcontext_t): Define structure contents rather than using struct
7698         sigcontext.
7699         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7700         mcontext_t instead of struct sigcontext.
7701         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7702         mcontext_t instead of struct sigcontext.
7703         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7704         <bits/sigcontext.h>.
7705         (__ctx): New macro.
7706         (struct __ia64_fpreg_mcontext): New type.
7707         (mcontext_t): Define structure contents rather than using struct
7708         sigcontext.
7709         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7710         (uc_sigmask): Define using __ctx.
7711         (uc_stack): Likewise.
7712         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7713         <bits/sigcontext.h>.
7714         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7715         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7716         <bits/sigcontext.h>.
7717         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7718         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7719         <bits/sigcontext.h>.
7720         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7721         <bits/sigcontext.h>.
7722         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7723         <bits/sigcontext.h>.
7724         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7725         <bits/sigcontext.h>.
7726         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7727         <bits/sigcontext.h>.
7728         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7729         <bits/sigcontext.h>.
7730         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7731         <bits/sigcontext.h>.
7732         (__ctx): Define earlier.
7733         (mcontext_t): Define structure contents rather than using struct
7734         sigcontext.
7735         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7736         <bits/sigcontext.h>.  Include <bits/types.h>.
7737         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7738         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7739         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7740         (test-xfail-UNIX98/signal.h/conform): Likewise.
7741         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7742         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7743         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7744         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7745         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7746         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7747         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7748         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7749         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7751 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7753         * malloc/dynarray_emplace_enlarge.c
7754         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7755         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7756         * malloc/tst-dynarray.c (test_long_overflow): New function.
7757         (do_test): Call it.
7759 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7761         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7762         (set_arena_corrupt): Remove definitions.
7763         (mtrim): Do not check for corrupt arena.
7764         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7765         Likewise.
7767 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7769         [BZ #21754]
7770         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7771         check_action.
7772         (ptmalloc_init): Do not set or use check_action.
7773         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7774         call to malloc_printerr.  Remove return statement.
7775         (free_check): Likewise.  Remove arena unlock.
7776         (top_check): Update comment.  Adjust call to malloc_printerr.
7777         Remove heap repair code.
7778         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7779         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7780         (sysmalloc): Adjust call to malloc_printerr.
7781         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7782         statement.
7783         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7784         Remove errout label and corresponding gotos.
7785         (_int_free): Likewise.  Remove arena unlock.
7786         (do_set_mallopt_check): Do not set check_action.
7787         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7788         corrupt.
7789         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7790         comment.
7791         * manual/probes.texi (Memory Allocation Probes): Remove
7792         memory_mallopt_check_action.
7794 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7796         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7797         Use pointer to uint64_t instead of long int for sp.
7799 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7801         [BZ #21754]
7802         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7803         without printing a backtrace.  Do not leak any information in the
7804         error message.
7805         * manual/memory.texi (Heap Consistency Checking): Update.
7806         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7808 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7810         Do not scale NPTL tests with available number of CPUs.
7811         * nptl/tst-cond16.c (count): Set to constant value of 8.
7812         * nptl/tst-cond18.c (count): Likewise.
7814 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7816         [BZ #22035]
7817         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7818         Define to take a second argument that is a macro that
7819         concatentates a suffix, not the suffix itself.
7820         (__CONCAT_d): New macro.
7821         (__CONCAT_f): Likewise.
7822         (__CONCAT_l): Likewise.
7824 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7826         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7827         by child.
7829 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7830             Aurelien Jarno  <aurelien@aurel32.net>
7831             Maciej W. Rozycki  <macro@imgtec.com>
7833         [BZ #21956]
7834         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7835         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7836         `mips16-syscall6' and `mips16-syscall7'.
7837         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7838         (CFLAGS-mips16-syscall7.c): Remove.
7839         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7840         Remove `__mips16_syscall5', `__mips16_syscall6' and
7841         `__mips16_syscall7'.
7842         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7843         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7844         `__mips_syscall_return'.
7845         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7846         (__mips16_syscall1): Likewise.
7847         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7848         (__mips16_syscall2): Likewise.
7849         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7850         (__mips16_syscall3): Likewise.
7851         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7852         (__mips16_syscall4): Likewise.
7853         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7854         Remove.
7855         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7856         Remove.
7857         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7858         Remove.
7859         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7860         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7861         `__mips16_syscall5'.  Remove prototype.
7862         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7863         `__mips16_syscall6'.  Remove prototype.
7864         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7865         `__mips16_syscall7'.  Remove prototype.
7866         (__nomips16, __mips16_syscall_return): Move to...
7867         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7868         (__nomips16, __mips_syscall_return): ... here.
7869         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7870         `__mips16_syscall_return' to `__mips_syscall_return'.
7871         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7872         `internal_syscall##nr'.
7873         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7874         `internal_syscall##nr'.
7875         (FORCE_FRAME_POINTER): Remove.
7876         (__mips_syscall5): New prototype.
7877         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7878         (__mips_syscall6): New prototype.
7879         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7880         (__mips_syscall7): New prototype.
7881         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7882         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7883         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7884         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7885         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7886         (sysdep_routines): Add libc-do-syscall.
7887         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7888         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7890 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7892         [BZ #21672]
7893         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7894         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7895         (advise_stack_range): New function.
7896         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7897         stack non required to advise_stack_range at allocatestack.c
7899 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7901         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7903 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7905         [BZ #22026]
7906         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7907         __end_fct.  Mangle __end_fct after setting it to NULL.
7908         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7909         (modules-names, modules-names-tests): Add
7910         tst-gconv-init-failure-mod.
7911         (gconv-modules): New target.
7912         (tst-gconv-init-failure-mod.so): Link against libsupport.
7913         (tst-gconv-init-failure): Depend on gconv-modules,
7914         tst-gconv-init-failure-mod.so.
7915         * iconv/tst-gconv-init-failure-mod.c: New file.
7916         * iconv/tst-gconv-init-failure.c: Likewise.
7917         * iconv/test-gconv-modules: Likewise.
7919 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7921         [BZ #22025]
7922         * iconv/gconv_db.c (free_derivation): Remove redundant
7923         parentheses.
7924         (gen_steps): Unconditionally mangle __btowc_fct after
7925         initialization.
7926         (increment_counter): Likewise.  Do not call init_fct for internal
7927         modules.
7929 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7931         [BZ #22028]
7932         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7933         (_MSUF_): Remove macro.
7934         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7935         Likewise.
7936         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7937         (__REDIRFROM_X): New macro.
7938         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7939         Likewise.
7940         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7941         (__REDIRTO_X): Likewise.
7942         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7943         arguments.
7944         (__MATH_REDIRCALL_2): Likewise.
7945         (__MATH_REDIRCALL_INTERNAL): Likewise.
7946         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7947         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7948         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7949         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7950         * math/test-finite-macros.c: New file.
7951         * math/Makefile (tests): Add test-finite-macros.
7952         (CFLAGS-test-finite-macros.c): New variable.
7954 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7955             Jeff Law  <law@redhat.com>
7957         [BZ #22025]
7958         Mangle NULL pointers in iconv/gconv.
7959         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7960         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7961         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7962         is non-NULL before demangling the end_fct.  Check for NULL
7963         end_fct after demangling.
7964         (__gconv_release_step): Demangle the end_fct before checking
7965         it for NULL.   Remove assert on __shlibc_handle != NULL.
7966         (gen_steps): Don't check btowc_fct for NULL before mangling.
7967         Demangle init_fct before checking for NULL.
7968         (increment_counter): Likewise.
7969         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7970         end_fct for NULL before mangling.
7971         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7972         for NULL.
7974 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7976         [BZ #21971]
7977         * locale/iso-639.def: add Morisyen.
7979 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7981         [BZ #21930]
7982         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7983         (iszero): New C++ implementation that does not use
7984         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7985         signaling nans are enabled, since __builtin_types_compatible_p
7986         is a C-only feature.
7987         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7988         defined, include ieee754_float128.h for access to the union and
7989         member ieee854_float128.ieee.
7990         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7991         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7992         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7993         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7994         options of test-math-zero on powerpc64le.
7996 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7998         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7999         Change double to float.
8001 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
8003         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
8004         unconditional.
8005         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
8006         conditional code; define contents only for [LIBM_SVID_COMPAT].
8008 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8010         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
8011         (abi-lp64_be-options): Remove.
8012         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
8013         (abi-hard-options): Likewise.
8014         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
8015         (abi-o32_hard-options, abi-o32_soft_2008-options)
8016         (abi-o32_hard_2008-options, abi-n32_soft-options)
8017         (abi-n32_hard-options, abi-n32_soft_2008-options)
8018         (abi-n32_hard_2008-options, abi-n64_soft-options)
8019         (abi-n64_hard-options, abi-n64_soft_2008-options)
8020         (abi-n64_hard_2008-options): Likewise.
8021         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
8022         (abi-64-v1-options, abi-64-v2-options): Likewise.
8023         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
8024         (abi-64-options): Likewise.
8025         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
8026         (abi-64-options): Likewise.
8027         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
8028         (abi-64-options): Likewise.
8029         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
8030         (abi-64-options, abi-x32-options): Likewise.
8032 2017-08-28  Florian Weimer  <fweimer@redhat.com>
8034         Store supported list of SYS_* system calls in the source tree.
8035         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8036         (bits/syscall.h): Generate from list file.
8037         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
8038         [$(subdir) = misc] (tests): Add tst-syscall-list.
8039         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
8040         [$(subdir) = misc] (tst-syscall-list-macros.list)
8041         [$(subdir) = misc] (tst-syscall-list-nr.list)
8042         (tst-syscall-list-sys.list): Helper targets for new
8043         tst-syscall-list test.
8044         [$(subdir) = misc] (tst-syscall-list.out): Run test script
8045         tst-syscall-list.sh.
8046         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
8047         target. Do not include bits/syscall.d.
8048         [$(subdir) = misc] (generated): Do not update.
8049         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
8050         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
8051         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
8052         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
8054 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
8056         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
8057         (tst-cxa_atexit, tst-on_exit): Likewise.
8058         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
8059         tst-cxa_atexit, and tst-on_exit.
8060         * stdlib/tst-atexit-common.c: New file.
8061         * stdlib/tst-atexit.c: New file.
8062         * stdlib/tst-at_quick_exit.c: New file.
8063         * stdlib/tst-cxa_atexit.c: New file.
8064         * stdlib/tst-on_exit.c: New file.
8066 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8068         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
8069         * mach/stack_chk_fail_local.c: New file.
8070         * hurd/stack_chk_fail_local.c: New file.
8071         * mach/Machrules ($(interface-library)-routines): Add
8072         stack_chk_fail_local.
8073         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
8074         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
8075         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8076         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8077         * hurd/Makefile (CFLAGS-hurdstartup.o,
8078         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8080 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8082         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8083         (index_cpu_*, index_arch_*): Removed.
8085 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8087         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8088         Use uint64_t instead of unsigned long.
8090 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8092         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8093         [__HAVE_DISTINCT_FLOAT128].
8095         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8096         of <bits/math-finite.h>.
8097         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8098         inclusion of <bits/math-finite.h>.
8099         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8100         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8101         __NO_LONG_DOUBLE_MATH].
8102         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8103         (__MATH_REDIRCALL_2): Likewise.
8104         (__MATH_REDIRCALL_INTERNAL): Likewise.
8105         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8106         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8107         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8110         Remove file.
8111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8112         Likewise.
8113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8114         Likewise.
8115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8116         Likewise.
8117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8118         Likewise.
8119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8120         Likewise.
8121         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8122         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8123         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8124         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8126         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8127         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8128         w_sqrtf_compat-ppc32.
8130 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8132         * math/math.h [defined __cplusplus] (issignaling): In the long
8133         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8134         is not defined.  Call __issignaling, otherwise.
8136 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8138         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8139         syscall definitions and replace __builtin_expect with __glibc_likely.
8140         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8141         syscall.
8142          (SYSCALL_CANCELLABLE): Removedefinition
8143         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8144         definition.
8145         (PSEUDO_END): Likewise.
8146         [IS_IN (libpthread)] (CENABLE): Likewise.
8147         [IS_IN (libpthread)] (CDISABLE): Likewise.
8148         [IS_IN (libc)] (CENABLE): Likewise.
8149         [IS_IN (libc)] (CENABLE): Likewise.
8150         [IS_IN (librt)] (CDISABLE): Likewise.
8151         [IS_IN (librt)] (CDISABLE): Likewise.
8152         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8153         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8154         definition.
8155         (PSEUDO_END): Likewise.
8156         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8157         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8158         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8159         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8160         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8161         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8162         (CENABLE): Likewise.
8163         (CDISABLE): Likewise.
8164         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8165         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8166         defintion.
8167         (PSEUDO_END): Likewise.
8168         [IS_IN (libpthread)] (CENABLE): Likewise.
8169         [IS_IN (libpthread)] (CDISABLE): Likewise.
8170         [IS_IN (libc)] (CENABLE): Likewise.
8171         [IS_IN (libc)] (CENABLE): Likewise.
8172         [IS_IN (librt)] (CDISABLE): Likewise.
8173         [IS_IN (librt)] (CDISABLE): Likewise.
8174         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8175         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8176         definition.
8177         (PSEUDO_END): Likewise.
8178         [IS_IN (libpthread)] (CENABLE): Likewise.
8179         [IS_IN (libpthread)] (CDISABLE): Likewise.
8180         [IS_IN (libc)] (CENABLE): Likewise.
8181         [IS_IN (libc)] (CENABLE): Likewise.
8182         [IS_IN (librt)] (CDISABLE): Likewise.
8183         [IS_IN (librt)] (CDISABLE): Likewise.
8184         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8185         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8186         definition.
8187         (PSEUDO_END): Likewise.
8188         [IS_IN (libpthread)] (CENABLE): Likewise.
8189         [IS_IN (libpthread)] (CDISABLE): Likewise.
8190         [IS_IN (libc)] (CENABLE): Likewise.
8191         [IS_IN (libc)] (CENABLE): Likewise.
8192         [IS_IN (librt)] (CDISABLE): Likewise.
8193         [IS_IN (librt)] (CDISABLE): Likewise.
8194         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8195         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8196         definition.
8197         (PSEUDO_END): Likewise.
8198         [IS_IN (libpthread)] (CENABLE): Likewise.
8199         [IS_IN (libpthread)] (CDISABLE): Likewise.
8200         [IS_IN (libc)] (CENABLE): Likewise.
8201         [IS_IN (libc)] (CENABLE): Likewise.
8202         [IS_IN (librt)] (CDISABLE): Likewise.
8203         [IS_IN (librt)] (CDISABLE): Likewise.
8204         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8205         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8206         definition.
8207         (PSEUDO_END): Likewise.
8208         [IS_IN (libpthread)] (CENABLE): Likewise.
8209         [IS_IN (libpthread)] (CDISABLE): Likewise.
8210         [IS_IN (libc)] (CENABLE): Likewise.
8211         [IS_IN (libc)] (CENABLE): Likewise.
8212         [IS_IN (librt)] (CDISABLE): Likewise.
8213         [IS_IN (librt)] (CDISABLE): Likewise.
8214         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8215         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8216         definition.
8217         (PSEUDO_END): Likewise.
8218         [IS_IN (libpthread)] (CENABLE): Likewise.
8219         [IS_IN (libpthread)] (CDISABLE): Likewise.
8220         [IS_IN (libc)] (CENABLE): Likewise.
8221         [IS_IN (libc)] (CENABLE): Likewise.
8222         [IS_IN (librt)] (CDISABLE): Likewise.
8223         [IS_IN (librt)] (CDISABLE): Likewise.
8224         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8225         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8226         Remove definition.
8227         (PSEUDO_END): Likewise.
8228         [IS_IN (libpthread)] (CENABLE): Likewise.
8229         [IS_IN (libpthread)] (CDISABLE): Likewise.
8230         [IS_IN (libc)] (CENABLE): Likewise.
8231         [IS_IN (libc)] (CENABLE): Likewise.
8232         [IS_IN (librt)] (CDISABLE): Likewise.
8233         [IS_IN (librt)] (CDISABLE): Likewise.
8234         (SINGLE_THREAD_P): Likewise.
8235         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8236         definition.
8237         (PSEUDO_END): Likewise.
8238         [IS_IN (libpthread)] (CENABLE): Likewise.
8239         [IS_IN (libpthread)] (CDISABLE): Likewise.
8240         [IS_IN (libc)] (CENABLE): Likewise.
8241         [IS_IN (libc)] (CENABLE): Likewise.
8242         [IS_IN (librt)] (CDISABLE): Likewise.
8243         [IS_IN (librt)] (CDISABLE): Likewise.
8244         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8245         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8246         definition.
8247         (PSEUDO_END): Likewise.
8248         [IS_IN (libpthread)] (CENABLE): Likewise.
8249         [IS_IN (libpthread)] (CDISABLE): Likewise.
8250         [IS_IN (libc)] (CENABLE): Likewise.
8251         [IS_IN (libc)] (CENABLE): Likewise.
8252         [IS_IN (librt)] (CDISABLE): Likewise.
8253         [IS_IN (librt)] (CDISABLE): Likewise.
8254         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8255         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8256         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8257         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8258         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8259         definition.
8260         (PSEUDO_END): Likewise.
8261         [IS_IN (libpthread)] (CENABLE): Likewise.
8262         [IS_IN (libpthread)] (CDISABLE): Likewise.
8263         [IS_IN (libc)] (CENABLE): Likewise.
8264         [IS_IN (libc)] (CENABLE): Likewise.
8265         [IS_IN (librt)] (CDISABLE): Likewise.
8266         [IS_IN (librt)] (CDISABLE): Likewise.
8267         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8268         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8269         definition.
8270         (PSEUDO_END): Likewise.
8271         [IS_IN (libpthread)] (CENABLE): Likewise.
8272         [IS_IN (libpthread)] (CDISABLE): Likewise.
8273         [IS_IN (libc)] (CENABLE): Likewise.
8274         [IS_IN (libc)] (CENABLE): Likewise.
8275         [IS_IN (librt)] (CDISABLE): Likewise.
8276         [IS_IN (librt)] (CDISABLE): Likewise.
8277         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8278         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8279         definition.
8280         (PSEUDO_END): Likewise.
8281         [IS_IN (libpthread)] (CENABLE): Likewise.
8282         [IS_IN (libpthread)] (CDISABLE): Likewise.
8283         [IS_IN (libc)] (CENABLE): Likewise.
8284         [IS_IN (libc)] (CENABLE): Likewise.
8285         [IS_IN (librt)] (CDISABLE): Likewise.
8286         [IS_IN (librt)] (CDISABLE): Likewise.
8287         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8288         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8289         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8290         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8291         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8292         definition.
8293         (PSEUDO_END): Likewise.
8294         [IS_IN (libpthread)] (CENABLE): Likewise.
8295         [IS_IN (libpthread)] (CDISABLE): Likewise.
8296         [IS_IN (libc)] (CENABLE): Likewise.
8297         [IS_IN (libc)] (CENABLE): Likewise.
8298         [IS_IN (librt)] (CDISABLE): Likewise.
8299         [IS_IN (librt)] (CDISABLE): Likewise.
8300         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8301         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8302         definition.
8303         (PSEUDO_END): Likewise.
8304         [IS_IN (libpthread)] (CENABLE): Likewise.
8305         [IS_IN (libpthread)] (CDISABLE): Likewise.
8306         [IS_IN (libc)] (CENABLE): Likewise.
8307         [IS_IN (libc)] (CENABLE): Likewise.
8308         [IS_IN (librt)] (CDISABLE): Likewise.
8309         [IS_IN (librt)] (CDISABLE): Likewise.
8310         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8312 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8314         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8316 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8318         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8320 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8322         [BZ #21982]
8323         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8324         middle and outer with size_t instead of int.  Repleace %d and
8325         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8326         "MAX (outer, nchars - 64)" to support unsigned outer and
8327         nchars.  Also exit loop when outer == 0.
8329 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8331         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8332         * include/signal.h (__sigsuspend_nocancel): Likewise.
8333         * include/time.h (__nanosleep_nocancel): Likewise.
8334         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8335         * login/utmp_file.c: Include non cancellable syscall header.
8336         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8337         prototype.
8339 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8341         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8342         .byte sequences with AVX512F instructions.
8343         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8344         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8345         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8346         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8347         Likewise.
8348         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8349         Likewise.
8351 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8352             Steve Ellcey  <sellcey@cavium.com>
8354         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8355         Use PTR_REG macro in cmp instruction.
8357 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8359         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8360         Change the return type of the ifunc resolver to match the return
8361         type of the target function.
8363 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8365         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8366         (preadv64): Likewise.
8367         (pwrite64(: Likewise.
8368         (pwritev64): Likewise.
8370         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8371         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8372         (LOAD_ARGS_0): Likewise.
8373         (LOAD_ARGS_1): Likewise.
8374         (LOAD_ARGS_2): Likewise.
8375         (LOAD_ARGS_3): Likewise.
8376         (LOAD_ARGS_4): Likewise.
8377         (LOAD_ARGS_5): Likewise.
8378         (LOAD_ARGS_6): Likewise.
8379         (LOAD_REGS_0): Likewise.
8380         (LOAD_REGS_1): Likewise.
8381         (LOAD_REGS_2): Likewise.
8382         (LOAD_REGS_3): Likewise.
8383         (LOAD_REGS_4): Likewise.
8384         (LOAD_REGS_5): Likewise.
8385         (LOAD_REGS_6): Likewise.
8386         (ASM_ARGS_0): Likewise.
8387         (ASM_ARGS_1): Likewise.
8388         (ASM_ARGS_2): Likewise.
8389         (ASM_ARGS_3): Likewise.
8390         (ASM_ARGS_4): Likewise.
8391         (ASM_ARGS_5): Likewise.
8392         (ASM_ARGS_6): Likewise.
8393         (LOAD_ARGS_TYPES_1): Likewise.
8394         (LOAD_ARGS_TYPES_2): Likewise.
8395         (LOAD_ARGS_TYPES_3): Likewise.
8396         (LOAD_ARGS_TYPES_4): Likewise.
8397         (LOAD_ARGS_TYPES_5): Likewise.
8398         (LOAD_ARGS_TYPES_6): Likewise.
8399         (LOAD_REGS_TYPES_1): Likewise.
8400         (LOAD_REGS_TYPES_2): Likewise.
8401         (LOAD_REGS_TYPES_3): Likewise.
8402         (LOAD_REGS_TYPES_4): Likewise.
8403         (LOAD_REGS_TYPES_5): Likewise.
8404         (LOAD_REGS_TYPES_6): Likewise.
8405         (TYPEFY): New define.
8406         (ARGIFY): Likewise.
8407         (internal_syscall0): Likewise.
8408         (internal_syscall1): Likewise.
8409         (internal_syscall2): Likewise.
8410         (internal_syscall3): Likewise.
8411         (internal_syscall4): Likewise.
8412         (internal_syscall5): Likewise.
8413         (internal_syscall6): Likewise.
8414         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8415         (INTERNAL_SYSCALL_NCS): Remove define.
8416         (internal_syscall1): Add define.
8418 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8420         * math/w_remainder_compat.c: Remove duplicate inclusion of
8421         math-svid-compat.h.
8422         * math/w_remainderf_compat.c: Likewise.
8423         * math/w_remainderl_compat.c: Likewise.
8425 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8427         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8429 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8431         [BZ #21684]
8432         * math/tgmath.h (__floating_type): Simplify definitions.
8433         (__real_integer_type): New macro.
8434         (__complex_integer_type): Likewise.
8435         (__expr_is_real): Likewise.
8436         (__tgmath_real_type_sub): Update comment to describe handling of
8437         complex types.
8438         (__tgmath_complex_type_sub): New macro.
8439         (__tgmath_complex_type): Likewise.
8440         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8441         (__TGMATH_CF128): Use __expr_is_real.
8442         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8443         __expr_is_real.
8444         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8445         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8446         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8447         integer types.
8449 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8451         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8452         macro.
8453         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8454         alias.
8455         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8456         Likewise.
8458         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8459         nanosleep_not_cancel with __nanosleep_nocancel.
8460         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8461         (__nanosleep_nocancel): New macro.
8462         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8463         function.
8464         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8465         macro.
8466         (__nanosleep_nocancel): New prototype.
8468         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8469         pause_not_cancel with __pause_nocancel.
8470         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8471         (__pause_nocancel): New macro.
8472         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8473         macro.
8474         (__pause_nocancel): New prototype.
8475         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8477 2017-08-22  Martin Sebor  <msebor@redhat.com>
8479         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8480         to return a pointer to the same type as the target function.
8482 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8484         [BZ #18822]
8485         [BZ #21986]
8486         * include/printf.h (__printf_fphex): Add attribute_hidden.
8487         (__guess_grouping): New prototype.
8488         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8489         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8490         libc_hidden_proto and libc_hidden_def.
8491         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8492         (__vstrfmon_l): Remove the third argument passed to
8493         __guess_grouping.
8495 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8497         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8498         definition for issignaling that does not rely on __MATH_TG,
8499         since __MATH_TG uses __builtin_types_compatible_p, which is only
8500         available in C mode.
8501         (CFLAGS-test-math-issignaling.cc): New variable.
8502         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8503         * math/test-math-issignaling.cc: New test for C++ implementation
8504         of type-generic issignaling.
8505         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8506         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8507         options of test-math-issignaling on powerpc64le.
8509 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8511         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8512         building libc.a.
8513         (hidden_proto): Likewise.
8514         (hidden_tls_proto): Likewise.
8515         (__hidden_proto): Likewise.
8517 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8519         math: Statically link tests of internal functionality.
8520         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8521         atest-exp2.
8522         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8523         (gmp-objs): Remove assignment.
8524         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8526 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8528         [BZ #21987]
8529         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8530         and copy to ...
8531         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8532         ... here.
8533         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8534         ... and here.
8536         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8537         variable definitions above inclusion of ../Rules.
8539 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8541         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8542         case calling __builtin_unreachable.
8544 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8546         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8547         __waitpid_nocancel.
8548         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8549         (__waitpid_nocancel): New macro.
8550         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8551         macro.
8552         (__waitpid_nocancel): Replace macro with a function.
8553         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8554         function.
8556         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8557         __fcntl_nocancel.
8558         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8559         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8561         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8562         __writev_nocancel_nostatus.
8563         (write_call_graph): Likewise.
8564         (write_bb_counts): Likewise.
8565         * resolv/herror.c (herror): Likewise.
8566         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8567         macro.
8568         (__writev_nocancel_nostatus): New macro.
8569         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8570         Remove macro.
8571         (__writev_nocancel_nostatus): New function.
8573 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8575         Revert:
8576         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8578         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8579         building libc.a.
8580         (hidden_proto): Likewise.
8581         (hidden_tls_proto): Likewise.
8582         (__hidden_proto): Likewise.
8584         [BZ #21973]
8585         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8586         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8588         Likewise.
8589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8590         Likewise.
8591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8592         Likewise.
8593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8594         Likewise.
8595         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8596         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8597         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8598         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8599         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8600         GLIBC_2.0 sqrtl symbol.
8602         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8603         [__USE_MISC] (_LIB_VERSION): Likewise.
8604         [__USE_MISC] (struct exception): Likewise.
8605         [__USE_MISC] (matherr): Likewise.
8606         [__USE_MISC] (DOMAIN): Likewise.
8607         [__USE_MISC] (SING): Likewise.
8608         [__USE_MISC] (OVERFLOW): Likewise.
8609         [__USE_MISC] (UNDERFLOW): Likewise.
8610         [__USE_MISC] (TLOSS): Likewise.
8611         [__USE_MISC] (PLOSS): Likewise.
8612         [__USE_MISC] (HUGE): Likewise.
8613         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8614         * math/math-svid-compat.h: New file.
8615         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8616         and matherrl.
8617         * include/math.h [!_ISOMAC] (__matherr): Remove.
8618         * manual/arith.texi (FP Exceptions): Do not document matherr.
8619         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8620         (tests-internal): New variable.
8621         (install-lib): Do not add libieee.a.
8622         (non-lib.a): Likewise.
8623         (extra-objs): Do not add libieee.a and ieee-math.o.
8624         (CPPFLAGS-s_lib_version.c): Remove variable.
8625         ($(objpfx)libieee.a): Remove rule.
8626         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8627         * math/ieee-math.c: Remove.
8628         * math/libm-test-support.c (matherr): Remove.
8629         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8630         and license notices.  Include <math-svid-compat.h> and
8631         <shlib-compat.h>.
8632         (matherr): Undefine as macro.  Use compat_symbol_reference.
8633         (_LIB_VERSION): Likewise.
8634         * math/test-matherr-2.c: New file.
8635         * math/test-matherr-3.c: Likewise.
8636         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8637         declaration.
8638         (__kernel_standard_f): Likewise.
8639         (__kernel_standard_l): Likewise.
8640         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8641         <math_private.h>.  Include <math-svid-compat.h>.
8642         (_LIB_VERSION): Undefine as macro.
8643         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8644         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8645         [LIBM_SVID_COMPAT], use compat_symbol.
8646         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8647         <math_private.h>.  Include <math-svid-compat.h>.
8648         (matherr): Undefine as macro.
8649         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8650         compat_symbol.
8651         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8652         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8653         compat_symbol_reference.
8654         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8655         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8656         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8657         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8658         (MATHERR_D): Remove declaration.
8659         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8660         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8661         [LIBM_BUILD] (pmatherrf): Likewise.
8662         [LIBM_BUILD] (pmatherr): Likewise.
8663         [LIBM_BUILD] (pmatherrl): Likewise.
8664         (DOMAIN): Likewise.
8665         (SING): Likewise.
8666         (OVERFLOW): Likewise.
8667         (UNDERFLOW): Likewise.
8668         (TLOSS): Likewise.
8669         (PLOSS): Likewise.
8670         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8671         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8672         compat_symbol.
8673         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8674         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8675         compat_symbol.
8676         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8677         * math/w_acos_compat.c: Likewise.
8678         * math/w_acosf_compat.c: Likewise.
8679         * math/w_acosh_compat.c: Likewise.
8680         * math/w_acoshf_compat.c: Likewise.
8681         * math/w_acoshl_compat.c: Likewise.
8682         * math/w_acosl_compat.c: Likewise.
8683         * math/w_asin_compat.c: Likewise.
8684         * math/w_asinf_compat.c: Likewise.
8685         * math/w_asinl_compat.c: Likewise.
8686         * math/w_atan2_compat.c: Likewise.
8687         * math/w_atan2f_compat.c: Likewise.
8688         * math/w_atan2l_compat.c: Likewise.
8689         * math/w_atanh_compat.c: Likewise.
8690         * math/w_atanhf_compat.c: Likewise.
8691         * math/w_atanhl_compat.c: Likewise.
8692         * math/w_cosh_compat.c: Likewise.
8693         * math/w_coshf_compat.c: Likewise.
8694         * math/w_coshl_compat.c: Likewise.
8695         * math/w_exp10_compat.c: Likewise.
8696         * math/w_exp10f_compat.c: Likewise.
8697         * math/w_exp10l_compat.c: Likewise.
8698         * math/w_exp2_compat.c: Likewise.
8699         * math/w_exp2f_compat.c: Likewise.
8700         * math/w_exp2l_compat.c: Likewise.
8701         * math/w_fmod_compat.c: Likewise.
8702         * math/w_fmodf_compat.c: Likewise.
8703         * math/w_fmodl_compat.c: Likewise.
8704         * math/w_hypot_compat.c: Likewise.
8705         * math/w_hypotf_compat.c: Likewise.
8706         * math/w_hypotl_compat.c: Likewise.
8707         * math/w_j0_compat.c: Likewise.
8708         * math/w_j0f_compat.c: Likewise.
8709         * math/w_j0l_compat.c: Likewise.
8710         * math/w_j1_compat.c: Likewise.
8711         * math/w_j1f_compat.c: Likewise.
8712         * math/w_j1l_compat.c: Likewise.
8713         * math/w_jn_compat.c: Likewise.
8714         * math/w_jnf_compat.c: Likewise.
8715         * math/w_jnl_compat.c: Likewise.
8716         * math/w_lgamma_main.c: Likewise.
8717         * math/w_lgamma_r_compat.c: Likewise.
8718         * math/w_lgammaf_main.c: Likewise.
8719         * math/w_lgammaf_r_compat.c: Likewise.
8720         * math/w_lgammal_main.c: Likewise.
8721         * math/w_lgammal_r_compat.c: Likewise.
8722         * math/w_log10_compat.c: Likewise.
8723         * math/w_log10f_compat.c: Likewise.
8724         * math/w_log10l_compat.c: Likewise.
8725         * math/w_log2_compat.c: Likewise.
8726         * math/w_log2f_compat.c: Likewise.
8727         * math/w_log2l_compat.c: Likewise.
8728         * math/w_log_compat.c: Likewise.
8729         * math/w_logf_compat.c: Likewise.
8730         * math/w_logl_compat.c: Likewise.
8731         * math/w_pow_compat.c: Likewise.
8732         * math/w_powf_compat.c: Likewise.
8733         * math/w_powl_compat.c: Likewise.
8734         * math/w_remainder_compat.c: Likewise.
8735         * math/w_remainderf_compat.c: Likewise.
8736         * math/w_remainderl_compat.c: Likewise.
8737         * math/w_scalb_compat.c: Likewise.
8738         * math/w_scalbf_compat.c: Likewise.
8739         * math/w_scalbl_compat.c: Likewise.
8740         * math/w_sinh_compat.c: Likewise.
8741         * math/w_sinhf_compat.c: Likewise.
8742         * math/w_sinhl_compat.c: Likewise.
8743         * math/w_sqrt_compat.c: Likewise.
8744         * math/w_sqrtf_compat.c: Likewise.
8745         * math/w_sqrtl_compat.c: Likewise.
8746         * math/w_tgamma_compat.c: Likewise.
8747         * math/w_tgammaf_compat.c: Likewise.
8748         * math/w_tgammal_compat.c: Likewise.
8749         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8750         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8751         * sysdeps/ieee754/k_standard.c: Likewise.
8752         * sysdeps/ieee754/k_standardf.c: Likewise.
8753         * sysdeps/ieee754/k_standardl.c: Likewise.
8754         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8755         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8756         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8757         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8758         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8759         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8760         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8761         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8762         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8764         Likewise.
8765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8766         Likewise.
8767         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8768         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8769         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8770         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8772 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8774         [BZ #21864]
8775         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8776         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8777         Move before inclusion of ../Rules.
8779 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8781         [BZ #21972]
8782         * assert/assert.h (assert): Use static_cast (bool) for C++.
8783         Use the ternary operator in the warning branch for GNU C.
8784         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8785         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8786         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8787         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8788         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8790 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8792         [BZ #18822]
8793         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8794         (__syscall_clock_gettime): Add attribute_hidden.
8795         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8796         (__start_context): Likewise.
8798 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8800         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8801         building libc.a.
8802         (hidden_proto): Likewise.
8803         (hidden_tls_proto): Likewise.
8804         (__hidden_proto): Likewise.
8806 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8808         * include/libc-symbols.h (attribute_hidden): Enable hidden
8809         visibility in libc.a compiled with PIE.
8811 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8813         [BZ #18822]
8814         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8815         Add attribute_hidden.
8817 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8819         [BZ #21864]
8820         * Makerules (all-nonlib): Add $(others-extras).
8821         * catgets/Makefile (others-extras): New.
8822         * elf/Makefile (others-extras): Likewise.
8823         * nss/Makefile (others-extras): Likewise.
8825 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8827         [BZ #18822]
8828         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8829         * elf/dl-open.c: Include <libc-internal.h>.
8830         (__libc_multiple_libcs): Removed.
8831         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8832         <hp-timing.h>.
8833         * include/libc-internal.h (__libc_multiple_libcs): New.
8834         * misc/sbrk.c: Include <libc-internal.h>.
8835         (__libc_multiple_libcs): Removed.
8837 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8839         [BZ #18822]
8840         * grp/initgroups.c (__nss_group_database): Removed.
8841         (__nss_initgroups_database): Likewise.
8842         * nscd/gai.c (__nss_hosts_database): Likewise.
8843         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8844         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8845         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8846         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8847         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8848         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8849         attribute_hidden.
8850         * nss/nsswitch.c (__nss_database_custom): Define only if
8851         USE_NSCD is defined.
8852         (__nss_configure_lookup): Use __nss_database_custom only if
8853         USE_NSCD is defined.
8854         * nss/nsswitch.h (__nss_database_custom): Declare only if
8855         USE_NSCD is defined.  Add attribute_hidden.
8856         (__nss_setent): Add attribute_hidden.
8857         (__nss_endent): Likewise.
8858         (__nss_getent_r): Likewise.
8859         (__nss_getent): Likewise.
8860         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8862 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8864         [BZ #18822]
8865         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8866         libc_hidden_proto and libc_hidden_def.
8868 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8870         [BZ #18822]
8871         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8872         Add libc_hidden_proto.
8873         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8874         Add libc_hidden_def.
8876 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8878         [BZ #21974]
8879         * gmon/Makefile (routines): Remove bb_init_func and
8880         bb_exit_func.
8881         (elide-routines.os): Removed.
8882         * gmon/bb_exit_func.c: Likewise.
8883         * gmon/bb_init_func.c: Likewise.
8884         * include/sys/gmon.h (__bb): Likewise.
8885         (__bb_init_func): Likewise.
8886         (__bb_exit_func): Likewise.
8887         * sysdeps/alpha/bb_init_func.S: Likewise.
8889 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8891         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8892         * include/setjmp.h (____longjmp_chk): Here.  Add
8893         attribute_hidden.
8895 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8897         [BZ #18822]
8898         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8899         attribute_hidden.
8900         (__strspn_sse2): Likewise.
8902 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8904         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8905         (close_not_cancel_no_status): Likewise.
8906         (__close_nocancel): New macro.
8907         (__close_nocancel_nostatus): Likewise.
8908         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8909         macro.
8910         (close_not_cancel): Likewise.
8911         (close_not_cancel_no_status): Likewise.
8912         (__close_nocancel): New prototype.
8913         (__close_nocancel_nostatus): New function.
8914         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8915         * catgets/open_catalog.c (__open_catalog): Replace
8916         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8917         * gmon/gmon.c (write_gmon): Likewise.
8918         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8919         * intl/loadmsgcat.c (close): Likewise.
8920         * io/ftw.c (open_dir_stream): Likewise.
8921         (ftw_startup): Likewise.
8922         * libio/fileops.c (_IO_file_open): Likewise.
8923         (_IO_file_close_mmap): Likewise.
8924         (_IO_file_close): Likewise.
8925         * libio/iopopen.c (_IO_dup2): Likewise.
8926         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8927         * locale/loadlocale.c (_nl_load_locale): Likewise.
8928         * login/utmp_file.c (pututline_file): Likewise.
8929         (endutent_file): Likewise.
8930         * misc/daemon.c (daemon): Likewise.
8931         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8932         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8933         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8934         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8935         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8936         * nscd/nscd_helper.c (open_socket): Likewise.
8937         (__nscd_open_socket): Likewise.
8938         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8939         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8940         (__nscd_innetgr): Likewise.
8941         * nss/nss_db/db-open.c (internal_setent): Likewise.
8942         * resolv/res-close.c (__res_iclose): Likewise.
8943         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8944         * sysdeps/posix/closedir.c (__closedir): Likewise.
8945         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8946         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8947         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8948         (opendir_tail): Likewise.
8949         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8950         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8951         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8952         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8953         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8954         (gethostid): Likewise.
8955         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8956         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8957         Likewise.
8958         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8959         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8960         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8961         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8962         Likewise.
8963         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8964         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8965         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8966         Likewise.
8967         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8968         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8969         Likewise.
8970         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8971         Likewise.
8972         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8973         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8974         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8975         __close_nocancel.
8977         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8978         (openat_not_cancel_3): Likewise.
8979         (openat64_not_cancel_3): Likewise).
8980         (openat_not_cancel_3): Likewise).
8981         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8982         macro.
8983         (openat_not_cancel_3): Likewise.
8984         (openat64_not_cancel): Likewise.
8985         (openat64_not_cancel_3): Likewise.
8986         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8987         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8988         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8989         __open{64}_nocancel.
8990         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8991         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8992         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8994 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8996         [BZ #18822]
8997         * include/argz.h (__argz_create_sep): New function prototype.
8998         (__argz_append): Likewise.
8999         (__argz_add): Likewise.
9000         (__argz_add_sep): Likewise.
9001         (__argz_delete): Likewise.
9002         (__argz_insert): Likewise.
9003         (__argz_replace): Likewise.
9004         * string/argz.h (__argz_create_sep): Removed.
9005         (__argz_append): Likewise.
9006         (__argz_add): Likewise.
9007         (__argz_add_sep): Likewise.
9008         (__argz_delete): Likewise.
9009         (__argz_insert): Likewise.
9010         (__argz_replace): Likewise.
9012 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9014         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
9015         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
9016         (GNU_PROPERTY_STACK_SIZE): Likewie.
9017         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
9018         (GNU_PROPERTY_LOPROC): Likewise.
9019         (GNU_PROPERTY_HIPROC): Likewise.
9020         (GNU_PROPERTY_LOUSER): Likewise.
9021         (GNU_PROPERTY_HIUSER): Likewise.
9022         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
9023         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
9024         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
9025         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
9026         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
9027         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
9028         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
9029         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
9030         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
9031         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
9032         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
9033         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
9034         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
9035         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
9036         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
9037         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
9038         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
9039         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
9040         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
9041         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
9042         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
9043         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
9044         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
9046 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9048         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
9049         in C++ mode.
9051 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9053         [BZ #21930]
9054         * math/math.h (isinf): Check if in C or C++ mode before using
9055         __builtin_types_compatible_p, since this is a C mode feature.
9057 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9059         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
9060         (__write_nocancel): New macro.
9061         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
9062         Rewrite as a function prototype.
9063         (write_not_cancel): Remove macro.
9064         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
9065         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
9066         (write_gmon): Likewise.
9067         * libio/fileops.c (_IO_new_file_write): Likewise.
9068         * login/utmp_file.c (pututline_file): Likewise.
9069         (updwtmp_file): Likewise.
9070         * stdio-common/psiginfo.c (psiginfo): Likewise.
9071         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9072         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9073         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9074         Likewise.
9075         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9076         Likewise.
9078         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9079         (__read_nocancel): New macro.
9080         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9081         __read_nocancel.
9082         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9083         macro.
9084         (__read_nocancel): New prototype.
9085         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9086         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9087         with __read_nocancel.
9088         * intl/loadmsgcat.c (read): Likewise.
9089         * libio/fileops.c (_IO_file_read): Likewise.
9090         * locale/loadlocale.c (_nl_load_locale): Likewise.
9091         * login/utmp_file.c (getutent_r_file): Likewise.
9092         (internal_getut_r): Likewise.
9093         (getutline_r_file): Likewise.
9094         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9095         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9096         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9097         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9098         Likewise.
9099         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9100         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9101         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9102         Likewise.
9103         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9104         Likewise.
9105         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9106         Likewise.
9107         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9108         Likewise.
9109         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9111 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9113         [BZ #21966]
9114         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9115         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9116         usable.
9118 2017-08-17  DJ Delorie  <dj@redhat.com>
9120         * bug17079.c: Update to new test harness.
9121         * test-digits-dots.c: Likewise.
9122         * test-netdb.c: Likewise.
9123         * tst-field.c: Likewise.
9124         * tst-nss-getpwent.c: Likewise.
9125         * tst-nss-static.c: Likewise.
9126         * tst-nss-test1.c: Likewise.
9127         * tst-nss-test2.c: Likewise.
9128         * tst-nss-test3.c: Likewise.
9129         * tst-nss-test4.c: Likewise.
9130         * tst-nss-test5.c: Likewise.
9132 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9134         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9135         (open_not_cancel_2): Likewise.
9136         (open_nocancel): New macro.
9137         (open64_nocancel): Likewise.
9138         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9139         (open_not_cancel_2): Likewise.
9140         (__open_nocancel): New prototype.
9141         (__open64_nocancel): Likewise.
9142         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9143         __open_nocancel.
9144         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9145         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9146         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9147         with __open_nocancel.
9148         * csu/check_fds.c (check_one_fd): Likewise.
9149         * gmon/gmon.c (write_gmon): Likewise.
9150         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9151         * intl/loadmsgcat.c (open): Likewise.
9152         * libio/fileops.c (_IO_file_open): Likewise.
9153         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9154         * locale/loadlocale.c (_nl_load_locale): Likewise.
9155         * login/utmp_file.c (setutent_file): Likewise.
9156         * misc/daemon.c (daemon): Likewise.
9157         * nss/nss_db/db-open.c (internal_setent): Likewise.
9158         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9159         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9160         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9161         (__opendir): Likewise.
9162         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9163         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9164         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9165         (gethostid): Likewise.
9166         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9167         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9168         Likewise.
9169         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9170         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9171         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9172         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9173         Likewise.
9174         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9175         Likewise.
9176         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9177         Likewise.
9178         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9179         Likewise.
9180         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9181         Likewise.
9182         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9183         Likewise.
9184         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9185         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9187 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9189         * benchtests/bench-skeleton.c (main): Add support for
9190         latency benchmarking.
9191         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9193 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9195         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9196         the startup object.
9198 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9200         * include/sys/socket.h (__opensock): Remove internal_function.
9201         * socket/opensock.c (__opensock): Likewise.
9202         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9204 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9206         [BZ #21944]
9207         * signal/bits/types/__sigval_t.h: New file.
9208         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9209         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9210         and define sigval_t using __sigval_t.
9211         * include/bits/types/__sigval_t.h: New file.
9212         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9213         instead of <bits/types/__sigval_t.h>.
9214         (struct sigevent): Use __sigval_t instead of sigval_t.
9215         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9216         instead of <bits/types/__sigval_t.h>.
9217         (siginfo_t): Use __sigval_t instead of sigval_t.
9218         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9219         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9220         (struct sigevent): Use __sigval_t instead of sigval_t.
9221         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9222         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9223         (siginfo_t): Use __sigval_t instead of sigval_t.
9224         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9226 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9228         * NEWS: Remove "[Add new features here]" for 2.27.
9230 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9232         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9233         libc.so.
9235 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9237         * NEWS: Mention x86-64 FMA optimization.
9239 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9241         [BZ #21912]
9242         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9243         Add e_expf-fma.
9244         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9245         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9246         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9248 2017-08-16  Andreas Schwab  <schwab@suse.de>
9250         [BZ #16750]
9251         CVE-2009-5064
9252         * elf/ldd.bash.in: Never run file directly.
9254 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9256         [BZ #21955]
9257         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9258         (L(SP_INF_0)): Likewise.
9260 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9262         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9263         run-built-tests.
9265 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9267         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9268         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9269         BROKEN_THREAD_SIGNALS code.
9270         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9271         request_list): Remove caller_pid member used for
9272         BROKEN_THREAD_SIGNALS.
9273         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9274         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9275         Remove BROKEN_THREAD_SIGNALS support.
9276         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9277         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9279 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9281         * gmon/Makefile (tests): Add tst-gmon.
9282         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9283         Set.
9284         (tests-special): Add tst-gmon-prof.out.
9285         (tst-gmon.out): Depend on clean-tst-gmon-data.
9286         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9287         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9288         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9289         startup object.
9290         * aclocal.m4 (GPROF): Set and substitute.
9291         * config.amke.in (GPROF): Set.
9292         * configure: Regenerate.
9294 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9296         * elf/elf.h A (NT_PPC_TAR): New macro.
9297         (NT_PPC_PPR): Likewise.
9298         (NT_PPC_DSCR): Likewise.
9299         (NT_PPC_EBB): Likewise.
9300         (NT_PPC_PMU): Likewise.
9301         (NT_PPC_TM_CGPR): Likewise.
9302         (NT_PPC_TM_CFPR): Likewise.
9303         (NT_PPC_TM_CVMX): Likewise.
9304         (NT_PPC_TM_CVSX): Likewise.
9305         (NT_PPC_TM_SPR): Likewise.
9306         (NT_PPC_TM_CTAR): Likewise.
9307         (NT_PPC_TM_CPPR): Likewise.
9308         (NT_PPC_TM_CDSCR): Likewise.
9310 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9312         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9313         regparm (2) instead of internal_function.
9314         (_MCOUNT_DECL): Adjust.
9316 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9318         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9319         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9321 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9323         * conform/data/sys/wait.h-data (si_value): Do not expect for
9324         XPG42.
9326 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9328         [BZ #21962]
9329         NSS: Create stubs for accidentally exported lookup functions.
9330         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9331         Remove declaration.
9332         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9333         (ether_hostton): Call __nss_ethers_lookup2 instead.
9334         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9335         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9336         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9337         (setup): Call __nss_netgroup_lookup2 instead.
9338         * nss/Makefile (routines): Add compat-lookup.
9339         * nss/Versions (GLIBC_2.27): Add symbol version.
9340         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9341         (DB_COMPAT_FCT): Remove.
9342         * nss/compat-lookup.c: New file.
9343         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9344         from databases.def.
9345         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9346         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9347         (netname2user): Call __nss_publickey_lookup2 instead.
9348         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9349         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9350         instead.
9352 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9353             Sergei Trofimovich  <slyfox@inbox.ru>
9355         [BZ #21908]
9356         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9357         Rename to MMAP2_PAGE_UNIT.
9358         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9359         __OFF_T_MATCHES_OFF64_T is not defined.
9360         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9361         uint64_t.
9362         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9363         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9365 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9367         i386: Do not set internal_function.
9368         * config.h.in (USE_REGPARMS, internal_function): Remove.
9369         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9370         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9372 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9374         * elf/dl-init.c (_dl_init): Remove internal_function.
9375         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9376         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9378 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9380         * elf/rtld.c (_dl_start): Remove internal_function.
9381         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9382         _dl_start.
9384 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9386         * elf/dl-fini.c (_dl_fini): Remove internal_function
9387         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9389 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9391         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9392         (bit_cpu_SHSTK): Likewise.
9393         (index_cpu_IBT): Likewise.
9394         (index_cpu_SHSTK): Likewise.
9395         (reg_IBT): Likewise.
9396         (reg_SHSTK): Likewise.
9397         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9398         Handle index_cpu_IBT and index_cpu_SHSTK.
9400 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9402         [BZ #19982]
9403         * po/fr.po: Fix spelling mistake.
9405 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9407         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9408         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9409         (_dl_catch_error, _dl_receive_error): Likewise.
9410         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9411         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9412         (_dl_deallocate_tls): Likewise.
9413         * include/dlfcn.h (_dl_addr): Likewise.
9414         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9415         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9416         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9417         Likewise.
9419 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9421         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9422         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9423         internal_function.
9424         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9426 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9428         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9429         internal_function.
9430         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9431         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9432         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9433         internal_function from _dl_make_stack_executable_hook member.
9434         (_dl_make_stack_executable): Remove internal_function.
9435         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9436         Likewise.
9437         * sysdeps/unix/sysv/linux/dl-execstack.c
9438         (_dl_make_stack_executable): Likewise.
9440 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9442         * sysdeps/unix/sysv/linux/netlinkaccess.h
9443         (__netlink_assert_response): Remove internal_function.
9444         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9445         (__netlink_assert_response): Likewise.
9447 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9449         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9450         internal_function.
9451         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9453 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9455         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9456         internal_function.
9457         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9458         * inet/netgroup.h (__internal_setnetgrent)
9459         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9460         * inet/getnetgrent_r.c (__internal_setnetgrent)
9461         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9462         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9463         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9464         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9465         * nss/nsswitch.h (db_lookup_function): Likewise.
9467 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9469         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9470         Remove internal_function.
9471         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9472         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9473         message argument on the stack.
9474         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9475         Likeweise.
9477 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9479         Adapt test case data to the changes in the thousands
9480         separators.
9482         [BZ #20756]
9483         * localedata/tst-langinfo.sh: Adapt test case data.
9484         * stdlib/tst-strfmon_l.c: Likewise.
9485         * stdlib/tst-strtod4.c: Likewise.
9486         * stdlib/tst-strtod5i.c: Likewise.
9488 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9490         [BZ #21242]
9491         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9492         Suppress pedantic warning resulting from statement expression.
9493         (__ASSERT_FUNCTION): Add missing __extension__.
9495 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9497         * benchtests/bench-memmove-large.c: Print output in JSON
9498         format.
9499         * benchtests/bench-memmove.c: Likewise.
9501         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9502         * benchtests/bench-memchr.c (do_one_test): Likewise.
9503         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9504         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9505         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9506         * benchtests/bench-memmove.c (do_one_test): Likewise.
9507         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9508         * benchtests/bench-memset.c (do_one_test): Likewise.
9509         * benchtests/bench-string.h (test_init): Remove memsets.
9511 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9513         * manual/lang.texi
9514         (Computing the Width of an Integer Data Type): Rename section to
9515         "Width of an Integer Type".  Remove inaccurate statement regarding
9516         lack of C language facilities for determining width of integer
9517         types, and reorder content to improve flow and context of
9518         discussion.
9520 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9522         * lang.texi (va_copy): Change standard from ISO to C99.
9523         (__va_copy): Add standard and header annotation.
9524         Update description for clarity of origins and current use.
9526 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9528         [BZ #21941]
9529         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9530         xssqrtqp requires operands to be in Vector Registers
9531         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9532         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9533         (__ieee754_sqrtf128): Likewise.
9535 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9537         * sysdeps/aarch64/memcmp.S (memcmp):
9538         Rewrite of optimized memcmp.
9540 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9542         Introduce ld.so exceptions.
9543         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9544         (_dl_exception_create, _dl_exception_create_format)
9545         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9546         (_dl_catch_exception): Declare.
9547         (_dl_catch_error): Update comment.
9548         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9549         errstring, malloced members with exception member.
9550         (_dl_out_of_memory): Remove.
9551         (fatal_error): New function, extracted from _dl_signal_error.
9552         (_dl_signal_exception, _dl_signal_cexception): New functions.
9553         (_dl_signal_error): Call _dl_exception_create to allocate an
9554         exception object.
9555         (_dl_catch_exception): New function, based on _dl_catch_error.
9556         (_dl_catch_error): Implement using _dl_catch_exception.
9557         * elf/dl-exception.c: New file.
9558         * elf/Makefile (dl-routines): Add dl-exception.
9559         (elide-routines.os): Likewise.
9560         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9561         _dl_exception_create_format, _dl_exception_free.
9562         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9563         _dl_signal_exception.
9564         * elf/dl-lookup.c (make_string): Remove.
9565         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9566         _dl_signal_cexception, _dl_exception_free.
9567         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9568         _dl_signal_exception.
9569         * elf/dl-sym.c (do_sym): Likewise.
9570         * elf/dl-version.c (make_string): Remove.
9571         (match_symbol): Use _dl_exception_create_format,
9572         _dl_signal_cexception, _dl_exception_free.
9573         (_dl_check_map_versions): Likewise.
9574         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9575         _dl_catch_exception.
9576         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9577         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9578         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9579         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9580         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9581         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9582         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9583         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9584         Likewise.
9585         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9587         (ld.so): Likewise.
9588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9589         (ld.so): Likewise.
9590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9591         Likewise.
9592         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9593         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9594         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9595         Likewise.
9596         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9597         Likewise.
9598         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9600 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9602         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9603         attribute_hidden, internal_function.
9604         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9605         internal_function.
9607 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9609         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9610         function which calls __builtin_unreachable.
9612 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9614         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9615         Indian monetary formatting
9616         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9617         test cases.
9619 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9621         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9622         Fix typo in comment.
9624         [BZ #21928]
9625         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9626         PTRACE_SEIZE_DEVEL): Remove.
9627         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9628         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9629         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9630         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9631         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9633 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9635         * posix/bits/types.h (__qaddr_t): Remove.
9637         [BZ #21457]
9638         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9639         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9640         __glibc_reserved1.
9641         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9642         (ucontext_t): Use __ctx with uc_flags.
9643         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9644         (__ctxt): Likewise.
9645         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9646         __glibc_reserved1.
9647         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9648         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9649         __glibc_reserved1.
9650         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9651         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9652         __glibc_reserved1.
9653         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9654         macro.
9655         (ucontext_t): Use __ctx with uc_flags.
9656         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9657         (ucontext_t): Use __ctx with uc_flags.
9658         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9659         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9660         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9661         (ucontext_t): Use __ctx with uc_flags.
9662         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9663         undefine further down.
9664         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9665         __glibc_reserved1.
9666         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9667         undefine further down.
9668         (ucontext_t): Use __ctx with uc_flags.
9669         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9670         undefine further down.
9671         (ucontext_t): Use __ctx with uc_flags.
9672         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9673         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9674         Rename uc_pad to __glibc_reserved1.
9675         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9676         undefine further down.
9677         (ucontext_t): Use __ctx with uc_flags.
9678         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9679         further down.
9680         (ucontext_t): Use __ctx with uc_flags.
9681         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9682         __ctx with uc_flags.
9683         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9684         (ucontext_t): Use __ctx with uc_flags.
9685         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9686         __ctx with uc_flags.
9688 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9690         [BZ #21932]
9691         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9692         before early return.
9694 2017-08-09  Andreas Schwab  <schwab@suse.de>
9696         [BZ #21041]
9697         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9698         renamed alias.
9700         [BZ #21041]
9701         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9702         tst-compat-forwarder.
9703         (modules-names): Add tst-compat-forwarder-mod.
9704         ($(objpfx)tst-compat-forwarder): Depend on
9705         $(objpfx)tst-compat-forwarder-mod.so.
9706         * nptl/tst-compat-forwarder.c: New file.
9707         * nptl/tst-compat-forwarder-mod.c: New file.
9709 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9711         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9712         comments.
9714         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9715         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9716         memcpy_falkor.
9717         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9718         Bump.
9719         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9720         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9721         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9722         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9723         Add falkor.
9724         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9725         New macro.
9727 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9729         [BZ #759]
9730         * manual/setjmp.texi (getcontex): Document uc_stack value
9731         compatibility differences.
9733 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9735         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9736         (old_malloc_hook): Likewise.
9737         (old_memalign_hook): Likewise.
9738         (old_realloc_hook): Likewise.
9739         (struct hdr): Likewise.
9740         (flood): Likewise.
9741         (freehook): Likewise.
9742         (mallochook): Likewise.
9743         (memalignhook): Likewise.
9744         (reallochook): Likewise.
9745         (mprobe): Likewise.
9746         * malloc/mtrace.c (mallwatch): Likewise.
9747         (tr_old_free_hook): Likewise.
9748         (tr_old_malloc_hook): Likewise.
9749         (tr_old_realloc_hook): Likewise.
9750         (tr_old_memalign_hook): Likewise.
9751         (tr_where): Likewise.
9752         (lock_and_info): Likewise.
9753         (tr_freehook): Likewise.
9754         (tr_mallochook): Likewise.
9755         (tr_reallochook): Likewise.
9756         (tr_memalignhook): Likewise.
9757         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9758         * misc/mmap.c (__mmap): Likewise.
9759         * misc/mmap64.c (__mmap64): Likewise.
9760         * misc/mprotect.c (__mprotect): Likewise.
9761         * misc/msync.c (msync): Likewise.
9762         * misc/munmap.c (__munmap): Likewise.
9763         * posix/posix_madvise.c (posix_madvise): Likewise.
9764         * socket/send.c (__send): Likewise.
9765         * socket/sendto.c (__sendto): Likewise.
9766         * socket/setsockopt.c (__setsockopt): Likewise.
9767         * string/memcmp.c (__ptr_t): Remove macro.
9768         (MEMCMP): Use void * instead of ptr_t.
9769         * string/memrchr.c (__ptr_t): Remove macro.
9770         (__memrchr): Use void * instead of ptr_t.
9771         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9772         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9773         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9774         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9775         * sysdeps/mach/msync.c (msync): Likewise.
9776         * sysdeps/mach/munmap.c (__munmap): Likewise.
9777         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9778         Likewise.
9779         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9780         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9781         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9782         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9783         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9784         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9785         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9786         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9787         Likewise.
9788         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9789         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9790         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9791         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9792         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9793         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9794         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9795         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9796         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9797         Likewise.
9798         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9799         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9800         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9801         (MEMCMP): Use void * instead of ptr_t.
9802         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9803         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9805 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9807         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9808         return statement.
9810 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9812         [BZ #21913]
9813         * csu/libc-tls.c: Include <startup.h> first.
9814         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9815         * elf/dl-tunables.c: Include <startup.h> first.
9816         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9817         * sysdeps/generic/startup.h: New file.
9818         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9819         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9820         (I386_USE_SYSENTER): New.  Defined to 0.
9822 2017-08-08  Andreas Schwab  <schwab@suse.de>
9824         [BZ #21041]
9825         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9826         * nptl/pt-system.c (system): Likewise.
9828 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9830         [BZ #21780]
9831         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9832         EOPNOTSUPP.
9833         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9834         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9835         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9836         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9837         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9838         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9839         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9841 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9843         [BZ #21899]
9844         * bits/sigaction.h (struct sigaction): Define sa_handler and
9845         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9846         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9847         [__USE_XOPEN_EXTENDED].
9848         (SA_RESTART): Likewise.
9849         (SA_NODEFER): Likewise.
9850         (SA_RESETHAND): Likewise.
9851         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9852         (struct sigaction): Define sa_handler and sa_sigaction using union
9853         also for [__USE_XOPEN_EXTENDED].
9854         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9855         [__USE_XOPEN_EXTENDED].
9856         (SA_RESTART): Likewise.
9857         (SA_NODEFER): Likewise.
9858         (SA_RESETHAND): Likewise.
9859         * sysdeps/unix/sysv/linux/bits/sigaction.h
9860         (struct sigaction): Define sa_handler and sa_sigaction using union
9861         also for [__USE_XOPEN_EXTENDED].
9862         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9863         [__USE_XOPEN_EXTENDED].
9864         (SA_RESTART): Likewise.
9865         (SA_NODEFER): Likewise.
9866         (SA_RESETHAND): Likewise.
9867         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9868         (struct sigaction): Define sa_handler and sa_sigaction using union
9869         also for [__USE_XOPEN_EXTENDED].
9870         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9871         [__USE_XOPEN_EXTENDED].
9872         (SA_RESTART): Likewise.
9873         (SA_NODEFER): Likewise.
9874         (SA_RESETHAND): Likewise.
9875         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9876         (struct sigaction): Define sa_handler and sa_sigaction using union
9877         also for [__USE_XOPEN_EXTENDED].
9878         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9879         [__USE_XOPEN_EXTENDED].
9880         (SA_RESTART): Likewise.
9881         (SA_NODEFER): Likewise.
9882         (SA_RESETHAND): Likewise.
9883         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9884         (struct sigaction): Define sa_handler and sa_sigaction using union
9885         also for [__USE_XOPEN_EXTENDED].
9886         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9887         [__USE_XOPEN_EXTENDED].
9888         (SA_RESTART): Likewise.
9889         (SA_NODEFER): Likewise.
9890         (SA_RESETHAND): Likewise.
9891         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9892         (struct sigaction): Define sa_handler and sa_sigaction using union
9893         also for [__USE_XOPEN_EXTENDED].
9894         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9895         [__USE_XOPEN_EXTENDED].
9896         (SA_RESTART): Likewise.
9897         (SA_NODEFER): Likewise.
9898         (SA_RESETHAND): Likewise.
9899         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9900         (struct sigaction): Define sa_handler and sa_sigaction using union
9901         also for [__USE_XOPEN_EXTENDED].
9902         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9903         [__USE_XOPEN_EXTENDED].
9904         (SA_RESTART): Likewise.
9905         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9906         (SA_RESETHAND): Likewise.
9907         (SA_INTERRUPT): Define only for [__USE_MISC].
9908         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9909         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9910         [__USE_MISC].
9911         (SA_STACK): Define only for [__USE_MISC].
9912         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9913         (struct sigaction): Define sa_handler and sa_sigaction using union
9914         also for [__USE_XOPEN_EXTENDED].
9915         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9916         [__USE_XOPEN_EXTENDED].
9917         (SA_RESTART): Likewise.
9918         (SA_NODEFER): Likewise.
9919         (SA_RESETHAND): Likewise.
9920         (SA_NOPTRACE): Define only for [__USE_MISC].
9922         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9923         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9924         (struct catalog_info): Likewise.
9925         * inet/htontest.c (lo): Likewise.
9926         (foo): Likewise.
9927         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9928         * inet/inet_net.c (inet_network): Likewise.
9929         * inet/inet_netof.c (inet_netof): Likewise.
9930         * inet/rcmd.c (__ivaliduser): Likewise.
9931         (iruserok): Likewise.
9932         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9933         * locale/programs/locale-spec.c (locale_special): Likewise.
9934         * nis/nis_findserv.c (struct findserv_req): Likewise.
9935         (__nis_findfastest_with_timeout): Likewise.
9936         * nss/test-netdb.c (test_network): Likewise.
9937         * resolv/inet_neta.c (inet_neta): Likewise.
9938         * resolv/ns_date.c (ns_datetosecs): Likewise.
9939         (SECS_PER_DAY): Likewise.
9940         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9941         Likewise.
9942         * resolv/res_comp.c (__putlong): Likewise.
9943         (__putshort): Likewise.
9944         (_getlong): Likewise.
9945         (_getshort): Likewise.
9946         * resolv/res_debug.c (p_time): Likewise.
9947         (precsize_ntoa): Likewise.
9948         (precsize_aton): Likewise.
9949         (latlon2ul): Likewise.
9950         (loc_aton): Likewise.
9951         (loc_ntoa): Likewise.
9952         * resolv/res_hconf.c (struct netaddr): Likewise.
9953         (_res_hconf_reorder_addrs): Likewise.
9954         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9955         (clnttcp_control): Likewise.
9956         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9957         (clntudp_control): Likewise.
9958         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9959         (clntunix_control): Likewise.
9960         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9961         * sunrpc/rpc/auth.h (union des_block): Likewise.
9962         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9963         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9964         (xdrrec_create): Likewise.
9965         (xdrrec_endofrecord): Likewise.
9966         (flush_out): Likewise.
9967         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9968         (xdrstdio_putlong): Likewise.
9969         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9970         Likewise.
9972         * misc/sys/cdefs.h (__long_double_t): Remove.
9973         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9974         instead of __long_double_t,
9975         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9977 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9979         * benchtests/scripts/compare_strings.py: Avoid display error when
9980         running on a text terminal.
9982         * benchtests/scripts/compare_strings.py (main): Add an
9983         optional -base option.
9984         (process_results): New argument base_func.
9986         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9987         hardcoding memcpy.
9988         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9989         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9991 2017-08-07  Andreas Schwab  <schwab@suse.de>
9993         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9994         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9995         * intl/Makefile ($(objpfx)tst-gettext.out)
9996         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9997         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9998         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9999         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
10000         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
10001         * posix/Makefile ($(objpfx)globtest.out)
10002         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
10003         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
10004         ($(objpfx)tst-printf.out): Likewise.
10005         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
10006         ($(objpfx)tst-setcontext3.out): Likewise.
10008 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10010         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10011         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
10012         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
10013         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
10014         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
10015         and mptan-fma.
10016         (CFLAGS-doasin-fma.c): New.
10017         (CFLAGS-dosincos-fma.c): Likewise.
10018         (CFLAGS-e_asin-fma.c): Likewise.
10019         (CFLAGS-e_atan2-fma.c): Likewise.
10020         (CFLAGS-e_exp-fma.c): Likewise.
10021         (CFLAGS-e_log-fma.c): Likewise.
10022         (CFLAGS-e_pow-fma.c): Likewise.
10023         (CFLAGS-halfulp-fma.c): Likewise.
10024         (CFLAGS-mpa-fma.c): Likewise.
10025         (CFLAGS-mpatan-fma.c): Likewise.
10026         (CFLAGS-mpatan2-fma.c): Likewise.
10027         (CFLAGS-mpexp-fma.c): Likewise.
10028         (CFLAGS-mplog-fma.c): Likewise.
10029         (CFLAGS-mpsqrt-fma.c): Likewise.
10030         (CFLAGS-mptan-fma.c): Likewise.
10031         (CFLAGS-s_atan-fma.c): Likewise.
10032         (CFLAGS-sincos32-fma.c): Likewise.
10033         (CFLAGS-slowexp-fma.c): Likewise.
10034         (CFLAGS-slowpow-fma.c): Likewise.
10035         (CFLAGS-s_sin-fma.c): Likewise.
10036         (CFLAGS-s_tan-fma.c): Likewise.
10037         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
10038         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
10039         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
10040         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
10041         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
10042         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10043         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
10044         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
10045         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
10046         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
10047         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
10048         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
10049         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
10050         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10051         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10052         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
10053         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
10054         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
10055         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
10056         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
10057         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
10058         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10059         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10060         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
10061         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10062         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10063         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10064         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
10065         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10066         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10067         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10069 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
10071         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
10072         (min_of_type_f): New macro.
10073         (min_of_type_): Likewise.
10074         (min_of_type_l): Likewise.
10075         (min_of_type_f128): Likewise.
10076         (min_of_type): Define using __MATH_TG and taking an expression
10077         argument.
10078         (math_check_force_underflow): Pass expression instead of type to
10079         min_of_type.
10080         (math_check_force_underflow_nonneg): Likewise.
10082 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10084         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10085         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10086         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10088 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10090         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10091         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10092         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10093         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10094         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10095         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10096         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10097         memmove_chk-nonshared and memset_chk-nonshared
10098         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10099         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10100         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10101         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10102         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10103         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10104         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10105         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10106         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10107         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10108         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10109         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10110         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10111         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10112         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10113         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10114         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10115         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10116         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10117         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10118         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10119         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10120         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10121         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10122         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10123         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10124         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10125         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10126         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10127         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10128         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10129         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10130         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10131         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10132         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10133         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10134         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10135         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10136         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10137         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10138         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10139         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10140         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10141         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10142         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10143         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10144         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10145         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10146         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10147         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10148         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10149         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10150         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10151         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10152         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10153         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10154         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10155         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10156         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10157         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10158         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10159         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10160         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10161         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10162         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10163         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10164         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10165         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10166         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10167         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10168         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10169         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10170         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10171         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10172         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10173         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10174         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10175         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10176         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10177         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10178         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10179         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10180         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10181         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10182         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10183         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10184         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10185         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10186         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10187         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10188         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10189         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10190         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10191         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10192         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10193         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10194         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10195         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10196         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10197         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10198         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10199         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10200         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10201         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10202         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10203         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10204         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10205         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10207 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10209         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10210         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10211         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10212         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10213         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10214         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10215         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10216         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10217         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10218         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10219         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10220         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10221         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10222         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10223         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10224         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10225         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10226         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10227         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10228         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10229         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10230         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10231         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10232         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10233         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10234         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10235         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10236         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10237         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10238         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10239         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10240         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10241         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10242         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10243         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10244         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10245         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10246         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10247         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10248         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10249         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10250         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10251         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10252         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10253         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10254         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10255         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10256         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10257         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10258         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10259         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10260         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10261         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10262         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10263         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10264         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10265         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10266         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10267         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10268         ...
10269         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10270         Don't include <sysdep.h> nor <init-arch.h>.
10271         (_ZGVbN2v_cos): Removed.
10272         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10273         ...
10274         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10275         Don't include <sysdep.h> nor <init-arch.h>.
10276         (_ZGVdN4v_cos): Removed.
10277         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10278         ...
10279         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10280         Don't include <sysdep.h> nor <init-arch.h>.
10281         (_ZGVeN8v_cos): Removed.
10282         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10283         ...
10284         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10285         Don't include <sysdep.h> nor <init-arch.h>.
10286         (_ZGVbN2v_exp): Removed.
10287         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10288         ...
10289         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10290         Don't include <sysdep.h> nor <init-arch.h>.
10291         (_ZGVdN4v_exp): Removed.
10292         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10293         ...
10294         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10295         Don't include <sysdep.h> nor <init-arch.h>.
10296         (_ZGVeN8v_exp): Removed.
10297         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10298         ...
10299         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10300         Don't include <sysdep.h> nor <init-arch.h>.
10301         (_ZGVbN2v_log): Removed.
10302         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10303         ...
10304         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10305         Don't include <sysdep.h> nor <init-arch.h>.
10306         (_ZGVdN4v_log): Removed.
10307         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10308         ...
10309         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10310         Don't include <sysdep.h> nor <init-arch.h>.
10311         (_ZGVeN8v_log): Removed.
10312         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10313         ...
10314         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10315         Don't include <sysdep.h> nor <init-arch.h>.
10316         (_ZGVbN2vv_pow): Removed.
10317         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10318         ...
10319         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10320         Don't include <sysdep.h> nor <init-arch.h>.
10321         (_ZGVdN4vv_pow): Removed.
10322         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10323         ...
10324         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10325         Don't include <sysdep.h> nor <init-arch.h>.
10326         (_ZGVeN8vv_pow): Removed.
10327         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10328         ...
10329         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10330         Don't include <sysdep.h> nor <init-arch.h>.
10331         (_ZGVbN2v_sin): Removed.
10332         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10333         ...
10334         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10335         Don't include <sysdep.h> nor <init-arch.h>.
10336         (_ZGVbN4v_sin): Removed.
10337         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10338         ...
10339         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10340         Don't include <sysdep.h> nor <init-arch.h>.
10341         (_ZGVbN8v_sin): Removed.
10342         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10343         ...
10344         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10345         Don't include <sysdep.h> nor <init-arch.h>.
10346         (_ZGVbN2vvv_sincos): Removed.
10347         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10348         ...
10349         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10350         Don't include <sysdep.h> nor <init-arch.h>.
10351         (_ZGVdN4vvv_sincos): Removed.
10352         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10353         ...
10354         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10355         Don't include <sysdep.h> nor <init-arch.h>.
10356         (_ZGVeN8vvv_sincos): Removed.
10357         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10358         ...
10359         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10360         Don't include <sysdep.h> nor <init-arch.h>.
10361         (_ZGVeN16v_cosf): Removed.
10362         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10363         ...
10364         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10365         Don't include <sysdep.h> nor <init-arch.h>.
10366         (_ZGVbN4v_cosf): Removed.
10367         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10368         ...
10369         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10370         Don't include <sysdep.h> nor <init-arch.h>.
10371         (_ZGVdN8v_cosf): Removed.
10372         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10373         ...
10374         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10375         Don't include <sysdep.h> nor <init-arch.h>.
10376         (_ZGVeN16v_expf): Removed.
10377         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10378         ...
10379         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10380         Don't include <sysdep.h> nor <init-arch.h>.
10381         (_ZGVbN4v_expf): Removed.
10382         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10383         ...
10384         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10385         Don't include <sysdep.h> nor <init-arch.h>.
10386         (_ZGVdN8v_expf): Removed.
10387         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10388         ...
10389         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10390         Don't include <sysdep.h> nor <init-arch.h>.
10391         (_ZGVeN16v_logf): Removed.
10392         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10393         ...
10394         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10395         Don't include <sysdep.h> nor <init-arch.h>.
10396         (_ZGVbN4v_logf): Removed.
10397         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10398         ...
10399         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10400         Don't include <sysdep.h> nor <init-arch.h>.
10401         (_ZGVdN8v_logf): Removed.
10402         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10403         ...
10404         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10405         Don't include <sysdep.h> nor <init-arch.h>.
10406         (_ZGVeN16vv_powf): Removed.
10407         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10408         ...
10409         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10410         Don't include <sysdep.h> nor <init-arch.h>.
10411         (_ZGVbN4vv_powf): Removed.
10412         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10413         ...
10414         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10415         Don't include <sysdep.h> nor <init-arch.h>.
10416         (_ZGVdN8vv_powf): Removed.
10417         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10418         ...
10419         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10420         Don't include <sysdep.h> nor <init-arch.h>.
10421         (_ZGVeN16vvv_sincosf): Removed.
10422         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10423         ...
10424         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10425         Don't include <sysdep.h> nor <init-arch.h>.
10426         (_ZGVbN4vvv_sincosf): Removed.
10427         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10428         ...
10429         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10430         Don't include <sysdep.h> nor <init-arch.h>.
10431         (_ZGVdN8vvv_sincosf): Removed.
10432         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10433         ...
10434         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10435         Don't include <sysdep.h> nor <init-arch.h>.
10436         (_ZGVeN16v_sinf): Removed.
10437         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10438         ...
10439         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10440         Don't include <sysdep.h> nor <init-arch.h>.
10441         (_ZGVbN4v_sinf): Removed.
10442         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10443         ...
10444         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10445         Don't include <sysdep.h> nor <init-arch.h>.
10446         (_ZGVdN8v_sinf): Removed.
10448 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10450         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10451         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10452         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10453         s_rint-sse4_1 and s_rintf-sse4_1.
10454         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10455         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10456         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10457         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10458         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10459         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10460         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10461         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10462         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10463         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10464         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10465         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10466         (__ceil): Removed.
10467         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10468         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10469         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10470         (__ceilf): Removed.
10471         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10472         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10473         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10474         (__floor): Removed.
10475         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10476         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10477         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10478         (__floorf): Removed.
10479         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10480         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10481         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10482         (__nearbyint): Removed.
10483         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10484         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10485         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10486         (__nearbyintf): Removed.
10487         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10488         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10489         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10490         (__rint): Removed.
10491         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10492         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10493         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10494         (__rintf): Removed.
10496 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10498         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10499         SHARED.  Avoid dynamic relocation against main in static PIE.
10501 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10503         [BZ #21815]
10504         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10505         (LDFLAGS-tst-prelink): Likewise.
10507 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10509         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10510         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10511         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10512         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10513         (INTERNAL_SYSCALL_NCS): Likewise.
10514         (LOADARGS_1): Likewise.
10515         (LOADARGS_5): Likewise.
10516         (RESTOREARGS_1): Likewise.
10517         (RESTOREARGS_5): Likewise.
10519 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10521         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10522         (MEMPCPY_SYMBOL): Likewise.
10523         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10524         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10525         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10526         in libc.a.
10527         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10528         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10529         Likewise.
10530         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10531         (__hidden_ver1): Don't use in libc.a.
10532         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10533         (__mempcpy): Don't create a weak alias in libc.a.
10534         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10535         libc.a.
10536         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10537         (__hidden_ver1): Don't use in libc.a.
10539 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10541         * config.make.in (have-insert): New.
10542         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10543         supports INSERT in linker script.
10544         (AC_SUBST(libc_cv_insert): New.
10545         * configure: Regenerated.
10546         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10547         if $(have-insert) == yes.
10549 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10551         * elf/Makefile (tests): Add vismain only if
10552         $(have-protected-data) == yes.
10553         (tests-pie): Likewise.
10555 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10557         [BZ #21871]
10558         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10559         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10561 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10563         [BZ #21790]
10564         * sysdeps/i386/i586/memset.S
10565         (__memset_zero_constant_len_parameter): Removed.
10566         * sysdeps/i386/i686/memset.S
10567         (__memset_zero_constant_len_parameter): Likewise.
10568         * sysdeps/i386/i686/multiarch/memset_chk.S
10569         (__memset_zero_constant_len_parameter): Likewise.
10570         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10571         Likewise.
10573 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10575         * stdlib/getentropy.c (getentropy): Change return type to int.
10577 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10579         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10581 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10583         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10584         u_intN_t.
10585         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10586         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10587         Likewise.
10588         (ieee_float_shape_type): Likewise.
10589         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10590         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10591         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10592         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10593         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10594         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10595         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10596         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10597         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10598         Likewise.
10599         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10600         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10601         (__ieee754_yn): Likewise.
10602         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10603         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10604         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10605         Likewise.
10606         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10607         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10608         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10609         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10610         (__erfc): Likewise.
10611         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10612         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10613         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10614         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10615         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10616         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10617         Likewise.
10618         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10619         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10620         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10621         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10622         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10623         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10624         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10625         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10626         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10627         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10628         (__issignaling): Likewise.
10629         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10630         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10631         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10632         Likewise.
10633         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10634         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10635         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10636         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10637         Likewise.
10638         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10639         Likewise.
10640         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10641         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10642         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10643         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10644         (__erfcf): Likewise.
10645         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10646         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10647         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10648         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10649         Likewise.
10650         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10651         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10652         Likewise.
10653         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10654         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10655         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10656         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10657         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10658         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10659         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10660         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10661         Likewise.
10662         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10663         Likewise.
10664         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10665         Likewise.
10666         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10667         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10668         Likewise.
10669         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10670         Likewise.
10671         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10672         (__ieee754_ynl): Likewise.
10673         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10674         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10675         Likewise.
10676         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10677         Likewise.
10678         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10679         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10680         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10681         Likewise.
10682         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10683         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10684         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10685         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10686         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10687         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10688         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10689         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10690         Likewise.
10691         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10692         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10693         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10694         Likewise.
10695         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10696         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10697         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10698         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10699         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10700         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10701         Likewise.
10702         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10703         Likewise.
10704         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10705         Likewise.
10706         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10707         Likewise.
10708         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10709         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10710         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10711         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10712         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10713         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10714         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10715         Likewise.
10716         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10717         Likewise.
10718         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10719         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10720         Likewise.
10721         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10722         (__ieee754_remainderl): Likewise.
10723         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10724         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10725         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10726         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10727         Likewise.
10728         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10729         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10730         Likewise.
10731         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10732         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10733         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10734         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10735         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10736         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10737         Likewise.
10738         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10739         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10740         (__ieee754_y0l): Likewise.
10741         (pzero): Likewise.
10742         (qzero): Likewise.
10743         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10744         (__ieee754_y1l): Likewise.
10745         (pone): Likewise.
10746         (qone): Likewise.
10747         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10748         (__ieee754_ynl): Likewise.
10749         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10750         (__ieee754_lgammal_r): Likewise.
10751         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10752         Likewise.
10753         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10754         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10755         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10756         (__erfcl): Likewise.
10757         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10758         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10759         Likewise.
10760         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10761         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10762         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10763         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10764         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10765         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10766         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10767         Likewise.
10768         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10769         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10770         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10771         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10772         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10773         Likewise.
10774         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10775         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10776         Likewise.
10777         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10778         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10779         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10780         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10781         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10783 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10785         [BZ #21885]
10786         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10787         on memory allocation failure.
10789 2017-08-03  Alan Modra  <amodra@gmail.com>
10791         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10792         tst-tlsopt-powerpc.c with function name change and no test harness.
10793         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10794         Call tls_get_addr_opt_test.
10795         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10796         (modules-names): Add mod-tlsopt-powerpc.
10797         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10798         (tst-tlsopt-powerpc): Depend on .so.
10799         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10800         define.  Expand use in TLS_GD and TLS_LD.
10802 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10804         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10805         function.
10806         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10808 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10810         [BZ #21686]
10811         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10812         comparing size with that of double.
10813         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10814         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10815         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10816         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10817         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10818         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10819         unsigned __int128 types.
10821 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10823         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10824         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10825         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10826         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10827         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10829 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10831         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10833 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10835         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10836         of SHARED.
10837         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10838         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10839         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10840         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10841         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10842         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10843         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10845 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10847         [BZ #21685]
10848         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10849         bit-field expressions passed to sizeof or typeof.
10850         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10851         (__TGMATH_F128): Likewise.
10852         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10853         (__TGMATH_CF128): Likewise.
10854         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10855         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10856         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10857         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10858         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10859         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10860         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10861         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10862         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10863         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10864         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10865         (__TGMATH_UNARY_IMAG): Likewise.
10866         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10867         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10868         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10869         type.
10870         (define_vars_for_type): Handle bit_field type specially.
10871         (Tests.__init__): Declare structure with bit-field element.
10873 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10875         [BZ #21791]
10876         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10877         (MEMCPY_CHK): Define only if SHARED is defined.
10878         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10879         Likewise.
10880         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10881         Likewise.
10883 See ChangeLog.18 for earlier changes.